Stride logo

Stride

API schema reference

backend.get | schema

method

Parameters

type
Field Type Required Description
backend-name string yes The name of the backend to retrieve.

Result

type
Field Type Required Description
backend-descriptor backend.descriptor no backend-descriptor
backend.list | schema

method

Parameters

type

Result

type
Field Type Required Description
backends backend.descriptor[] yes A list of all available backends.
log.event | schema

method

Parameters

type
Field Type Required Description
level The.level.of.a.log.message. yes level
message string yes message

Result

type
log.get | schema

method

Parameters

type

Result

type
Field Type Required Description
content string yes content
plugin.disable | schema

method

Parameters

type
Field Type Required Description
plugin-name string yes The name of the plugin to be disabled.
reason string no Optional reason for disabling the plugin.

Result

type
plugin.import | schema

method

Parameters

type
Field Type Required Description
file-path string yes The file path of the plugin to be imported.

Result

type
plugin.list | schema

method

Parameters

type

Result

type
Field Type Required Description
plugins PluginManifestInstance[] yes plugins
plugin.remove | schema

method

Parameters

type
Field Type Required Description
plugin-name string yes The name of the plugin to be removed.

Result

type
plugin.toggle | schema

method

Parameters

type
Field Type Required Description
plugin-name string yes The name of the plugin to be toggled.

Result

type
plugin.validate | schema

method

Parameters

type
Field Type Required Description
file-path string yes The file path of the plugin archive to validate.

Result

type
Field Type Required Description
plugin PluginManifestInstance yes plugin
repository.add | schema

method

Parameters

type
Field Type Required Description
name string no The optional name of the repository.

Result

type
Field Type Required Description
repository-id uuid yes The unique identifier of the added repository.
repository.backend.add | schema

method

Parameters

type
Field Type Required Description
repository-id uuid yes The unique identifier of the repository to which a backend should be added.
backend string yes The unique identifier of the backend to be added to the repository.

Result

type
Field Type Required Description
backend-id uuid yes The unique identifier of the backend that was added to the repository.
repository.backend.get | schema

method

Parameters

type
Field Type Required Description
repository-id uuid yes repository-id
backend-id uuid yes backend-id

Result

type
Field Type Required Description
backend-record BackendRecord no The backend record in the repository.
repository.backend.list | schema

method

Parameters

type
Field Type Required Description
repository-id uuid yes The unique identifier of the repository from which a backend should be listed.

Result

type
Field Type Required Description
backends BackendInstance[] yes The list of backend instances in the repository.
repository.backend.remove | schema

method

Parameters

type
Field Type Required Description
repository-id uuid yes The unique identifier of the repository from which a backend should be removed.
backend-id uuid yes The UUID of the backend to be removed from the repository.

Result

type
repository.backend.set | schema

method

Parameters

type
Field Type Required Description
repository-id uuid yes The unique identifier of the repository for which a backend should be updated.
backend-instance BackendInstance yes The instance of the backend to be updated for the repository.

Result

type
repository.backend.toggle | schema

method

Parameters

type
Field Type Required Description
repository-id uuid yes The unique identifier of the repository for which a backend should be toggled.
backend-id uuid yes The unique identifier of the backend to be toggled for the repository.

Result

type
Field Type Required Description
state boolean yes The new state of the backend that was toggled for the repository.
repository.export | schema

method

Exports all tasks from a repository.

Parameters

type
Field Type Required Description
repository-id uuid yes The unique identifier of the repository.

Result

type
Field Type Required Description
tasks Task[] yes tasks
repository.import | schema

method

Imports tasks into a repository, updating tasks with matching identifiers.

Parameters

type
Field Type Required Description
repository-id uuid yes The unique identifier of the repository.
tasks Task[] yes tasks

Result

type
Field Type Required Description
imported unsigned integer yes The number of imported tasks.
repository.list | schema

method

Parameters

type

Result

type
Field Type Required Description
repositories repository.descriptor[] yes repositories
repository.project.list | schema

method

Parameters

type
Field Type Required Description
id uuid yes The unique identifier of the repository whose projects should be listed.

Result

type
Field Type Required Description
projects string[] yes All non-deleted project names stored in the repository database.
repository.remove | schema

method

Parameters

type
Field Type Required Description
repository-id uuid yes repository-id

Result

type
repository.sync | schema

method

Parameters

type
Field Type Required Description
id uuid yes The unique identifier of the repository to be synchronized.
backends string[] no A list of backends to synchronize with the repository.

