Skip to main content
API reference sections

Schema

EnsuredWorkspace

Type object or object or object or object or object or object or object

Shape

One of 7 shapes:

  1. state: "active"

    FieldTypeDescription
    workspacerequiredWorkspace

    The unit of export, backup and - later - sharing.

    The same logical workspace may exist as several physical replicas: one per release channel, one per machine, one in the cloud. They share [id] and never share a database file.

    [id]: Workspace::id

    issuesrequiredarray of WorkspaceAvailabilityIssue
    staterequired"active"
  2. state: "created"

    A Workspace manufactured for an empty Profile. Never produced since Plan 1.3 of the root catalog: EnsureLive is a non-creating query and answers [Self::Empty] instead. Kept on the wire for the generated schemas and older decoders.

    FieldTypeDescription
    workspacerequiredWorkspace

    The unit of export, backup and - later - sharing.

    The same logical workspace may exist as several physical replicas: one per release channel, one per machine, one in the cloud. They share [id] and never share a database file.

    [id]: Workspace::id

    staterequired"created"
  3. state: "empty"

    A valid state: this Profile has no live workspace; create one explicitly (root-catalog TECHNICAL.final §3.10, §6.3). Nothing was created, and opening, restarting or receiving a remote update over an empty Profile keeps answering this without minting a workspace.

    FieldTypeDescription
    staterequired"empty"
  4. state: "pending"

    FieldTypeDescription
    workspacesrequiredarray of WorkspaceId
    staterequired"pending"
  5. state: "listing_pending"

    FieldTypeDescription
    issuesrequiredarray of WorkspaceAvailabilityIssue
    staterequired"listing_pending"
  6. state: "uncertain"

    FieldTypeDescription
    issuesrequiredarray of WorkspaceAvailabilityIssue
    staterequired"uncertain"
  7. state: "removing"

    FieldTypeDescription
    markrequiredRemovalMark
    staterequired"removing"
Example
{
  "workspace": {
    "id": "00000000-0000-4000-8000-000000000000",
    "owner": {},
    "name": "string",
    "created_at": 0,
    "last_opened_at": 0,
    "icon": "string",
    "color": "string",
    "pinned": false,
    "archived": false,
    "deleted_at": 0,
    "position": 0
  },
  "issues": [
    {
      "workspace": "00000000-0000-4000-8000-000000000000",
      "cause": "string",
      "recovery": {
        "problem": "string",
        "from_checkpoint": 0,
        "quarantined": [
          "string"
        ],
        "skipped_updates": 0
      }
    }
  ],
  "state": "active"
}

The contract has no example values, so example bodies are generated from each schema: every field is shown with a placeholder of its type.

Used by

Generated from contract version 1. Last updated .

Privacy choices

Choose which optional tools Koru may use on this site. Your choice is saved in a cookie in this browser for 12 months. Privacy policy

Privacy choices

Keep you signed in, protect forms and remember your language and this choice.

Always on

PostHog and Google Analytics 4 measure page views and actions such as downloads, using cookies or local storage.

PostHog records how pages are used, with form inputs masked and private pages excluded. Needs Analytics.

Ahrefs Web Analytics measures visits and where they come from, and Google Ads measures whether our ads led to a visit or download.