Schemas

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

  • emailstringrequired
  • roleRolerequired
    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[]required
    › 7 fields
    • actionstringrequired
    • titlestringrequired
    • acceptsstring[]required
    • onbooleanrequired
    • onlystring | nullrequired
      Which files of those it accepts: has_audio for side.transcribe, null for all
      has_audionull
      required
    • devicesintegerrequired
      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[]required
      The backends those devices do it with, as they report them (DeviceCapability.backend)
  • updated_atstring (date-time) | nullrequired
    When an admin last changed it; null while it has the defaults
    required
  • updated_bystring | nullrequired
    Who did
    required

AutomationItem object

  • actionstringrequired
  • titlestringrequired
  • acceptsstring[]required
  • onbooleanrequired
  • onlystring | nullrequired
    Which files of those it accepts: has_audio for side.transcribe, null for all
    has_audionull
    required
  • devicesintegerrequired
    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[]required
    The backends those devices do it with, as they report them (DeviceCapability.backend)

ChunkRef object

  • hashHashrequired
    ^[0-9a-f]{64}$
  • offsetintegerrequired
  • lenintegerrequired

CommitVersionRequest object

  • base_version_idstring | nullrequired
    required
  • manifestManifestrequired
    › 3 fields
    • algostringrequired
      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
    • sizeintegerrequired
    • chunksChunkRef[]required
      › 3 fields
      • hashHashrequired
        ^[0-9a-f]{64}$
      • offsetintegerrequired
      • lenintegerrequired
  • 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

  • versionVersionInforequired
    › 19 fields
    • idstringrequired
    • node_idstringrequired
    • seqintegerrequired
      1-based per node
    • sizeintegerrequired
    • mimestring | nullrequired
      required
    • manifest_hashHashrequired
      ^[0-9a-f]{64}$
    • authorUserrequired
      › 4 fields
      • idstringrequired
      • emailstringrequired
        Agents have an address at agents.invalid: it finds them for invites, no mail goes there
      • display_namestringrequired
      • kindstringrequired
        humanagent
    • device_idstring | nullrequired
      required
    • base_version_idstring | nullrequired
      required
    • superseded_version_idstring | nullrequired
      Head this save replaced although it was not its base
      required
    • client_mtimeTimestamp | anyrequired
    • created_atTimestamprequired
    • labelstring
      The name someone gave this version ("Client cut"), unique per file; absent if none
    • labeled_bystring
    • labeled_atTimestamp
    • originstringrequired
      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
  • nodeNodeInforequired
    › 11 fields
    • idstringrequired
    • space_idstringrequired
    • parent_idstring | nullrequired
      null for the space root
      required
    • namestringrequired
    • kindNodeKindrequired
      filedir
    • head_version_idstring | nullrequired
      required
    • sizeintegerrequired
    • mimestring | nullrequired
      required
    • meta_revintegerrequired
      Bumped by rename
    • deletedbooleanrequired
    • mtimeTimestamprequired
  • supersededSuperseded | anyrequired

CreateNodeRequest object

  • parent_idstringrequired
  • namestringrequired
  • kindNodeKindrequired
    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

  • namestringrequired
  • 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

  • devicestringrequired
  • space_idstringrequired
  • node_idstringrequired
  • version_idstringrequired
  • pathstringrequired
  • namestringrequired
  • mimestringrequired
  • sizeintegerrequired
  • inputsmap<string, object>required
    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>required
    media, and what the runs read
  • ignoredstring[]
    Actions of the request's can that were left out
  • lease_secondsintegerrequired
    Report at least this often or the runs go back to waiting
  • runsobject[]required
    › 13 fields
    • run_idstringrequired
    • actionstringrequired
    • action_versionstringrequired
    • backendstringrequired
      The backend to use: the run's, or (when any would do) the first this device listed for the action
    • paramsobjectrequired
    • attemptintegerrequired
    • prioritystringrequired
      nowbatchauto
    • classstringrequired
      lightheavy
    • readsstring[]required
    • writesstring[]required
      The only sidecars it may write
    • inputsstring[]required
    • callbackobjectrequired
      › 3 fields
      • urlstringrequired
        …/v1/plugin-runs/{run_id}
      • tokenstringrequired
        srt_…, as a bearer token
      • expires_atTimestamprequired
    • 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 fields
      • modelstringrequired
      • dimintegerrequired
        Numbers kept: the first dim of the model's output, made unit length (the server does it too)
      • piecesobject[]required
        › 5 fields
        • idintegerrequired
          0: the whole file (name, folder, fields, the start of what is said); 1…: a timed stretch of one moments' source
        • hashstringrequired
        • textstringrequired
          Embedded as it is: no query prefix
        • at_msinteger (int64)
        • until_msinteger (int64)