Result

type
repository.tag.list | schema

method

Parameters

type
Field Type Required Description
id uuid yes The unique identifier of the repository whose tags should be listed.

Result

type
Field Type Required Description
tags string[] yes All non-deleted tags stored in the repository database.
repository.task.add | schema

method

Parameters

type
Field Type Required Description
repository-id uuid yes The unique identifier of the repository.
task Task yes The task to add.

Result

type
repository.task.query | schema

method

Parameters

type
Field Type Required Description
repository-id uuid yes The unique identifier of the repository.
query TaskQuery yes The query to execute.

Result

type
Field Type Required Description
tasks Task[] yes tasks
repository.task.remove | schema

method

Parameters

type
Field Type Required Description
repository-id uuid yes The unique identifier of the repository.
task-id uuid yes The unique identifier of the task to remove.

Result

type
repository.task.update | schema

method

Parameters

type
Field Type Required Description
repository-id uuid yes The unique identifier of the repository.
task Task yes The task values to persist.

Result

type
repository.update | schema

method

Parameters

type
Field Type Required Description
descriptor repository.descriptor yes The repository descriptor to save.

Result

type
ssh.host.add | schema

method

Parameters

type
Field Type Required Description
host ssh.host yes host

Result

type
ssh.host.list | schema

method

Parameters

type

Result

type
Field Type Required Description
hosts ssh.host[] yes hosts
ssh.host.remove | schema

method

Parameters

type
Field Type Required Description
hostname string yes hostname
format ssh.key.format yes format

Result

type
ssh.key.add | schema

method

Parameters

type
Field Type Required Description
format ssh.key.format yes format
public-key string yes public-key
private-key string yes private-key

Result

type
Field Type Required Description
key SshKey yes key
ssh.key.generate | schema

method

Parameters

type
Field Type Required Description
format ssh.key.format yes format

Result

type
Field Type Required Description
key SshKey yes The generated SSH key.
ssh.key.list | schema

method

Parameters

type

Result

type
Field Type Required Description
keys SshKey[] yes A list of all available SSH keys.
ssh.key.remove | schema

method

Parameters

type
Field Type Required Description
id uuid yes id

Result

type
ssh.key.update | schema

method

Parameters

type
Field Type Required Description
id uuid yes id
format ssh.key.format yes format
public-key string yes public-key
private-key string yes private-key

Result

type
Field Type Required Description
key SshKey yes key
storage.get | schema

method

Gets the values of the specified keys. Keys that are not stored are omitted from the result.

Parameters

type
Field Type Required Description
repository-id uuid no The repository whose storage is used. When omitted, the global (per application) storage is used.
items string[] yes The `group:key` queries to retrieve the values of.

Result

type
Field Type Required Description
items A.storage.key-value.pair.[] yes The key-value pairs that were found.
storage.list | schema

method

Lists all the key-value pairs in the global storage, or in the local repository storage if a repository is given.

Parameters

type
Field Type Required Description
repository-id uuid no The repository whose storage is used. When omitted, the global (per application) storage is used.
group string no An optional group to list. When omitted, all groups are listed.

Result

type
Field Type Required Description
items A.storage.key-value.pair.[] yes The key-value pairs.
storage.remove | schema

method

Removes the specified keys.

Parameters

type
Field Type Required Description
repository-id uuid no The repository whose storage is used. When omitted, the global (per application) storage is used.
items string[] yes The `group:key` queries to remove.

Result

type
storage.set | schema

method

Adds or changes a key-value pair.

Parameters

type
Field Type Required Description
repository-id uuid no The repository whose storage is used. When omitted, the global (per application) storage is used.
key string yes A `group:key` query: the group (like a namespace) and the key separated by a colon (':'), both made of '.' separated names.
value ConfigValue yes The value to store.

Result

type
repository.changed | schema

notification

Emitted after a sync when at least one remote actor introduced changes.

Field Type Required Description
repository-id uuid yes UUID of the repository that was synced.
changes TaskChange[] yes One entry per task that was touched by a remote actor.

TaskChange

type
Field Type Required Description
task-id uuid yes UUID of the affected task.
title string yes The title of the task before the change.
fields TaskFieldChange[] yes fields

TaskFieldChange

type
Field Type Required Description
type string yes type
previous string no previous
current string no current
repository.sync.started | schema

notification

Field Type Required Description
repository-id uuid yes UUID of the repository that started syncing.
repository.sync.stopped | schema

notification

