数据结构

AIWhere string

auto: a member's device when one that can is around, else the server; a run waiting for a device goes to the server after 15 minutes (SIDESPACE_DEVICE_FALLBACK) unless it named a backend the server lacks. device: never the server. server: never a device.
autodeviceserver

AddMemberRequest object

  • emailstring必填
  • roleRole必填
    viewercommentereditormanager

ApplyForkRequest object

  • pathsstring[]
    Only changes at or under these paths (fork or original paths)
  • forceboolean
    Also replace the original's newer versions
  • dry_runboolean

Automation object

  • itemsAutomationItem[]必填
    › 7 个字段
    • actionstring必填
    • titlestring必填
    • acceptsstring[]必填
    • onboolean必填
    • onlystring | null必填
      Which files of those it accepts: has_audio for side.transcribe, null for all
      has_audionull
      必填
    • devicesinteger必填
      How many devices of the workspace's members asked for this action's work in the last 7 days (0 when the workspace does not let members' devices work). 0 = nothing can do it yet
    • providersstring[]必填
      The backends those devices do it with, as they report them (DeviceCapability.backend)
  • updated_atstring (date-time) | null必填
    When an admin last changed it; null while it has the defaults
    必填
  • updated_bystring | null必填
    Who did
    必填

AutomationItem object

  • actionstring必填
  • titlestring必填
  • acceptsstring[]必填
  • onboolean必填
  • onlystring | null必填
    Which files of those it accepts: has_audio for side.transcribe, null for all
    has_audionull
    必填
  • devicesinteger必填
    How many devices of the workspace's members asked for this action's work in the last 7 days (0 when the workspace does not let members' devices work). 0 = nothing can do it yet
  • providersstring[]必填
    The backends those devices do it with, as they report them (DeviceCapability.backend)

ChunkRef object

  • hashHash必填
    ^[0-9a-f]{64}$
  • offsetinteger必填
  • leninteger必填

CommitVersionRequest object

  • base_version_idstring | null必填
    必填
  • manifestManifest必填
    › 3 个字段
    • algostring必填
      fastcdc-v1 (content-defined, 512 KiB to 8 MiB) or fixed-4m-v1 (4 MiB pieces, the last shorter; what browsers send, ADR 0042)
      fastcdc-v1fixed-4m-v1
    • sizeinteger必填
    • chunksChunkRef[]必填
      › 3 个字段
      • hashHash必填
        ^[0-9a-f]{64}$
      • offsetinteger必填
      • leninteger必填
  • mimestring
  • client_mtimeTimestamp
  • if_version_idstring
    Save only if the file is still at this version (same as If-Match); else 412 precondition_failed
  • if_newboolean
    Save only if the file has no version yet (same as If-None-Match: *)

CommitVersionResponse object

  • versionVersionInfo必填
    › 19 个字段
    • idstring必填
    • node_idstring必填
    • seqinteger必填
      1-based per node
    • sizeinteger必填
    • mimestring | null必填
      必填
    • manifest_hashHash必填
      ^[0-9a-f]{64}$
    • authorUser必填
      › 4 个字段
      • idstring必填
      • emailstring必填
        Agents have an address at agents.invalid: it finds them for invites, no mail goes there
      • display_namestring必填
      • kindstring必填
        humanagent
    • device_idstring | null必填
      必填
    • base_version_idstring | null必填
      必填
    • superseded_version_idstring | null必填
      Head this save replaced although it was not its base
      必填
    • client_mtimeTimestamp | any必填
    • created_atTimestamp必填
    • labelstring
      The name someone gave this version ("Client cut"), unique per file; absent if none
    • labeled_bystring
    • labeled_atTimestamp
    • originstring必填
      How the version came to be: a whole-file save, a partial write, a copy, a restore (from the app, the API, a rewind or an S3 copy of an old version over its key), copied into a fork when it was made, or applied from a fork
      puteditcopyrestoreforkmerge
    • source_version_idstring
      The version it was copied, restored, forked or merged from
    • restored_fromstring
      For a restore: the version brought back
    • copied_fromstring
      For a copy: the version copied
  • nodeNodeInfo必填
    › 11 个字段
    • idstring必填
    • space_idstring必填
    • parent_idstring | null必填
      null for the space root
      必填
    • namestring必填
    • kindNodeKind必填
      filedir
    • head_version_idstring | null必填
      必填
    • sizeinteger必填
    • mimestring | null必填
      必填
    • meta_revinteger必填
      Bumped by rename
    • deletedboolean必填
    • mtimeTimestamp必填
  • supersededSuperseded | any必填

CreateNodeRequest object

  • parent_idstring必填
  • namestring必填
  • kindNodeKind必填
    filedir
  • if_existsstring
    When a live sibling has the same name (case-insensitive): rename creates "name (2).ext"; reuse returns the existing node of the same kind; fail (or If-None-Match: *) answers 412 precondition_failed with the existing node_id. Sync clients use reuse so concurrent creates of one path converge on one file (last save wins, both saves in its history).
    renamereusefail
    default "rename"

CreateSpaceRequest object

  • namestring必填
  • storage_idstring
    A storage profile to keep its files in: mine, or the organization's. While the server takes payments, a bucket of mine needs a paid plan (403 plan_required): make the space, then send the bucket with its Checkout.
  • org_idstring
    Make it in this organization (an admin there); it goes to the organization's default storage

DeviceBundle object

  • devicestring必填
  • space_idstring必填
  • node_idstring必填
  • version_idstring必填
  • pathstring必填
  • namestring必填
  • mimestring必填
  • sizeinteger必填
  • inputsmap<string, object>必填
    original always; proxy (720p H.264/AAC) and preview (a screen-sized picture) when the server made them. Ranged reads work. Read the file on disk when the device has it.
  • sidecarsmap<string, any>必填
    media, and what the runs read
  • ignoredstring[]
    Actions of the request's can that were left out
  • lease_secondsinteger必填
    Report at least this often or the runs go back to waiting
  • runsobject[]必填
    › 13 个字段
    • run_idstring必填
    • actionstring必填
    • action_versionstring必填
    • backendstring必填
      The backend to use: the run's, or (when any would do) the first this device listed for the action
    • paramsobject必填
    • attemptinteger必填
    • prioritystring必填
      nowbatchauto
    • classstring必填
      lightheavy
    • readsstring[]必填
    • writesstring[]必填
      The only sidecars it may write
    • inputsstring[]必填
    • callbackobject必填
      › 3 个字段
      • urlstring必填
        …/v1/plugin-runs/{run_id}
      • tokenstring必填
        srt_…, as a bearer token
      • expires_atTimestamp必填
    • embedobject
      side.embed only (ADR 0061): the model's contract and the pieces of the file's text that need vectors, cut by the server. The run reads no file (inputs is empty). Complete it with {"sidecars": {"vectors": {"model": "…", "pieces": [{"id": 3, "hash": "…", "vec": [numbers] or base64 float32/float16}]}}}: not a sidecar, stored as the index. A piece whose text changed since (its hash) is left out and asked for again
      › 3 个字段
      • modelstring必填
      • diminteger必填
        Numbers kept: the first dim of the model's output, made unit length (the server does it too)
      • piecesobject[]必填
        › 5 个字段
        • idinteger必填
          0: the whole file (name, folder, fields, the start of what is said); 1…: a timed stretch of one moments' source
        • hashstring必填
        • textstring必填
          Embedded as it is: no query prefix
        • at_msinteger (int64)
        • until_msinteger (int64)

DeviceCapability object

  • actionstring必填
  • backendstring必填
    The model; part of the cache key
    ^[a-z0-9][a-z0-9._+@-]{0,63}$
  • versionstring
    The backend's own version (build, weights), kept in producer

DeviceClaim object

  • devicestring
    A token runner's name (letters, digits, . _ -), so its runs come back to it after a restart; a signed-in device leaves it out
  • namestring
    Shown to people ("Alice's MacBook Pro")
    ≤ 100 chars
  • canDeviceCapability[]必填
    Best first. Actions devices do (GET /v1/runs/device-actions); others are left out and named in ignored / X-Ignored-Can, and only a can with none known is refused. A run with no backend named (on it, or the workspace's default) waits with backend "" and the device that claims it fixes it
    ≤ 100 items
    › 3 个字段
    • actionstring必填
    • backendstring必填
      The model; part of the cache key
      ^[a-z0-9][a-z0-9._+@-]{0,63}$
    • versionstring
      The backend's own version (build, weights), kept in producer
  • spacesstring[]
    Only these drives (the device's settings); empty = all
  • classesstring[]
    Default both; on battery, light
  • maxinteger
    Runs of one file in a claim
    default 8 · ≥ 1 · ≤ 20
  • prioritiesstring[]
    Only runs of these priorities; empty = all. "Only when I ask" is [now]

DeviceSeen object

  • idstring必填
  • namestring必填
  • user_idstring必填
  • canDeviceCapability[]必填
    › 3 个字段
    • actionstring必填
    • backendstring必填
      The model; part of the cache key
      ^[a-z0-9][a-z0-9._+@-]{0,63}$
    • versionstring
      The backend's own version (build, weights), kept in producer
  • seen_atTimestamp必填

DownloadTicket object

  • ticketstring必填
  • manifestManifest
    › 3 个字段
    • algostring必填
      fastcdc-v1 (content-defined, 512 KiB to 8 MiB) or fixed-4m-v1 (4 MiB pieces, the last shorter; what browsers send, ADR 0042)
      fastcdc-v1fixed-4m-v1
    • sizeinteger必填
    • chunksChunkRef[]必填
      › 3 个字段
      • hashHash必填
        ^[0-9a-f]{64}$
      • offsetinteger必填
      • leninteger必填
  • blockgw_urlstring必填
  • expires_atTimestamp必填

DownloadTicketRequest object

  • version_idstring必填
  • renditionstring
    e.g. thumb, or proxy (the server-made 720p H.264 stream of a video)
  • streamboolean
    A ticket for a player: lasts a viewing session (6 h) instead of minutes
  • manifestboolean
    false leaves the manifest out of the answer: reading through the gateway (GET /files, ranges) does not need it, and a big file's is long
    default true

DriveAI object

  • space_idstring必填
  • workspace_idstring必填
  • whereAIWhere必填
    autodeviceserver
  • member_devicesboolean必填
    The workspace lets members' devices do its AI work
  • backendsmap<string, string>必填
    The workspace's default backend per action
  • devicesDeviceSeen[]必填
    Devices that asked for work lately (10 minutes) and may do this drive's
    › 5 个字段
    • idstring必填
    • namestring必填
    • user_idstring必填
    • canDeviceCapability[]必填
      › 3 个字段
      • actionstring必填
      • backendstring必填
        The model; part of the cache key
        ^[a-z0-9][a-z0-9._+@-]{0,63}$
      • versionstring
        The backend's own version (build, weights), kept in producer
    • seen_atTimestamp必填
  • waitinginteger必填
    Runs waiting for a device

EditOp object

  • atinteger (int64)必填
    Byte offset in the old version
    ≥ 0
  • deleteinteger (int64)
    Bytes removed there
    default 0 · ≥ 0
  • textstring
    Inserted there, as UTF-8
  • base64string
    Inserted there, as bytes (instead of text)

EditRequest object

  • if_version_idstring
    The version the offsets are in; must still be the head
  • opsEditOp[]
    ≤ 10000 items
    › 4 个字段
    • atinteger (int64)必填
      Byte offset in the old version
      ≥ 0
    • deleteinteger (int64)
      Bytes removed there
      default 0 · ≥ 0
    • textstring
      Inserted there, as UTF-8
    • base64string
      Inserted there, as bytes (instead of text)
  • truncateinteger (int64)
    Cut the result to this many bytes
    ≥ 0

Error object

  • errorobject必填
    › 4 个字段
    • codestring必填
      Stable; see the error reference (docs/reference/errors.md). New codes may be added, so treat an unknown one by its HTTP status.
      bad_requestunauthorizedforbiddennot_foundconflictmissing_chunksprecondition_failedquota_exceededrate_limitedexpiredsso_requiredsso_unavailabledomain_unprovenmail_failedunavailableinternal
    • messagestring必填
      For people; may change. Match on code
    • detailsany
      Extra data for some codes, e.g. the current version for precondition_failed
    • request_idstring
      Same as the X-Request-Id header; quote it when reporting a problem

FacetDef object

  • idstring必填
  • workspace_idstring
    Set for a workspace's own fields
  • keystring必填
    The filter key: tags, shot, f.client
  • originstring必填
    builtinplugincustom
  • namespacestring必填
    The sidecar the values are in (custom fields: fields)
  • pathstring必填
  • typestring必填
    keywordkeywordsenumnumberdatebool
  • optionsobject
    {"values": [...]} for an enum; {"unit": "…"} for a number
  • labelmap<string, string>必填
  • positioninteger必填

FieldRequest object

  • keystring
    Lowercase letters, digits and _ (client); filtered as f.client. Fixed once made
  • typestring
    Fixed once made
    keywordkeywordsenumnumberdatebool
  • labelmap<string, string>
  • optionsobject
  • positioninteger

FolderSize object

  • filesinteger必填
  • foldersinteger必填
  • bytesinteger必填
    Bytes of the current versions of every file
  • videosinteger必填
  • proxy_filesinteger必填
    Videos that have a streaming proxy
  • proxy_bytesinteger必填
    What those proxies weigh
  • largestinteger必填
    The biggest single file

ForkApplied any

  • kindstring必填
    addedmodifiedmetadatamoveddeleted
  • node_kindstring必填
    filedir
  • pathstring必填
    In the fork ("" for a deleted node)
  • node_idstring必填
    In the fork
  • origin_pathstring
    Where it is (or goes) in the original
  • origin_node_idstring
  • sidecarsstring[]
    Namespaces whose documents differ
  • conflictboolean
    The original changed it too since the fork: apply needs force
  • whystring
  • resultstring必填
    appliedskippedwould applyfailed
  • errorstring

ForkChange object

  • kindstring必填
    addedmodifiedmetadatamoveddeleted
  • node_kindstring必填
    filedir
  • pathstring必填
    In the fork ("" for a deleted node)
  • node_idstring必填
    In the fork
  • origin_pathstring
    Where it is (or goes) in the original
  • origin_node_idstring
  • sidecarsstring[]
    Namespaces whose documents differ
  • conflictboolean
    The original changed it too since the fork: apply needs force
  • whystring

ForkRequest object

  • namestring必填
  • pathstring
    Only this folder of the space (default all of it)
  • copyboolean
    Take an own copy of the files in the background, so the fork stops depending on the original. It is usable at once and shares the files until the copy is done (see fork.copy)
    default false
  • storage_idstring
    With copy: where the fork keeps its files, a storage profile id or "server" for the server's own storage. Omitted: the original's storage

Hash string

^[0-9a-f]{64}$

JournalEntry object

  • seqinteger必填
  • opJournalOp必填
    node.creatednode.renamednode.movednode.deletednode.restoredversion.createdversion.labeledsidecar.updatedrendition.updatedincoming.startedincoming.stoppedcomment.createdcomment.updated
  • node_idstring必填
  • version_idstring | null必填
    必填
  • actor_idstring必填
    The user the change was made by or for
  • actor_kindstring必填
    A person, an agent, or a server plugin (e.g. the media worker) acting for actor_id
    humanagentplugin
  • actor_viastring
    What the change came through: an access token (tok_…) or a plugin (media). Absent for the apps.
  • device_idstring | null必填
    必填
  • tsTimestamp必填
  • nodeNodeInfo必填
    › 11 个字段
    • idstring必填
    • space_idstring必填
    • parent_idstring | null必填
      null for the space root
      必填
    • namestring必填
    • kindNodeKind必填
      filedir
    • head_version_idstring | null必填
      必填
    • sizeinteger必填
    • mimestring | null必填
      必填
    • meta_revinteger必填
      Bumped by rename
    • deletedboolean必填
    • mtimeTimestamp必填

JournalOp string

node.creatednode.renamednode.movednode.deletednode.restoredversion.createdversion.labeledsidecar.updatedrendition.updatedincoming.startedincoming.stoppedcomment.createdcomment.updated

JournalPage object

  • entriesJournalEntry[]必填
    › 10 个字段
    • seqinteger必填
    • opJournalOp必填
      node.creatednode.renamednode.movednode.deletednode.restoredversion.createdversion.labeledsidecar.updatedrendition.updatedincoming.startedincoming.stoppedcomment.createdcomment.updated
    • node_idstring必填
    • version_idstring | null必填
      必填
    • actor_idstring必填
      The user the change was made by or for
    • actor_kindstring必填
      A person, an agent, or a server plugin (e.g. the media worker) acting for actor_id
      humanagentplugin
    • actor_viastring
      What the change came through: an access token (tok_…) or a plugin (media). Absent for the apps.
    • device_idstring | null必填
      必填
    • tsTimestamp必填
    • nodeNodeInfo必填
      › 11 个字段
      • idstring必填
      • space_idstring必填
      • parent_idstring | null必填
        null for the space root
        必填
      • namestring必填
      • kindNodeKind必填
        filedir
      • head_version_idstring | null必填
        必填
      • sizeinteger必填
      • mimestring | null必填
        必填
      • meta_revinteger必填
        Bumped by rename
      • deletedboolean必填
      • mtimeTimestamp必填
  • last_seqinteger必填
  • has_moreboolean必填

Manifest object

manifest_hash = BLAKE3("sidespace-manifest-v1" 0x00 algo 0x00 size:u64le count:u32le (hash[32] len:u32le)*)
  • algostring必填
    fastcdc-v1 (content-defined, 512 KiB to 8 MiB) or fixed-4m-v1 (4 MiB pieces, the last shorter; what browsers send, ADR 0042)
    fastcdc-v1fixed-4m-v1
  • sizeinteger必填
  • chunksChunkRef[]必填
    › 3 个字段
    • hashHash必填
      ^[0-9a-f]{64}$
    • offsetinteger必填
    • leninteger必填

MediaStatus object

  • statestring必填
    none: the file gets no previews (not a picture, video, sound or PDF)
    nonequeuedrunningdonefailedskipped
  • stagestring
    what a running job is making
    startproxyposterfilmstripwaveformproxy_1080picture
  • progressnumber
    of the whole job, when known
    ≥ 0 · ≤ 1
  • eta_sinteger
    seconds until the streaming proxy is ready, when known
    ≥ 0
  • aheadinteger必填
    queued jobs that go before this one
    ≥ 0
  • renditionsstring[]必填
  • mediaobject
    the "media" sidecar: duration, size, codecs, dynamic range, filmstrip layout

Member object

  • userUser必填
    › 4 个字段
    • idstring必填
    • emailstring必填
      Agents have an address at agents.invalid: it finds them for invites, no mail goes there
    • display_namestring必填
    • kindstring必填
      humanagent
  • workspace_roleWorkspaceRole
    viewercommentereditoradminowner
  • rolestring必填
    Their role (a WorkspaceRole under /v1/workspaces, a Role under /v1/spaces)
  • direct_roleRole | any
    The same as role. Before ADR 0052 null for someone there only through a team

MissingPage object

  • itemsobject[]必填
    › 7 个字段
    • node_idstring必填
    • version_idstring必填
      The current version; start runs on this one
    • pathstring必填
    • mimestring必填
    • sizeinteger必填
    • created_atTimestamp必填
    • actionsstring[]必填
      The actions whose result it lacks
  • actionsstring[]必填
    The actions looked for: those asked for that the workspace has on
  • devices_allowedboolean必填
    false: members' devices may not do this drive's AI work (no items)
  • next_cursorstring | null必填
    Where the next page starts; null at the end. A full page always has one (the next may be empty)
    必填

NamespaceOwner object

  • namespacestring必填
  • ownerUser必填
    › 4 个字段
    • idstring必填
    • emailstring必填
      Agents have an address at agents.invalid: it finds them for invites, no mail goes there
    • display_namestring必填
    • kindstring必填
      humanagent
  • created_atTimestamp必填

NodeInfo object

  • idstring必填
  • space_idstring必填
  • parent_idstring | null必填
    null for the space root
    必填
  • namestring必填
  • kindNodeKind必填
    filedir
  • head_version_idstring | null必填
    必填
  • sizeinteger必填
  • mimestring | null必填
    必填
  • meta_revinteger必填
    Bumped by rename
  • deletedboolean必填
  • mtimeTimestamp必填

NodeKind string

filedir

NodePage object

  • itemsNodeInfo[]必填
    › 11 个字段
    • idstring必填
    • space_idstring必填
    • parent_idstring | null必填
      null for the space root
      必填
    • namestring必填
    • kindNodeKind必填
      filedir
    • head_version_idstring | null必填
      必填
    • sizeinteger必填
    • mimestring | null必填
      必填
    • meta_revinteger必填
      Bumped by rename
    • deletedboolean必填
    • mtimeTimestamp必填
  • next_cursorstring | null必填
    必填

PatchMemberRequest object

  • roleRole必填
    viewercommentereditormanager

PatchNodeRequest object

  • namestring
  • parent_idstring
  • if_version_idstring
    Rename or move only if the file is still at this version

PatchSidecarRequest object

  • opsobject[]必填
    ≤ 200 items
    › 3 个字段
    • opstring必填
      setunsetaddremove
    • pathstring必填
      Keys joined by dots (one to four): tags, rating, client.value
    • valueany
      For set: any JSON; for add and remove: a string, number or boolean
  • revinteger
  • schema_versioninteger
  • producerobject

PatchSpaceRequest object

  • namestring
  • storage_idstring
    A storage profile the caller may use, or empty for the server's own storage. Only while the space has no files (409: move them with POST /v1/spaces/{sid}/storage/moves). While the server takes payments, a person's own bucket needs a paid plan (403 plan_required).

PutRenditionRequest object

  • manifestManifest必填
    › 3 个字段
    • algostring必填
      fastcdc-v1 (content-defined, 512 KiB to 8 MiB) or fixed-4m-v1 (4 MiB pieces, the last shorter; what browsers send, ADR 0042)
      fastcdc-v1fixed-4m-v1
    • sizeinteger必填
    • chunksChunkRef[]必填
      › 3 个字段
      • hashHash必填
        ^[0-9a-f]{64}$
      • offsetinteger必填
      • leninteger必填
  • mimestring必填

PutSidecarRequest object

  • docobject必填
  • schema_versioninteger
    default 1
  • producerobject
  • revinteger
    The rev read (0: none yet); a stale one is refused with 409 stale_rev

Rendition object

  • kindstring必填
  • mimestring必填
  • manifest_hashHash必填
    ^[0-9a-f]{64}$
  • sizeinteger必填

Retention object

  • versionsstring必填
    all: keep every version; days: keep versions saved in the last keep_days days; count: keep each file's newest keep_last
    alldayscount
  • keep_daysinteger
    ≥ 1 · ≤ 36500
  • keep_lastinteger
    ≥ 1 · ≤ 36500
  • trash_daysinteger
    Days deleted files stay restorable
    default 30 · ≥ 1 · ≤ 3650

RewindChange object

  • actionstring必填
    restoreundeletemovetrashmissing
  • node_idstring必填
  • kindNodeKind必填
    filedir
  • pathstring必填
    Where it is after the rewind (trash; where it was)
  • from_pathstring
    move: where it was before
  • version_idstring
    restore: the version brought back
  • notestring

RewindResult object

  • as_of_seqinteger必填
  • as_of_timestring (date-time) | null
    必填
  • dry_runboolean必填
  • changesRewindChange[]必填
    › 7 个字段
    • actionstring必填
      restoreundeletemovetrashmissing
    • node_idstring必填
    • kindNodeKind必填
      filedir
    • pathstring必填
      Where it is after the rewind (trash; where it was)
    • from_pathstring
      move: where it was before
    • version_idstring
      restore: the version brought back
    • notestring

Role string

A role in drive terms: manager is a workspace's owner or admin (and, as input, means admin)
viewercommentereditormanager

Run object

  • idstring必填
  • space_idstring必填
  • node_idstring必填
  • version_idstring必填
    The version it works on; a newer save is a new run
  • actionstring必填
  • action_versionstring必填
  • paramsobject必填
    The params with defaults filled in
  • pipeline_idstring | null
    必填
  • requested_bystring必填
  • stateRunState必填
    queuedwaitingrunningdonefailedcanceled
  • attemptsinteger必填
    Tries so far; failures that may pass later retry up to 3 times
  • progressnumber | null
    ≥ 0 · ≤ 1
    必填
  • errorstring | null
    必填
  • resultobject | null
    必填
    › 2 个字段
    • sidecarsmap<string, any>
      namespace → document written on the version
    • filesobject[]
      › 4 个字段
      • pathstring必填
      • mimestring必填
      • node_idstring
      • version_idstring
  • cachedboolean必填
    The result was reused from the same bytes done before
  • created_atTimestamp必填
  • started_atTimestamp | any
  • finished_atTimestamp | any
  • targetstring
    Where it is done (ADR 0059)
    serverdevice
  • backendstring
    The model that makes the result, part of action_version; "" while any device backend will do
  • prioritystring
    nowbatchauto
  • classstring
    lightheavy
  • waiting_sinceTimestamp | any
  • device_idstring | null
    The device that holds or did it: dev_…, or tok_…/name for a token runner
    必填
  • devicestring | null
    The name it gave
    必填
  • stagestring | null
    While running: the step its runner reported
    必填
  • eta_atstring (date-time) | null
    While running: when its runner expects to be done
    必填
  • bound_devicestring | null
    Started with here: the only device that may do it (dev_…, or tok_…/name)
    必填

RunState string

waiting: for a member's device to claim it (uses no attempts)
queuedwaitingrunningdonefailedcanceled

SearchFilter object

  • keystring必填
  • isany
    A value (string
  • anyany[]
  • allany[]
  • noneany[]
  • gteany
    Lower bound: a number, or an RFC 3339 time for dates
  • lteany
    Upper bound
  • existsboolean

SearchHit object

  • nodeNodeInfo必填
    › 11 个字段
    • idstring必填
    • space_idstring必填
    • parent_idstring | null必填
      null for the space root
      必填
    • namestring必填
    • kindNodeKind必填
      filedir
    • head_version_idstring | null必填
      必填
    • sizeinteger必填
    • mimestring | null必填
      必填
    • meta_revinteger必填
      Bumped by rename
    • deletedboolean必填
    • mtimeTimestamp必填
  • space_namestring必填
  • folderstring必填
    Path of the folder holding it, from the space root ("" at the root)
  • matchedstring[]必填
    "name", the sidecar namespaces, "comments", or "meaning" for a file found by what it is about
  • snippetstring
    For a metadata or comment match, the matching value, shortened to about 120 characters
  • momentsSearchMoment[]
    Where in a video or audio file it matched, in time order
    ≤ 5 items
    › 4 个字段
    • at_msinteger (int64)必填
      ≥ 0
    • until_msinteger (int64)
    • textstring必填
      The transcript line, comment or piece of transcript that matched
    • sourcestring必填
      transcript, comments, meaning, or another moment source (ocr, chapter, highlight, a namespace)
  • scorenumber
    How close in meaning (cosine, 0–1), for files found by meaning

SearchMoment object

  • at_msinteger (int64)必填
    ≥ 0
  • until_msinteger (int64)
  • textstring必填
    The transcript line, comment or piece of transcript that matched
  • sourcestring必填
    transcript, comments, meaning, or another moment source (ocr, chapter, highlight, a namespace)

SearchQuery object

  • qstring
    Words (up to 8). Empty: list what the filters let through
  • scopeobject
    › 3 个字段
    • spacesstring[]
      Spaces (member only); default every space of the caller
      ≤ 100 items
    • folderstring
      Only under this folder path ("/Ep03/素材"); needs exactly one space
    • depthinteger
      1: only what is directly in the folder (or the spaces' roots), not in its subfolders
      01
      default 0
  • filtersSearchFilter[]
    A filter on a field the server does not know is left out and named in ignored
    › 8 个字段
    • keystring必填
    • isany
      A value (string
    • anyany[]
    • allany[]
    • noneany[]
    • gteany
      Lower bound: a number, or an RFC 3339 time for dates
    • lteany
      Upper bound
    • existsboolean
  • groupstring
    filemoment
    default "file"
  • sortstring
    Default relevance with q, saved_at without. saved_at, captured_at, size, duration, width, height: largest first; name, kind, language: A to Z; or a field's key (GET /v1/facets): a keyword field by its first value, A to Z; a number or date, largest first. Empty values last. An unknown field is left out (ignored)
  • orderstring
    Turns the sort (not relevance). Default: the sort's own
    ascdesc
  • modestring
    autokeywordmeaning
    default "auto"
  • vectorsmap<string, string (byte)>
    Query vectors by model id, computed by the client (the Mac's Search by Meaning), the query prefix of the model's contract applied: base64 of little-endian float32 or float16, the model's whole output or its first dim numbers (ADR 0061). Each space is searched with its workspace's model: with this vector, or else the server's own encoding of q (SIDESPACE_EMBED_URL with that model), or by words only (meaning says why). Word hits come first, then files (or, with group moment, moments) found by meaning alone, with score; filters apply to them and total and counts include them
  • countsstring[]
    Fields to count over the hits (each filter but the field's own applies). Keyword fields by value; number and date fields by range: value is {gte, lt} (either may be missing). Durations: under 1 min, 1–5, 5–20, 20–60, over 60; dates: older than a year, the last year, month, week, day; other numbers by each whole value when few, else five equal steps. Every range is listed
    ≤ 12 items
  • cursorstring
  • limitinteger
    default 60 · ≥ 1 · ≤ 200

SearchResult object

  • hitsSearchResultHit[]必填
    › 9 个字段
    • nodeNodeInfo必填
      › 11 个字段
      • idstring必填
      • space_idstring必填
      • parent_idstring | null必填
        null for the space root
        必填
      • namestring必填
      • kindNodeKind必填
        filedir
      • head_version_idstring | null必填
        必填
      • sizeinteger必填
      • mimestring | null必填
        必填
      • meta_revinteger必填
        Bumped by rename
      • deletedboolean必填
      • mtimeTimestamp必填
    • space_namestring必填
    • folderstring必填
    • matchedstring[]必填
      "name", namespaces and moment sources where a word is, "comments", or "meaning"
    • whySearchWhy[]必填
      The name, up to three fields, then up to five moments in time order, then a comment
      ≤ 8 items
      › 7 个字段
      • sourcestring必填
        name, a namespace (with field), a moment source (transcript, ocr, chapter…), comments or meaning. For meaning: field is the moments' source the matching piece was cut from (transcript, look, ocr…) with at_ms and until_ms, or "file" for the file's own text (name, tags, description); score is its cosine
      • fieldstring
      • at_msinteger (int64)
      • until_msinteger (int64)
      • textstring必填
      • speakerstring
      • scorenumber
    • scorenumber
      Cosine, 0–1, for files only the model found
    • momentSearchWhy
      › 7 个字段
      • sourcestring必填
        name, a namespace (with field), a moment source (transcript, ocr, chapter…), comments or meaning. For meaning: field is the moments' source the matching piece was cut from (transcript, look, ocr…) with at_ms and until_ms, or "file" for the file's own text (name, tags, description); score is its cosine
      • fieldstring
      • at_msinteger (int64)
      • until_msinteger (int64)
      • textstring必填
      • speakerstring
      • scorenumber
    • indexobject必填
      › 11 个字段
      • kindstring必填
        videoaudioimagedocumentotherfolder
      • duration_msinteger (int64)
      • widthinteger
      • heightinteger
      • captured_atstring (date-time)
      • saved_atstring (date-time)必填
      • languagestring
      • hasstring[]必填
      • statestring必填
        nonewaitingrunningdonefailed
      • facetsmap<string, any[]>必填
      • numsmap<string, number>必填
    • aiobject
      › 3 个字段
      • descriptionstring
      • tagsany[]
      • statestring
  • countsmap<string, object[]>
  • coverageobject必填
    Files in scope and filters (but has and state, and whatever the words): how many AI has been through. Files not processed cannot be found by what is in them. indexed: has AI output; waiting: none yet, a run on its current version is queued, waiting for a device or running; failed: none, and an action's last run on it failed. Conversions do not count
    › 5 个字段
    • totalinteger必填
    • indexedinteger必填
    • waitinginteger必填
    • failedinteger必填
    • meaninginteger
      Files whose current text has vectors of their workspace's model: the rest can be found by words only
  • meaningobject
    With q and sort relevance (not mode keyword): whether files were looked for by meaning
    › 5 个字段
    • statestring必填
      usedwords_only
    • modelstring
      The workspace's model id
    • querystring
      Whose query vector: the vectors field, or the server's encoder
      clientserver
    • reasonstring
      Why words only: no vector of the workspace's model sent and no encoder of it on the server; nothing in scope embedded yet; a vector that is not one; the encoder failed
      no_query_vectorno_vectorsbad_vectorencoder_failedfailed
    • nextstring
      The workspace is moving to this model
  • nextstring必填
    Cursor of the next page; null at the end
  • totalinteger
    Hits on all pages (files, or moments), up to 10000
  • total_cappedboolean
    There are more than total
  • ignoredobject[]
    Filters, counts or a sort left out because the server does not know the field
    › 3 个字段
    • kindstring必填
      filtercountsort
    • keystring必填
    • reasonstring必填

SearchResultHit object

  • nodeNodeInfo必填
    › 11 个字段
    • idstring必填
    • space_idstring必填
    • parent_idstring | null必填
      null for the space root
      必填
    • namestring必填
    • kindNodeKind必填
      filedir
    • head_version_idstring | null必填
      必填
    • sizeinteger必填
    • mimestring | null必填
      必填
    • meta_revinteger必填
      Bumped by rename
    • deletedboolean必填
    • mtimeTimestamp必填
  • space_namestring必填
  • folderstring必填
  • matchedstring[]必填
    "name", namespaces and moment sources where a word is, "comments", or "meaning"
  • whySearchWhy[]必填
    The name, up to three fields, then up to five moments in time order, then a comment
    ≤ 8 items
    › 7 个字段
    • sourcestring必填
      name, a namespace (with field), a moment source (transcript, ocr, chapter…), comments or meaning. For meaning: field is the moments' source the matching piece was cut from (transcript, look, ocr…) with at_ms and until_ms, or "file" for the file's own text (name, tags, description); score is its cosine
    • fieldstring
    • at_msinteger (int64)
    • until_msinteger (int64)
    • textstring必填
    • speakerstring
    • scorenumber
  • scorenumber
    Cosine, 0–1, for files only the model found
  • momentSearchWhy
    › 7 个字段
    • sourcestring必填
      name, a namespace (with field), a moment source (transcript, ocr, chapter…), comments or meaning. For meaning: field is the moments' source the matching piece was cut from (transcript, look, ocr…) with at_ms and until_ms, or "file" for the file's own text (name, tags, description); score is its cosine
    • fieldstring
    • at_msinteger (int64)
    • until_msinteger (int64)
    • textstring必填
    • speakerstring
    • scorenumber
  • indexobject必填
    › 11 个字段
    • kindstring必填
      videoaudioimagedocumentotherfolder
    • duration_msinteger (int64)
    • widthinteger
    • heightinteger
    • captured_atstring (date-time)
    • saved_atstring (date-time)必填
    • languagestring
    • hasstring[]必填
    • statestring必填
      nonewaitingrunningdonefailed
    • facetsmap<string, any[]>必填
    • numsmap<string, number>必填
  • aiobject
    › 3 个字段
    • descriptionstring
    • tagsany[]
    • statestring

SearchWhy object

  • sourcestring必填
    name, a namespace (with field), a moment source (transcript, ocr, chapter…), comments or meaning. For meaning: field is the moments' source the matching piece was cut from (transcript, look, ocr…) with at_ms and until_ms, or "file" for the file's own text (name, tags, description); score is its cosine
  • fieldstring
  • at_msinteger (int64)
  • until_msinteger (int64)
  • textstring必填
  • speakerstring
  • scorenumber

Sidecar object

  • namespacestring必填
  • docobject必填
  • schema_versioninteger必填
  • producerobject | null必填
    Who wrote it, e.g. {"name":"cliptap","version":"1.2","inherited_from":"ver_..."}; a person's edit of a transcript adds edited_by and edited_at
    必填
  • updated_atTimestamp必填
  • revinteger必填
    Raised by every write; send it back to refuse overwriting someone (ADR 0060)
  • revision_idstring
    The current revision (namespaces that keep them: transcript)
  • newer_revision_idstring
    A run's result newer than a person's current revision, waiting to be picked (PUT …/current)

SidecarRevision object

  • idstring必填
  • ninteger必填
    1, 2, … per version and namespace
  • bystring必填
    aiuser
  • based_onstring | null必填
    The revision a person's edit changed
    必填
  • currentboolean必填
  • created_byUser | any必填
    Who wrote it; for a run, who started it
  • created_atTimestamp必填
  • schema_versioninteger必填
  • producerobject | null必填
    必填
  • docobject
    Only when one revision is read

SnapshotPage object

  • nodesNodeInfo[]必填
    › 11 个字段
    • idstring必填
    • space_idstring必填
    • parent_idstring | null必填
      null for the space root
      必填
    • namestring必填
    • kindNodeKind必填
      filedir
    • head_version_idstring | null必填
      必填
    • sizeinteger必填
    • mimestring | null必填
      必填
    • meta_revinteger必填
      Bumped by rename
    • deletedboolean必填
    • mtimeTimestamp必填
  • at_seqinteger必填
  • next_cursorstring | null必填
    必填

Space object

  • idstring必填
  • namestring必填
  • roleRole必填
    viewercommentereditormanager
  • owner_idstring必填
  • root_node_idstring必填
  • journal_seqinteger必填
  • created_atTimestamp必填
  • storage_idstring
    The storage profile its files are in; absent for the server's own storage
  • forkobject
    Set when the space is a fork
    › 4 个字段
    • from_space_idstring必填
    • pathstring必填
      The folder of the original it copies ("/" for all of it)
    • at_seqinteger必填
      The original's journal position when it was forked
    • copyobject
      Set for a fork made with copy: while copying it still shares the original's files; once done it keeps its own
      › 4 个字段
      • statestring必填
        copyingdonefailed
      • copiedinteger必填
        Chunks copied so far
      • copied_bytesinteger必填
      • errorstring
        Why it failed; POST …/fork/copy/retry tries again
  • workspace_idstring必填
    The workspace this drive belongs to (ADR 0049): its members, roles, plan and storage. Opaque; a fork has its original's
  • workspace_namestring
  • workspace_roleWorkspaceRole
    viewercommentereditoradminowner
  • lockedstring
    Set when the workspace is on the free plan of a server that takes payments: everything in the drive answers 402 until it pays
    plan_required

Superseded object

  • version_idstring必填
  • authorUser必填
    › 4 个字段
    • idstring必填
    • emailstring必填
      Agents have an address at agents.invalid: it finds them for invites, no mail goes there
    • display_namestring必填
    • kindstring必填
      humanagent

TagRemoval object

  • termstring必填
  • aliasesstring[]必填
  • colorstring
  • keptboolean必填
    The workspace kept the tag (it is kept again on restore)
  • failedinteger必填
    Files the caller could not change, left as they were
  • filesobject[]必填
    › 4 个字段
    • spacestring必填
    • versionstring必填
    • tagsstring[]
      Spellings taken off people's tags
    • hiddenstring[]
      AI spellings hidden

TagTerm object

  • termstring必填
  • aliasesstring[]必填
    Spellings folded into it in the index: 海滩, beach
  • filesinteger必填
    Files with it, in the drives the caller reaches
  • keptboolean必填
    The workspace keeps this spelling; otherwise only some file has the tag
  • peopleinteger
    Of files, how many have it from people (user.tags), not only from the AI; the user_tags field filters by it
  • colorstring
    '#rrggbb' when one was picked; apps derive one from the name otherwise

Timestamp string (date-time)

TokenInfo object

  • idstring必填
  • namestring必填
  • prefixstring必填
    The first characters of the secret, to tell tokens apart
  • userUser必填
    › 4 个字段
    • idstring必填
    • emailstring必填
      Agents have an address at agents.invalid: it finds them for invites, no mail goes there
    • display_namestring必填
    • kindstring必填
      humanagent
  • scopesstring[]必填
  • space_idsstring[] | null必填
    The spaces (workspaces) it reaches; null means every space
    必填
  • drive_idsstring[] | null
    The only drives of them it reaches; null means all of them, forks made later included
    必填
  • expires_atTimestamp | any必填
  • last_used_atTimestamp | any必填
  • created_atTimestamp必填
  • revoked_atTimestamp | any必填
  • s3_access_key_idstring
    Set when the token is also an S3 key
  • app_idstring
    Set when an app got the token through OAuth: it lasts an hour and the app refreshes it
  • parent_idstring
    Set when the token was derived from another token; it works only while that one (and every token above it) does

UploadSession object

  • missingHash[]必填
  • ticketstring必填
  • blockgw_urlstring必填
  • expires_atTimestamp必填

UploadSessionRequest object

  • hashesHash[]必填
    ≤ 20000 items

User object

  • idstring必填
  • emailstring必填
    Agents have an address at agents.invalid: it finds them for invites, no mail goes there
  • display_namestring必填
  • kindstring必填
    humanagent

VersionCompare object

  • › 19 个字段
    • idstring必填
    • node_idstring必填
    • seqinteger必填
      1-based per node
    • sizeinteger必填
    • mimestring | null必填
      必填
    • manifest_hashHash必填
      ^[0-9a-f]{64}$
    • authorUser必填
      › 4 个字段
      • idstring必填
      • emailstring必填
        Agents have an address at agents.invalid: it finds them for invites, no mail goes there
      • display_namestring必填
      • kindstring必填
        humanagent
    • device_idstring | null必填
      必填
    • base_version_idstring | null必填
      必填
    • superseded_version_idstring | null必填
      Head this save replaced although it was not its base
      必填
    • client_mtimeTimestamp | any必填
    • created_atTimestamp必填
    • labelstring
      The name someone gave this version ("Client cut"), unique per file; absent if none
    • labeled_bystring
    • labeled_atTimestamp
    • originstring必填
      How the version came to be: a whole-file save, a partial write, a copy, a restore (from the app, the API, a rewind or an S3 copy of an old version over its key), copied into a fork when it was made, or applied from a fork
      puteditcopyrestoreforkmerge
    • source_version_idstring
      The version it was copied, restored, forked or merged from
    • restored_fromstring
      For a restore: the version brought back
    • copied_fromstring
      For a copy: the version copied
  • › 19 个字段
    • idstring必填
    • node_idstring必填
    • seqinteger必填
      1-based per node
    • sizeinteger必填
    • mimestring | null必填
      必填
    • manifest_hashHash必填
      ^[0-9a-f]{64}$
    • authorUser必填
      › 4 个字段
      • idstring必填
      • emailstring必填
        Agents have an address at agents.invalid: it finds them for invites, no mail goes there
      • display_namestring必填
      • kindstring必填
        humanagent
    • device_idstring | null必填
      必填
    • base_version_idstring | null必填
      必填
    • superseded_version_idstring | null必填
      Head this save replaced although it was not its base
      必填
    • client_mtimeTimestamp | any必填
    • created_atTimestamp必填
    • labelstring
      The name someone gave this version ("Client cut"), unique per file; absent if none
    • labeled_bystring
    • labeled_atTimestamp
    • originstring必填
      How the version came to be: a whole-file save, a partial write, a copy, a restore (from the app, the API, a rewind or an S3 copy of an old version over its key), copied into a fork when it was made, or applied from a fork
      puteditcopyrestoreforkmerge
    • source_version_idstring
      The version it was copied, restored, forked or merged from
    • restored_fromstring
      For a restore: the version brought back
    • copied_fromstring
      For a copy: the version copied
  • same_contentboolean必填
    Byte for byte the same
  • size_deltainteger必填
    B's size minus A's
  • bytesobject必填
    The content compared chunk by chunk. A metadata-only re-save or a trim shares most of its bytes.
    › 4 个字段
    • sharedinteger必填
    • only_ainteger必填
    • only_binteger必填
    • shared_rationumber必填
      Shared over B's size (1 = nothing new in B)
  • mediaobject[]必填
    Media facts (duration_s, width, height, codecs…) that differ
    › 3 个字段
    • fieldstring必填
    • aany必填
    • bany必填
  • sidecarsobject[]必填
    Sidecar namespaces added, removed or changed from A to B (core and media are left out)
    › 3 个字段
    • namespacestring必填
    • changestring必填
      addedremovedchanged
    • fieldsstring[]
      Top-level keys that differ
  • renditionsmap<string, string[]>必填
    Rendition kinds by version id

VersionInfo object

  • idstring必填
  • node_idstring必填
  • seqinteger必填
    1-based per node
  • sizeinteger必填
  • mimestring | null必填
    必填
  • manifest_hashHash必填
    ^[0-9a-f]{64}$
  • authorUser必填
    › 4 个字段
    • idstring必填
    • emailstring必填
      Agents have an address at agents.invalid: it finds them for invites, no mail goes there
    • display_namestring必填
    • kindstring必填
      humanagent
  • device_idstring | null必填
    必填
  • base_version_idstring | null必填
    必填
  • superseded_version_idstring | null必填
    Head this save replaced although it was not its base
    必填
  • client_mtimeTimestamp | any必填
  • created_atTimestamp必填
  • labelstring
    The name someone gave this version ("Client cut"), unique per file; absent if none
  • labeled_bystring
  • labeled_atTimestamp
  • originstring必填
    How the version came to be: a whole-file save, a partial write, a copy, a restore (from the app, the API, a rewind or an S3 copy of an old version over its key), copied into a fork when it was made, or applied from a fork
    puteditcopyrestoreforkmerge
  • source_version_idstring
    The version it was copied, restored, forked or merged from
  • restored_fromstring
    For a restore: the version brought back
  • copied_fromstring
    For a copy: the version copied

Webhook object

  • idstring必填
  • space_idstring必填
  • created_bystring必填
    The manager it speaks for; it stops if they stop being a manager
  • urlstring必填
    https (plain http and private addresses only on dev servers)
  • eventsstring[]必填
    Journal ops to send (node.created, version.created, sidecar.updated, …); empty = all
  • path_globstring必填
    Only paths matching, e.g. /dailies/** or **/*.mov; empty = all
  • mime_prefixstring必填
    Only files whose type starts with this, e.g. video/; empty = all
  • descriptionstring必填
  • activeboolean必填
  • disabled_reasonstring | null
    必填
  • cursor_seqinteger必填
    Last journal seq handled
  • attemptsinteger必填
    Failed tries of the next event
  • failing_sinceTimestamp | any
  • last_errorstring | null
    必填
  • created_atTimestamp必填

WebhookDelivery object

  • idinteger必填
  • event_idstring必填
  • event_typestring必填
  • seqinteger | null
    必填
  • attemptinteger必填
  • statusinteger | null
    HTTP status; null when nothing answered
    必填
  • errorstring | null
    必填
  • duration_msinteger必填
  • created_atTimestamp必填

WebhookRequest object

  • urlstring
  • eventsstring[]
  • path_globstring
  • mime_prefixstring
  • descriptionstring
  • activeboolean
  • from_seqinteger
    Create only: start after this seq instead of with new events
    ≥ 0

Workspace object

  • idstring必填
    The form of a drive's id (spc_…) but no drive's for a new one; a workspace from before ADR 0049 keeps its first drive's id (an organization with no spaces, its org_… id)
  • namestring必填
  • descriptionstring必填
  • roleWorkspaceRole必填
    viewercommentereditoradminowner
  • is_defaultboolean必填
    The one the server made for its creator at first sign-in
  • created_bystring必填
  • storage_idstring必填
    Its backend (stp_server: the server's built-in storage); every drive is made there
  • storage_namestring必填
  • drivesinteger必填
  • membersinteger必填
  • created_atTimestamp必填
  • lockedstring
    On the free plan of a server that takes payments
    plan_required

WorkspaceAI object

  • workspace_idstring必填
  • member_devicesboolean必填
  • backendsmap<string, string>必填
  • embed_modelstring
    The vector model of search by meaning (ADR 0061): every vector in the workspace and every query vector follows its contract
  • embed_nextstring
    The model the workspace is moving to: files are embedded again in the background; search keeps embed_model until every file has vectors of this one, then switches and the old vectors go

WorkspaceEvent object

  • idinteger必填
  • actor_idstring | null
    必填
  • kindstring必填
  • targetstring | null
    必填
  • detailobject必填
  • atTimestamp必填

WorkspaceRole string

viewercommentereditoradminowner