DeviceCapability object

  • actionstringrequired
  • backendstringrequired
    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[]required
    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 fields
    • actionstringrequired
    • backendstringrequired
      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

  • idstringrequired
  • namestringrequired
  • user_idstringrequired
  • canDeviceCapability[]required
    › 3 fields
    • actionstringrequired
    • backendstringrequired
      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_atTimestamprequired

DownloadTicket object

  • ticketstringrequired
  • manifestManifest
    › 3 fields
    • algostringrequired
      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
    • sizeintegerrequired
    • chunksChunkRef[]required
      › 3 fields
      • hashHashrequired
        ^[0-9a-f]{64}$
      • offsetintegerrequired
      • lenintegerrequired
  • blockgw_urlstringrequired
  • expires_atTimestamprequired

DownloadTicketRequest object

  • version_idstringrequired
  • 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_idstringrequired
  • workspace_idstringrequired
  • whereAIWhererequired
    autodeviceserver
  • member_devicesbooleanrequired
    The workspace lets members' devices do its AI work
  • backendsmap<string, string>required
    The workspace's default backend per action
  • devicesDeviceSeen[]required
    Devices that asked for work lately (10 minutes) and may do this drive's
    › 5 fields
    • idstringrequired
    • namestringrequired
    • user_idstringrequired
    • canDeviceCapability[]required
      › 3 fields
      • actionstringrequired
      • backendstringrequired
        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_atTimestamprequired
  • waitingintegerrequired
    Runs waiting for a device

EditOp object

  • atinteger (int64)required
    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 fields
    • atinteger (int64)required
      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

  • errorobjectrequired
    › 4 fields
    • codestringrequired
      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
    • messagestringrequired
      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

  • idstringrequired
  • workspace_idstring
    Set for a workspace's own fields
  • keystringrequired
    The filter key: tags, shot, f.client
  • originstringrequired
    builtinplugincustom
  • namespacestringrequired
    The sidecar the values are in (custom fields: fields)
  • pathstringrequired
  • typestringrequired
    keywordkeywordsenumnumberdatebool
  • optionsobject
    {"values": [...]} for an enum; {"unit": "…"} for a number
  • labelmap<string, string>required
  • positionintegerrequired

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

  • filesintegerrequired
  • foldersintegerrequired
  • bytesintegerrequired
    Bytes of the current versions of every file
  • videosintegerrequired
  • proxy_filesintegerrequired
    Videos that have a streaming proxy
  • proxy_bytesintegerrequired
    What those proxies weigh
  • largestintegerrequired
    The biggest single file

ForkApplied any

  • kindstringrequired
    addedmodifiedmetadatamoveddeleted
  • node_kindstringrequired
    filedir
  • pathstringrequired
    In the fork ("" for a deleted node)
  • node_idstringrequired
    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
  • resultstringrequired
    appliedskippedwould applyfailed
  • errorstring

ForkChange object

  • kindstringrequired
    addedmodifiedmetadatamoveddeleted
  • node_kindstringrequired
    filedir
  • pathstringrequired
    In the fork ("" for a deleted node)
  • node_idstringrequired
    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

  • namestringrequired
  • 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

  • seqintegerrequired
  • opJournalOprequired
    node.creatednode.renamednode.movednode.deletednode.restoredversion.createdversion.labeledsidecar.updatedrendition.updatedincoming.startedincoming.stoppedcomment.createdcomment.updated
  • node_idstringrequired
  • version_idstring | nullrequired
    required
  • actor_idstringrequired
    The user the change was made by or for
  • actor_kindstringrequired
    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 | nullrequired
    required
  • tsTimestamprequired
  • nodeNodeInforequired
    › 11 fields
    • idstringrequired
    • space_idstringrequired
    • parent_idstring | nullrequired
      null for the space root
      required
    • namestringrequired
    • kindNodeKindrequired
      filedir
    • head_version_idstring | nullrequired
      required
    • sizeintegerrequired
    • mimestring | nullrequired
      required
    • meta_revintegerrequired
      Bumped by rename
    • deletedbooleanrequired
    • mtimeTimestamprequired