Field Type Required Description
repository-id uuid yes UUID of the repository that stopped syncing.
error string no Indicates whether the sync operation encountered an error.
repository.task.added | schema

notification

Emitted after a task is added to a repository.

Field Type Required Description
repository-id uuid yes UUID of the repository that received the task.
task Task yes The task that was added.
repository.task.removed | schema

notification

Emitted after a task is removed from a repository.

Field Type Required Description
repository-id uuid yes UUID of the repository that received the task.
task-id uuid yes UUID of the task that was removed.
repository.task.updated | schema

notification

Emitted after a task is updated in a repository.

Field Type Required Description
repository-id uuid yes UUID of the repository that received the task.
previous Task yes The task before it was updated.
current Task yes The task after the update.
storage.changed | schema

notification

Emitted after a key is added or changed in a storage.

Field Type Required Description
repository-id uuid no The repository the key belongs to, absent for the global storage.
key string yes The `group:key` that was added or changed.
value ConfigValue yes The new value.
storage.removed | schema

notification

Emitted after a key is removed from a storage.

Field Type Required Description
repository-id uuid no The repository the key belongs to, absent for the global storage.
key string yes The `group:key` that was removed.
user.prompt | schema

notification

A prompt is a message or question that is presented to the user, often as part of an interactive system or application, and it may also include actions that the user can take in response to the prompt.

Field Type Required Description
target UserPromptTarget yes target
summary string yes A brief summary of the prompt.
description string no A detailed description of the prompt.
actions string[] yes A list of actions that the user can take in response to the prompt.

UserPromptTarget

type
Field Type Required Description
method string yes The name of the method to be invoked.
params any yes The parameters for the method.
A.storage.key-value.pair. | schema

type

Field Type Required Description
key string yes A `group:key` query: the group (like a namespace) and the key separated by a colon (':'), both made of '.' separated names.
value ConfigValue yes The stored value.
BackendInstance | schema

type

Field Type Required Description
id uuid yes The UUID of the instance.
name string yes The name of the instance was based on.
state BackendInstanceState yes The current state of the instance.
config Config yes The config of the instance.
BackendInstanceState | schema

type

Variant Description
enabled The backend is currently enabled and is being used for syncing.
disabled The backend is currently disabled and is not being used for syncing.
BackendRecord | schema

type

Field Type Required Description
instance BackendInstance yes The backend instance.
descriptor backend.descriptor no The descriptor of the backend. May be empty if not available.
Config | schema

type

Field Type Required Description
fields ConfigField[] yes fields
ConfigField | schema

type

Field Type Required Description
id string yes id
value ConfigValue yes value
ConfigSchema | schema

type

Field Type Required Description
name string yes name
fields ConfigSchemaField[] yes fields
ConfigSchemaByteCategory | schema

type

Variant Description
password Password category.
ConfigSchemaByteGenerator | schema

type

Variant Description
crypto-random Crypto-random byte generator.
ConfigSchemaField | schema

type

Field Type Required Description
id string yes id
name string yes name
value ConfigSchemaValue yes value
show-qr-code boolean yes Whether to show a QR code for this field.
ConfigSchemaValue | schema

type

Discriminated by the `type` property.

Variant Description
string Selected when `type` is "string".
uuid Selected when `type` is "uuid".
bytes Selected when `type` is "bytes".
url Selected when `type` is "url".
ssh-key Selected when `type` is "ssh-key".

type = string

variant
Field Type Required Description
default string no The value of the form field.

type = uuid

variant
Field Type Required Description
default uuid no default

type = bytes

variant
Field Type Required Description
default bytes (base64) no default
min unsigned integer no min
max unsigned integer no max
category ConfigSchemaByteCategory no category
generator ConfigSchemaByteGenerator no generator

type = url

variant
Field Type Required Description
default uri no default

type = ssh-key

variant
Field Type Required Description
default uuid no default
ConfigValue | schema

type

Discriminated by the `type` property.

Variant Description
string Selected when `type` is "string".
uuid Selected when `type` is "uuid".
bytes Selected when `type` is "bytes".
url Selected when `type` is "url".
boolean Selected when `type` is "boolean".
integer Selected when `type` is "integer".

type = string

variant
Field Type Required Description
value string yes The value of the form field.

type = uuid

variant
Field Type Required Description
value uuid yes value

type = bytes

variant
Field Type Required Description
value bytes (base64) yes value

type = url

variant
Field Type Required Description
value uri yes value

type = boolean

variant
Field Type Required Description
value boolean yes value

