Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

822 B
Raw Blame
/**
 * Generated by orval v7.21.0 🍺
 * Do not edit manually.
 * document_storage_service
 * OpenAPI spec version: 0.1.0
 */

/**
 * Lifecycle state of a collab surface.

`Pending` means the row exists but the sync-service session may not: the
row is inserted before the durable object is initialized and flipped to
`Ready` once the initial snapshot is stored. A persisted `Pending` row is
an ensure that died or failed mid-init; the next ensure for the same id
retries initialization (the initializer tolerates an already-initialized
session), so `Pending` is self-healing rather than terminal.
 */
export type SurfaceState = (typeof SurfaceState)[keyof typeof SurfaceState];

// eslint-disable-next-line @typescript-eslint/no-redeclare
export const SurfaceState = {
  pending: 'pending',
  ready: 'ready',
} as const;