JournalOp string

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

JournalPage object

  • entriesJournalEntry[]required
    › 10 fields
    • seqintegerrequired
    • opJournalOprequired
      node.creatednode.renamednode.movednode.deletednode.restoredversion.createdversion.labeledsidecar.updatedrendition.updatedincoming.startedincoming.stoppedcomment.createdcomment.updated
    • node_idstringrequired
    • version_idstring | nullrequired
      required
    • actor_idstringrequired
      The user the change was made by or for
    • actor_kindstringrequired
      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 | nullrequired
      required
    • tsTimestamprequired
    • nodeNodeInforequired
      › 11 fields
      • idstringrequired
      • space_idstringrequired
      • parent_idstring | nullrequired
        null for the space root
        required
      • namestringrequired
      • kindNodeKindrequired
        filedir
      • head_version_idstring | nullrequired
        required
      • sizeintegerrequired
      • mimestring | nullrequired
        required
      • meta_revintegerrequired
        Bumped by rename
      • deletedbooleanrequired
      • mtimeTimestamprequired
  • last_seqintegerrequired
  • has_morebooleanrequired

Manifest object

manifest_hash = BLAKE3("sidespace-manifest-v1" 0x00 algo 0x00 size:u64le count:u32le (hash[32] len:u32le)*)
  • algostringrequired
    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
  • sizeintegerrequired
  • chunksChunkRef[]required
    › 3 fields
    • hashHashrequired
      ^[0-9a-f]{64}$
    • offsetintegerrequired
    • lenintegerrequired

MediaStatus object

  • statestringrequired
    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
  • aheadintegerrequired
    queued jobs that go before this one
    ≥ 0
  • renditionsstring[]required
  • mediaobject
    the "media" sidecar: duration, size, codecs, dynamic range, filmstrip layout

Member object

  • userUserrequired
    › 4 fields
    • idstringrequired
    • emailstringrequired
      Agents have an address at agents.invalid: it finds them for invites, no mail goes there
    • display_namestringrequired
    • kindstringrequired
      humanagent
  • workspace_roleWorkspaceRole
    viewercommentereditoradminowner
  • rolestringrequired
    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[]required
    › 7 fields
    • node_idstringrequired
    • version_idstringrequired
      The current version; start runs on this one
    • pathstringrequired
    • mimestringrequired
    • sizeintegerrequired
    • created_atTimestamprequired
    • actionsstring[]required
      The actions whose result it lacks
  • actionsstring[]required
    The actions looked for: those asked for that the workspace has on
  • devices_allowedbooleanrequired
    false: members' devices may not do this drive's AI work (no items)
  • next_cursorstring | nullrequired
    Where the next page starts; null at the end. A full page always has one (the next may be empty)
    required

NamespaceOwner object

  • namespacestringrequired
  • ownerUserrequired
    › 4 fields
    • idstringrequired
    • emailstringrequired
      Agents have an address at agents.invalid: it finds them for invites, no mail goes there
    • display_namestringrequired
    • kindstringrequired
      humanagent
  • created_atTimestamprequired

NodeInfo object

  • idstringrequired
  • space_idstringrequired
  • parent_idstring | nullrequired
    null for the space root
    required
  • namestringrequired
  • kindNodeKindrequired
    filedir
  • head_version_idstring | nullrequired
    required
  • sizeintegerrequired
  • mimestring | nullrequired
    required
  • meta_revintegerrequired
    Bumped by rename
  • deletedbooleanrequired
  • mtimeTimestamprequired

NodeKind string

filedir

NodePage object

  • itemsNodeInfo[]required
    › 11 fields
    • idstringrequired
    • space_idstringrequired
    • parent_idstring | nullrequired
      null for the space root
      required
    • namestringrequired
    • kindNodeKindrequired
      filedir
    • head_version_idstring | nullrequired
      required
    • sizeintegerrequired
    • mimestring | nullrequired
      required
    • meta_revintegerrequired
      Bumped by rename
    • deletedbooleanrequired
    • mtimeTimestamprequired
  • next_cursorstring | nullrequired
    required

PatchMemberRequest object

  • roleRolerequired
    viewercommentereditormanager

PatchNodeRequest object

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