type = integer

variant
Field Type Required Description
value integer yes value
NetworkRequestMethod | schema

type

Variant Description
get get
PluginManifest | schema

type

Field Type Required Description
api The.version.of.the.plugin.manifest. yes api
name string yes name
event PluginManifestEvent yes event
permission PluginManifestPermission yes permission
PluginManifestEvent | schema

type

Field Type Required Description
task PluginManifestEventTask no task
timer PluginManifestEventTimer no timer
PluginManifestEventTask | schema

type

Field Type Required Default Description
create boolean yes false create
modify boolean yes false modify
sync boolean yes false sync
PluginManifestEventTimer | schema

type

Field Type Required Description
interval integer yes interval
PluginManifestInstance | schema

type

Field Type Required Description
manifest PluginManifest yes manifest
state PluginState yes state
PluginManifestPermission | schema

type

Field Type Required Description
task PluginManifestPermissionTask no task
network PluginManifestPermissionNetwork no network
storage PluginManifestPermissionStorage no storage
PluginManifestPermissionNetwork | schema

type

Field Type Required Default Description
urls uri[] yes [] urls
PluginManifestPermissionStorage | schema

type

Field Type Required Description
max-size unsigned integer yes max-size
PluginManifestPermissionTask | schema

type

Field Type Required Default Description
create boolean yes false create
modify boolean yes false modify
remove boolean yes false remove
query boolean yes false query
sync boolean yes false sync
PluginState | schema

type

Discriminated by the `type` property.

Variant Description
enable Selected when `type` is "enable".
disable Selected when `type` is "disable".

type = enable

variant

type = disable

variant
Field Type Required Description
reason string no reason
SshKey | schema

type

Field Type Required Description
id uuid yes id
format ssh.key.format yes format
public-key string yes public-key
public-path path yes public-path
private-path path yes private-path
Task | schema

type

Field Type Required Default Description
id uuid yes - id
status TaskStatus no - status
entry date-time no - entry
title string no - title
modified date-time no - modified
due date-time no - due
project string no - project
tags string[] yes [] tags
annotations TaskAnnotation[] yes [] annotations
priority TaskPriority no - priority
wait date-time no - wait
depends uuid[] yes - depends
udas TaskUda[] yes [] udas
TaskAnnotation | schema

type

Field Type Required Description
id uuid yes id
entry date-time yes entry
text string yes text
TaskPriority | schema

type

Variant Description
low low
medium medium
high high
TaskQuery | schema

type

Discriminated by the `type` property.

Variant Description
id Selected when `type` is "id".
title Selected when `type` is "title".
filter Selected when `type` is "filter".

type = id

variant
Field Type Required Description
id uuid yes id

type = title

variant
Field Type Required Description
title string yes title
statuses TaskStatus[] yes statuses
limit unsigned integer no limit

type = filter

variant
Field Type Required Description
search string yes search
statuses TaskStatus[] yes statuses
limit unsigned integer no limit
TaskStatus | schema

type

The default variant is highlighted below.

Variant Description
pending default pending
done done
deleted deleted
TaskUda | schema

type

Field Type Required Description
key string yes key
value string yes value
The.level.of.a.log.message. | schema

type

The level of a log message.

Variant Description
debug Debug level log message.
trace Trace level log message.
info Info level log message.
warn Warn level log message.
error Error level log message.
The.version.of.the.plugin.manifest. | schema

type

The version of the plugin manifest.

Variant Description
v1 Version 1 of the plugin manifest.
backend.descriptor | schema

type

Field Type Required Description
name string yes The unique name of the backend.
schema ConfigSchema yes The schema of the backend.
repository.descriptor | schema

type

Field Type Required Description
id uuid yes The unique identifier of the repository.
name string no The repository name.
ssh.host | schema

type

Field Type Required Description
hostname string yes The hostname or IP address of the SSH host.
key ssh.key.public yes The SSH key used for authentication.
ssh.key.format | schema

type

The type of SSH key used for authentication.

Variant Description
ssh-rsa RSA key format.
ssh-dss DSA key format.
ssh-ed25519 Ed25519 key format.
ecdsa-sha2-nistp256 ECDSA key format with NIST P-256 curve.
ecdsa-sha2-nistp384 ECDSA key format with NIST P-384 curve.
ecdsa-sha2-nistp521 ECDSA key format with NIST P-521 curve.
ssh.key.public | schema

type

Field Type Required Description
type ssh.key.format yes type
public string yes The SSH key used for authentication.