PatchSidecarRequest object

  • opsobject[]required
    ≤ 200 items
    › 3 fields
    • opstringrequired
      setunsetaddremove
    • pathstringrequired
      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

  • manifestManifestrequired
    › 3 fields
    • algostringrequired
      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
    • sizeintegerrequired
    • chunksChunkRef[]required
      › 3 fields
      • hashHashrequired
        ^[0-9a-f]{64}$
      • offsetintegerrequired
      • lenintegerrequired
  • mimestringrequired

PutSidecarRequest object

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

Rendition object

  • kindstringrequired
  • mimestringrequired
  • manifest_hashHashrequired
    ^[0-9a-f]{64}$
  • sizeintegerrequired

Retention object

  • versionsstringrequired
    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

  • actionstringrequired
    restoreundeletemovetrashmissing
  • node_idstringrequired
  • kindNodeKindrequired
    filedir
  • pathstringrequired
    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_seqintegerrequired
  • as_of_timestring (date-time) | null
    required
  • dry_runbooleanrequired
  • changesRewindChange[]required
    › 7 fields
    • actionstringrequired
      restoreundeletemovetrashmissing
    • node_idstringrequired
    • kindNodeKindrequired
      filedir
    • pathstringrequired
      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

  • idstringrequired
  • space_idstringrequired
  • node_idstringrequired
  • version_idstringrequired
    The version it works on; a newer save is a new run
  • actionstringrequired
  • action_versionstringrequired
  • paramsobjectrequired
    The params with defaults filled in
  • pipeline_idstring | null
    required
  • requested_bystringrequired
  • stateRunStaterequired
    queuedwaitingrunningdonefailedcanceled
  • attemptsintegerrequired
    Tries so far; failures that may pass later retry up to 3 times
  • progressnumber | null
    ≥ 0 · ≤ 1
    required
  • errorstring | null
    required
  • resultobject | null
    required
    › 2 fields
    • sidecarsmap<string, any>
      namespace → document written on the version
    • filesobject[]
      › 4 fields
      • pathstringrequired
      • mimestringrequired
      • node_idstring
      • version_idstring
  • cachedbooleanrequired
    The result was reused from the same bytes done before
  • created_atTimestamprequired
  • 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
    required
  • devicestring | null
    The name it gave
    required
  • stagestring | null
    While running: the step its runner reported
    required
  • eta_atstring (date-time) | null
    While running: when its runner expects to be done
    required
  • bound_devicestring | null
    Started with here: the only device that may do it (dev_…, or tok_…/name)
    required

RunState string

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

SearchFilter object

  • keystringrequired
  • 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

  • nodeNodeInforequired
    › 11 fields
    • idstringrequired
    • space_idstringrequired
    • parent_idstring | nullrequired
      null for the space root
      required
    • namestringrequired
    • kindNodeKindrequired
      filedir
    • head_version_idstring | nullrequired
      required
    • sizeintegerrequired
    • mimestring | nullrequired
      required
    • meta_revintegerrequired
      Bumped by rename
    • deletedbooleanrequired
    • mtimeTimestamprequired
  • space_namestringrequired
  • folderstringrequired
    Path of the folder holding it, from the space root ("" at the root)
  • matchedstring[]required
    "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 fields
    • at_msinteger (int64)required
      ≥ 0
    • until_msinteger (int64)
    • textstringrequired
      The transcript line, comment or piece of transcript that matched
    • sourcestringrequired
      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)required
    ≥ 0
  • until_msinteger (int64)
  • textstringrequired
    The transcript line, comment or piece of transcript that matched
  • sourcestringrequired
    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 fields
    • 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 fields
    • keystringrequired
    • 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[]required
    › 9 fields
    • nodeNodeInforequired
      › 11 fields
      • idstringrequired
      • space_idstringrequired
      • parent_idstring | nullrequired
        null for the space root
        required
      • namestringrequired
      • kindNodeKindrequired
        filedir
      • head_version_idstring | nullrequired
        required
      • sizeintegerrequired
      • mimestring | nullrequired
        required
      • meta_revintegerrequired
        Bumped by rename
      • deletedbooleanrequired
      • mtimeTimestamprequired
    • space_namestringrequired
    • folderstringrequired
    • matchedstring[]required
      "name", namespaces and moment sources where a word is, "comments", or "meaning"
    • whySearchWhy[]required
      The name, up to three fields, then up to five moments in time order, then a comment
      ≤ 8 items
      › 7 fields
      • sourcestringrequired
        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)
      • textstringrequired
      • speakerstring
      • scorenumber
    • scorenumber
      Cosine, 0–1, for files only the model found
    • momentSearchWhy
      › 7 fields
      • sourcestringrequired
        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)
      • textstringrequired
      • speakerstring
      • scorenumber
    • indexobjectrequired
      › 11 fields
      • kindstringrequired
        videoaudioimagedocumentotherfolder
      • duration_msinteger (int64)
      • widthinteger
      • heightinteger
      • captured_atstring (date-time)
      • saved_atstring (date-time)required
      • languagestring
      • hasstring[]required
      • statestringrequired
        nonewaitingrunningdonefailed
      • facetsmap<string, any[]>required
      • numsmap<string, number>required
    • aiobject
      › 3 fields
      • descriptionstring
      • tagsany[]
      • statestring
  • countsmap<string, object[]>
  • coverageobjectrequired
    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 fields
    • totalintegerrequired
    • indexedintegerrequired
    • waitingintegerrequired
    • failedintegerrequired
    • 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 fields
    • statestringrequired
      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
  • nextstringrequired
    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 fields
    • kindstringrequired
      filtercountsort
    • keystringrequired
    • reasonstringrequired

SearchResultHit object

  • nodeNodeInforequired
    › 11 fields
    • idstringrequired
    • space_idstringrequired
    • parent_idstring | nullrequired
      null for the space root
      required
    • namestringrequired
    • kindNodeKindrequired
      filedir
    • head_version_idstring | nullrequired
      required
    • sizeintegerrequired
    • mimestring | nullrequired
      required
    • meta_revintegerrequired
      Bumped by rename
    • deletedbooleanrequired
    • mtimeTimestamprequired
  • space_namestringrequired
  • folderstringrequired
  • matchedstring[]required
    "name", namespaces and moment sources where a word is, "comments", or "meaning"
  • whySearchWhy[]required
    The name, up to three fields, then up to five moments in time order, then a comment
    ≤ 8 items
    › 7 fields
    • sourcestringrequired
      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)
    • textstringrequired
    • speakerstring
    • scorenumber
  • scorenumber
    Cosine, 0–1, for files only the model found
  • momentSearchWhy
    › 7 fields
    • sourcestringrequired
      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)
    • textstringrequired
    • speakerstring
    • scorenumber
  • indexobjectrequired
    › 11 fields
    • kindstringrequired
      videoaudioimagedocumentotherfolder
    • duration_msinteger (int64)
    • widthinteger
    • heightinteger
    • captured_atstring (date-time)
    • saved_atstring (date-time)required
    • languagestring
    • hasstring[]required
    • statestringrequired
      nonewaitingrunningdonefailed
    • facetsmap<string, any[]>required
    • numsmap<string, number>required
  • aiobject
    › 3 fields
    • descriptionstring
    • tagsany[]
    • statestring

SearchWhy object

  • sourcestringrequired
    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)
  • textstringrequired
  • speakerstring
  • scorenumber

Sidecar object

  • namespacestringrequired
  • docobjectrequired
  • schema_versionintegerrequired
  • producerobject | nullrequired
    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
    required
  • updated_atTimestamprequired
  • revintegerrequired
    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

  • idstringrequired
  • nintegerrequired
    1, 2, … per version and namespace
  • bystringrequired
    aiuser
  • based_onstring | nullrequired
    The revision a person's edit changed
    required
  • currentbooleanrequired
  • created_byUser | anyrequired
    Who wrote it; for a run, who started it
  • created_atTimestamprequired
  • schema_versionintegerrequired
  • producerobject | nullrequired
    required
  • docobject
    Only when one revision is read

SnapshotPage object

  • nodesNodeInfo[]required
    › 11 fields
    • idstringrequired
    • space_idstringrequired
    • parent_idstring | nullrequired
      null for the space root
      required
    • namestringrequired
    • kindNodeKindrequired
      filedir
    • head_version_idstring | nullrequired
      required
    • sizeintegerrequired
    • mimestring | nullrequired
      required
    • meta_revintegerrequired
      Bumped by rename
    • deletedbooleanrequired
    • mtimeTimestamprequired
  • at_seqintegerrequired
  • next_cursorstring | nullrequired
    required

Space object

  • idstringrequired
  • namestringrequired
  • roleRolerequired
    viewercommentereditormanager
  • owner_idstringrequired
  • root_node_idstringrequired
  • journal_seqintegerrequired
  • created_atTimestamprequired
  • 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 fields
    • from_space_idstringrequired
    • pathstringrequired
      The folder of the original it copies ("/" for all of it)
    • at_seqintegerrequired
      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 fields
      • statestringrequired
        copyingdonefailed
      • copiedintegerrequired
        Chunks copied so far
      • copied_bytesintegerrequired
      • errorstring
        Why it failed; POST …/fork/copy/retry tries again
  • workspace_idstringrequired
    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_idstringrequired
  • authorUserrequired
    › 4 fields
    • idstringrequired
    • emailstringrequired
      Agents have an address at agents.invalid: it finds them for invites, no mail goes there
    • display_namestringrequired
    • kindstringrequired
      humanagent

TagRemoval object

  • termstringrequired
  • aliasesstring[]required
  • colorstring
  • keptbooleanrequired
    The workspace kept the tag (it is kept again on restore)
  • failedintegerrequired
    Files the caller could not change, left as they were
  • filesobject[]required
    › 4 fields
    • spacestringrequired
    • versionstringrequired
    • tagsstring[]
      Spellings taken off people's tags
    • hiddenstring[]
      AI spellings hidden

TagTerm object

  • termstringrequired
  • aliasesstring[]required
    Spellings folded into it in the index: 海滩, beach
  • filesintegerrequired
    Files with it, in the drives the caller reaches
  • keptbooleanrequired
    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

  • idstringrequired
  • namestringrequired
  • prefixstringrequired
    The first characters of the secret, to tell tokens apart
  • userUserrequired
    › 4 fields
    • idstringrequired
    • emailstringrequired
      Agents have an address at agents.invalid: it finds them for invites, no mail goes there
    • display_namestringrequired
    • kindstringrequired
      humanagent
  • scopesstring[]required
  • space_idsstring[] | nullrequired
    The spaces (workspaces) it reaches; null means every space
    required
  • drive_idsstring[] | null
    The only drives of them it reaches; null means all of them, forks made later included
    required
  • expires_atTimestamp | anyrequired
  • last_used_atTimestamp | anyrequired
  • created_atTimestamprequired
  • revoked_atTimestamp | anyrequired
  • 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[]required
  • ticketstringrequired
  • blockgw_urlstringrequired
  • expires_atTimestamprequired

UploadSessionRequest object

  • hashesHash[]required
    ≤ 20000 items

User object

  • idstringrequired
  • emailstringrequired
    Agents have an address at agents.invalid: it finds them for invites, no mail goes there
  • display_namestringrequired
  • kindstringrequired
    humanagent

VersionCompare object

  • aVersionInforequired
    › 19 fields
    • idstringrequired
    • node_idstringrequired
    • seqintegerrequired
      1-based per node
    • sizeintegerrequired
    • mimestring | nullrequired
      required
    • manifest_hashHashrequired
      ^[0-9a-f]{64}$
    • authorUserrequired
      › 4 fields
      • idstringrequired
      • emailstringrequired
        Agents have an address at agents.invalid: it finds them for invites, no mail goes there
      • display_namestringrequired
      • kindstringrequired
        humanagent
    • device_idstring | nullrequired
      required
    • base_version_idstring | nullrequired
      required
    • superseded_version_idstring | nullrequired
      Head this save replaced although it was not its base
      required
    • client_mtimeTimestamp | anyrequired
    • created_atTimestamprequired
    • labelstring
      The name someone gave this version ("Client cut"), unique per file; absent if none
    • labeled_bystring
    • labeled_atTimestamp
    • originstringrequired
      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
  • bVersionInforequired
    › 19 fields
    • idstringrequired
    • node_idstringrequired
    • seqintegerrequired
      1-based per node
    • sizeintegerrequired
    • mimestring | nullrequired
      required
    • manifest_hashHashrequired
      ^[0-9a-f]{64}$
    • authorUserrequired
      › 4 fields
      • idstringrequired
      • emailstringrequired
        Agents have an address at agents.invalid: it finds them for invites, no mail goes there
      • display_namestringrequired
      • kindstringrequired
        humanagent
    • device_idstring | nullrequired
      required
    • base_version_idstring | nullrequired
      required
    • superseded_version_idstring | nullrequired
      Head this save replaced although it was not its base
      required
    • client_mtimeTimestamp | anyrequired
    • created_atTimestamprequired
    • labelstring
      The name someone gave this version ("Client cut"), unique per file; absent if none
    • labeled_bystring
    • labeled_atTimestamp
    • originstringrequired
      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_contentbooleanrequired
    Byte for byte the same
  • size_deltaintegerrequired
    B's size minus A's
  • bytesobjectrequired
    The content compared chunk by chunk. A metadata-only re-save or a trim shares most of its bytes.
    › 4 fields
    • sharedintegerrequired
    • only_aintegerrequired
    • only_bintegerrequired
    • shared_rationumberrequired
      Shared over B's size (1 = nothing new in B)
  • mediaobject[]required
    Media facts (duration_s, width, height, codecs…) that differ
    › 3 fields
    • fieldstringrequired
    • aanyrequired
    • banyrequired
  • sidecarsobject[]required
    Sidecar namespaces added, removed or changed from A to B (core and media are left out)
    › 3 fields
    • namespacestringrequired
    • changestringrequired
      addedremovedchanged
    • fieldsstring[]
      Top-level keys that differ
  • renditionsmap<string, string[]>required
    Rendition kinds by version id

VersionInfo object

  • idstringrequired
  • node_idstringrequired
  • seqintegerrequired
    1-based per node
  • sizeintegerrequired
  • mimestring | nullrequired
    required
  • manifest_hashHashrequired
    ^[0-9a-f]{64}$
  • authorUserrequired
    › 4 fields
    • idstringrequired
    • emailstringrequired
      Agents have an address at agents.invalid: it finds them for invites, no mail goes there
    • display_namestringrequired
    • kindstringrequired
      humanagent
  • device_idstring | nullrequired
    required
  • base_version_idstring | nullrequired
    required
  • superseded_version_idstring | nullrequired
    Head this save replaced although it was not its base
    required
  • client_mtimeTimestamp | anyrequired
  • created_atTimestamprequired
  • labelstring
    The name someone gave this version ("Client cut"), unique per file; absent if none
  • labeled_bystring
  • labeled_atTimestamp
  • originstringrequired
    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

  • idstringrequired
  • space_idstringrequired
  • created_bystringrequired
    The manager it speaks for; it stops if they stop being a manager
  • urlstringrequired
    https (plain http and private addresses only on dev servers)
  • eventsstring[]required
    Journal ops to send (node.created, version.created, sidecar.updated, …); empty = all
  • path_globstringrequired
    Only paths matching, e.g. /dailies/** or **/*.mov; empty = all
  • mime_prefixstringrequired
    Only files whose type starts with this, e.g. video/; empty = all
  • descriptionstringrequired
  • activebooleanrequired
  • disabled_reasonstring | null
    required
  • cursor_seqintegerrequired
    Last journal seq handled
  • attemptsintegerrequired
    Failed tries of the next event
  • failing_sinceTimestamp | any
  • last_errorstring | null
    required
  • created_atTimestamprequired

WebhookDelivery object

  • idintegerrequired
  • event_idstringrequired
  • event_typestringrequired
  • seqinteger | null
    required
  • attemptintegerrequired
  • statusinteger | null
    HTTP status; null when nothing answered
    required
  • errorstring | null
    required
  • duration_msintegerrequired
  • created_atTimestamprequired

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

  • idstringrequired
    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)
  • namestringrequired
  • descriptionstringrequired
  • roleWorkspaceRolerequired
    viewercommentereditoradminowner
  • is_defaultbooleanrequired
    The one the server made for its creator at first sign-in
  • created_bystringrequired
  • storage_idstringrequired
    Its backend (stp_server: the server's built-in storage); every drive is made there
  • storage_namestringrequired
  • drivesintegerrequired
  • membersintegerrequired
  • created_atTimestamprequired
  • lockedstring
    On the free plan of a server that takes payments
    plan_required

WorkspaceAI object

  • workspace_idstringrequired
  • member_devicesbooleanrequired
  • backendsmap<string, string>required
  • 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

  • idintegerrequired
  • actor_idstring | null
    required
  • kindstringrequired
  • targetstring | null
    required
  • detailobjectrequired
  • atTimestamprequired

WorkspaceRole string

viewercommentereditoradminowner