/** * This file was auto-generated by openapi-typescript. * Do not make direct changes to the file. */ export interface paths { "/v1/resources/{resource_type}/{resource_id}/ownership": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; post?: never; delete?: never; options?: never; head?: never; /** * Update a resource's custody or audience * @description Shares, un-shares, hands custody to the team, transfers custody to a person, or detaches a narrowing agent container. Audience-expanding changes require an explicit confirmation. Un-sharing is refused while the resource remains delegated to a wider agent audience. * * A conversation's audience is set when it starts, so `session` always returns `409`. Share the chat instead, or start a new one. */ patch: operations["updateResourceOwnership"]; trace?: never; }; "/v1/api-keys": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * List API keys * @description Returns the active organization's API keys, including pagination metadata. */ get: operations["listAPIKeys"]; put?: never; /** * Create API key * @description Creates an API key for the active organization. Pass `principal_id` to bind the key to an existing API client (a standalone `service` principal) — it authenticates as that principal and inherits its role assignments (optionally capped by `scope_role_id`). Agents and platform identities cannot hold these keys. Tag keys starting with `mobius:` or `mobius/` are reserved and rejected. Omit `principal_id` to use the permanent organization principal with the chosen system `role` (defaults to `Admin`) as a mandatory key scope. The raw key value is returned in `key` and is never retrievable again after this response. */ post: operations["createAPIKey"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/api-keys/{resource_id}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; post?: never; /** * Delete API key * @description Revokes the key. In-flight requests using this key will immediately start receiving 401 while credential metadata remains available for audit history. Revoking a key whose authority includes the Owner role requires an organization Owner. */ delete: operations["deleteAPIKey"]; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/actions": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** * Create action * @description Registers an org-owned custom action definition. HTTP actions require `endpoint_url` and receive a signing secret. Worker-backed actions omit `endpoint_url`; compatible workers make the registered action ready by advertising its name when connected. */ post: operations["createAction"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/actions/{action_name}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; post?: never; /** * Delete action * @description Deletes an org-owned custom action definition. An action retained by a protected blueprint blocks deletion with `409 Conflict` until the protection is lifted. */ delete: operations["deleteAction"]; options?: never; head?: never; /** * Update action * @description Updates action metadata, schemas, annotations, tags, or the HTTP endpoint URL. Worker-backed actions cannot set an endpoint URL. */ patch: operations["updateAction"]; trace?: never; }; "/v1/actions/{action_name}/secret/rotate": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** * Rotate signing secret * @description Rotates the signing secret for an HTTP-backed custom action. Worker actions do not have signing secrets and return a validation error. */ post: operations["rotateActionSecret"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/action-invocations": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * List invocations * @description Lists recent action invocation audit records from agents, direct invocations, and job-backed execution. * * Each record belongs to the conversation or configuration it ran under. A caller sees their own records, team-owned records, and organization-visible records. An organization administrator sees every record, but `parameters` and `error_message` are withheld on a private record the administrator does not own and `parameters_redacted` is set. `error_type` stays, so the failure is still legible. */ get: operations["listActionInvocations"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/action-invocations/{job_id}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * Get a direct action invocation * @description Returns the status and retained result of a direct invocation to the principal that started it. */ get: operations["getActionInvocation"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/actions/{action_name}/invoke": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** * Invoke action * @description Invokes a catalog action through the same job-backed execution surface an agent's tool call uses. HTTP and managed platform actions are dispatched to Mobius server workers; worker-backed custom actions are dispatched to compatible customer workers. */ post: operations["invokeAction"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/catalog/events": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * List events * @description Returns triggerable event sources for this org, including built-in platform sources and connected integration providers. Each source lists its active event types, readiness, and any reserved matcher prefixes the authoring UI should recognize. */ get: operations["listCatalogEvents"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/catalog/actions": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * List actions * @description Returns the full catalog of actions available to this org: org-owned HTTP actions and platform-provided integration actions (Slack, GitHub, etc.). The `available` flag indicates whether the action can currently be invoked. Custom HTTP actions are created and managed on the `/actions` resource. * * Readiness is judged for the caller's own accounts. Pass `agent_id` to judge it as that agent's turns would: an action is ready when an account the agent holds a grant for backs it, including a team-managed one. */ get: operations["listCatalogActions"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/catalog/actions/{action_name}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * Get action * @description Returns availability status, schemas, and metadata for a single catalog entry. */ get: operations["getCatalogAction"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/catalog/models": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * List models * @description Returns assignable agent models grouped by provider. Providers appear only when the org has usable credentials, either from BYOK integration state or platform-managed configuration. Providers and models the organization has turned off are listed with `enabled: false` so settings can show them; pickers offer only enabled ones. * * With `capability=voice`, returns the voice models a call can use instead: only when the organization has voice calls, only models the organization has not turned off, and only from providers Mobius holds platform credentials for. Voice models never appear in the default text list. */ get: operations["listCatalogModels"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/catalog/worker-models": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * List worker models * @description Returns local LLM models currently advertised by online org workers. Each item includes the exact `model_route` object to assign to an agent. Matching is exact on `provider` and `model`; queues are not part of the standard local LLM path. */ get: operations["listCatalogWorkerModels"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/workers/socket": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * Open worker WebSocket * @description Upgrades to the worker WebSocket protocol. Workers authenticate with normal org credentials, send `worker.register`, then exchange typed JSON frames for claim, heartbeat, report, cancellation, and generation streaming. */ get: operations["openWorkerSocket"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/integrations/governance": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * List minimal connection governance metadata * @description Organization administrators can identify and deactivate connections without seeing personal configuration, account labels, credentials, or provider content. */ get: operations["listConnectionGovernance"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/integrations/governance/{integration_id}/deactivate": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** * Deactivate a connection through organization governance * @description Deactivates the connection, revokes grants and defaults, and suspends dependent routines. It never transfers control or exposes provider content. */ post: operations["deactivateConnectionGovernance"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/integrations/connections/{integration_id}/team-management": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** * Start team management of an existing account * @description Explicitly transfers management of the existing active connection to the organization. Only its current human manager with live local organization administrator authority may make this change. Preserves the connection ID, credentials, provider identity, label, grants and their audiences, defaults, and routine bindings. Does not start provider authorization or broaden assistant access. Repeating the request for an already team-managed account is an administrator-only no-op. */ post: operations["startConnectionTeamManagement"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/integrations/connections/{integration_id}/confirm-replacement": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** * Confirm replacement using fresh provider authorization * @description Consumes a short-lived candidate authorized by this human and atomically retires the former authority and its grants. The candidate receives no inherited grants. */ post: operations["confirmConnectionReplacement"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/integrations/connections/{integration_id}/grants": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * List agents with access to a controlled connection * @description Returns live grants only to the connection controller or an authorized organization administrator. */ get: operations["listConnectionGrants"]; put?: never; /** * Give explicitly selected current agents access * @description Materializes grants for the submitted agent IDs. Identical active grants are replay-safe; changed constraints revoke the previous grant ID. */ post: operations["materializeConnectionGrants"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/integrations/connections/{integration_id}/grants/{grant_id}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; post?: never; /** * Revoke one grant and its context defaults * @description Revokes the specified grant and removes only defaults bound to that grant. In-flight work must revalidate before its next dispatch. */ delete: operations["revokeConnectionGrant"]; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/agents/{agent_id}/connection-grants": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * List this viewer's operational connection grants for an agent * @description Returns operational labels for grants the viewer controls or belongs to, after verifying the viewer can reach the agent. Credentials and connection configuration are omitted. */ get: operations["listAgentConnectionGrants"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/agents/{agent_id}/connection-defaults": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * List account preferences for one execution context * @description Returns the union of saved and currently selectable provider preferences without exposing credentials or unavailable account identity. */ get: operations["listAgentConnectionDefaults"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/agents/{agent_id}/connection-defaults/{provider}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; /** * Select a default for one execution context * @description Changes only the authenticated human context or an administrator-authorized organization background context. The selected active grant must satisfy connection ownership and audience restrictions for that context. */ put: operations["setAgentConnectionDefault"]; post?: never; /** * Clear a default for one execution context * @description Clears only the exact context preference. Repeated clears succeed and do not revoke account access. */ delete: operations["clearAgentConnectionDefault"]; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/billing/usage-events": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * List usage events * @description Returns org-scoped usage evidence rows for credit attribution and burndown investigation. By default rows are ordered newest first. Supplying `recorded_after` selects the durable incremental contract: the lower bound is inclusive and rows are ordered oldest first by `(recorded_at, id)`. Consumers should replay a bounded overlap and deduplicate by stable event ID. Aggregate totals cover the complete filtered result set before cursor pagination, repeat on every page, and may grow as matching rows arrive; incremental mirrors should sum the exact per-event `credit_cost_milli` values instead. Cursors are bound to their ordering mode, so every incremental page must resend `recorded_after`. Filters never broaden beyond the authenticated organization. */ get: operations["listBillingUsageEvents"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/permissions": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * List org permissions * @description Returns the canonical permission definitions, role presets, and action execution permission groups available when building org roles. Use this endpoint to source the permission IDs accepted by the role creation and update endpoints. */ get: operations["listOrgPermissions"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/roles": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * List roles * @description Returns system-defined roles plus custom roles scoped to this org. */ get: operations["listRoles"]; put?: never; /** * Create role * @description Creates a custom role scoped to the org. Only system-defined roles exist at the platform/global tier and are created automatically by the platform. */ post: operations["createRole"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/roles/{resource_id}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * Get role * @description Returns a role by ID. Both system-defined and custom roles belonging to this org are accessible via this endpoint. */ get: operations["getRole"]; put?: never; post?: never; /** * Delete role * @description Hard-deletes the role and all its assignments. System-defined roles cannot be deleted. */ delete: operations["deleteRole"]; options?: never; head?: never; /** * Update role * @description Updates description or permissions of a custom role. Role names are immutable. System-defined roles (system_defined=true) cannot be updated and return 403. */ patch: operations["updateRole"]; trace?: never; }; "/v1/role-assignments": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * List role assignments * @description Returns role assignments optionally filtered by principal or role. */ get: operations["listRoleAssignments"]; put?: never; /** * Create role assignment * @description Binds a role to a principal in this org (human or machine). The assignment records the creating user in `granted_by`. To manage a machine principal's roles without referencing its ID directly, use `role_ids` on the principal create and update endpoints. */ post: operations["createRoleAssignment"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/role-assignments/{resource_id}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; post?: never; /** * Delete role assignment * @description Deletes a single role assignment by ID. The underlying role and principal are not deleted, but the principal immediately loses permissions granted only through this assignment. */ delete: operations["deleteRoleAssignment"]; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/orgs/{org_id}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; post?: never; /** * Schedule organization deletion * @description An owner may schedule deletion of a self-serve organization. A current administrator of its enabled governing parent may schedule a managed child. The exact organization name must be confirmed. Access stops immediately, while Clerk, Stripe, and stored data remain untouched for seven days. Repeating this request returns the active attempt. */ delete: operations["scheduleOrgDeletion"]; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/orgs/{org_id}/deletion": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * Get organization deletion status * @description The initiating principal can poll after the org and its memberships are gone. A still-authorized governing parent administrator can also poll a managed child's attempt. Terminal records remain for at least 30 days. An unrelated principal receives 404. */ get: operations["getOrgDeletion"]; put?: never; post?: never; /** * Cancel pending organization deletion * @description Restores local access only while the attempt is pending and before purge_after. No external organization or subscription needs recreation. */ delete: operations["cancelOrgDeletion"]; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/organization/oauth-return-origins": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * Get the org's OAuth return-origin allowlist * @description Returns the active organization's allowlist of exact HTTPS origins that an embedded partner may name as a `return_url` when starting a provider connection. An empty list means embedded return is disabled for the organization. Requires `Admin` or `Owner` membership. * * Embedded return is currently disabled for every organization, so this list has no effect: connect requests carrying `return_url` fail with `400 embedded_return_disabled`, and connections finish in Mobius for the person who started them. */ get: operations["getOAuthReturnOrigins"]; /** * Replace the org's OAuth return-origin allowlist * @description Full-replace of the active organization's OAuth return-origin allowlist. Each entry must be an exact HTTPS origin (scheme, host, and optional non-default port); it is normalized to lowercase host with default ports stripped, and duplicates are collapsed. At most 20 origins are accepted. Sending an empty list disables embedded return. Requires `Admin` or `Owner` membership. * * Embedded return is currently disabled for every organization, so the stored list has no effect: connect requests carrying `return_url` fail with `400 embedded_return_disabled`. */ put: operations["replaceOAuthReturnOrigins"]; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/organization/context": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * Get the organization's shared context * @description Returns the organization context: background on the business that every agent in the organization receives in its system prompt, on every turn, whether the agent is used in chat, invoked by an application, run by a routine, or reached through a messaging channel. Any member of the organization may read it. */ get: operations["getOrgContext"]; /** * Replace the organization's shared context * @description Full-replace of the organization context. The content is stored as written apart from normalization: line endings collapse to LF and trailing whitespace is dropped. It must be valid UTF-8 without NUL bytes and at most 16384 bytes; an empty string clears it. The new text reaches every agent in the organization on its next turn. Requires `Admin` or `Owner` membership. */ put: operations["replaceOrgContext"]; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/interactions": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * List interactions * @description Returns interactions newest-first, optionally filtered by kind, status, run, session, target, or the current caller's inbox. Inbox filtering includes direct targets. */ get: operations["listInteractions"]; put?: never; /** * Create interaction * @description Creates an interaction. `consumer` names what is waiting on its resolution; omit it for a standalone request that records the response and nothing more. An `agent_tool` consumer is reserved for interactions created by the agent runtime and is rejected on this API operation. */ post: operations["createInteraction"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/interactions/{resource_id}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * Get interaction * @description Returns one interaction with target, response, and completion metadata. */ get: operations["getInteraction"]; put?: never; post?: never; /** * Delete interaction * @description Deletes an interaction so it disappears from inbox and org listings. The row is retained for audit history. Only terminal interactions (`completed`, `cancelled`, `expired`) may be deleted; pending or in-review interactions must be cancelled first so anything waiting on them can route to a fallback. */ delete: operations["deleteInteraction"]; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/interactions/{resource_id}/respond": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** * Respond to interaction * @description Canonical response endpoint for every interaction kind. `action` defaults to `submit`; lifecycle operations beyond submit are not part of the launch model. * * The request body is intentionally the same envelope for every kind: `action`, `value`, and `comment`. Kind-specific behavior is selected from the interaction itself, not from separate request-body shapes. */ post: operations["respondToInteraction"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/interactions/{resource_id}/review": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** * Accept or send back submitted work * @description Records an acceptance decision on an interaction in `in_review`. * * `accept` resolves the interaction with the outcome that was submitted and resumes any waiting consumer — for a reviewed interaction, this is the moment the workflow moves on. `request_changes` returns the interaction to `pending` under a new review round with the reviewer's feedback attached, and the consumer keeps waiting; a send-back is not a workflow outcome. The retracted submission stays in `responses` for audit, tagged with the round it belonged to. * * Only a principal named by `resolution_policy.review.reviewer_user_ids` may call this, or the interaction's creator when that list is empty. Assignees cannot accept their own work. */ post: operations["reviewInteraction"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/interactions/{resource_id}/cancel": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** * Cancel open interaction * @description Cancels an open interaction — `pending` or `in_review` — recording who cancelled and an optional reason. Work awaiting acceptance is cancellable too: a requester who no longer needs the result should not have to accept it first. Whatever was waiting on the interaction is told it was cancelled so it can route to a fallback. Only humans may cancel by default — agents must request cancellation through an interaction. */ post: operations["cancelInteraction"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/agents": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * List agents * @description Returns active and inactive agents with computed presence. Deleted agents are excluded. Filter by exact name or principal_id to resolve a configured agent without copying its Mobius ID into application state. Follow `next_cursor` while `has_more` is true to enumerate every match. */ get: operations["listAgents"]; put?: never; /** * Create agent * @description Creates an agent. An agent IS a principal (principals.kind = agent): its backing identity row is created atomically with the agent — there is no separate machine-identity side record. The agent principal is for identity, ownership, and attribution; an agent's tools come from its own `action_selectors`, not from roles. * * By default (`if_exists: error`, the default), a duplicate `name` or `external_ref` returns 409. Set `if_exists: adopt` together with `external_ref` to make the call safely retryable: when a live agent already carries that `external_ref`, it is returned unchanged with `200` instead of erroring — mutable fields are ignored, since no write happens. `external_ref` is required to use `adopt`; omitting it returns 400. A soft-deleted agent still owns its `external_ref`: it is never resurrected and never replaced, so a match against a deleted agent returns 409 even with `adopt`. So does a match against an agent outside the caller's audience: adopt returns only an agent the caller could read with `GET /v1/agents/{id}`. */ post: operations["createAgent"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/agents/{resource_id}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * Get agent * @description Returns one agent with its administrative status and computed presence. Presence is derived from recent presence records, so it may change without the agent record itself being updated. */ get: operations["getAgent"]; put?: never; post?: never; /** * Delete agent * @description Deletes the agent from normal use. The agent record is retained for audit and attribution history, but the agent is excluded from all listings and lookups. The agent's backing machine principal is archived for attribution history. In-flight jobs claiming this agent are not automatically cancelled. */ delete: operations["deleteAgent"]; options?: never; head?: never; /** * Update agent * @description Updates mutable agent fields. Setting `status` to `inactive` prevents the agent from claiming new jobs but does not terminate active presence records. */ patch: operations["updateAgent"]; trace?: never; }; "/v1/agents/deleted": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * List deleted agents * @description Returns this organization's deleted agents, newest delete first, with who deleted each one when the audit log records it. Only organization Owners and Admins may call it, including a provider Owner or Admin acting in a managed organization. Everyone else gets 403. Follow `next_cursor` while `has_more` is true. */ get: operations["listDeletedAgents"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/agents/{resource_id}/restore": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** * Restore a deleted agent * @description Brings a deleted agent back with the same ID, instructions, model, chats, memory, and Library. It comes back `active`. Skills, audience members, and connection grants come back when each is still valid. A grant on a person's own account comes back only when that person restores the agent in their own organization. Every API key and CLI token of the agent is revoked. Each thing that did not come back is listed in `not_restored`. * * Only organization Owners and Admins may restore, including a provider Owner or Admin acting in a managed organization. Everyone else gets 403. Restore refuses with 409 and code `agent_name_taken` when a live agent uses the name (send a new `name`), `agent_custodian_gone` when the person who held a personal agent left, `agent_not_deleted` when the agent is live, and `blueprint_resource_protected` for a protected blueprint agent. */ post: operations["restoreAgent"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/agents/{resource_id}/members": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * List agent members * @description Returns the members of a group (`restricted`) or personal (`private`) assistant to everyone who can reach it. `can_manage` says whether the caller may change them: an Admin, or a manager of a group assistant whose role can build. An `organization` agent has no members and returns zero. */ get: operations["listAgentMembers"]; put?: never; /** * Add agent members * @description Adds principals to a `restricted` agent's audience. Idempotent: adding a principal who is already a member changes nothing. * * A new member reads the ENTIRE shared layer, including everything promoted before they joined. A `private` agent's one member is the person it belongs to; adding anyone else is refused. */ post: operations["addAgentMembers"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/agents/{resource_id}/copy": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** * Copy an assistant * @description Creates a new assistant with this one's setup: instructions, model and model settings, tools, memory and conversation settings, the skills whose audience covers the new assistant's, and the picked files, copied into Company files. An assistant's kind never changes, so a copy is how a personal assistant becomes a group or team one. * * Whoever can edit the assistant may copy it, and the create rules decide who may make the new kind. An Admin's copy is granted the same company accounts. Never copies chats, memory, accounts in a person's own name, chat-app bindings, the inbox, or routines. The source is unchanged. */ post: operations["copyAgent"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/agents/{resource_id}/members/{principal_id}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; post?: never; /** * Remove an agent member * @description Drops one principal from the audience. They lose reach on their next request. * * Nothing they wrote is deleted: their private partition on this agent is retained and nobody can read it, and anything they promoted stays, because promotion made it the group's. Removing the last member is refused with `409`: delete the agent instead. */ delete: operations["removeAgentMember"]; options?: never; head?: never; /** * Update whether a member is a manager * @description Sets whether a member manages this group assistant. Managers edit its setup, its members and managers, and its shared memory when their role can build. For managers and Admins. */ patch: operations["updateAgentMember"]; trace?: never; }; "/v1/agents/{resource_id}/inbox": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** * Provision agent inbox * @description Provisions a dedicated email inbox for the agent. The address is derived from the agent ID (`{agentID}@mobiusinbox.com`) and stored on the agent record. Idempotent: if an inbox is already provisioned, the existing agent is returned unchanged. */ post: operations["provisionAgentInbox"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/agents/{resource_id}/messaging-bindings": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * List agent messaging bindings * @description Returns messaging provider accounts that route messages to this agent. */ get: operations["listAgentMessagingBindings"]; /** * Save agent messaging binding * @description Saves one provider-account binding used to route messages to this agent. Only organization owners and admins can create, change, enable, or disable a binding; anyone else gets 403. */ put: operations["saveAgentMessagingBinding"]; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/agents/{resource_id}/skill-assignments": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * List agent skill assignments * @description Returns the skills assigned to an agent in assignment order. */ get: operations["listAgentSkillAssignments"]; /** * Replace agent skill assignments * @description Replaces the agent's skill assignment set as a whole. Assigning a skill does not change the agent's tools: a skill's `allowed_actions` constraint takes effect only once the agent invokes that skill, and never widens the set beyond the agent's own action selectors. */ put: operations["replaceAgentSkillAssignments"]; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/agents/{resource_id}/tools": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * Get agent tools * @description Resolves the effective set of tools an agent can invoke: its action selectors expanded against the live action catalog, optionally restricted by requested action names. * * Assigned skills do not narrow this set — a skill's `allowed_actions` constraint applies only once the agent invokes that skill at runtime. Pass `skill_name` to preview the tools the agent would be left with while that one skill is loaded. */ get: operations["getAgentTools"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/agents/{resource_id}/memory": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * Get agent memory * @description Returns a summary of the agent's private memory: how many entries it holds, a breakdown by kind, and when it last changed. Each agent has its own durable memory; only that agent reads or writes it during runs, but org members can observe and edit it here. */ get: operations["getAgentMemory"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/agents/{resource_id}/memory/entries": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * List agent memory entries * @description Lists durable entries across the agent's shared and user-private memory partitions. Pass `query` to search over keys, kinds, summaries, and content; choose keyword, semantic, or hybrid ranking with `search_mode`; and use `kind` to filter to one kind. With no non-blank `query`, this is always a normal browse/list operation and `search_mode` is ignored. Returns an empty page when the agent has no memory yet. */ get: operations["listAgentMemoryEntries"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/agents/{resource_id}/memory/changes": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * List agent memory changes * @description Returns the content-free, append-only change feed for this agent's shared and user-private memory partitions. Consumers use the opaque cursor to resume after the last observed mutation. If the cursor has expired, relist current entries and start a new feed traversal without `after`. */ get: operations["listAgentMemoryChanges"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/agents/{resource_id}/memory/entries/{memory_key}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; /** * Save memory entry * @description Saves the memory entry identified by `memory_key` in the requested partition, creating it when it does not exist. Omit `user_id` to write shared memory. A non-empty `user_id` must identify a current human member of the organization. Runtime user turns always write their private partition. */ put: operations["saveAgentMemoryEntry"]; post?: never; /** * Delete a memory entry * @description Deletes the memory entry identified by `memory_key` from the requested partition. Omit `user_id` to target shared memory. Idempotent: succeeds even if no such entry exists. */ delete: operations["deleteAgentMemoryEntry"]; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/agents/{resource_id}/memory/entries/{memory_key}/promotion": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** * Promote a memory entry to the shared layer * @description Copies one entry from a private partition into the same agent's shared layer, where everyone who can reach the agent reads it. The private entry stays where it was. * * This is the only path from a person's private memory into the shared layer: the model has no tool that writes it during a human-initiated turn, so nothing you tell your assistant becomes the team's by accident. Performed by the partition's owner or by an org admin. The resulting entry carries a change row with reason `promoted` and the acting principal, and the act is reversible with `DELETE` on the same path. * * A key already present in the shared layer is a `409` unless `replace` is set; the replacement is recorded as a versioned update. */ post: operations["promoteAgentMemoryEntry"]; /** * Reverse a promotion * @description Removes a promoted entry from the shared layer. It touches nothing in the private partition it was copied from, and it is its own change row (reason `promotion_reverted`), so the ledger records both directions of the act. Available to the promoter and to org admins. Idempotent. */ delete: operations["revertAgentMemoryPromotion"]; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/agents/invoke": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** * Invoke an agent * @description One compound runtime call for hosted apps: it resolves an agent, resolves or creates a session by `session_key`, appends the caller's input message, and starts an agent turn — collapsing the create-or-resolve-session plus start-turn sequence into a single retryable request. This is the entry point a product backend (an embedded app, a Slack handler, a Telegram bot) calls per inbound message; the lower-level session and turn APIs remain available for finer control. * * Agents always run from their stored definition. A newly created session may set `session.model_override` to keep that conversation on one model. For a one-shot timeout override, send `operation.timeout_seconds` with a value of at least one; it applies only to the newly admitted turn. * * By default it returns `202 Accepted` immediately with a durable `after_sequence` stream cursor; the turn keeps running even if the caller disconnects. When the request sets `Accept: text/event-stream`, the response is `200 OK` and the turn's activity is streamed inline on the same connection, identical to the `POST /v1/sessions/{session_id}/turns` stream. A repeated call with the same `input.idempotency_key` resolves the same session and returns the existing invocation without restarting it or writing new input, so a webhook handler can acknowledge fast and retry safely. Requires the `mobius.resource.use` permission (or the agent's own backing principal). * * Only one direct invocation may be nonterminal in a session. A distinct input while a turn is queued, running, or waiting returns `409` with `error.code = session_turn_active` and `error.details = {turn_id, status}` before the new input is appended. Use the session nudge endpoint explicitly to steer a running or waiting turn; Mobius never converts a second send into a nudge implicitly. */ post: operations["invokeAgent"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/sessions": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * List sessions * @description Returns durable conversation sessions for the org, newest activity first. Pass `agent_id` or `agent_name` to scope the list to one agent's remembered conversations. */ get: operations["listSessions"]; put?: never; /** * Create or resolve a session * @description Resolves a durable conversation session for an agent by policy and returns it. With `mode: continue_or_create` (the default) an existing session for the given `session_key` is returned, or a new one is created; `mode: new` always creates a fresh session; `mode: continue` resolves an existing session and fails if none exists. This is the entry point an application calls before sending input events. */ post: operations["createSession"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/sessions/{session_id}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * Get session * @description Returns one durable conversation session. During the web-client transition, callers that already posted a read mark may send X-Mobius-Safe-Read as 1 to suppress the legacy GET watermark write. */ get: operations["getSession"]; put?: never; post?: never; /** * Delete session * @description Deletes a session from normal product views. The transcript row is retained as a tombstone for audit and retention. */ delete: operations["deleteSession"]; options?: never; head?: never; /** * Update session * @description Updates session display or lifecycle fields. Setting `status` to `archived` hides the session from the current list while keeping it restorable; setting it to `active` restores an archived session. Deleted sessions are retained tombstones and cannot be restored. */ patch: operations["updateSession"]; trace?: never; }; "/v1/sessions/{session_id}/read-mark": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** * Advance the caller's session read mark * @description Idempotently records that the caller opened this authorized session. */ post: operations["markSessionRead"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/sessions/{session_id}/attachments": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** * Create session attachment * @description Uploads one document or image into server-managed artifact storage. Readable attachments are bound immutably to this session; PDFs over 30 MiB become durable Library files with a session reference instead. DOCX, XLSX, and PPTX uploads start asynchronous Markdown conversion through the document service. The returned `content_block` is the canonical block callers append in a session message or turn input. * * Accepts PDF up to 100 MiB and 500 pages for inspection, DOCX, XLSX, or PPTX (up to 5 MiB), Markdown or plain text (up to 100 KiB), and PNG, JPEG, WebP, or GIF images (up to 5 MiB). Mobius detects the media type from the bytes and does not trust the multipart MIME declaration. PDFs over 5 MiB are delivered through their bounded inspection rather than as binary model input. PDFs over 30 MiB are stored in the Library and inspected before the turn so the assistant can search and read them. Cloud Run clients must use the staged PDF chunk and complete endpoints for files over 30 MiB because this multipart route uses HTTP/1. A message can contain up to 100 MiB of attachments. The feature must be enabled for the organization. */ post: operations["createSessionAttachment"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/sessions/{session_id}/attachments/uploads/{upload_id}/parts/{part_number}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; /** * Stage one large PDF chunk * @description Uploads an 8 MiB or smaller chunk of a PDF before finalization. Use a fresh random UUID as upload_id, zero-based consecutive part numbers, and no more than 13 parts. Each request stays below Cloud Run's HTTP/1 body limit. Staged bytes are private to the caller and session and expire from storage after one day. */ put: operations["putSessionPDFUploadPart"]; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/sessions/{session_id}/attachments/uploads/{upload_id}/complete": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** * Complete a staged large PDF upload * @description Validates all staged chunks as one PDF, commits the ordinary Library artifact and session reference, then removes the staged chunks. */ post: operations["completeSessionPDFUpload"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/sessions/{session_id}/attachments/{artifact_id}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; post?: never; /** * Delete session attachment * @description Deletes one artifact created through this session's attachment endpoint. The server re-checks the session binding and append permission before deleting bytes and releasing artifact quota. Retrying an artifact this session already deleted returns 204. A 404 means the artifact was never bound to this session, or the session does not exist. */ delete: operations["deleteSessionAttachment"]; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/sessions/{session_id}/references": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** * Create session artifact reference * @description Authorizes an existing library artifact for delivery to this session's turns and returns the same `content_block` shape the attachment endpoint returns. Nothing is uploaded or copied: the library file stays the single stored copy, and the server records the authorization so prompt-time delivery can re-check it without a caller. * * The file must be readable by the caller, must not itself be another session's attachment, and must satisfy the same delivery limits as an upload: PDF (up to 100 MiB and 500 pages for inspection; files over 30 MiB remain in Library storage and are referenced), DOCX, XLSX, PPTX (up to 5 MiB), Markdown or plain text (up to 100 KiB), and PNG, JPEG, WebP, or GIF images (up to 5 MiB). Content type is confirmed from the stored bytes. A private session may reference only its owner's own files; an organization-visible session may reference only organization-visible files. */ post: operations["createSessionArtifactReference"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/sessions/{session_id}/messages": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * List session messages * @description Returns a page of session transcript messages. The page is sequence-anchored and bidirectional: `after_sequence` pages forward (newer), `before_sequence` pages backward (older), and `order=desc` fetches the newest messages — the tail of a long session — in a single request. Items are always returned ascending by `sequence`; the response carries both `next_sequence` (forward cursor) and `prev_sequence` (backward cursor). */ get: operations["listSessionMessages"]; put?: never; /** * Append session messages * @description Appends one or more messages to a durable session and returns the updated session. The service assigns sequence numbers atomically and may append an additional compaction summary when the session crosses its compaction threshold. */ post: operations["appendSessionMessages"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/sessions/{session_id}/turns": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * List session turns * @description Returns the session's turns, the structure the turn-grouped transcript is built on. Each turn groups related transcript messages and includes links to any run step or channel exchange that produced it. Turns are ordered by creation time; `order=desc` returns the newest turns (the tail) first, and long sessions are walked page-by-page via the `next_cursor` returned in the response. Pass `ids` to fetch exactly a known set of turns in one bounded request — the join a transcript view uses to resolve a loaded message window's `turn_id`s to their headers; when `ids` is set the cursor and order parameters are ignored. Turns taken back by `deleteSessionTurn` are still returned, on both the paged and the `ids` reads, carrying `deleted_at` — their usage stays readable after their transcript rows are gone. A view that renders the conversation should skip them; they have no messages left to group. */ get: operations["listSessionTurns"]; put?: never; /** * Start an agent turn * @description Appends one caller input message to the session and starts an agent turn to respond. By default returns `202 Accepted` immediately with a `resume_cursor`; open `GET .../transcript/stream?cursor=` to follow the turn. The turn keeps running even if the caller disconnects. When the request sets `Accept: text/event-stream`, the response is `200 OK` and the turn's activity is streamed inline on the same connection. The inline stream cannot be resumed; a client that loses it follows the turn on the transcript stream from `resume_cursor`. A repeated call with the same `idempotency_key` returns the existing invocation without restarting it or writing new input. A distinct send while a direct turn is queued, running, or waiting returns `409 session_turn_active` before appending the new input; use the nudge endpoint explicitly to steer an active turn. Requires the `mobius.resource.use` permission (or the agent's own backing principal). * * Set `operation.timeout_seconds` to at least one for a one-shot timeout override on this turn. It takes precedence over the agent default and is not saved on the session. */ post: operations["startTurn"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/sessions/{session_id}/turns/{turn_id}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * Get a session turn * @description Returns one agent turn in the session. */ get: operations["getSessionTurn"]; put?: never; post?: never; /** * Delete the last session turn * @description Takes back the session's last turn: the input message that started it, the agent's work, and its reply are all removed from the transcript. The next turn's model context reflects the removal, and a client streaming the session sees the turn disappear without reloading. * * Only the LAST turn can be deleted, and only while the session is idle. Repeat the call to walk further back one turn at a time. To correct a message, delete the turn and send the corrected text: the new message gets its own id, turn, and position in the transcript. * * The turn record itself is retained with `deleted_at` set, so what the turn cost stays readable, and the delete is written to the audit log. For a session on standard retention, that entry carries up to 500 removed transcript rows and marks the snapshot if more were removed. For a session on bounded retention it records only what was removed — turn, row count, roles — because an audit row is not covered by the retention sweep that exists to destroy that content. Deleting an already-deleted turn succeeds and changes nothing. Requires the same permission as deleting the session. * * Deleting a turn that arrived over a channel (Slack, Teams, Telegram) changes Mobius's record of the conversation, not the channel's — the original messages stay where they were posted. */ delete: operations["deleteSessionTurn"]; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/sessions/{session_id}/nudges": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * List session nudges * @description Returns the durable nudge queue in creation order. Repeat `status` to reconcile one or more lifecycle states. Live `nudge.*` stream events are low-latency hints; this list is the authoritative queue view. */ get: operations["listSessionNudges"]; put?: never; /** * Nudge a session * @description Adds user direction to the newest turn that can still absorb it. The agent receives it as contextual runtime input at the turn's next safe boundary, after any in-flight provider request or tool call finishes — including one final boundary as the turn is about to complete. When no such turn exists (the session is idle), the input converts to a regular user message carried by a fresh direct-session turn, exactly as if it had been sent to the session; the acknowledgement then reports `delivery: new_turn` and `status: delivered`. The same conversion re-homes input whose target turn ends without absorbing it, so accepted input is never lost. Reusing an `idempotency_key` with identical content returns the original acknowledgement; reusing it with different content returns `409 Conflict`. Requires the `mobius.resource.use` permission (or the agent's own backing principal). */ post: operations["nudgeSession"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/sessions/{session_id}/nudges/{nudge_id}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * Get a session nudge * @description Returns one durable nudge queue entry. */ get: operations["getSessionNudge"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/sessions/{session_id}/nudges/{nudge_id}/cancel": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** * Cancel a pending session nudge * @description Cancels a pending nudge. Repeating cancellation is idempotent. If delivery wins the race, returns `409 nudge_already_delivered` with the current nudge resource in `error.details.nudge`. */ post: operations["cancelNudge"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/sessions/{session_id}/event-subscriptions": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * List session event subscriptions * @description Returns durable, session-bound subscriptions in creation order. These registrations receive only public source-event envelopes and remain visible after they stop, expire, or pause for funding. */ get: operations["listSessionEventSubscriptions"]; put?: never; /** * Create a session event subscription * @description Creates a long-lived public-event subscription for this conversation. It returns immediately; matching occurrences are queued durably and reach a live turn only at safe model-input boundaries, or start a new ordinary session turn when idle. `idempotency_key` is session-scoped: an identical retry returns the original registration, while changed arguments conflict. Routine-origin sessions cannot subscribe. */ post: operations["createSessionEventSubscription"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/sessions/{session_id}/event-subscriptions/{subscription_id}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * Get a session event subscription * @description Returns one durable subscription, including its activation boundary and server-recorded authority scope. */ get: operations["getSessionEventSubscription"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/sessions/{session_id}/event-subscriptions/{subscription_id}/unsubscribe": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** * Stop a session event subscription * @description Stops new intake and cancels pending external input. A row already committed to a model boundary remains reported as delivered. */ post: operations["unsubscribeSessionEventSubscription"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/sessions/{session_id}/event-subscriptions/stop": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** * Stop all session event subscriptions * @description Stops every active session subscription and cancels its pending external-event input, except a question's own subscription (`execution_scope.surface` is `interaction_open`), which brings the question's outcome back to the conversation that asked it. Cancel the question to end that one. Repeating the request is idempotent. */ post: operations["stopSessionEventSubscriptions"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/sessions/{session_id}/event-subscriptions/{subscription_id}/deliveries": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * List public-event deliveries * @description Returns this subscription's durable intake records. Event and metadata values are the public envelope, not raw provider input. Their combined persisted/model-visible representation is capped at 64 KiB; larger or non-serializable values use an explicit bounded representation with a delivery diagnostic. */ get: operations["listSessionEventDeliveries"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/sessions/{session_id}/turns/{turn_id}/live": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * Get live session turn snapshot * @description Deprecated and being retired. Returns the highest `live_sequence` recorded for an in-flight turn. `frames` is always empty: the server no longer keeps live frames. Reconnecting clients recover an in-flight turn from the transcript stream instead. */ get: operations["getSessionTurnLive"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/sessions/{session_id}/turns/{turn_id}/cancel": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** * Cancel a session turn * @description Idempotently cancels one dispatcher-owned agent turn in the session. The first request that wins marks the turn terminal, retires its pending waits, nudges, and jobs, and emits `turn.cancelled` once. Questions the agent asked stay open: an outcome that arrives later reaches the conversation as its next input. Later requests return the current terminal row without another lifecycle transition. Cancellation is cooperative: already-performed model, tool, and external effects are not rolled back. Committed transcript rows are retained, while live-only uncommitted preview content is discarded. * * A cancelled turn cannot be resumed. Reusing its invocation idempotency key returns the same cancelled turn; retrying the task requires a new invocation and may repeat external effects. Stream cursors resume observation only. Requires the `mobius.resource.use` permission (or the agent's own backing principal). */ post: operations["cancelTurn"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/sessions/{session_id}/transcript": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * Get the live transcript snapshot * @description Returns the transcript tail and authoritative turn state consumed by SessionTranscriptReducer. Without a cursor this is a bootstrap tail; when older rows exist, next_page_token walks backward through them while resume_cursor remains fixed at the bootstrap head. With cursor it incrementally drains a fixed upper cut. In either mode, continue with next_page_token until has_more is false. * * Rows a `deleteSessionTurn` tombstoned are never returned in any mode. A bootstrap simply no longer contains them; an incremental drain crossing the deletion's revision reports it as a turn carrying `deleted_at`, which is the signal to drop that turn and its rows from an already loaded transcript. */ get: operations["getSessionTranscript"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/sessions/{session_id}/transcript/stream": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * Stream authoritative transcript upserts * @description Resumable SSE view of the transcript snapshot. The explicit cursor query parameter takes precedence over Last-Event-ID. State-frame ids are delivered watermarks and never regress. */ get: operations["streamSessionTranscript"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/sessions/{session_id}/cancel": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** * Cancel the session's active turn * @description Idempotently cancels active dispatcher-owned turns in the session and retires their pending waits, nudges, and jobs; questions the agent asked stay open. Each turn's terminal `turn.cancelled` transition is emitted once. Cancellation is cooperative and does not roll back effects that already happened. Committed transcript rows remain; live-only preview content is discarded. Cancelled turns cannot be resumed, and stream cursors resume observation only. Returns the updated session. Requires the `mobius.resource.use` permission (or the agent's own backing principal). */ post: operations["cancelSession"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/sessions/{session_id}/compact": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** * Compact the session transcript * @description Queue a compaction turn that summarizes messages appended since the last compaction, regardless of the token threshold. It runs in the session's turn order, after any turn already running, and is a no-op when there is nothing new to compact. Watch the session's turns for its progress. Returns the session as it was when the turn was queued. Refused with 409 when compaction is disabled for the session. */ post: operations["compactSession"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/routines/{routine_id}/threads": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * List a routine's threads * @description Lists followed items with live routine reach and keyset pagination by last activity. */ get: operations["listRoutineThreads"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/routines/{routine_id}/threads/{key}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * Get a followed thread * @description Returns a thread under the same custody and reach policy as its routine. */ get: operations["getRoutineThread"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/routines/{routine_id}/threads/{key}/resume": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** * Resume a thread at its turn cap * @description A human manager grants one additional allowance of the routine's current turn cap. Repeated requests before that allowance is consumed are idempotent. Skipped events are not replayed. */ post: operations["resumeRoutineThread"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/routines/follow-preview": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** * Preview a custom thread key * @description Evaluates the custom expression against one recent integration event the caller can read. Does not create or change a routine. */ post: operations["previewRoutineFollowKey"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/routines": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * List reachable routines * @description Returns the routines the caller can reach, most recently created first. Pagination is keyset on (created_at, id): pass next_cursor back as cursor, and keep going while has_more is true. A page may hold fewer than limit rows once unreachable routines are dropped; has_more, not the row count, says whether more remain. */ get: operations["listRoutines"]; put?: never; /** * Create a routine owned by the authenticated human * @description Creates scheduled work in an existing reachable conversation for the authenticated human owner. */ post: operations["createRoutine"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/routines/occurrences": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * List the occurrence ledger * @description Returns durable occurrence outcomes across every routine the caller can reach, most recently scheduled first. Set routine_id to narrow it to one routine. Pagination is keyset on (scheduled_at, id): pass next_cursor back as cursor, and keep going while has_more is true. A page may hold fewer than limit rows once unreachable routines are dropped; has_more, not the row count, says whether more remain. */ get: operations["listRoutineOccurrences"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/routines/occurrences/{occurrence_id}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * Get one routine occurrence * @description Returns a durable occurrence after checking reach to its routine. */ get: operations["getRoutineOccurrence"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/routines/{routine_id}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * Get a routine * @description Returns one reachable routine and its current schedule and lifecycle state. During the web-client transition, callers that already posted a read mark may send X-Mobius-Safe-Read as 1 to suppress the legacy GET watermark write. */ get: operations["getRoutine"]; put?: never; post?: never; /** * Delete a routine while retaining its occurrence ledger * @description Cancels future occurrences while preserving the routine and its occurrence history. */ delete: operations["deleteRoutine"]; options?: never; head?: never; /** * Update mutable routine fields * @description Updates mutable instructions, display, schedule, or spend ceilings without changing execution identity. */ patch: operations["updateRoutine"]; trace?: never; }; "/v1/routines/{routine_id}/read-mark": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** * Mark the caller's routine occurrences read * @description Idempotently advances the caller's read marks for reachable completed occurrences. */ post: operations["markRoutineRead"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/routines/{routine_id}/changes": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * List a routine's changes * @description Who changed this routine, when, and what the values were before and after — including roster and custody changes, which are ordinary audited mutations. * * Read from the audit trail but authorized as the routine, not as the audit log: anyone who can see the routine can see its history. Per-run records are excluded; the occurrence ledger is the place for those. * * Private authored values are withheld from the audit representation. Ordinary administrators cannot read another person's private routine or its history without a confirmed invitation. */ get: operations["listRoutineChanges"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/routines/{routine_id}/run": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** * Run a routine now * @description Puts one occurrence on the ledger immediately and leaves the schedule untouched: the next scheduled run, the occurrence count, and an interval schedule's phase are all unaffected. * * The run is admitted by the same alarm that admits a scheduled one, so it is bounded by the same per-occurrence ceiling, rolling daily ceiling, and organization funding, and it lands in its own session with its own ledger row. * * A paused routine may be run this way — pausing stops it running on its own, not by name. A cancelled or completed one may not, and a routine that already has a run pending or in flight returns 409 rather than queueing a second. * * Asking for a run takes the same manage gate as editing the routine, so a caller who may read it but not manage it gets 403. */ post: operations["runRoutineNow"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/routines/{routine_id}/pause": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** * Pause a routine * @description Stops future occurrences until the routine is explicitly resumed. */ post: operations["pauseRoutine"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/routines/{routine_id}/resume": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** * Resume a routine * @description Reactivates a paused routine and calculates its next future occurrence. */ post: operations["resumeRoutine"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/routines/{routine_id}/principals": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * List a routine's roster * @description Returns every principal holding a relationship to the routine: the people it waits on (`responsible`), the principals who may change it (`manager`), and the principals who opted into its results (`follower`). One principal may appear more than once. */ get: operations["listRoutinePrincipals"]; put?: never; /** * Add a principal to a routine's roster * @description Idempotent: adding a relationship the principal already holds changes nothing. * * Two gates on one endpoint. Adding YOURSELF as a `follower` needs only read access to the routine — following is opt-in, and opting in is yours to do. Adding anyone else, or any `manager` or `responsible` row, needs manage rights on the routine. * * `responsible` is accepted only on a team-owned routine, and only for a person: a routine that waits on unattended work waits on nobody. */ post: operations["addRoutinePrincipal"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/routines/{routine_id}/principals/{principal_id}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; post?: never; /** * Remove a principal from a routine's roster * @description Drops the principal's rows on this routine. Omit `relationship` to remove every relationship they hold. * * Removing YOURSELF as a `follower` needs only read access; removing anyone else, or any `manager` or `responsible` row, needs manage rights. Removing the last `responsible` person from a team-owned routine is refused — name a replacement first. */ delete: operations["removeRoutinePrincipal"]; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/routines/proposals/{proposal_id}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * Get a proposal as its proposed human owner * @description Returns the proposal's current status, so a chat card can show whether it still needs approval. Anyone other than the proposed owner gets not found. */ get: operations["getRoutineProposal"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/routines/proposals/{proposal_id}/approve": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** * Approve a pending proposal as its proposed human owner * @description Atomically materializes a pending proposal as a routine after human approval, with any changes the owner made on the card. */ post: operations["approveRoutineProposal"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/routines/proposals/{proposal_id}/dismiss": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** * Dismiss a pending proposal * @description Marks a pending routine proposal dismissed without creating a routine. */ post: operations["dismissRoutineProposal"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/skills": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * List skills * @description Returns organization-owned and system skills visible to the caller's organization by default. */ get: operations["listSkills"]; put?: never; /** * Create skill * @description Creates a skill with instructions and action constraints. */ post: operations["createSkill"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/skills/import": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** * Import skill * @description Imports a Claude Code or Dive-style skill document into an organization Mobius skill. */ post: operations["importSkill"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/skills/{skill_id}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * Get skill * @description Returns a single organization-owned or system skill by ID. */ get: operations["getSkill"]; /** * Update skill * @description Updates the mutable skill representation. Send the full request body, including required fields `name` and `instructions`; partial payloads are rejected. */ put: operations["updateSkill"]; post?: never; /** * Delete skill * @description Deletes a skill. The skill is automatically detached from any agents that reference it, so deletion is never blocked by existing assignments. */ delete: operations["deleteSkill"]; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/blueprints/apply": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** * Apply a blueprint to an org * @description Creates missing resources, updates resources Mobius manages on behalf of the blueprint, adopts matching uniquely-named resources where safe, and reports the resulting changes and bindings. With `mode: preview`, the request validates and returns a plan without mutating anything. Re-apply converges because each blueprint resource is persisted with its binding. */ post: operations["applyBlueprint"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/blueprints/bindings": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * List blueprint bindings * @description Returns the org's blueprint bindings: the mapping from each blueprint-defined resource key to the Mobius resource it provisions. Optionally filtered by namespace and blueprint identifier. */ get: operations["listBlueprintBindings"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/blueprints/{blueprint_key}/protection": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; /** * Set blueprint resource protection * @description Protects or unprotects every resource definition managed by one named blueprint. Protected resources can still be changed by Blueprint Apply or removed by deleting the blueprint, but ordinary resource update and delete operations return `blueprint_resource_protected`. */ put: operations["setBlueprintProtection"]; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/blueprints/{blueprint_key}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; post?: never; /** * Delete an applied blueprint * @description Deletes resources that Mobius created for one named blueprint, in reverse dependency order. Adopted resources and legacy bindings whose origin is unknown are retained and unbound unless `delete_retained` is explicitly true. Deletion commits one resource at a time; retry the request after a partial failure to continue from the remaining bindings. After a non-2xx response, list the exact blueprint bindings again to see what remains. Omitting `namespace` targets only the unnamespaced blueprint; it is not a wildcard across namespaces. */ delete: operations["deleteBlueprint"]; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/principals": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * List machine principals * @description Returns the organization's API clients (standalone `service` principals). Only active principals are returned by default; pass `include_disabled=true` to also include disabled ones (e.g. for an admin audit). `kind=agent` and `kind=system` return an empty list. */ get: operations["listPrincipals"]; put?: never; /** * Create service principal * @description Creates a standalone `service` principal within the org. Supply `role_ids` to assign roles at creation time; agent and system principals are created by their own flows. */ post: operations["createPrincipal"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/principals/{resource_id}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * Get principal * @description Returns one machine principal, including disabled state, owner, metadata, and timestamps. API keys belonging to the principal are managed through the API key endpoints. */ get: operations["getPrincipal"]; put?: never; post?: never; /** * Delete principal * @description Archives the principal so it disappears from normal use while the record remains available for attribution and audit history. Returns `409 Conflict` while an agent or active API key still references the principal; disable instead for an immediate kill switch. */ delete: operations["deletePrincipal"]; options?: never; head?: never; /** * Update principal * @description Updates mutable fields. To disable without deleting, set `state` to `disabled`. The `name` field is immutable after creation. */ patch: operations["updatePrincipal"]; trace?: never; }; "/v1/tables": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * List tables * @description Lists the org's tables, optionally filtered by name. */ get: operations["listTables"]; put?: never; /** * Create table * @description Creates an organization table with a typed column schema. */ post: operations["createTable"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/tables/{table_id}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * Get table * @description Gets table metadata and column schema by table ID. */ get: operations["getTable"]; put?: never; post?: never; /** * Delete table and all its rows * @description Deletes one table and all rows stored under it; the operation cannot be undone. */ delete: operations["deleteTable"]; options?: never; head?: never; /** * Update table * @description Updates table metadata or schema. A table's identity column, secondary key column, and required column settings are immutable after creation. */ patch: operations["updateTable"]; trace?: never; }; "/v1/tables/{table_id}/stats": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * Get table storage stats * @description Returns an operational snapshot for one table: row count, approximate data/index bytes, declared index shape, and whether the backend search index is present. Values are point-in-time estimates intended for capacity planning and operator UI, not billing. */ get: operations["getTableStats"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/tables/{table_id}/rows": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** * Create row * @description Validates row data against the table schema and inserts one new row. */ post: operations["createTableRow"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/tables/{table_id}/query": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** * Query rows * @description Filter, sort, and paginate rows. Filter keys are column names; values are either a direct equality match or an operator object: `{"$eq": v}`, `{"$ne": v}`, `{"$gt": v}`, `{"$gte": v}`, `{"$lt": v}`, `{"$lte": v}`, `{"$in": [v,...]}`, `{"$exists": bool}`. */ post: operations["queryTableRows"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/tables/{table_id}/search": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** * Search rows * @description Search rows within one table using keyword, semantic, or hybrid mode. * * Keyword search matches the words in row values. Column names are not searched. Case and accents are ignored. Punctuation splits words, so `jane.doe@acme.com`, `acme.com`, `3.14`, and `2026-10-29` match as typed: a term with punctuation must appear in that order. A word of three or more characters also matches longer words that start with it; shorter words match whole words only. Each Chinese, Japanese, and Korean character is a word, so `都庁` matches `東京都庁`. * * Syntax: words are all required; `"quoted words"` must appear together, in order, as whole words; `OR` (uppercase) between two terms accepts either and binds tighter than the implied AND; `-word` or `-"phrase"` excludes rows that contain it. Rows that match every term as a whole word rank first. Semantic mode ignores the syntax. * * A query with no words, with only exclusions, with an exclusion inside `OR`, or with more than 128 words returns 400. * * Optional field filters use the same syntax as row queries and are applied before search. */ post: operations["searchTableRows"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/tables/{table_id}/upsert": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** * Upsert row * @description Inserts or updates a row identified by the table's identity column. Existing rows are patched with supplied fields; missing matches create a new row. */ post: operations["upsertTableRow"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/tables/{table_id}/bulk": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** * Bulk create rows * @description Validates and inserts up to 1,000 rows in one request, preserving input order. */ post: operations["bulkCreateTableRows"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/tables/{table_id}/rows/{row_id}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * Get row by ID * @description Gets one table row by ID, including its JSON data and version. */ get: operations["getTableRow"]; put?: never; post?: never; /** * Delete row * @description Deletes one row from the table by row ID. */ delete: operations["deleteTableRow"]; options?: never; head?: never; /** * Update row * @description Update one row by validating the supplied fields and preserving fields not included in the request. If `version` is provided, it must match the current row version. */ patch: operations["updateTableRow"]; trace?: never; }; "/v1/artifacts": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * List artifacts * @description Returns ready artifacts in the org, ordered (created_at desc, id desc). Optional filters narrow by name and mime prefix. Deleted or unfinished artifacts are excluded from API reads. */ get: operations["listArtifacts"]; put?: never; /** * Create artifact * @description Accepts an org-authorized multipart file upload. Without a worker lease, the caller needs `mobius.resource.build`; the artifact is private to the authenticated principal and has no run or step lineage. A worker may instead supply `X-Mobius-Lease-Token` with `mobius.job.execute`; Mobius then derives run, step, job, worker session, attempt, and shared visibility from the active claim. Execution attribution is server-derived. A version requires edit access to the exact parent and inherits its custody and visibility. Direct uploads declare previous_artifact_id, while leased publish updates use the job's destination and expected version. The expected parent must name the file's latest version: naming an older one is refused with 409 rather than branching the file's history. A person's upload whose name is already taken by one of their files also becomes that file's next version; the response's `version` and `previous_id` say so. * * DOCX, XLSX, and PPTX uploads may pass `convert=true` to start asynchronous Markdown extraction for later model delivery. */ post: operations["createArtifact"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/artifacts/{artifact_id}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * Get artifact * @description Returns artifact metadata after enforcing the caller's org and caller-authorized artifact audience. */ get: operations["getArtifact"]; put?: never; post?: never; /** * Delete artifact * @description Deletes the artifact and removes any Mobius-managed content before reporting success. Deleted artifacts are removed from public API visibility, and their content no longer counts toward artifact quota. */ delete: operations["deleteArtifact"]; options?: never; head?: never; /** * Update artifact name * @description Changes the artifact's `name`. The name is a relative virtual path, so this is how a file moves between folders as well as how it is renamed. Every version in the file's lineage is renamed together, so its history never straddles two folders and a later edit saves under the new name. * * The ID, version lineage, custody, visibility, metadata, stored bytes, and session references are unchanged. Authorization is the delete authorization: whoever may remove the file may move it. A name another file in the same place already holds is refused with 409. */ patch: operations["updateArtifact"]; trace?: never; }; "/v1/artifacts/{artifact_id}/content": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * Get artifact content * @description Streams artifact bytes through the Mobius API after enforcing the caller's artifact access scope. Safe preview mime types are returned inline; all other content is served as an attachment with `X-Content-Type-Options: nosniff`. */ get: operations["getArtifactContent"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/artifacts/{artifact_id}/signed-url": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** * Create signed artifact URL * @description Generates a fresh, time-boxed Mobius-managed storage URL for the artifact after enforcing the caller's artifact access scope. Use `getArtifactContent` when bytes should flow through the Mobius API instead of a signed storage URL. */ post: operations["createArtifactSignedUrl"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/settings/artifact-storage/quota": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * Get artifact storage quota * @description Returns Mobius-managed artifact quota usage for the current org. */ get: operations["getArtifactStorageQuota"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/artifacts/{artifact_id}/artifact-versions": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * List artifact versions * @description Returns accessible available versions in the artifact's lineage, oldest first. Each version keeps its exact ID. */ get: operations["listArtifactVersions"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/artifact-folders": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * List folders * @description Returns the immediate subfolders of a folder, ordered by name. A folder exists either because it was declared through this API or because a file the caller can see carries it in its `name`; both are returned, and `declared` says which. Implied folders are derived only from files the caller could list, so browsing never reveals a hidden file. */ get: operations["listArtifactFolders"]; put?: never; /** * Create folder * @description Declares a folder so it can exist before any file is in it. The call is idempotent: declaring a folder that already exists returns the existing one with 200 rather than failing, so "new folder" on a name already in use simply opens it. A declared folder holds nothing itself and charges no quota; it never widens access to any file. */ post: operations["createArtifactFolder"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/v1/artifact-folders/{folder_id}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; post?: never; /** * Delete folder * @description Removes a declared folder. The folder must be empty: the call is refused with `409 folder_not_empty` while any visible file lives in it or below it, or while a declared subfolder remains. The refusal carries `file_count` in `error.details`. Files are never deleted by this call. */ delete: operations["deleteArtifactFolder"]; options?: never; head?: never; patch?: never; trace?: never; }; } export type webhooks = Record; export interface components { schemas: { /** @description Standard error envelope returned by API endpoints. */ ErrorResponse: { /** @description Error detail. */ error: { /** @description Stable, machine-readable error code in lower_snake_case. The cross-cutting codes clients can rely on across endpoints are: `bad_request` (malformed input / failed validation), `unauthorized`, `permission_denied`, `forbidden`, `not_found`, `conflict` / `already_exists`, `rate_limit_exceeded`, and `service_unavailable`. A request that matches no API route returns 404 with `route_not_found`, distinct from the `not_found` an operation returns for a missing resource. When the request-wide rate limiter refuses a call, `rate_limit_exceeded` carries `scope` (`key`, `org`, or `browser`), `window`, `limit`, and `retry_after_seconds` in `details`; an endpoint's own cap returns the same code without them. Direct session invocation conflicts use `session_turn_active` with the blocking `turn_id` and `status` in `details`; a send or nudge while a voice call is in progress in the chat uses `voice_call_active`. Session-key lookups without an agent scope use `session_key_scope_required`; supplying both agent ID and name uses `session_agent_ref_conflict`. API-key creation for a principal with no role assignments uses `principal_has_no_roles`. Authenticated callers missing a permission receive `permission_denied` with the required permission in `details`. Endpoint-specific codes (e.g. `invalid_signature`) extend this set; an unrecognized code should be handled by its HTTP status family. */ code: string; /** @description Human-readable error message */ message: string; /** @description Optional structured details specific to a `code`. Endpoints that set this document the per-code shape inline. Absent for codes whose `code` + `message` are sufficient. */ details?: { [key: string]: unknown; }; }; }; /** @description The human or team responsible for this resource. */ ResourceOwner: { /** @enum {string} */ kind: "person" | "team"; /** @description Human principal ID when kind is person; null for the team. */ id?: string | null; }; /** * @description Who the custodian chose to share the resource with. * @enum {string} */ ResourceVisibility: "private" | "organization"; /** @description The agent that contains this resource and may further narrow who can reach it. */ ResourceContainer: { /** @enum {string} */ kind: "agent"; id: string; } | null; /** * @description Employee-facing effective ownership and audience posture for the current caller. * @enum {string} */ ResourcePosture: "only_you" | "shared_by_you" | "shared_with_group" | "team" | "someone_else"; /** @description What the current caller may do to this resource, answered by the same access rule the update and delete routes run. Clients offer controls from this and never re-derive it from posture or role. Team-owned resources are changed only by those who look after them. */ ResourceControls: { /** @description Whether the caller may change the resource, including its content, rows, or secrets. */ can_edit: boolean; /** @description Whether the caller may delete the resource. */ can_delete: boolean; }; /** * @description Whether a catalog capability — an action, an event source, or an integration provider — is usable right now. `ready` means it can be used as-is; `needs_setup` means it is known and supported but blocked by configuration, credentials, permissions, provider runtime availability, or implementation status. This is catalog *readiness*, and is deliberately separate from a resource's lifecycle state (such as integration `status` or artifact lifecycle). * @enum {string} */ CapabilityReadiness: "ready" | "needs_setup"; /** * @description Why a capability is `needs_setup`. Present only when readiness is `needs_setup`. `not_configured` — no integration or credential is connected yet. `inactive` — the backing integration is manually disabled. `expired` — the backing credential has expired. `provider_unavailable` — the provider runtime is not currently available. `permission_missing` — the caller lacks permission to use it. `not_implemented` — a placeholder for a capability that is not yet available. `credentials_unreadable` — the stored credential cannot be decrypted by the running platform; reconnect the integration. * @enum {string} */ CapabilityReadinessReason: "not_configured" | "inactive" | "expired" | "provider_unavailable" | "permission_missing" | "not_implemented" | "credentials_unreadable"; /** * @description Key/value tags for organizing and filtering resources. Up to 8 per resource; keys 1–128 characters, values up to 256. Keys prefixed `mobius:` are system-managed and cannot be set by callers. * @example { * "owner": "product" * } */ TagMap: { [key: string]: string; }; /** * @description Create-or-adopt behavior when a request's `external_ref` matches an existing resource. `error` (the default) rejects the request with 409. `adopt` returns the existing resource unchanged instead — mutable fields in the request are ignored, since no write happens — and requires `external_ref` to be set; omitting it returns 400. * @default error * @enum {string} */ IfExists: "error" | "adopt"; ResourceOwnershipTransitionRequest: { owner?: components["schemas"]["ResourceOwner"]; visibility?: components["schemas"]["ResourceVisibility"]; /** * @description Clear the agent container when the resource supports detachment. * @default false */ detach_container?: boolean; /** * @description Required before sharing, handing custody to the team, or detaching a container. * @default false */ confirm_audience_expansion?: boolean; } | unknown | unknown | unknown; ResourceOwnershipState: { owner: components["schemas"]["ResourceOwner"]; visibility: components["schemas"]["ResourceVisibility"]; container: components["schemas"]["ResourceContainer"]; posture: components["schemas"]["ResourcePosture"]; }; /** * @description Administrative status. Inactive agents cannot claim new jobs. Deleted agents are excluded from normal reads. * @enum {string} */ AgentStatus: "active" | "inactive"; /** * @description Model-call route mode: `managed` or `worker`. * @enum {string} */ AgentModelRouteMode: "managed" | "worker"; /** @description Default model route used by built-in messaging and by any turn that does not override the route. */ AgentModelRoute: { /** @description Where this model call should run. */ mode: components["schemas"]["AgentModelRouteMode"]; /** @description Environment to use for worker-backed model calls. */ environment_id?: string; /** @description Provider id advertised by a local worker when `mode` is `worker`. */ provider?: string; /** @description Model identifier to use for this route. */ model?: string; }; /** * @description Controls how selected actions are surfaced to the model in Mobius-hosted agent turns. `flat` (the default) exposes one tool per action, while `meta` groups related actions behind compact command routers. * * The two modes pay the same cost in different places. `meta` keeps the tool definitions small no matter how many actions are selected, but the router advertises command names only, so the model spends extra calls on `help` to discover arguments — every turn. `flat` puts every action's schema in the tool definitions, which are sent once and cached, and removes the discovery calls entirely. Prefer `meta` when the action count is large enough that the schemas would crowd the context window; prefer `flat` otherwise. Existing agents retain their stored mode; the default applies when creating an agent without one. * @enum {string} */ AgentToolPresentation: "flat" | "meta"; /** * @description How one entry in an agent's action selection names the actions it covers. `exact` is a single action name; `group` a dotted prefix; `provider` every action of an integration; `custom` org-defined actions; `wildcard` everything. Omitting the type means `exact`. * @enum {string} */ ActionSelectorType: "exact" | "group" | "provider" | "custom" | "wildcard"; /** @description One entry in an agent's action selection. Selectors are expanded against the live action catalog at every build, so `provider: gmail` keeps meaning "every Gmail action" as the catalog grows. */ ActionSelector: { /** @description Defaults to `exact` when omitted. */ selector_type?: components["schemas"]["ActionSelectorType"]; /** @description The selector value, read according to `selector_type`. Ignored for `wildcard`. */ selector: string; }; /** * @description T-shirt size selecting when `auto` compaction triggers as a percentage of the session model's input context window: `xs` 10%, `sm` 20%, `md` 40%, `lg` 60%, and `xl` 80%. Unknown/custom models use a conservative 200k-token context window. `sm` is the default. * @enum {string} */ SessionCompactionThreshold: "xs" | "sm" | "md" | "lg" | "xl"; /** * @description Controls how a session's transcript is automatically summarized as it grows. On create the supplied fields are merged over the owning agent's default policy and the server defaults; on update they patch the session's current policy. Omitted fields keep their resolved values. * @example { * "strategy": "auto", * "threshold": "sm" * } */ SessionCompactionPolicy: { /** * @description `auto` (default) compacts automatically when the transcript crosses the model-relative `threshold` or exact `threshold_tokens` trigger. `manual` only compacts on an explicit compact request. `disabled` (alias `none`) never compacts. * @enum {string} */ strategy?: "auto" | "manual" | "disabled" | "none"; /** @description Model-relative size at which `auto` compacts. Each preset is a percentage of the session model's input context window; `sm` is the default. Mutually exclusive with `threshold_tokens`. */ threshold?: components["schemas"]["SessionCompactionThreshold"]; /** * Format: int64 * @description Exact estimated-token count at which `auto` compacts. Use this for advanced workloads that need a specific threshold rather than a model-relative preset. Mutually exclusive with `threshold`. */ threshold_tokens?: number; /** * @deprecated * @description Ignored. Every session is summarized by the same platform model. Accepted until web clients that send it are gone; never returned. */ summary_model?: string; }; /** * @description Automatic memory delivery mode for agent turns. * @enum {string} */ MemoryContextMode: "index" | "full" | "off"; /** @description Automatic memory delivery policy. The JSON object requires `mode` (`index`, `full`, or `off`) and optionally accepts `max_bytes`, for example `{"mode":"full","max_bytes":131072}`. */ MemoryContextPolicy: { mode: components["schemas"]["MemoryContextMode"]; /** @description UTF-8 byte budget for the rendered memory reminder. Omit for the mode default (1536 bytes for index, 131072 bytes for full); `0` also selects that default. Full mode fails the turn rather than truncating when the snapshot does not fit. Off mode ignores this field and injects no automatic memory context. */ max_bytes?: number; }; /** * @description Which tool calls on a connected account or a remote tool wait for a person's approval. `never` asks before nothing. `destructive` asks before a call that cannot be undone, such as sending an email, deleting, or posting publicly. `writes` asks before any call that is not read-only. Tools inside Mobius (memory, Library, tables, the workspace) never ask. One approval covers that tool for the rest of the message, or the routine run. * @enum {string} */ ToolApprovalMode: "never" | "destructive" | "writes"; /** * @description Reasoning-effort level for a turn, lowest (`low`) to highest (`max`). Higher effort spends more tokens on reasoning, improving quality on hard tasks at the cost of latency and credits. Levels above what the resolved model supports are clamped down. Set on an agent it is the default; set on a session it overrides the agent default. `inherit` (or omitting the field) defers to the layer below — the agent default for a session, or the provider's own default when nothing sets a level. * @enum {string} */ ThinkingEffort: "inherit" | "low" | "medium" | "high" | "xhigh" | "max"; /** * @description Who, inside the org that owns this agent, may reach it at all. * * `organization` is reachable by any org member. `restricted` is reachable only by the agent's listed members. `private` is reachable only by its single member. * * Agent create requests default to `private` when this field is omitted. * * Visibility is not a permission: what a member may DO with an agent stays governed by their org role. A principal outside an agent's audience gets `404` from every path — list, read, session, invoke, memory — so an agent's existence never leaks through a status code. * * Because agent memory is keyed by `(org, agent, user, key)` and every read is scoped to one agent, narrowing who can reach an agent narrows its shared memory layer by construction. Group memory needs no separate store. * @enum {string} */ AgentVisibility: "organization" | "restricted" | "private"; /** * @description AI actor identity. An agent IS a principal (its permissions are role assignments on that principal) with instructions, configuration, and session presence. * @example { * "id": "agent_5n8p2q7m4x9r3v6t", * "principal_id": "agent_5n8p2q7m4x9r3v6t", * "name": "PR reviewer", * "description": "Reviews pull requests for risky changes.", * "color": "teal", * "model": "claude-sonnet-4-6", * "tool_presentation": "flat", * "memory_enabled": true, * "status": "active", * "tags": { * "owner": "product" * }, * "created_by": "user_2f9s3k4m5n6p7q8r", * "updated_by": "user_2f9s3k4m5n6p7q8r", * "created_at": "2026-06-15T14:30:00Z", * "updated_at": "2026-06-15T14:30:00Z" * } */ Agent: { /** @description Unique identifier for this agent. */ id: string; /** @description The machine principal (principals.id, kind `agent`) this agent IS. Created atomically with the agent and immutable. It is an execution identity, never the human custodian of an ordinary resource. */ principal_id: string; owner: components["schemas"]["ResourceOwner"]; posture: components["schemas"]["ResourcePosture"]; /** @description Mutable unique name within the org. Free-form human-readable label; use `id` for stable references and job targeting. */ name: string; /** @description Client-owned durable identity key for this agent. Unique within the org when present, and assign-once: create requests may set it; update requests may set it only while the agent has no existing external_ref, or repeat the current value idempotently. Use it to reconcile the same agent across systems while allowing the display name to change. */ external_ref?: string; /** @description Optional human-readable description. */ description?: string; /** @description Display color for this agent in UI surfaces. One of the Mantine color palette keys (e.g. `indigo`, `teal`, `grape`); empty string falls back to a hash-derived color. */ color?: string; /** @description Model identifier for agents. Accepts any id returned by `GET /v1/catalog/models` (including slash-bearing OpenRouter catalog ids), optionally `provider/`-prefixed (e.g. `xai/grok-4`); bare known ids (e.g. `claude-sonnet-4-6`) are auto-detected to their provider. Empty string falls back to the platform default. */ model?: string; /** @description Default route for model calls made by this agent. */ model_route?: components["schemas"]["AgentModelRoute"]; /** @description Default tool presentation used by this agent's turns and built-in channel-message replies. */ tool_presentation?: components["schemas"]["AgentToolPresentation"]; /** @description The agent's action selection: the action selectors it may call, expanded against the live action catalog at each build. */ action_selectors?: components["schemas"]["ActionSelector"][]; /** @description Custom system prompt for agents. Empty string uses the generated default based on the agent name. */ system_prompt?: string; /** * Format: int64 * @description Execution timeout, in seconds, for a single turn of this agent. `0` (or omitted) uses the platform default (1800s / 30 minutes). A request's `operation.timeout_seconds` overrides this for that turn. */ timeout_seconds?: number; /** @description Default session-compaction policy. New sessions opened against this agent inherit it (below server defaults, above explicit per-session overrides). Absent when the agent has no default. */ compaction_policy?: components["schemas"]["SessionCompactionPolicy"]; /** @description Hard gate for runtime memory. When false, memory tools and automatic memory context are absent for every session, and nothing at invocation time can re-enable them. Stored entries remain available to administrators. */ memory_enabled: boolean; /** @description Automatic memory delivery policy. Absent means the bounded index default. */ memory_context?: components["schemas"]["MemoryContextPolicy"]; tool_approval_mode: components["schemas"]["ToolApprovalMode"]; /** @description Default reasoning-effort level. New sessions inherit it, above the provider default and below an explicit per-session override. Absent when the agent has no default. */ thinking_effort?: components["schemas"]["ThinkingEffort"]; /** @description Current agent status: `active` or `inactive`. */ status: components["schemas"]["AgentStatus"]; /** @description Who may reach this agent. Read from the stored agent row at every gate: it is never supplied by a definition document, an invoke `definition_config`, or a client-side list filter. */ visibility: components["schemas"]["AgentVisibility"]; /** @description How many principals are in this agent's audience. Zero for an `organization` agent, which carries no member rows. */ member_count?: number; /** @description Whether the caller may change this assistant's setup: exactly what `PATCH /v1/agents/{resource_id}` would allow. False on internal administration listings. */ can_edit: boolean; /** @description Inbox address provisioned via POST /v1/agents/{resource_id}/inbox (opt-in; not created automatically at agent creation). The field is populated only after a successful provisioning call. Use this address to add the agent as a member on external platforms (Linear, GitHub, Slack, etc.) so the platform can deliver notifications to the agent. */ email_address?: string; /** @description Free-form labels used for filtering, ownership, or automation. */ tags?: components["schemas"]["TagMap"]; /** @description ID of the principal who created this agent. */ created_by?: string; /** @description ID of the principal who last updated this agent. */ updated_by?: string; /** * Format: date-time * @description Timestamp when this agent was created. */ created_at: string; /** * Format: date-time * @description Timestamp when this agent was last updated. */ updated_at: string; }; AgentListResponse: { /** @description The list of results for this page. */ items: components["schemas"]["Agent"][]; /** @description Whether more matching agents remain after this page. */ has_more: boolean; /** @description Opaque cursor to pass as `cursor` on the next request. Absent when `has_more` is false. */ next_cursor?: string; }; /** * @description Durable conversation session status: `active`, `archived`, or `deleted`. * @enum {string} */ SessionStatus: "active" | "archived" | "deleted"; /** * @description Agent turn lifecycle status: `queued`, `running`, `waiting`, `completed`, `failed`, or `cancelled`. * @enum {string} */ AgentTurnStatus: "queued" | "running" | "waiting" | "completed" | "failed" | "cancelled"; /** * @description Surface that created the session: `manual`, `api`, `interaction`, `routine`, or `assistant` (one of a person's assistants asking another of theirs a question). * @enum {string} */ SessionOrigin: "manual" | "api" | "interaction" | "routine" | "assistant"; /** * @description Boundary used to resolve named sessions. * @enum {string} */ SessionScope: "agent"; /** * @description Controls how long a session is retained. Applied only when the session is first created (like `compaction_policy`); ignored when an existing session is resolved. `standard` is the default and keeps the session forever. `bounded` expires the session — pruning its transcript from every read path — once it has been idle past `ttl_seconds`. Kept for audit after expiry: a tombstone session row with its token totals, and the turn rows with their status, error, usage, and timings. * * `ttl_seconds` is required when `mode` is `bounded` and ignored for `standard`; the server validates this (a `oneOf` encoding was dropped because it only produced untyped union codegen without adding runtime enforcement in the generated Go/TypeScript clients). * @example { * "mode": "bounded", * "ttl_seconds": 86400 * } */ SessionRetentionPolicy: { /** * @description `standard` (default) retains the session indefinitely. `bounded` expires the session after it has been idle for `ttl_seconds`. * @enum {string} */ mode: "standard" | "bounded"; /** * Format: int64 * @description Idle lifetime in seconds; required when `mode` is `bounded` and ignored otherwise. Measured from the last message activity (`last_message_at`), not session creation — continuing the session before it expires simply extends its life. Minimum 1 hour, maximum 30 days. The 1-hour floor keeps a caller's idempotency window comfortably inside the retention window: after expiry a retried idempotency key mints a fresh session rather than deduplicating against a pruned one. */ ttl_seconds?: number; }; /** @description Pointer to the latest compaction marker in a session's transcript. The marker is itself a transcript message (role `compaction`); everything at or below `covers_through_sequence` is summarized history. */ SessionCompactionBoundary: { /** @description Id of the compaction summary message in the transcript. */ message_id: string; /** @description Transcript sequence of the compaction marker itself. */ sequence: number; /** @description Highest message sequence this summary covers — the before/after boundary. */ covers_through_sequence: number; }; /** * @description The threshold that will trigger the session's next compaction. * * Compaction runs inside a turn, so whether one is running is read from the session's turns: a turn with `compacting: true`, or a `compaction` turn that is queued or running. * * Paired with a client-side estimate over the transcript it already renders, `threshold_tokens` supports a context-capacity gauge rather than a spinner that appears without warning. The session token totals are lifetime sums over every model call, not the current context size, so they do not fit that gauge. On the single-session read the object is always present; list entries omit it entirely. * @example { * "in_progress": false, * "threshold_tokens": 150000 * } */ SessionCompactionProgress: { /** * @deprecated * @description Always false. Read the session's turns instead. Kept until web clients that read it are gone. */ in_progress: boolean; /** @description Estimated-token size at which this session compacts automatically, resolved from its policy and model. Absent when the session does not compact automatically (`manual`, `disabled`). */ threshold_tokens?: number; }; /** @description The chat-app conversation behind a session: which app, and the channel, group, or direct message the people in it are talking in. */ SessionChatAppConversation: { /** @description The chat app, such as `slack`. */ provider: string; /** @description The conversation's name as the app last reported it, such as the Slack channel name. Absent for a direct message or when the app did not report one. */ name?: string; /** @description The kind of conversation as the app reported it, such as `channel`, `group`, or `dm`. */ kind?: string; }; /** @description Durable conversation transcript owned by an agent. */ Session: { /** @description Stable session identifier. */ id: string; owner: components["schemas"]["ResourceOwner"]; /** @description Agent that contains and executes this session. The agent never owns it. */ agent_id: string; container?: components["schemas"]["ResourceContainer"]; /** @description Human-readable session title. */ title: string; /** @description Lifecycle status of the session. */ status: components["schemas"]["SessionStatus"]; /** @description Surface that created the session. */ origin: components["schemas"]["SessionOrigin"]; /** @description Boundary used to resolve the session key. */ scope: components["schemas"]["SessionScope"]; /** @description Advanced provenance identifying the resource that owns the session namespace. Mobius derives this from `agent_id` for normal agent sessions. */ scope_ref_id: string; /** * @deprecated * @description Deprecated legacy alias of `session_key`. Kept for compatibility while clients migrate to the canonical conversation-key field. */ scope_name: string; /** @description Stable caller-assigned conversation key, unique within one agent. */ session_key: string; visibility: components["schemas"]["ResourceVisibility"]; posture: components["schemas"]["ResourcePosture"]; controls: components["schemas"]["ResourceControls"]; /** @description Model selected for this session. Omitted when the session inherits the agent's model. */ model_override?: string; /** @description Model the session most recently exchanged tokens with. */ model?: string; /** @description Provider for the recorded `model`. */ model_provider?: string; /** @description Resolved message-compaction policy in effect for this session. */ compaction_policy?: components["schemas"]["SessionCompactionPolicy"]; /** @description Resolved retention policy in effect for this session. `standard` for ordinary permanent sessions. */ retention?: components["schemas"]["SessionRetentionPolicy"]; /** * Format: date-time * @description When a `bounded` session will expire if it stays idle, computed from its last message activity (`last_message_at`) and the retention TTL. Null for `standard` sessions and for bounded sessions with no activity yet. After this time the transcript is pruned and the session reads as deleted. */ expires_at?: string | null; /** @description This session's reasoning-effort override, or absent when the session inherits the agent default. Turns resolve the effective level as agent default then this override. */ thinking_effort?: components["schemas"]["ThinkingEffort"]; /** @description The most recent compaction marker in the transcript, or null when the session has never been compacted. Delineates summarized history (sequences at or below `covers_through_sequence`) from the live tail. Returned on the single-session read; absent from list entries. */ latest_compaction?: components["schemas"]["SessionCompactionBoundary"]; /** @description Live compaction progress plus the threshold that triggers the next pass. Returned on the single-session read; absent from list entries. */ compaction?: components["schemas"]["SessionCompactionProgress"]; /** @description The chat-app conversation this session answers, when it came from Slack, Teams, or Telegram. Returned on the single-session read; absent from list entries and from sessions that did not come from a chat app. */ chat_app?: components["schemas"]["SessionChatAppConversation"]; /** @description Non-decreasing transcript sequence high-water mark, including tombstoned rows and compaction summaries; not the number of live messages. */ message_count: number; /** @description Lifetime fresh (uncached) input-token total for this session. Prompt-cache tokens are reported separately in `cache_read_input_total` and `cache_creation_input_total`. */ token_input_total: number; /** @description Lifetime output-token total reported for this session. */ token_output_total: number; /** @description Lifetime prompt-cache-read input-token total for this session. */ cache_read_input_total: number; /** @description Lifetime prompt-cache-write (cache creation) input-token total for this session. */ cache_creation_input_total: number; /** @description Optimistic-concurrency version. Increments on every mutation. */ version: number; /** * Format: date-time * @description Timestamp of the most recent message append; null before any messages are stored. */ last_message_at?: string | null; /** @description Source session this one was forked from, if any. */ forked_from_session_id?: string; /** @description Sequence number in the source session at which the fork was taken. */ forked_from_sequence?: number; /** @description User who created this session, if attribution was captured. */ created_by?: string; /** @description Free-form caller metadata. */ metadata?: { [key: string]: unknown; }; /** * Format: date-time * @description Record creation timestamp. */ created_at: string; /** * Format: date-time * @description Last update timestamp. */ updated_at: string; }; /** * @description Message role: `system`, `user`, `assistant`, `tool`, or `compaction`. * @enum {string} */ SessionMessageRole: "system" | "user" | "assistant" | "tool" | "compaction"; /** * @description Transcript entry type: `message` or `compaction`. * @enum {string} */ SessionMessageEntryType: "message" | "compaction"; /** @enum {string} */ RoutineStatus: "active" | "paused" | "completed" | "cancelled"; /** * @description Stored API credential metadata for agent and service access. The raw secret is never returned here; use this object to list, audit, expire, or identify keys by prefix without exposing tokens. * @example { * "id": "cred_1jz8q2m7xp9vn4kt", * "name": "CI worker", * "key_prefix": "mbx_7q2v", * "principal_id": "svc_7q2v9x6m3n8p5r4t", * "tags": { * "owner": "product" * }, * "created_at": "2026-06-15T14:30:00Z", * "updated_at": "2026-06-15T14:30:00Z" * } */ APIKey: { /** @description Unique identifier for this API key. */ id: string; /** @description Human-readable label, unique within the organization. */ name: string; /** @description First 8 characters of the key, used to identify it without exposing the secret. */ key_prefix: string; /** @description Principal this key authenticates as. */ principal_id: string; /** @description Optional role whose permissions cap this key below its principal's full grants. */ scope_role_id?: string; /** @description The system role this key acts as, when it is not bound to a specific principal (e.g. `Admin`). Absent for principal-bound keys. */ org_role?: string; /** * Format: date-time * @description Hard expiry timestamp. Requests using an expired key receive 401. */ expires_at?: string; /** * Format: date-time * @description Timestamp of the most recent authenticated request using this key. */ last_used_at?: string; /** @description Free-form labels used for filtering, ownership, or rotation policy. */ tags?: components["schemas"]["TagMap"]; /** * Format: date-time * @description Timestamp when this key was created. */ created_at: string; /** * Format: date-time * @description Timestamp when this key was last updated. */ updated_at: string; }; /** * @description Returned only on key creation. Contains the raw `key` value which is not retrievable after this response. * @example { * "id": "cred_1jz8q2m7xp9vn4kt", * "name": "CI worker", * "key_prefix": "mbx_7q2v", * "principal_id": "svc_7q2v9x6m3n8p5r4t", * "tags": { * "owner": "product" * }, * "created_at": "2026-06-15T14:30:00Z", * "updated_at": "2026-06-15T14:30:00Z", * "key": "mbx_7q2v9k1m_redacted" * } */ APIKeyCreateResult: { /** @description Unique identifier for the created API key. */ id: string; /** @description Human-readable name for the key. */ name: string; /** @description First 8 characters of the key for identification. */ key_prefix: string; /** @description Principal this key authenticates as. */ principal_id: string; /** @description Optional role whose permissions cap this key below its principal's full grants. */ scope_role_id?: string; /** @description The system role this key acts as, when it is not bound to a specific principal (e.g. `Admin`). Absent for principal-bound keys. */ org_role?: string; /** * Format: date-time * @description Timestamp when this key expires. Omitted if it does not expire. */ expires_at?: string; /** * Format: date-time * @description Timestamp of the most recent authenticated request using this key. */ last_used_at?: string; /** @description Labels applied to the newly created key. */ tags?: components["schemas"]["TagMap"]; /** * Format: date-time * @description Timestamp when this key was created. */ created_at: string; /** * Format: date-time * @description Timestamp when this key was last updated. */ updated_at: string; /** @description The raw API key. Returned only once at creation — store it securely immediately. */ key: string; }; /** * @example { * "items": [ * { * "id": "cred_1jz8q2m7xp9vn4kt", * "name": "CI worker", * "key_prefix": "mbx_7q2v", * "principal_id": "svc_7q2v9x6m3n8p5r4t", * "tags": { * "owner": "product" * }, * "created_at": "2026-06-15T14:30:00Z", * "updated_at": "2026-06-15T14:30:00Z" * } * ], * "has_more": false * } */ APIKeyListResponse: { /** @description The list of results for this page. */ items: components["schemas"]["APIKey"][]; /** @description Opaque cursor to pass as `cursor` on the next request. Absent when `has_more` is false. */ next_cursor?: string; /** @description Whether additional pages are available. */ has_more: boolean; }; /** * @description Request shape for creating an organization API key. Pass `principal_id` to bind the key to an existing machine principal — the key authenticates as that principal, and permissions are managed by assigning roles to the principal rather than to the key. Omit `principal_id` to bind the key to the permanent organization principal; the chosen system `role` is stored as the credential scope. * @example { * "name": "CI worker", * "principal_id": "svc_7q2v9x6m3n8p5r4t", * "tags": { * "owner": "product" * } * } */ CreateAPIKeyRequest: { /** @description Human-readable label, unique within the organization. */ name: string; /** @description Principal this key authenticates as. Omit to use the permanent organization principal with the requested role as a mandatory scope. */ principal_id?: string; /** @description Optional role whose permissions cap this key below its principal's full grants. Only applicable when `principal_id` is set. */ scope_role_id?: string; /** * @description Allow minting a key for a principal with no role assignments. The resulting key cannot access org resources until a role is assigned. Omit this for normal onboarding so a missing assignment fails with `principal_has_no_roles`. Only applicable when `principal_id` is set. * @default false */ allow_unassigned_principal?: boolean; /** * @description Mandatory scope role when `principal_id` is omitted. The permanent organization principal holds Owner, and this credential scope can only narrow it. Defaults to `Admin`. `Owner` grants full control (including billing and org deletion); `Admin` covers organization administration and team resource posture, plus billing reads; `User` can use reachable resources and build private configuration; `Viewer` is read-only. `Worker` is not selectable here — org-level keys are barred from the job endpoints, so it would be inert. For a narrower cap, such as use-only automation, bind the key to a principal and set `scope_role_id` to a custom role. Ignored when `principal_id` is set. * @default Admin * @enum {string} */ role?: "Owner" | "Admin" | "User" | "Viewer"; /** * Format: date-time * @description Optional hard expiry. Omit for a non-expiring key. */ expires_at?: string; /** @description Labels to apply to the new API key. */ tags?: components["schemas"]["TagMap"]; }; /** @description Request hints that describe the safe-use properties of the action. Used by the engine and tooling to decide retry behavior, dry-run eligibility, etc. Unknown request properties are rejected. */ ActionAnnotationsRequest: { /** @description The action produces the same result when called with the same inputs; safe to retry automatically. */ idempotent?: boolean; /** @description The action has irreversible side effects (deletion, financial transactions, etc.). Surfaced as a warning in UI. */ destructive?: boolean; /** @description The action has no side effects; safe to call in dry-run scenarios. */ read_only?: boolean; }; /** @description Response hints that describe the safe-use properties of the action. Response annotations are forward-compatible so the server can add response-only hints without breaking strict clients. */ ActionAnnotations: { /** @description The action produces the same result when called with the same inputs; safe to retry automatically. */ idempotent?: boolean; /** @description The action has irreversible side effects (deletion, financial transactions, etc.). Surfaced as a warning in UI. */ destructive?: boolean; /** @description The action has no side effects; safe to call in dry-run scenarios. */ read_only?: boolean; } & { [key: string]: unknown; }; /** * @description Backing kind for a custom action. `http` actions POST to a registered endpoint. `worker` actions dispatch jobs to connected workers that advertise the registered action name. * @enum {string} */ ActionEndpointKind: "http" | "worker"; /** * @description Outbound request-body contract for an HTTP action. `legacy` sends the unversioned `{step_key, parameters}` body. `signed_context_v1` sends a versioned envelope whose org, action, actor, and origin claims are derived by Mobius and covered by the existing HMAC signature. Worker-backed actions must use `legacy`. * @enum {string} */ ActionInvocationFormat: "legacy" | "signed_context_v1"; /** @description Signed HTTP action request body for `signed_context_v1`. Receivers must verify the HMAC over the exact raw body before parsing this envelope. Unknown fields are permitted for forward compatibility. */ ActionInvocationV1: { mobius: components["schemas"]["ActionInvocationContextV1"]; /** @description Caller-supplied action parameters. These are not an authorization identity. */ parameters: { [key: string]: unknown; }; } & { [key: string]: unknown; }; ActionInvocationContextV1: { /** @enum {integer} */ schema_version: 1; scope: components["schemas"]["ActionInvocationScopeV1"]; action: components["schemas"]["ActionInvocationActionV1"]; actor: components["schemas"]["ActionInvocationActorV1"]; origin: components["schemas"]["ActionInvocationOriginV1"]; } & { [key: string]: unknown; }; ActionInvocationScopeV1: { org_id: string; } & { [key: string]: unknown; }; ActionInvocationActionV1: { id: string; name: string; } & { [key: string]: unknown; }; ActionInvocationActorV1: { principal_id: string; /** @enum {string} */ principal_type: "human" | "agent" | "service" | "system"; /** @description Required for agent principals and forbidden for all other principal types. */ agent_id?: string | null; } & { [key: string]: unknown; }; ActionInvocationOriginV1: { /** @enum {string} */ kind: "agent_tool_call" | "loop_action_step" | "direct_action_invoke" | "server_internal"; channel_exchange_id?: string | null; step_key?: string | null; agent_turn_id?: string | null; session_id?: string | null; tool_call_id?: string | null; } & { [key: string]: unknown; }; /** * @description Registers an org-owned custom action agents can call as a tool. * @example { * "name": "review-pr", * "title": "Review PR", * "description": "Review a pull request and return findings.", * "endpoint_kind": "http", * "invocation_format": "signed_context_v1", * "endpoint_url": "https://hooks.example.com/mobius/review-pr", * "input_schema": { * "type": "object", * "required": [ * "pull_request_url" * ], * "properties": { * "pull_request_url": { * "type": "string" * } * } * }, * "output_schema": { * "type": "object", * "properties": { * "findings": { * "type": "array", * "items": { * "type": "string" * } * } * } * }, * "annotations": { * "idempotent": true, * "destructive": false, * "read_only": true * }, * "tags": { * "owner": "product" * } * } */ CreateActionRequest: { /** @description Identifier agents and direct invocations call the action by. Lowercase alphanumeric + hyphens, e.g. "send-email". Must be unique within the org. Cannot start with "mobius." (reserved prefix). */ name: string; /** @description Human-readable display name shown in the UI and catalog. */ title?: string; /** @description Markdown-safe description of what the action does. */ description?: string; /** * @description Backing kind for the action. `http` actions POST to `endpoint_url` with a Mobius signature. `worker` actions are dispatched through jobs to connected workers that advertise this registered name. * @default http */ endpoint_kind?: string & components["schemas"]["ActionEndpointKind"]; /** * @description Request-body contract for HTTP invocations. Omit to preserve the legacy body. `signed_context_v1` is valid only with `endpoint_kind: http`. * @default legacy */ invocation_format?: components["schemas"]["ActionInvocationFormat"]; /** * Format: uri * @description Required when endpoint_kind is `http`; omitted for worker actions. */ endpoint_url?: string; /** @description JSON Schema describing the expected input parameters. */ input_schema?: { [key: string]: unknown; }; /** @description JSON Schema describing the expected output shape. */ output_schema?: { [key: string]: unknown; }; /** @description Safe-use hints used by execution and authoring tools. */ annotations?: components["schemas"]["ActionAnnotationsRequest"]; /** @description Free-form labels used for filtering, ownership, or lifecycle policy. */ tags?: components["schemas"]["TagMap"]; owner?: components["schemas"]["ResourceOwner"]; visibility?: components["schemas"]["ResourceVisibility"]; }; /** @description Updates action metadata, endpoint, schemas, or safe-use hints. */ UpdateActionRequest: { /** @description Replacement display title. */ title?: string; /** @description Replacement Markdown description. */ description?: string; /** * Format: uri * @description Replacement endpoint URL. Valid for HTTP actions only. */ endpoint_url?: string; /** @description Replacement HTTP request-body contract. `signed_context_v1` is valid only for HTTP-backed actions. */ invocation_format?: components["schemas"]["ActionInvocationFormat"]; /** @description Replacement JSON Schema for inputs. Replaces the existing schema. */ input_schema?: { [key: string]: unknown; }; /** @description Replacement JSON Schema for outputs. Replaces the existing schema. */ output_schema?: { [key: string]: unknown; }; /** @description Pass null to clear all annotation flags. */ annotations?: components["schemas"]["ActionAnnotationsRequest"] | null; /** @description Replacement labels; send an empty object to clear all tags. */ tags?: components["schemas"]["TagMap"]; }; /** * @description Org-owned custom action definition agents can call as a tool. * @example { * "id": "act_8m4x9q2v7p5n3r6t", * "name": "review-pr", * "title": "Review PR", * "description": "Review a pull request and return findings.", * "endpoint_kind": "http", * "invocation_format": "signed_context_v1", * "endpoint_url": "https://hooks.example.com/mobius/review-pr", * "input_schema": { * "type": "object", * "required": [ * "pull_request_url" * ], * "properties": { * "pull_request_url": { * "type": "string" * } * } * }, * "output_schema": { * "type": "object", * "properties": { * "findings": { * "type": "array", * "items": { * "type": "string" * } * } * } * }, * "annotations": { * "idempotent": true, * "destructive": false, * "read_only": true * }, * "tags": { * "owner": "product" * }, * "created_at": "2026-06-15T14:30:00Z", * "updated_at": "2026-06-15T14:30:00Z" * } */ Action: { /** @description Unique identifier for this action. */ id: string; owner: components["schemas"]["ResourceOwner"]; visibility: components["schemas"]["ResourceVisibility"]; container?: components["schemas"]["ResourceContainer"]; posture: components["schemas"]["ResourcePosture"]; controls: components["schemas"]["ResourceControls"]; /** @description Stable identifier the action is called by. */ name: string; /** @description Human-readable display title for the action. */ title?: string; /** @description Markdown description of what the action does. */ description?: string; /** @description Backing kind of this org-owned action. `http` actions POST to an endpoint URL. `worker` actions are dispatched through jobs to connected workers that advertise this registered name. */ endpoint_kind: string & components["schemas"]["ActionEndpointKind"]; /** @description Resolved outbound request-body contract for this action. */ invocation_format: components["schemas"]["ActionInvocationFormat"]; /** * Format: uri * @description HTTP/HTTPS URL Mobius POSTs to when invoking this action. Populated for endpoint_kind: http only. */ endpoint_url?: string; /** @description JSON Schema describing expected input parameters. */ input_schema?: { [key: string]: unknown; }; /** @description JSON Schema describing the expected output shape. */ output_schema?: { [key: string]: unknown; }; /** @description Safe-use hints returned for this action. */ annotations?: components["schemas"]["ActionAnnotations"]; /** @description Free-form labels attached to this action. */ tags?: components["schemas"]["TagMap"]; /** @description One-time `whsec_` plus raw-URL-base64 encoded 32-byte HMAC-SHA256 signing key. Only populated on create and rotate responses; absent on all other reads. Store this value securely on first receipt — it cannot be retrieved again. */ signing_secret?: string; /** * Format: date-time * @description Timestamp when this action was created. */ created_at: string; /** * Format: date-time * @description Timestamp when this action was last updated. */ updated_at: string; }; /** @description New signing key material returned after rotating a signing secret. */ RotateSecretResult: { /** * Format: int64 * @description New internal vault version number. */ secret_version: number; /** @description One-time `whsec_` raw-URL-base64 signing key. Store it immediately — this is the only time it is returned. */ signing_secret: string; }; /** @description One built-in, integration, or custom-backed action available to agents. */ ActionCatalogEntry: { /** @description Stable resource identifier. Present for an organization-authored custom action. */ id?: string; /** @description Canonical dotted action name (e.g. `slack.post_message`). Translated to the provider-safe form (`slack_post_message`) only at the LLM boundary. */ name: string; /** @description Human-readable display title for the action. */ title?: string; /** @description Markdown description of what the action does. */ description?: string; /** @description True when only an exact selector naming this action reaches it. Group, provider, and wildcard selectors never include it, so a person turns it on by name. */ exact_only?: boolean; /** * @description Backing kind. "builtin" for Mobius platform actions implemented in Go (no DB row), "http" for org-owned or integration HTTP endpoints, and "worker" for org-owned custom actions dispatched to connected workers. * @enum {string} */ endpoint_kind: "builtin" | "http" | "worker"; /** @description Integration slug this action belongs to (e.g. "slack"), if platform-provided. */ integration?: string; /** * @description Origin of this action: "platform" for built-in or integration-backed actions provided by Mobius, "custom" for org-owned HTTP or worker-backed actions. The `integration` field carries the provider slug for integration-backed platform actions. * @enum {string} */ source: "platform" | "custom"; /** * @description Scope that owns the selected definition: `platform` for Mobius and integration actions, or `custom` for an action authored in the current organization. * @enum {string} */ definition_scope: "platform" | "custom"; /** @description Whether this action can be called right now. `needs_setup` when the required integration is not connected, the caller lacks permission, or the action is a placeholder for a not-yet-implemented capability. */ readiness: components["schemas"]["CapabilityReadiness"]; /** @description Why the action is `needs_setup`. Omitted when `readiness` is `ready`. */ readiness_reason?: components["schemas"]["CapabilityReadinessReason"]; /** * @description Author-declared risk classification: `low`, `medium`, `high`, or `critical`. Used by tool-grant UIs to surface warnings and by audit views to prioritize attention. * @enum {string} */ risk: "low" | "medium" | "high" | "critical"; /** @description Safe-use hints returned for this catalog action. Always present; flags default to false. */ annotations: components["schemas"]["ActionAnnotations"]; /** @description JSON Schema describing expected input parameters. */ input_schema?: { [key: string]: unknown; }; /** @description JSON Schema describing the expected output shape. */ output_schema?: { [key: string]: unknown; }; /** * Format: uri * @description Endpoint URL (populated for endpoint_kind: http actions only). */ endpoint_url?: string; /** @description Resolved request-body contract for an org-owned custom action. */ invocation_format?: components["schemas"]["ActionInvocationFormat"]; /** @description Execution locations and worker requirements for this action. */ execution?: components["schemas"]["ActionExecutionMetadata"]; /** @description Present for an organization-authored custom action. */ owner?: components["schemas"]["ResourceOwner"]; /** @description Present for an organization-authored custom action. */ visibility?: components["schemas"]["ResourceVisibility"]; /** @description Present when a custom action is narrowed by an agent container. */ container?: components["schemas"]["ResourceContainer"]; /** @description Present for an organization-authored custom action. */ posture?: components["schemas"]["ResourcePosture"]; /** @description Present for an organization-authored custom action. */ controls?: components["schemas"]["ResourceControls"]; }; /** @description Execution-location metadata surfaced to action pickers. */ ActionExecutionMetadata: { /** @description Supported execution locations: `managed`, `worker`, or `environment`. */ supported_locations: ("managed" | "worker" | "environment")[]; /** * @description Default execution location: `managed`, `worker`, or `environment`. * @enum {string} */ default_location: "managed" | "worker" | "environment"; /** @description Worker capability labels required when running this action on a customer worker. */ required_worker_capabilities?: string[]; /** @description Queue to use when dispatching this action to workers. */ queue?: string; }; /** @description Unpaginated action catalog. This endpoint returns the complete set of available custom and platform actions so clients can build pickers without paging across a small catalog. */ ActionCatalogListResponse: { /** @description The full list of catalog entries. */ items: components["schemas"]["ActionCatalogEntry"][]; }; /** @description Request body for user-driven action invocation. */ InvokeActionRequest: { /** @description Input values matching the action's input_schema. */ input?: { [key: string]: unknown; }; /** @description How long (in seconds) to wait for synchronous completion. Default 30, max 120. */ timeout_seconds?: number; /** @description When true, validates the input but does not execute. Applies to read-only actions only. */ dry_run?: boolean; }; /** @description Unified invocation result for any action kind. */ ActionInvocationResult: { /** * @description Invocation status: `active`, `completed`, or `failed`. * @enum {string} */ status: "active" | "completed" | "failed"; /** @description Job created for this direct invocation. */ job_id?: string; /** @description Action output. Present when status is "completed". */ output?: { [key: string]: unknown; }; /** @description Error message. Present when status is "failed". */ error?: string; }; /** @description Per-invocation telemetry record for one action execution. */ ActionInvocationEntry: { /** @description Unique identifier for this invocation record. */ id: string; /** @description Job that triggered this invocation, if job-backed. */ job_id?: string; /** @description Environment that executed this invocation, if environment-backed. */ environment_id?: string; /** @description Name of the step that triggered this invocation. */ step_name?: string; /** @description Immutable action definition ID used for this invocation. */ action_id?: string; /** @description Name of the action that was invoked. */ action_name: string; /** * @description Scope that owned the selected action definition. * @enum {string} */ definition_scope?: "platform" | "custom"; invocation_format?: components["schemas"]["ActionInvocationFormat"]; /** @description Signed request-envelope schema version, when applicable. */ schema_version?: number; /** @description Immutable principal attributed as the executing actor. */ actor_principal_id?: string; /** * @description Kind of principal attributed as the executing actor. * @enum {string} */ actor_principal_type?: "human" | "agent" | "service" | "system"; /** @description Agent resource ID when the actor was an agent. */ agent_id?: string; /** * @description Custody of the work this invocation belongs to: the session owner when it ran in a session, else the agent owner, else the human actor. `place` is a chat in a chat app: only administrators see these records, and only the action name, times, and status. * @enum {string} */ owner_kind?: "person" | "team" | "place"; /** @description Principal that holds custody when `owner_kind` is `person`. */ owner_id?: string; /** * @description Who may read the record's content, following the owning session or agent. * @enum {string} */ visibility?: "private" | "organization"; /** @description True when `parameters` were withheld because the record is private to someone else, or belongs to a chat place, and the caller is reading it as an administrator. */ parameters_redacted?: boolean; /** @description Channel exchange correlated with this invocation, when applicable. */ channel_exchange_id?: string; /** @description Agent turn correlated with this invocation, when applicable. */ agent_turn_id?: string; /** @description Agent session correlated with this invocation, when applicable. */ session_id?: string; /** @description Provider tool-call ID correlated with this invocation, when applicable. */ tool_call_id?: string; /** @description Stable signed delivery and idempotency identity, when HTTP-backed. */ delivery_id?: string; /** @description Request or dispatch identity that correlated the invocation. */ correlation_id?: string; /** @description Connected account the call was dispatched on, when it used one. */ connection_id?: string; /** @description Grant that admitted the call to the account. Absent when a person used their own account directly. */ grant_id?: string; /** * Format: int64 * @description Signing-secret version used for the HTTP delivery. */ secret_version?: number; /** @description Receiver HTTP status for a completed delivery attempt. */ http_status?: number; /** @description The job origin that produced this invocation: `agent_tool_call`, `loop_action_step`, `direct_action_invoke`, or `server_internal`. */ source: string; /** @description Input parameters passed to the action, with credential-like keys redacted. Absent when `parameters_redacted` is true. */ parameters?: { [key: string]: unknown; }; /** @description The terminal job status and the top-level keys of the result. Result bodies are never stored here; open the session for them. */ output_summary?: { [key: string]: unknown; }; /** @description Terminal invocation status ("success", "failed", etc.). */ status: string; /** @description Number of retry attempts before this terminal status was reached. */ retry_count: number; /** * Format: date-time * @description Timestamp when this invocation started. */ started_at: string; /** * Format: date-time * @description Timestamp when this invocation completed. */ finished_at: string; /** @description Machine-readable error classification when status is "failed". */ error_type?: string; /** @description Human-readable error detail when status is "failed". Withheld, like `parameters`, when `parameters_redacted` is set. */ error_message?: string; }; /** @description Paginated list of action invocation telemetry records. */ ActionInvocationListResponse: { /** @description The list of results for this page. */ items: components["schemas"]["ActionInvocationEntry"][]; /** @description Opaque cursor to pass as `cursor` on the next request. Absent when `has_more` is false. */ next_cursor?: string; /** @description Whether additional pages are available. */ has_more: boolean; }; /** @description The triggerable event catalog available to an org. */ EventCatalogResponse: { /** @description Event sources available for authoring triggers. */ items: components["schemas"]["EventCatalogSource"][]; /** @description Platform namespaces that are recognized but are not triggerable event sources. Authoring UIs use these to distinguish a recognized-but-unsupported matcher prefix from a wholly unknown one. */ reserved_prefixes: components["schemas"]["EventCatalogReservedPrefix"][]; }; /** @description One event source rooted at a top-level dotted prefix. Integration sources are open-set (any `..` matches); `event_types` lists the currently-active, documented members. */ EventCatalogSource: { /** @description Provider-defined kinds of items a routine can follow. */ follow_targets?: components["schemas"]["RoutineFollowTarget"][]; /** @description Top-level dotted segment that names the source (`table`, `github`). */ prefix: string; /** * @description `integration` for provider event sources; `capability` for built-in Mobius platform event sources. * @enum {string} */ kind: "integration" | "capability"; /** @description Human-readable source name for UI pickers. */ display_name: string; /** @description Short explanation of what emits events under this prefix. */ description?: string; /** @description Whether this source can trigger work now. `capability` sources are always `ready`. `integration` sources are `ready` only when the org has an active, usable connection for the provider. */ readiness: components["schemas"]["CapabilityReadiness"]; /** @description Why an `integration` source is `needs_setup`. Omitted when `readiness` is `ready` and for `capability` sources. */ readiness_reason?: components["schemas"]["CapabilityReadinessReason"]; /** @description Concrete event types currently documented for this source. */ event_types: components["schemas"]["EventCatalogEventType"][]; }; /** @description One concrete event type exposed by an event catalog source. */ EventCatalogEventType: { /** @description Dotted event-type identifier (`table.row.inserted`, `github.pull_request.opened`). */ name: string; /** @description Human-readable explanation of when this event fires. */ description?: string; /** @description JSON Schema for the normalized event data available to event-trigger runs at `${{ event.* }}` and to event conditions/mappings at `event.*`. Absent only when the event payload is intentionally open-ended and the provider has not registered an authoring schema. */ event_schema?: { [key: string]: unknown; }; /** @description JSON Schema for normalized routing metadata available to event-trigger runs at `${{ meta.* }}` and to event conditions/mappings at `meta.*`. */ meta_schema?: { [key: string]: unknown; }; }; /** @description A recognized event namespace that is not itself triggerable. */ EventCatalogReservedPrefix: { /** @description Reserved top-level event prefix. */ prefix: string; /** * @description Whether the prefix names a platform capability or an authoring utility namespace. * @enum {string} */ kind: "capability" | "utility"; }; /** * @description What a model is for. `text` models are assignable to agents. `voice` models serve voice calls only. * @enum {string} */ ModelCapability: "text" | "voice"; /** @description Models a platform agent can be assigned in this org, grouped by available provider. */ ModelCatalogResponse: { /** @description Model id an agent that specifies no model runs on: the organization's default model when it set one and it is enabled, else the platform default. With `capability=voice`, the voice model a call uses when it names none. */ default_model: string; /** @description Available providers in display order, including providers the organization turned off (`enabled: false`). Providers with no configured credentials are omitted. */ items: components["schemas"]["ModelProviderGroup"][]; /** * @description Present when `items` is empty because the request was denied rather than because no catalog exists. `platform_funding_denied` means Mobius-managed provider credentials are gated by billing or plan state; `credentials_unavailable` means no usable provider credentials were available. * @enum {string} */ reason?: "platform_funding_denied" | "credentials_unavailable"; }; /** @description Available model choices for one provider. */ ModelProviderGroup: { /** @description Canonical provider id (`anthropic`, `openai`, `openrouter`, `gemini`, `xai`). */ provider: string; /** @description False when the organization has turned this provider off. */ enabled: boolean; /** @description Human-readable provider label. */ display_name: string; /** * @description Where credentials come from — an org integration (`byok`) or a platform-managed key (`platform`). * @enum {string} */ source: "byok" | "platform"; /** @description Models offered by this provider in display order. */ models: components["schemas"]["ModelOption"][]; }; /** @description One selectable LLM model in the org model catalog. */ ModelOption: { /** @description Model id assigned to an agent's `model` field. Some catalog ids, such as OpenRouter slugs, include `/`. */ id: string; /** @description False when the organization has turned this model or its provider off, or its billing plan does not include the model. Assistants cannot run on a model that is not enabled. */ enabled: boolean; /** @description True when the organization's billing plan does not include this model, whatever the organization's own model settings say. A plan-excluded model is never enabled. */ plan_excluded?: boolean; /** @description Canonical provider id this model belongs to. */ provider: string; /** @description Human-readable model label for UI. */ label: string; /** @description Short guidance about when to use this model. */ description?: string; /** * Format: int64 * @description Maximum input context used to resolve model-relative compaction presets. */ context_window_tokens: number; /** @description Whether this is the suggested default for its provider. */ recommended?: boolean; }; /** @description Local LLM models advertised by online org workers. */ WorkerModelCatalogListResponse: { items: components["schemas"]["WorkerModelCatalogItem"][]; }; /** @description One exact local model route available through online workers. */ WorkerModelCatalogItem: { /** @description Worker-advertised provider id, matched exactly by `model_route.provider`. */ provider: string; /** @description Worker-advertised model id, matched exactly by `model_route.model`. */ model: string; /** @description Number of online workers currently advertising this exact provider/model pair. */ worker_count: number; route: components["schemas"]["WorkerModelRoute"]; }; /** @description Assign this route to use a local worker model. */ WorkerModelRoute: { /** * @description Model route mode. Worker catalog routes always use `worker`. * @enum {string} */ mode: "worker"; /** @description Provider id advertised by the local worker. */ provider: string; /** @description Model identifier advertised by the local worker. */ model: string; }; RoutineFollowTarget: { id: string; label: string; description: string; event_types: string[]; /** @description Event-type patterns for which a new routine that names no follow_target follows this target. */ default_for?: string[]; }; WorkerSocketModelCapability: { /** @description LLM provider identifier, such as `ollama`. */ provider: string; /** @description Provider-local model name. */ model: string; }; /** @description Typed JSON frame exchanged over `/workers/socket`. WebSocket traffic is not ordinary request/response HTTP, but the frame schemas are included in the public OpenAPI contract so SDKs can share a wire format. */ WorkerSocketFrame: components["schemas"]["WorkerSocketRegisterFrame"] | components["schemas"]["WorkerSocketRegisteredFrame"] | components["schemas"]["WorkerSocketReadyFrame"] | components["schemas"]["WorkerSocketJobsClaimFrame"] | components["schemas"]["WorkerSocketJobsClaimedFrame"] | components["schemas"]["WorkerSocketWorkAvailableFrame"] | components["schemas"]["WorkerSocketJobHeartbeatFrame"] | components["schemas"]["WorkerSocketJobHeartbeatAckFrame"] | components["schemas"]["WorkerSocketJobReportFrame"] | components["schemas"]["WorkerSocketJobReportAckFrame"] | components["schemas"]["WorkerSocketGenerationDeltaFrame"] | components["schemas"]["WorkerSocketGenerationDeltaAckFrame"] | components["schemas"]["WorkerSocketJobCancelFrame"] | components["schemas"]["WorkerSocketWorkerDrainingFrame"] | components["schemas"]["WorkerSocketWorkerDrainingAckFrame"] | components["schemas"]["WorkerSocketWorkerDrainFrame"] | components["schemas"]["WorkerSocketKeepaliveFrame"] | components["schemas"]["WorkerSocketErrorFrame"]; /** @description Client-supplied correlation and short-window deduplication key. When present on a client frame, the server echoes it on the response frame. */ WorkerSocketMessageID: string; WorkerSocketLeaseConfig: { /** @description Per-job lease duration stamped on claims. */ lease_duration_seconds: number; /** @description Recommended heartbeat cadence while a job is running. */ heartbeat_cadence_seconds: number; }; WorkerSocketCancelDirective: { job_id: string; reason?: string; /** Format: date-time */ requested_at?: string; }; WorkerSocketProtocolError: { /** @description Stable protocol error code. `worker_instance_conflict` is emitted when a duplicate live `worker_instance_id` registers and should be treated as a terminal worker startup failure. */ code: string; message: string; }; WorkerSocketRegisterFrame: { /** @enum {string} */ type: "worker.register"; message_id?: components["schemas"]["WorkerSocketMessageID"]; /** @description Stable process identity reported by the worker SDK. */ worker_instance_id: string; /** @description Previously issued session token used on reconnect; omitted on first register. */ worker_session_token?: string; /** @description Maximum jobs this worker process will hold concurrently. */ concurrency_limit?: number; /** @description Currently available capacity. Defaults to `concurrency_limit`. */ available_slots?: number; name?: string; version?: string; /** @description Environment this worker is running inside, when the worker was started by Mobius in a Sprite or other managed environment. */ environment_id?: string; /** @description Coarse capability labels reserved for future routing. */ capabilities?: string[]; /** @description Queue names this worker can claim. Empty means all org queues. */ queues?: string[]; /** @description Action names this worker can execute. Empty means every locally registered action. */ action_names?: string[]; /** @description Provider/model pairs this worker can generate with. */ models?: components["schemas"]["WorkerSocketModelCapability"][]; }; WorkerSocketRegisteredFrame: { /** @enum {string} */ type: "worker.registered"; message_id?: components["schemas"]["WorkerSocketMessageID"]; /** @description Server-issued per-session token to reuse after reconnects. */ worker_session_token: string; lease: components["schemas"]["WorkerSocketLeaseConfig"]; }; WorkerSocketReadyFrame: { /** @enum {string} */ type: "worker.ready"; message_id?: components["schemas"]["WorkerSocketMessageID"]; available_slots?: number; queues?: string[]; action_names?: string[]; models?: components["schemas"]["WorkerSocketModelCapability"][]; }; WorkerSocketJobsClaimFrame: { /** @enum {string} */ type: "jobs.claim"; message_id?: components["schemas"]["WorkerSocketMessageID"]; available_slots?: number; queues?: string[]; action_names?: string[]; models?: components["schemas"]["WorkerSocketModelCapability"][]; }; WorkerSocketClaimedJob: { /** @description Job ID. */ id: string; /** @enum {string} */ kind: "action_execution" | "llm_generation"; /** @enum {string} */ origin: "loop_action_step" | "agent_tool_call" | "agent_llm_call" | "conversation_tool_call" | "conversation_llm_call" | "direct_action_invoke" | "server_internal"; /** @enum {string} */ executor_kind: "customer_worker" | "server_worker"; queue: string; /** @description Present for `action_execution` jobs. */ action_name?: string; /** @description Present when the job is pinned to a managed environment worker. */ environment_id?: string; /** @description Present for `llm_generation` jobs. */ provider?: string; /** @description Present for `llm_generation` jobs. */ model?: string; agent_turn_id?: string; session_id?: string; tool_call_id?: string; /** @description Worker-specific action or generation payload. For `kind=llm_generation`, this object follows `WorkerSocketLLMGenerationSpec`. */ spec: { [key: string]: unknown; }; /** @description Opaque per-job lease fence returned by claim. */ lease_token: string; claim_attempt: number; lease_duration_seconds: number; heartbeat_cadence_seconds: number; }; WorkerSocketJobsClaimedFrame: { /** @enum {string} */ type: "jobs.claimed"; message_id?: components["schemas"]["WorkerSocketMessageID"]; jobs: components["schemas"]["WorkerSocketClaimedJob"][]; }; WorkerSocketWorkAvailableFrame: { /** @enum {string} */ type: "work.available"; }; WorkerSocketJobHeartbeatFrame: { /** @enum {string} */ type: "job.heartbeat"; message_id?: components["schemas"]["WorkerSocketMessageID"]; job_id: string; /** @description Opaque per-job lease fence returned by claim. */ lease_token: string; }; WorkerSocketJobHeartbeatAckFrame: { /** @enum {string} */ type: "job.heartbeat.ack"; message_id?: components["schemas"]["WorkerSocketMessageID"]; job_id: string; cancel?: components["schemas"]["WorkerSocketCancelDirective"]; }; WorkerSocketJobReportFrame: { /** @enum {string} */ type: "job.report"; message_id?: components["schemas"]["WorkerSocketMessageID"]; job_id: string; /** @description Opaque per-job lease fence returned by claim. */ lease_token: string; /** * @default completed * @enum {string} */ status?: "completed" | "failed" | "cancelled"; /** @description Terminal result payload. For `llm_generation` jobs, this object must follow `WorkerSocketLLMGenerationResult`; plain text fallback results are not accepted. */ result?: { [key: string]: unknown; }; error_type?: string; error_message?: string; }; WorkerSocketJobReportAckFrame: { /** @enum {string} */ type: "job.report.ack"; message_id?: components["schemas"]["WorkerSocketMessageID"]; job_id: string; /** @description True when an identical terminal report was already accepted for this lease. */ duplicate?: boolean; }; WorkerSocketGenerationDeltaFrame: { /** @enum {string} */ type: "generation.delta"; message_id?: components["schemas"]["WorkerSocketMessageID"]; job_id: string; /** @description Opaque per-job lease fence returned by claim. */ lease_token: string; /** * Format: int64 * @description Worker-local monotonically increasing sequence for this generation. */ sequence: number; /** @description Provider-neutral streaming delta payload. */ delta: { [key: string]: unknown; }; }; WorkerSocketGenerationDeltaAckFrame: { /** @enum {string} */ type: "generation.delta.ack"; message_id?: components["schemas"]["WorkerSocketMessageID"]; job_id: string; /** Format: int64 */ received_sequence: number; }; WorkerSocketJobCancelFrame: { /** @enum {string} */ type: "job.cancel"; message_id?: components["schemas"]["WorkerSocketMessageID"]; job_id: string; reason?: string; /** Format: date-time */ requested_at?: string; }; WorkerSocketWorkerDrainingFrame: { /** @enum {string} */ type: "worker.draining"; message_id?: components["schemas"]["WorkerSocketMessageID"]; }; WorkerSocketWorkerDrainingAckFrame: { /** @enum {string} */ type: "worker.draining.ack"; message_id?: components["schemas"]["WorkerSocketMessageID"]; }; WorkerSocketWorkerDrainFrame: { /** @enum {string} */ type: "worker.drain"; message_id?: components["schemas"]["WorkerSocketMessageID"]; }; WorkerSocketKeepaliveFrame: { /** @enum {string} */ type: "keepalive"; message_id?: components["schemas"]["WorkerSocketMessageID"]; }; WorkerSocketErrorFrame: { /** @enum {string} */ type: "error"; message_id?: components["schemas"]["WorkerSocketMessageID"]; error: components["schemas"]["WorkerSocketProtocolError"]; }; ConnectionGovernance: { id: string; provider: string; status: components["schemas"]["IntegrationStatus"]; controller: components["schemas"]["ConnectionController"]; }; ConnectionGovernanceListResponse: { items: components["schemas"]["ConnectionGovernance"][]; has_more: boolean; next_cursor?: string; }; /** @description Exact accounts available to routine actions, keyed by provider. Each call selects one account and revalidates its live grant. Event watches are separate. */ ConnectionBindings: { [key: string]: components["schemas"]["ConnectionBinding"][]; }; /** @description A frozen selection of one connection and its explicit grant. */ ConnectionBinding: { connection_id: string; grant_id: string; }; /** @description Starts a routine's or a workflow's run when a matching integration event arrives from one of the watched accounts. */ EventTrigger: { /** * @description The integration event to react to: a concrete type from the event catalog (`github.issues.opened`) or a wildcard on a prefix (`github.issues.*`, `github.*`). The first segment must name a registered integration provider; built-in Mobius events are not accepted here. * @example github.issues.opened */ event_type?: string; /** @description Exact connection and grant pairs whose matching events may start a run, between 1 and 20 for an integration event. This selection does not authorize provider actions. */ source_bindings: components["schemas"]["ConnectionBinding"][]; /** * @description Optional expression over the event's `{event, meta}` envelope. The run starts only when it returns true. A condition that cannot be evaluated against an event records a `failed` run with `error_code` `trigger_condition_error` and starts nothing. * @example event.repository.full_name == "acme/api" */ condition?: string; }; /** @enum {string} */ ConnectionExecutionMode: "authenticated_human" | "controller_background" | "organization_background"; ConnectionGrantAudience: { organization: boolean; principal_ids: string[]; }; /** @description Access for one assistant in conversations and routines, subject to connection ownership and result audience restrictions. */ ConnectionGrant: { id: string; connection_id: string; agent_id: string; audience: components["schemas"]["ConnectionGrantAudience"]; /** Format: date-time */ created_at: string; connection_label: string; provider: string; controlled_by_organization: boolean; represented_actor?: string; /** @description The provider's short account identity, such as an email address. Presentation only. */ identity_label?: string; can_manage: boolean; }; ConnectionGrantListResponse: { items: components["schemas"]["ConnectionGrant"][]; }; /** @description Grant current assistants access for both conversations and routines within the specified audience and connection ownership restrictions. Does not assign tools. */ MaterializeConnectionGrantsRequest: { agent_ids: string[]; audience: components["schemas"]["ConnectionGrantAudience"]; }; SetConnectionDefaultRequest: { connection_id: string; grant_id: string; execution_mode: components["schemas"]["ConnectionExecutionMode"]; context: components["schemas"]["ConnectionDefaultContext"]; }; /** @enum {string} */ ConnectionDefaultContext: "self" | "organization"; ConnectionDefaultChoice: { connection_id: string; grant_id: string; connection_label: string; represented_actor?: string; controlled_by_organization: boolean; }; ConnectionDefaultPreference: { provider: string; /** @enum {string} */ state: "unset" | "selected" | "unavailable"; selection?: components["schemas"]["ConnectionDefaultChoice"]; choices: components["schemas"]["ConnectionDefaultChoice"][]; }; ConnectionDefaultPreferenceListResponse: { items: components["schemas"]["ConnectionDefaultPreference"][]; }; /** * @description `active` — integration is enabled and usable by agents. `inactive` — manually disabled; no automatic expiry behavior. `expired` — token/credential has expired (e.g., OAuth token not refreshed). * @enum {string} */ IntegrationStatus: "active" | "inactive" | "expired" | "confirmation_required"; /** @description Server-evaluated eligibility for making this account team-managed in place. */ IntegrationTeamManagement: { supported: boolean; can_start: boolean; unavailable_reason?: string; }; /** @description Connection to an external provider such as Slack, GitHub, or a model service. Agents and actions use integrations to find provider configuration without embedding secrets in definitions. External identity is unique per (organization, owner, provider); the same external account may have distinct personal, agent, and business rows. */ Integration: { team_management?: components["schemas"]["IntegrationTeamManagement"]; /** @description Immutable provider authorization mode. */ connection_mode?: string; /** @description Verified actor represented by this connection. */ represented_actor?: string; /** * Format: date-time * @description Deadline for confirming fresh replacement evidence, when required. */ confirmation_expires_at?: string; /** @description External account identity; safe metadata available in the governance view. */ identity_label?: string; /** @description Unique identifier for this integration. */ id: string; /** @description Human-readable name, chosen by whoever connected it. Unique per `(org, owner, provider)`: two people may each call their own mailbox "work", but two org-shared connections may not. */ name: string; /** @description Free-form provider identifier (e.g. `openai`, `slack`, `github`). Immutable after creation. */ provider: string; /** @description Provider-specific non-sensitive configuration stored as JSON. The shape is provider-defined. Sensitive credentials are never returned in this field. */ config?: { [key: string]: unknown; }; /** @description Current integration lifecycle state: `active`, `inactive`, or `expired`. */ status: components["schemas"]["IntegrationStatus"]; /** @description True when the stored credential cannot be decrypted by the running platform. The connection still exists and its `status` is unchanged, but nothing that needs the credential will work until an admin reconnects the integration. Absent or `false` in the normal case. */ credentials_unreadable?: boolean; /** @description Who this connection belongs to, and the only axis that decides who may use it. Absent means org-shared. */ controller: components["schemas"]["ConnectionController"]; /** @description The provider's account model, repeated here so a client can render a connection without also fetching the catalog. */ account_model?: components["schemas"]["IntegrationAccountModel"]; /** @description User ID of the org member who created this integration. */ created_by?: string; tags?: components["schemas"]["TagMap"]; /** * Format: date-time * @description Timestamp when this integration was created. */ created_at: string; /** * Format: date-time * @description Timestamp when this integration was last updated. */ updated_at: string; }; /** @description Unified integration-framework connect response. Redirect-style providers return `kind=redirect` plus `redirect_url`; inline API-key and service-credential providers return `kind=complete` plus the persisted integration row. */ IntegrationConnectResponse: { /** @enum {string} */ kind: "redirect" | "complete"; /** @description OAuth or install URL to visit when `kind=redirect`. */ redirect_url?: string; integration?: components["schemas"]["Integration"]; }; /** * @description What one connection to a provider represents. * * `personal` — one human's own account, and acting through it acts as that person (Gmail, Google Calendar, X). `workspace` — a shared external workspace the whole org acts within (Slack, Jira, GitHub). `capability` — a keyed service with no account identity behind it (Firecrawl, a model provider, a database). * * It decides the default owner of a new connection and whether the connection is offered to an agent by default. * @enum {string} */ IntegrationAccountModel: "personal" | "workspace" | "capability"; /** @description Lifecycle and grant authority. Control does not authorize organization-provider content or agent execution. */ ConnectionController: { /** @enum {string} */ kind: "person" | "organization"; /** @description Human controller ID, present only for person control. */ principal_id?: string; /** @description Human controller display name, when available. */ display_name?: string; }; /** * @description Provider supported by built-in agent messaging: `slack`, `telegram`, `linear` (Linear agent sessions), or `microsoft_teams` (Microsoft Teams chats in one linked tenant). A binding's provider must equal its integration's provider. * @enum {string} */ AgentMessagingProvider: "slack" | "telegram" | "linear" | "microsoft_teams"; /** * @description Direct-message access policy: `open`, `allowlist`, or `disabled`. * @enum {string} */ AgentMessagingDMPolicy: "open" | "allowlist" | "disabled"; /** * @description Reply mode for built-in messaging; currently `auto`. * @enum {string} */ AgentMessagingReplyMode: "auto"; /** @description Messaging provider account that an agent can answer from. */ AgentMessagingBinding: { /** @description Messaging binding identifier. */ id: string; /** @description Agent this binding belongs to. */ agent_id: string; /** @description Messaging provider for this binding: `slack` or `telegram`. */ provider: components["schemas"]["AgentMessagingProvider"]; /** @description Connected integration account this binding applies to. */ integration_id: string; /** @description Whether the agent can currently answer on this account. */ enabled: boolean; /** @description Always true. Every answered message shows progress where the chat app can edit or stream a reply. Read-only; kept for older clients. */ show_progress_updates: boolean; /** @description Whether direct messages are accepted. */ dms: boolean; /** @description Whether channel/group mentions activate the agent. */ mentions: boolean; /** @description Whether every message in the allowed conversations activates the agent. */ all_messages: boolean; /** @description Optional provider conversation allowlist. Empty means any conversation on the integration. */ channels: string[]; /** @description Who may direct-message this agent: `open`, `allowlist`, or `disabled`. */ dm_policy: components["schemas"]["AgentMessagingDMPolicy"]; /** @description Optional provider sender allowlist. Empty means any sender. */ sender_allow: string[]; /** @description How the agent replies to inbound provider messages. */ reply_mode: components["schemas"]["AgentMessagingReplyMode"]; /** @description Optional model route override used for replies through this binding. */ model_route?: components["schemas"]["AgentModelRoute"]; /** @description Optional compaction policy applied to sessions created from this binding. Unset inherits the agent default. */ compaction_policy?: components["schemas"]["SessionCompactionPolicy"]; /** * Format: date-time * @description Time the binding was created. */ created_at: string; /** * Format: date-time * @description Time the binding was last updated. */ updated_at: string; }; AgentMessagingBindingListResponse: { /** @description Messaging bindings configured for this agent. */ items: components["schemas"]["AgentMessagingBinding"][]; }; BillingUsageEvent: { id: string; api_key_id: string; /** Format: date-time */ period_start: string; counter: string; /** Format: int64 */ raw_quantity: number; /** * Format: double * @description Credits charged for this event (up to 3 decimal places). */ credit_cost: number; /** * Format: int64 * @description Exact credits charged in milli-credits; authoritative for accounting. */ credit_cost_milli: number; credit_weight_version: number; zero_credits: boolean; source_type: string; source_id: string; idempotency_key: string; /** @description Job the usage was attributed to. Empty string when the event has no job attribution. */ job_id: string; /** @description Agent turn the usage was attributed to. Empty string when the event has no agent-turn attribution. */ agent_turn_id: string; /** @description Model provider that produced the usage. Empty string when not applicable. */ provider: string; /** @description Model that produced the usage. Empty string when not applicable. */ model: string; /** @description Model class that produced the usage. Empty string when not applicable. */ model_class: string; /** @description Organization model provider credit key that paid for this model call. Absent when the call ran on the connected key, Mobius credits, or anything else. */ org_llm_key_id?: string; /** @description Label of the credit key in `org_llm_key_id`, as it is now (or as last recorded if the key was deleted). Absent with `org_llm_key_id`. */ org_llm_key_label?: string; metadata: { [key: string]: unknown; }; /** Format: date-time */ occurred_at: string; /** Format: date-time */ recorded_at: string; /** Format: date-time */ created_at: string; }; BillingUsageEventListResponse: { items: components["schemas"]["BillingUsageEvent"][]; /** @description Whether additional pages are available. */ has_more: boolean; /** @description Opaque cursor to pass as `cursor` on the next request with the same ordering mode. Absent when `has_more` is false. */ next_cursor?: string; /** * Format: int64 * @description Total raw quantity for the complete filtered result set before cursor pagination; not a page-local sum. */ total_raw_quantity: number; /** * Format: double * @description Rounded credit total for the complete filtered result set before cursor pagination; not a page-local sum. */ total_credit_cost: number; /** * Format: int64 * @description Exact milli-credit total for the complete filtered result set before cursor pagination; not a page-local sum. */ total_credit_cost_milli: number; }; PermissionDefinition: { /** @description Stable permission ID stored on roles. */ id: string; /** @description Human-readable label for product UI. */ label: string; /** @description Short explanation of what the permission grants. */ description: string; /** @enum {string} */ scope: "org" | "platform" | "action"; /** @enum {string} */ category: "resource" | "org" | "job" | "billing" | "platform"; /** @enum {string} */ risk: "low" | "medium" | "high" | "critical"; /** @description Whether this permission should be selectable in the current org role builder. */ assignable: boolean; /** @description User kinds this permission is intended for. */ user_kinds: ("human" | "agent" | "service" | "system")[]; }; PermissionPreset: { id: string; label: string; description: string; /** @enum {string} */ scope: "org" | "platform" | "action"; permissions: string[]; }; ActionPermissionGroup: { /** @description Wildcard permission ID, for example `actions.execute.slack.*`. */ id: string; label: string; /** @enum {string} */ source: "platform" | "integration" | "custom"; /** @description Concrete action execution permission IDs included in this group. */ children: string[]; }; PermissionCatalogResponse: { items: components["schemas"]["PermissionDefinition"][]; presets: components["schemas"]["PermissionPreset"][]; action_groups: components["schemas"]["ActionPermissionGroup"][]; }; /** @description Named bundle of permissions assignable to human or machine principals. Roles let admins grant agent, org, and integration capabilities consistently without editing every user individually. */ Role: { /** @description Unique identifier for this role. */ id: string; /** @description Human-readable role name, unique within org scope. */ name: string; /** @description Optional human-readable description of what this role grants. */ description?: string; /** @description Permission strings granted by this role. Source allowed values from `GET /v1/permissions`; legacy IDs or values not present in that catalog are rejected. */ permissions: string[]; /** @description True for built-in platform roles that cannot be modified or deleted. */ system_defined: boolean; tags?: components["schemas"]["TagMap"]; /** * Format: date-time * @description Timestamp when this role was created. */ created_at: string; /** * Format: date-time * @description Timestamp when this role was last updated. */ updated_at: string; }; /** @description Binding between a principal and a role in one org. Use assignments to explain why a principal (human or machine) has access and to audit who granted it. */ RoleAssignment: { /** @description Unique identifier for this role assignment. */ id: string; /** @description Principal ID receiving the role. */ principal_id: string; /** @description ID of the assigned role. */ role_id: string; /** @description Name of the assigned role. */ role_name: string; /** @description Principal ID of the caller who created this assignment. */ granted_by?: string; /** * Format: date-time * @description Timestamp when this assignment was created. */ created_at: string; }; RoleListResponse: { /** @description The list of results for this page. */ items: components["schemas"]["Role"][]; /** @description Opaque cursor to pass as `cursor` on the next request. Absent when `has_more` is false. */ next_cursor?: string; /** @description Whether additional pages are available. */ has_more: boolean; }; RoleAssignmentListResponse: { /** @description The list of results for this page. */ items: components["schemas"]["RoleAssignment"][]; }; CreateRoleRequest: { /** @description Unique name within the org. */ name: string; /** @description Optional human-readable description of what this role grants. */ description?: string; /** @description Permission strings to include. Source allowed values from `GET /v1/permissions`; legacy IDs or values not present in that catalog are rejected. */ permissions: string[]; tags?: components["schemas"]["TagMap"]; }; UpdateRoleRequest: { /** @description Replacement description. */ description?: string; /** @description Replaces the existing permissions array entirely. Source allowed values from `GET /v1/permissions`; legacy IDs or values not present in that catalog are rejected. */ permissions?: string[]; tags?: components["schemas"]["TagMap"]; }; CreateRoleAssignmentRequest: { /** @description Principal ID to assign the role to (human or machine). */ principal_id: string; /** @description Mutually exclusive with `role_name`. */ role_id?: string; /** @description Resolved to a role ID server-side. Mutually exclusive with `role_id`. */ role_name?: string; } & (unknown | unknown); OrgDeletionRequest: { confirmation_name: string; }; OrgDeletion: { org_id: string; /** @enum {string} */ status: "pending_purge" | "purging" | "completed" | "cancelled" | "failed"; /** Format: date-time */ purge_after: string; /** Format: date-time */ requested_at: string; /** Format: date-time */ completed_at?: string | null; /** Format: date-time */ cancelled_at?: string | null; /** @description Stable step code when status is failed; omitted otherwise. */ failure_reason?: string; }; /** @description The organization's allowlist of exact HTTPS origins an embedded partner may name as an OAuth connect `return_url`. Origins are stored normalized (lowercase host, default ports stripped). An empty list disables embedded return for the organization. Embedded return is currently disabled for every organization, so the list has no effect. */ OAuthReturnOrigins: { /** @description Normalized exact HTTPS return origins (for example `https://app.partner.example`). */ origins: string[]; }; /** @description Full-replace body for the organization's OAuth return-origin allowlist. Each entry must be an exact HTTPS origin; entries are normalized and de-duplicated. At most 20 origins are accepted. */ PutOAuthReturnOriginsRequest: { /** @description Exact HTTPS return origins to allow. An empty array disables embedded return. */ origins: string[]; }; /** @description The organization's shared context: background on the business that every agent in the organization carries in its system prompt. It belongs to the organization rather than to any one agent or person — administrators write it, every member can read it, and every agent receives it on every turn. */ OrgContext: { /** @description The context as stored, in Markdown. Empty when the organization has not written one. */ content: string; /** @description The largest content the server accepts, in bytes of UTF-8. The content rides in every agent turn, so the cap is a per-turn budget rather than a storage limit. */ max_bytes: number; /** * Format: date-time * @description When the content last changed. Absent until it is first written. */ updated_at?: string; }; /** @description Full-replace body for the organization context. An empty string clears it. */ PutOrgContextRequest: { /** @description The new context, in Markdown. At most 16384 bytes of UTF-8. */ content: string; }; AgentCopyLeftOut: { /** @enum {string} */ kind: "skill" | "connection" | "file"; id: string; /** @description Empty for a file. */ name: string; /** * @description `audience`: the skill is private to fewer people than the copy is for, and its custodian can share it; or the file belongs to a chat and stays in it. `needs_admin`: only an Admin grants a company account. `failed`: the copy or grant failed. * @enum {string} */ reason: "audience" | "needs_admin" | "failed"; }; /** * @description Declarative UI/input primitive for collecting the response. This is a portable rendering contract, not executable code. Values are `confirm`, `select`, `multi_select`, and `input`. * @enum {string} */ InteractionMode: "confirm" | "select" | "multi_select" | "input"; /** @description Selectable option for `select` and `multi_select` modes. */ InteractionOption: { /** @description Machine-readable value submitted when this option is chosen. */ value: string; /** @description Human-readable label displayed for this option. */ label: string; /** @description Optional additional context shown beneath the label. */ description?: string; }; /** * @description One question inside an interaction's form. Answers are addressed by `id`, so the id is a stable machine key the responder never sees. * * Write each prompt as one direct question. Selection limits, click-order instructions, and preference-ranking instructions belong in the structured fields, not in the prompt text — the interface owns its own input instructions. */ InteractionQuestion: { /** @description Stable machine key this question's answer is addressed by. */ id: string; /** @description One direct user-facing question. */ prompt: string; /** @description Optional brief context that helps the responder decide. Do not repeat input mechanics the interface already shows. */ description?: string; /** @description Whether an answer must be supplied before the form can be submitted. Defaults to true. Use false only for helpful context the responder may skip without blocking the work. */ required?: boolean; /** @description UI/input mode used to render and validate this answer. */ mode: components["schemas"]["InteractionMode"]; /** @description Required for `select` and `multi_select` modes. */ options?: components["schemas"]["InteractionOption"][]; /** @description For `select` and `multi_select`, offer a free-text escape hatch alongside the listed options. */ allow_other?: boolean; /** @description For `multi_select`: fewest choices accepted. Defaults to 1. */ min_selections?: number; /** @description For `multi_select`: most choices accepted. Defaults to every available choice. */ max_selections?: number; /** @description For `input`: render a multi-line text area. */ multiline?: boolean; /** @description For `input`: example input. Do not use placeholder copy to communicate whether the question is required. */ placeholder?: string; /** @description For `input`: longest accepted answer. Defaults to 500 for single-line and 4000 for multiline. */ max_length?: number; /** @description For `select`: initially selected option value. */ default_value?: string; /** @description For `multi_select`: initially selected option values. */ default_values?: string[]; /** @description For `input`: initial text value. */ default_text?: string; /** @description For `confirm`: initial yes/no value. */ default_confirmed?: boolean; }; /** * @description The set of questions one responder answers atomically. Group related questions into a single interaction rather than opening several: each interaction is a separate item in someone's inbox and a separate interruption. * * Protocol kind is decoupled from input shape: each kind declares which question modes are *allowed*, not which is *implied*. * * Allowed combinations: * * `request_approval` → `confirm`, `select`, and **exactly one * question** — single-question is what makes an approval auditable * * `request_review` → `select`, `input` * * `request_information` → `select`, `multi_select`, `input` * * `assign_work` → `select`, `multi_select`, `input` */ InteractionSpec: { /** @description The questions this interaction asks. */ questions: components["schemas"]["InteractionQuestion"][]; }; /** * @description One responder's answer to one question. Exactly one content field is populated, chosen by the question's mode: * * * `confirm` → `value`, either `approved` or `rejected` * * `select` → `value` (an option value) or `other` * * `multi_select` → `values`, optionally with `other` * * `input` → `text` */ InteractionAnswer: { /** @description The `id` of the question being answered. */ question_id: string; /** @description For `input`: the free-text answer. */ text?: string; /** @description For `select` and `confirm`: the chosen value. */ value?: string; /** @description For `multi_select`: the chosen option values. */ values?: string[]; /** @description Free-text answer supplied instead of, or alongside, the listed options. Only accepted when the question sets `allow_other`. */ other?: string; }; /** * @description Protocol kind of the interaction: * * `request_information` — a data-collection protocol with structured * or free-form input * * `request_approval` — a decision protocol (yes/no, optionally * yes/no/defer) * * `request_review` — a judgment protocol that evaluates supplied * material * * `assign_work` — assigned work performed by a user or agent, which * submits the result. Pair it with `resolution_policy.review` when the * result must be accepted before the interaction resolves. * * The first three are *answered*; `assign_work` is *worked*. Kind does not by itself decide when an interaction closes — the resolution policy does. * @enum {string} */ InteractionKind: "request_information" | "request_approval" | "request_review" | "assign_work"; /** * @description Lifecycle state of the interaction. * * `pending` — open; the assigned users still need to act. * * `in_review` — a result was submitted and an acceptance reviewer must * accept it or send it back. Only interactions whose resolution policy * carries a `review` block enter this state. * * `completed` — resolved; the outcome is final. * * `expired` — the deadline passed before resolution. * * `cancelled` — deliberately stopped. * * `pending` and `in_review` are the *open* states: some actor still owes an action and any waiting consumer has not been resumed. * @enum {string} */ InteractionStatus: "pending" | "in_review" | "completed" | "expired" | "cancelled"; /** @description Free-form JSON payload. Used both for responder-supplied values and for policy-derived values (e.g. `Interaction.outcome`, `ResolutionPolicy.proposal`); each consumer documents which. */ InteractionValue: ({ [key: string]: unknown; } | null) | unknown[] | string | number | boolean; /** @description Identifies the principal who answered an interaction. Agents answer through their agent principal ID. */ InteractionResponder: { /** @description Responder user ID. */ user_id: string; }; /** @description Pointer to the work item, artifact, external ticket, or Mobius entity this interaction is about. */ InteractionReference: { /** @enum {string} */ kind: "external_url" | "mobius_entity"; /** * Format: uri * @description Required when kind is `external_url`. */ url?: string; /** @description Required when kind is `mobius_entity`. */ entity_type?: string; /** @description Required when kind is `mobius_entity`. */ entity_id?: string; /** @description Relationship such as `subject`, `evidence`, or `related`. */ relation?: string; /** @description User-facing label for display. */ label?: string; }; /** @description Optional per-interaction delivery override. When absent, each participant is notified via the app inbox only. */ Delivery: { channels: components["schemas"]["DeliveryChannel"][]; }; /** @description A single delivery destination. `inbox_only` carries no payload; `email` requires the `email` variant. */ DeliveryChannel: { /** @enum {string} */ kind: "inbox_only" | "email"; /** @description Email delivery payload when `kind=email`; null for inbox-only delivery. */ email?: components["schemas"]["EmailDelivery"] | null; }; EmailDelivery: { to: string[]; }; /** @description Polymorphic identifier of what is waiting on this interaction's resolution. `http_subscriber` requires `secret_ref` and enqueues a durable callback dispatch to `callback_url` when the interaction resolves; the canonical string `v1.{delivery_id}.{unix_timestamp}.{raw_body}` is signed with HMAC-SHA256 against the resolved org signing key and the signed dispatch carries `X-Mobius-Signature`, `X-Mobius-Secret-Version` and `X-Mobius-Timestamp`. Signed dispatches also carry `X-Mobius-Signature-Version: v1`. Every durable dispatch also carries the stable outbox row id in `X-Mobius-Delivery-Id` and `Idempotency-Key`; retries reuse the same value. Verifiers should recompute the signature over the exact raw body, reject stale timestamps (for example, older than five minutes), deduplicate by delivery id, and check the signing headers. */ Consumer: { /** @enum {string} */ kind: "agent_tool" | "http_subscriber" | "none" | "mcp_server_approval"; /** @description Agent tool continuation target when `kind=agent_tool`; null for other consumer kinds. */ agent_tool?: components["schemas"]["AgentToolConsumer"] | null; /** @description HTTP callback target when `kind=http_subscriber`; null for other consumer kinds. */ http_subscriber?: components["schemas"]["HttpSubscriberConsumer"] | null; }; /** @description A conversation the caller can open, named for display. */ InteractionSourceConversation: { session_id: string; /** @description The conversation's title; empty when it has none yet. */ title: string; /** @description The assistant the conversation is with. */ agent_id?: string; }; AgentToolConsumer: { invocation_id: string; tool_call_id: string; /** @description Session whose turn raised this interaction, when session-scoped. */ session_id?: string; /** @description True when Mobius opened this approval for tool calls it held because the assistant's approval mode asks before them, rather than a question the assistant asked. Its outcome resumes the held calls. */ readonly held_call?: boolean; }; HeldCallApproval: { assistant_name?: string; account?: string; /** @description True when the items a held delete would remove could not be read. The card still shows the call's arguments and can be approved. */ details_unavailable?: boolean; /** @description True when the card cannot show part of what the held calls would do, such as an attachment with no readable name. Values are never shortened for length. Such a card can only be declined. */ details_cut?: boolean; /** @description True when the held calls belong to a routine run. */ in_routine?: boolean; calls: components["schemas"]["HeldCallView"][]; }; HeldCallView: { tool_call_id: string; action: string; /** * @description What the tool does, from its declared marks. A tool whose marks come from a remote server counts as destructive unless it is marked read-only. * @enum {string} */ effect: "write" | "destructive"; label: string; /** @description The account the call runs on, from the resolved connection. */ account?: string; recipients?: string[]; subject?: string; /** @description What recipients will read, as text. For a message with an HTML part, the HTML part with its tags removed. */ body_text?: string; /** @description True when the message also has a plain text part that says something different. */ also_plain_text?: boolean; /** @description Names of the files the message carries. */ attachments?: string[]; /** @description Plain cautions about the call, such as an address that mixes alphabets. */ warnings?: string[]; items?: components["schemas"]["HeldItemView"][]; /** @description The call's other arguments, as plain text, sorted by name. Every argument the layout above does not show appears here. */ fields?: components["schemas"]["HeldField"][]; }; HeldField: { name: string; value: string; }; HeldItemView: { from?: string; subject?: string; }; HttpSubscriberConsumer: { /** * Format: uri * @description Absolute http(s) URL the server POSTs to when the interaction resolves. The body is a JSON object with the interaction id, kind, status, outcome value, comment, responder, and `resolved_by`. Delivery is enqueued as a `source_events` dispatch so the worker can retry failed attempts instead of dropping them inline with interaction resolution. */ callback_url: string; }; /** @description A caller may attach an HTTP subscriber or no consumer. Agent-tool consumers are runtime-only. */ ConsumerInput: { /** @enum {string} */ kind: "http_subscriber" | "none"; http_subscriber?: components["schemas"]["HttpSubscriberConsumerInput"]; }; HttpSubscriberConsumerInput: { /** * Format: uri * @description Absolute public http(s) callback URL. */ callback_url: string; /** @description HMAC signing secret stored in the interaction-owned vault and never returned. */ signing_secret: string; }; /** @description One persisted answer artifact for an interaction. The response that triggered resolution is referenced from `Interaction.resolving_response_id`. */ InteractionResponse: { /** @description Unique identifier for this response. */ id: string; /** @description ID of the interaction this response belongs to. */ interaction_id: string; /** * @description Answer response. * @enum {string} */ response_kind: "response"; /** * @description Lifecycle state for this response row. * @enum {string} */ state: "submitted"; /** @description User ID that submitted this response. */ responder_user_id: string; /** @description This participant's complete answer set, one entry per question they answered. */ answers: components["schemas"]["InteractionAnswer"][]; /** @description Optional free-text comment from this responder. */ comment?: string | null; /** * Format: date-time * @description Timestamp when this response was submitted. */ responded_at: string; /** @description Review round this response was submitted under, matching the interaction's `review_round` at submission time. Null or absent for the first round. Only responses whose `attempt` equals the interaction's current `review_round` count toward resolution; earlier rounds are retained as audit history. */ attempt?: number | null; /** Format: date-time */ created_at: string; /** Format: date-time */ updated_at: string; }; /** * @description Optional acceptance gate on a resolution policy. Its presence — not the interaction's kind — is what makes an interaction reviewable, so the gate stays opt-in and ordinary approvals and input requests are unaffected. * * With a review block, satisfying the resolution rule moves the interaction to `in_review` instead of resolving it, and any waiting consumer stays suspended. A reviewer then calls the review endpoint to accept (resolve and resume) or request changes (return to `pending` under a new review round, consumer still waiting). */ ReviewPolicy: { /** @description Principals who may accept or send back submitted work. When omitted or empty, the interaction's creator is the reviewer. Assignees are never implied reviewers — self-acceptance would make the gate decorative. Required when the interaction has no creator. */ reviewer_user_ids?: string[]; }; /** @description Declarative resolution rule attached to an Interaction. Determines how participant responses become a final outcome, and whether that outcome needs acceptance before it is final. */ ResolutionPolicy: { /** * @description Resolution rule. `any_of` resolves on the first acceptable response. `all_of` waits for every assigned participant. `quorum` resolves once `threshold` distinct participants respond. * @enum {string} */ type: "any_of" | "all_of" | "quorum"; /** @description Required when `type` is `quorum`. Number of distinct eligible participants that must respond before the interaction resolves. Must be `>= 1` and `<=` the participant count. */ threshold?: number; /** @description Optional acceptance gate. Null (the default) means responses resolve the interaction directly. */ review?: components["schemas"]["ReviewPolicy"] | null; }; /** @description One entry in an interaction's status history. Entries are append-only and written in the same transaction as the transition they describe, so the timeline can never disagree with the interaction's `status`. */ InteractionLifecycleEvent: { /** * Format: date-time * @description When the transition happened. */ at: string; /** @description The interaction's status *after* the transition. */ status: components["schemas"]["InteractionStatus"]; /** * @description What happened. * @enum {string} */ action: "created" | "submitted_for_review" | "accepted" | "changes_requested" | "resolved" | "cancelled" | "expired"; /** @description Principal that caused the transition. Null for system-driven transitions such as expiry. */ actor_id?: string | null; /** @description Reviewer feedback, cancel reason, or responder comment, depending on `action`. */ comment?: string | null; /** @description Review round the transition belongs to. Zero for the first pass. */ round?: number | null; }; /** @description Human or agent interaction request and its current response state. */ Interaction: { /** @description Unique identifier for this interaction. */ id: string; /** @description Canonical principal ID of the human or agent that created the interaction; null for legacy/system-created rows. */ created_by?: string | null; /** @description Canonical principal ID of the person the asking assistant's turn ran for; null when the interaction was not raised by an assistant on a person's behalf. */ on_behalf_of?: string | null; /** @description Interactions are team-governed; their explicit targets are the audience boundary. */ owner: components["schemas"]["ResourceOwner"]; visibility: components["schemas"]["ResourceVisibility"]; container?: components["schemas"]["ResourceContainer"]; posture: components["schemas"]["ResourcePosture"]; /** @description What the caller may do to this interaction. `can_edit` means the caller may cancel (dismiss) it and `can_delete` that they may delete it once it is closed: whoever asked, the person the asking turn ran for, a recipient, a reviewer, or an administrator. Present on responses to a person's request. */ controls?: components["schemas"]["ResourceControls"]; /** @description Protocol kind of the interaction. */ kind: components["schemas"]["InteractionKind"]; /** @description Current lifecycle state of the interaction. */ status: components["schemas"]["InteractionStatus"]; /** @description Short non-empty title shown to the responder. */ title: string; /** @description Optional longer responder-facing detail or instructions. */ description?: string | null; /** @description Present only when the caller is a person this interaction asks who cannot use its source conversation. The name of the person the asking assistant works for. Such a caller gets only id, kind, status, title, description, spec, target_user_ids, expires_at, created_at, updated_at, asker_name, reply_audience, and their own responses and lifecycle events. */ asker_name?: string; /** @description Present with asker_name. Who will read the reply, such as "Dan" or "Dan and 3 others". */ reply_audience?: string; /** @description Primary work item or artifact the interaction is about; null when no subject was supplied. */ subject?: components["schemas"]["InteractionReference"] | null; /** @description Supporting links and related entities. */ references?: components["schemas"]["InteractionReference"][]; /** @description Additional key-value context surfaced in the UI alongside the title and description when supplied. */ context?: { [key: string]: unknown; } | null; tags?: components["schemas"]["TagMap"]; /** @description Free-form structured metadata attached to the interaction; null when no metadata is attached. */ properties?: { [key: string]: unknown; } | null; /** @description Response controls and validation rules rendered to the recipient. */ spec?: components["schemas"]["InteractionSpec"]; /** @description Resolved user IDs targeted by the interaction. */ target_user_ids: string[]; /** @description User or agent that completed the interaction; null until completion. */ responder?: components["schemas"]["InteractionResponder"] | null; /** @description ID of the response that triggered resolution. Null while the interaction is pending, cancelled, or expired. Look up the response in `responses` for the full payload. */ resolving_response_id?: string | null; /** @description All response artifacts recorded against this interaction in arrival order. */ responses?: components["schemas"]["InteractionResponse"][]; /** * Format: date-time * @description Timestamp when this interaction expires if not responded to. */ expires_at?: string | null; /** * Format: date-time * @description Timestamp when the interaction received a terminal response. */ completed_at?: string | null; /** * Format: date-time * @description Timestamp when this interaction was created. */ created_at: string; /** * Format: date-time * @description Timestamp when this interaction was last updated. */ updated_at: string; /** @description When true, all target users must respond before completion. */ require_all?: boolean; /** @description Declarative resolution rule attached at creation time. Legacy `require_all` inputs are synthesized into an equivalent policy at create time when present. Newer rows typically include this field; nullability covers historical rows and callers that omit it. */ resolution_policy?: components["schemas"]["ResolutionPolicy"] | null; /** @description Polymorphic identifier of what is waiting on this interaction's resolution. */ consumer?: components["schemas"]["Consumer"] | null; /** @description What an approval for held tool calls covers, built from the exact arguments the approved calls run with. Present only when `consumer.agent_tool.held_call` is true. Every field is plain text. */ readonly held_calls?: components["schemas"]["HeldCallApproval"] | null; /** @description The conversation whose assistant asked this question. A caller who can read that conversation gets it on get and list reads whenever an assistant asked from one. Null for questions no conversation asked. Omitted for a person this interaction asks who cannot use the conversation (see asker_name). */ source_conversation?: components["schemas"]["InteractionSourceConversation"] | null; /** @description Optional per-interaction delivery override. When absent, the dispatcher delivers to the app inbox only. */ delivery?: components["schemas"]["Delivery"] | null; /** * @description Final outcome selected by the resolution policy. Omitted while the interaction is still pending. * * Its shape follows the policy: a first-response policy records the resolving responder's answer array, while `all_of` and `quorum` record the list of response objects so each participant's answers stay attributable. */ outcome?: components["schemas"]["InteractionValue"]; /** @description Short audit string identifying which policy rule fired. Null until the interaction reaches a resolved state. */ resolved_by?: string | null; /** @description Reason recorded when the interaction was cancelled. */ cancel_reason?: string | null; /** @description Number of completed send-backs. Zero on the first pass. Responses record the round they answered in their `attempt` field, and only the current round's responses count toward resolution. */ review_round?: number | null; /** * Format: date-time * @description When the interaction most recently entered `in_review`. Null for interactions that have never been submitted for acceptance. */ submitted_at?: string | null; /** @description The reviewer's most recent send-back note. Survives the return to `pending` so the assignee can see why the work came back. */ review_feedback?: string | null; /** @description Principal whose accept or send-back was recorded last; null until a review decision is made. Distinct from `responder`, which names whoever submitted the work. */ reviewer?: components["schemas"]["InteractionResponder"] | null; /** @description Append-only status history, oldest first. Rendered as the detail view's timeline. */ lifecycle?: components["schemas"]["InteractionLifecycleEvent"][]; }; InteractionListResponse: { /** @description The list of results for this page. */ items: components["schemas"]["Interaction"][]; /** @description Whether additional pages are available. */ has_more?: boolean; /** @description Opaque cursor to pass as `cursor` on the next request. Absent when `has_more` is false. */ next_cursor?: string; }; /** @description Creates an interaction. `consumer` names what is waiting on its resolution; when omitted, completion records the response and nothing else acts on it. */ CreateInteractionRequest: { /** @description Resolved user IDs to target directly. At least one target is required — every interaction needs someone who can answer it, even when a machine consumer is waiting on the outcome. Agents use their agent principal IDs. */ target_user_ids: string[]; /** @description Protocol kind. */ kind: components["schemas"]["InteractionKind"]; /** @description Short non-empty title shown to the responder. */ title: string; /** @description Optional longer responder-facing detail or instructions. */ description?: string; /** @description Primary work item or artifact the interaction is about. */ subject?: components["schemas"]["InteractionReference"]; /** @description Supporting links and related entities. */ references?: components["schemas"]["InteractionReference"][]; /** @description Additional key-value context surfaced in the UI alongside the title and description. */ context?: { [key: string]: unknown; }; tags?: components["schemas"]["TagMap"]; /** @description Free-form structured metadata to attach to the interaction. */ properties?: { [key: string]: unknown; }; /** @description Response controls and validation rules rendered to the recipient. */ spec?: components["schemas"]["InteractionSpec"]; /** @description When true, all target users must respond before the interaction is considered complete. Defaults to false when omitted. Mutually exclusive with `resolution_policy`; prefer the policy form for new code. */ require_all?: boolean; /** @description Declarative resolution rule. When supplied the policy evaluator drives completion. */ resolution_policy?: components["schemas"]["ResolutionPolicy"]; /** @description Caller-provided continuation target, if any. The agent runtime creates agent-tool continuations internally. */ consumer?: components["schemas"]["ConsumerInput"]; /** @description Optional per-interaction delivery override. */ delivery?: components["schemas"]["Delivery"]; /** * Format: date-time * @description Timestamp after which this interaction expires if not responded to. */ expires_at?: string; }; RespondToInteractionRequest: { /** * @description Operation to perform through the canonical response endpoint. `submit` answers the interaction. * @enum {string} */ action?: "submit"; /** @description The responder's complete answer set. Required for `submit`. Every required question must be answered; there is no partial submit. */ answers: components["schemas"]["InteractionAnswer"][]; /** @description Optional free-text comment accompanying the action. Available on every interaction kind and never gated by the spec; the responder may always attach reasoning, caveats, or follow-up notes alongside their answers. It is one note per response, not per question. */ comment?: string; /** @description Send true only from a view that shows the full details of the held tool calls. An approval Mobius opened for held tool calls refuses every answer without it. */ held_card_seen?: boolean; }; /** @description Acceptance decision on submitted work. */ ReviewInteractionRequest: { /** * @description `accept` resolves the interaction and resumes any waiting consumer. `request_changes` returns it to `pending` for another round. * @enum {string} */ action: "accept" | "request_changes"; /** @description The reviewer's reasoning. Required for `request_changes` — work sent back without a reason gives the assignee nothing to act on. Optional for `accept`, where it is recorded as an acceptance note. */ comment?: string; }; /** @description Optional payload accompanying a cancel request. The reason is recorded on the interaction and forwarded in the cancellation signal so the waiting consumer can route to a fallback. */ CancelInteractionRequest: { /** @description Free-text reason recorded on the interaction. */ reason?: string; }; /** @description One person in a group or personal assistant. Being a member is access to the assistant, its chats readable by everyone who uses it, its files, and its shared memory, including what was there before they joined. */ AgentMember: { /** @description Whether this member manages the group assistant. */ manager: boolean; /** @description The human or agent principal in this agent's audience. */ principal_id: string; /** * @description Principal kind, so a picker can distinguish a person from a coordinator agent. * @enum {string} */ kind: "human" | "agent" | "service" | "system"; /** @description Human-readable name of the principal, when resolvable. */ display_name?: string; /** * Format: date-time * @description When this principal was added to the audience. */ added_at: string; /** @description Principal who granted this membership. */ added_by?: string; }; AgentMemberListResponse: { /** @description The current members. */ items?: components["schemas"]["AgentMember"][]; /** @description How many people are members. */ count: number; /** @description Whether the caller manages this assistant: an Admin, or a manager of a group assistant whose role can build. */ can_manage: boolean; }; UpdateAgentMemberRequest: { manager: boolean; }; CopyAgentRequest: { name: string; visibility: components["schemas"]["AgentVisibility"]; /** @description The people in a group (`restricted`) copy. The caller is added as its manager. */ members?: string[]; /** @description Files the assistant made, to copy into the new one's folder in Company files. */ file_ids?: string[]; }; AgentCopy: { agent: components["schemas"]["Agent"]; /** @description What did not come along, and why. */ left_out: components["schemas"]["AgentCopyLeftOut"][]; }; AddAgentMembersRequest: { /** @description Principals to add. Each must be a live principal in this org. Adding a principal who is already a member is a no-op. */ principal_ids: string[]; }; AgentAudienceResourceDisposition: { /** @enum {string} */ resource_type: "artifact" | "session" | "skill" | "table"; resource_id: string; /** @enum {string} */ action: "revoke" | "make_private" | "keep_and_widen"; }; PromoteAgentMemoryEntryRequest: { /** @description The private partition the entry is copied out of. Required: promotion always has an owner, and the shared layer is not a source. */ user_id: string; /** * @description Allow overwriting a shared entry that already holds this key. Without it a collision is a `409`, so a promotion never silently rewrites what the group already knows. * @default false */ replace?: boolean; }; /** @description Replacement automatic memory delivery policy. Send an empty object to clear the stored override and restore the bounded index default. Otherwise `mode` is required (`index`, `full`, or `off`) and `max_bytes` is optional. */ UpdateMemoryContextPolicy: { mode?: components["schemas"]["MemoryContextMode"]; /** @description UTF-8 byte budget. Omit or send `0` for the selected mode's default. Off mode ignores this field. */ max_bytes?: number; }; DeletedAgentListResponse: { /** @description The list of results for this page. */ items: components["schemas"]["DeletedAgent"][]; /** @description Whether more deleted agents remain after this page. */ has_more: boolean; /** @description Opaque cursor to pass as `cursor` on the next request. Absent when `has_more` is false. */ next_cursor?: string; /** @description How many deleted agents the organization has. */ total: number; }; /** @description A deleted agent, as the deleted list shows it. */ DeletedAgent: { /** @description The agent ID. Restore keeps it. */ id: string; /** @description The name the agent had when it was deleted. Empty when `details_hidden` is true. */ name: string; /** @description The agent's description. Empty when `details_hidden` is true. */ description: string; /** @description True when the caller could not reach this agent while it was live: someone else's personal agent, or a group agent they were not in. Its name, description, color, owner, deleter, and name availability are withheld, as the live agent list withholds them. */ details_hidden: boolean; /** @description The agent's avatar color key, if any. */ color?: string; visibility: components["schemas"]["AgentVisibility"]; /** @description The person who held a personal agent. Absent for team custody and when `details_hidden` is true. */ owner_id?: string; /** * Format: date-time * @description When the agent was deleted. */ deleted_at: string; deleted_by?: components["schemas"]["DeletedAgentActor"]; /** @description False when a live agent now uses this name, so restore needs a new `name`. Absent when `details_hidden` is true. */ name_available?: boolean; /** @description True for a personal agent whose owner is no longer in the organization, for example after offboarding. Restore refuses it with `agent_custodian_gone`. */ owner_left?: boolean; }; /** @description Who deleted the agent, from the audit log. Absent when the audit log has no record. */ DeletedAgentActor: { /** @description The person who deleted the agent. */ principal_id: string; /** @description Their display name. */ name: string; /** @description The provider organization they acted through, when they acted in a managed organization. */ via_parent_org_id?: string; }; /** @description Options for restoring a deleted agent. */ RestoreAgentRequest: { /** @description Restore under this name. Required when a live agent now uses the old name. */ name?: string; }; RestoredAgentResult: { /** @description The restored agent's ID. */ agent_id: string; /** @description True when the caller cannot reach the restored agent: someone else's personal agent, or a group agent they are not in. Then `agent` is absent and `not_restored` is empty; the agent's custodian or members see it as before. */ details_hidden: boolean; agent?: components["schemas"]["Agent"]; /** @description Each thing the agent had before its delete that did not come back. Empty when `details_hidden` is true. */ not_restored: components["schemas"]["NotRestoredItem"][]; }; /** @description One thing that did not come back with a restored agent, and why. */ NotRestoredItem: { /** * @description What kind of thing it is. A `routine` came back but stays paused. * @enum {string} */ kind: "connection" | "skill" | "member" | "credential" | "routine"; /** * @description For a `credential` item, whether it was an API key or a CLI token. * @enum {string} */ credential_kind?: "api_key" | "cli_token"; /** @description Its ID, when known. */ id?: string; /** @description Its display name. */ name: string; /** @description Why it did not come back, written for the person who restored the agent. */ reason: string; }; AgentMessagingBindingRequest: { /** @description Messaging provider for this binding: `slack` or `telegram`. */ provider: components["schemas"]["AgentMessagingProvider"]; /** @description ID of the connected integration that backs this binding. */ integration_id: string; /** * @description Whether the binding is active and the agent responds on this provider. * @default false */ enabled?: boolean; /** * @description When enabling this binding, disable any other active agent binding for the same provider account. * @default false */ replace_existing?: boolean; /** @description Ignored. Progress is no longer a per-binding choice; every answered message shows progress where the chat app can. */ show_progress_updates?: boolean; /** * @description Respond to direct messages. * @default true */ dms?: boolean; /** * @description Respond when the agent is @-mentioned. * @default true */ mentions?: boolean; /** * @description Respond to every message in bound channels, not just mentions. Must be false for microsoft_teams, where the agent answers in channels and group chats only when a person @mentions it. * @default false */ all_messages?: boolean; /** @description Channel and group IDs the binding is scoped to (empty means all). Direct messages ignore this list. */ channels?: string[]; /** @description Who may direct-message this agent: `open`, `allowlist`, or `disabled`. */ dm_policy?: components["schemas"]["AgentMessagingDMPolicy"]; /** @description Sender IDs allowed to trigger the agent (empty means no allowlist). An enabled `telegram` binding requires at least one numeric Telegram user ID and refuses `*`. */ sender_allow?: string[]; /** @description Reply behavior for provider messages; currently `auto`. */ reply_mode?: components["schemas"]["AgentMessagingReplyMode"]; /** @description Optional model route override used for replies through this binding. */ model_route?: components["schemas"]["AgentModelRoute"]; /** @description Optional compaction policy applied to sessions created from this binding. Unset inherits the agent default. */ compaction_policy?: components["schemas"]["SessionCompactionPolicy"]; }; /** @description Assignment linking a skill to an agent. */ SkillAssignment: { /** @description Agent the skill is assigned to. */ agent_id: string; /** @description Skill assigned to the agent. */ skill_id: string; /** @description Expanded skill metadata for this assignment. */ skill?: components["schemas"]["Skill"]; /** @description Whether the assignment is currently active. */ enabled: boolean; /** @description Ordering position of this assignment in the agent's skill list. */ position: number; /** * Format: date-time * @description Record creation timestamp. */ created_at: string; }; ReplaceSkillsRequest: { /** @description Full replace-set of skill IDs to assign to the agent, in desired order. */ skill_ids: string[]; }; SkillAssignmentListResponse: { /** @description Skill assignments for this agent, in position order. */ items: components["schemas"]["SkillAssignment"][]; }; /** @description Skill metadata included in a resolved agent tool manifest. Full instructions are loaded at runtime through the invoke_skill tool. */ SkillManifestEntry: { /** @description Skill ID this manifest entry resolved to. */ id: string; /** @description Display name of the skill. */ name: string; /** @description Markdown description of the skill's purpose. */ description?: string; /** @description Whether this skill is the one being simulated as invoked, i.e. it matched the `skill_name` parameter and its `allowed_actions` constraint was applied to this manifest. False for every assigned skill when `skill_name` is omitted. */ active: boolean; /** @description Action selectors the skill requires but that are not available to the agent. */ missing_required?: string[]; /** @description Action selectors the skill recommends but that are not available to the agent. */ missing_recommended?: string[]; }; /** @description Non-fatal warning produced while resolving an agent tool manifest. */ AgentManifestWarning: { /** @description Machine-readable warning code. */ code: string; /** @description Human-readable warning text. */ message: string; /** @description Skill the warning relates to, when applicable. */ skill_id?: string; /** @description Action selector the warning relates to, when applicable. */ tool?: string; /** @description Action name the warning relates to, when applicable. */ action?: string; }; /** @description Action group expanded during manifest resolution. */ ResolvedActionGroup: { /** @description Canonical group name (e.g. `mobius.table.read`). */ name: string; /** @description Action names the group expanded to during this resolution. */ members: string[]; }; /** @description The flat, resolved tool set visible to one agent. Replaces the prior Capability/Action split: every entry in `tools` is an action catalog entry the agent can invoke as its own named tool. */ AgentToolManifest: { /** @description Agent this manifest was resolved for. */ agent_id: string; /** @description Stable hash over the resolved tool + skill set; bumps when the agent's action selectors or skills change. */ policy_hash: string; /** @description Catalog entries the agent can invoke. Each entry surfaces to the LLM as its own named tool. Built-in, integration, and custom-HTTP actions are intermingled here. */ tools: components["schemas"]["ActionCatalogEntry"][]; /** @description Audit trail of group selectors that contributed to the resolved tool set. Operators see groups; the LLM only sees the flat `tools` list. */ groups_resolved?: components["schemas"]["ResolvedActionGroup"][]; /** @description Skills assigned to this agent, as resolved for this manifest. See each entry's `active` property for which one's action constraint was applied. */ skills: components["schemas"]["SkillManifestEntry"][]; /** @description Non-fatal issues encountered while resolving the manifest. */ warnings: components["schemas"]["AgentManifestWarning"][]; }; /** * @example { * "name": "PR reviewer", * "description": "Reviews pull requests for risky changes.", * "color": "teal", * "model": "claude-sonnet-4-6", * "tool_presentation": "flat", * "tags": { * "owner": "product" * } * } */ CreateAgentRequest: { /** @description Unique name for this agent. Free-form human-readable label, 1-63 characters. */ name: string; /** @description Client-owned durable identity key. Unique within the org when present. Treat this as assign-once: create requests may set it; update requests may set it only while the agent has no existing external_ref, or repeat the current value idempotently. Required when `if_exists` is `adopt`. */ external_ref?: string; if_exists?: components["schemas"]["IfExists"]; /** @description Optional human-readable description. */ description?: string; /** @description Display color for this agent (Mantine palette key, e.g. `indigo`). Optional; empty falls back to a hash-derived color. */ color?: string; /** @description Model identifier for agents. Any id from `GET /v1/catalog/models`, including slash-bearing OpenRouter catalog ids, or an optionally `provider/`-prefixed id (e.g. `xai/grok-4`); bare known ids (e.g. `claude-sonnet-4-6`) are auto-detected. Empty falls back to the platform default. */ model?: string; /** @description Default route for model calls made by this agent. */ model_route?: components["schemas"]["AgentModelRoute"]; /** @description Omit to use the create-time default, `flat`. */ tool_presentation?: components["schemas"]["AgentToolPresentation"]; /** @description The agent's action selection. Omit to select every Mobius action and every Firecrawl action. Send an empty list for an agent with no selected catalog actions. */ action_selectors?: components["schemas"]["ActionSelector"][]; /** @description Custom system prompt for agents. Empty uses the generated default. */ system_prompt?: string; /** * Format: int64 * @description Per-turn execution timeout in seconds for this agent. Omit or `0` to use the platform default (1800s / 30 minutes); a request's `operation.timeout_seconds` overrides it for that turn. */ timeout_seconds?: number; /** @description Default session-compaction policy new sessions inherit from this agent. */ compaction_policy?: components["schemas"]["SessionCompactionPolicy"]; /** * @description Hard gate for runtime memory. When false, memory tools and automatic memory context are absent. Defaults to true. * @default true */ memory_enabled?: boolean; /** @description Automatic memory delivery policy. Omit for the bounded index default. */ memory_context?: components["schemas"]["MemoryContextPolicy"]; /** @description Which tool calls wait for a person's approval. Omit for `destructive`. */ tool_approval_mode?: components["schemas"]["ToolApprovalMode"]; /** @description Default reasoning-effort level new sessions inherit from this agent. */ thinking_effort?: components["schemas"]["ThinkingEffort"]; /** * @deprecated * @description Ignored. An assistant chooses a folder for each file it saves. */ output_folder?: string | null; /** @description Initial labels used for filtering, ownership, or automation. */ tags?: components["schemas"]["TagMap"]; /** * @deprecated * @description Ignored. Custody follows from `visibility`: a `private` agent is in its one member's custody, a `restricted` or `organization` agent in the team's. */ owner?: components["schemas"]["ResourceOwner"]; /** @description Who this agent is for: its kind, which cannot change after create. Omit for `private` on the employee API. */ visibility?: components["schemas"]["AgentVisibility"]; /** * @description The audience for a `restricted` or `private` agent, written in the same transaction as the agent row. * * Creating a `private` agent makes the caller its member unless the caller is an org admin and names another principal. Creating a `restricted` agent takes a list; the caller is added unless they are an org admin and omit themselves. Ignored for `organization`, which carries no member rows. */ members?: string[]; }; /** @description Mutable agent fields. The agent's backing identity (`principal_id`, the machine principal created atomically with the agent) is intentionally absent: it is immutable. Reassigning identity is delete-and-recreate. */ UpdateAgentRequest: { /** * Format: date-time * @description The agent's `updated_at` as the caller last read it. When set, the update saves only if the agent is unchanged since then, compared to the microsecond; otherwise it returns 409 with code `agent_changed` and saves nothing. */ expected_updated_at?: string; /** @description Free-form human-readable label, 1-63 characters; must be unique within the org. */ name?: string; /** @description Assign-once client identity key, unique within the org. Accepted when the agent has no external_ref, or when it repeats the current value idempotently. Changing an already-set value returns 409. */ external_ref?: string; /** @description Replacement description. */ description?: string; /** @description Replacement display color (Mantine palette key, e.g. `indigo`). Pass empty string to clear and fall back to a hash-derived color. */ color?: string; /** @description Replacement model identifier for agents (any id from `GET /v1/catalog/models`, including slash-bearing OpenRouter catalog ids, or an optionally `provider/`-prefixed id). */ model?: string; /** @description Replacement default route for model calls made by this agent. */ model_route?: components["schemas"]["AgentModelRoute"]; /** @description Replacement tool presentation used by this agent's turns and channel replies. */ tool_presentation?: components["schemas"]["AgentToolPresentation"]; /** @description Replacement action selection, as a whole. Omit to leave the agent's current selection untouched; send an empty array to select none. */ action_selectors?: components["schemas"]["ActionSelector"][]; /** @description Replacement system prompt for agents. */ system_prompt?: string; /** * Format: int64 * @description Replacement per-turn execution timeout in seconds for this agent. `0` resets to the platform default (1800s / 30 minutes); a request's `operation.timeout_seconds` overrides it for that turn. */ timeout_seconds?: number; /** * @description Replacement agent status: `active` or `inactive`. Use DELETE to delete the agent. * @enum {string} */ status?: "active" | "inactive"; /** @description Replacement default session-compaction policy. Send an empty object to clear the default and fall back to server defaults. */ compaction_policy?: components["schemas"]["SessionCompactionPolicy"]; /** @description Replacement runtime memory hard gate. It cannot be overridden at invocation time. */ memory_enabled?: boolean; memory_context?: components["schemas"]["UpdateMemoryContextPolicy"]; /** @description Replacement approval mode. */ tool_approval_mode?: components["schemas"]["ToolApprovalMode"]; /** @description Replacement default reasoning-effort level. Send `inherit` to clear the default and leave the provider default in place. */ thinking_effort?: components["schemas"]["ThinkingEffort"]; /** * @deprecated * @description Ignored. An assistant chooses a folder for each file it saves. */ output_folder?: string | null; /** @description Replacement labels; send an empty object to clear all tags. */ tags?: components["schemas"]["TagMap"]; /** * @deprecated * @description The agent's kind is set when it is created. The current value is accepted and changes nothing; any other value returns `409`. */ visibility?: components["schemas"]["AgentVisibility"]; /** * @deprecated * @description Replacement members for a `restricted` or `private` agent: the exact set after this call. Omit to leave membership unchanged. An empty set is refused, and a `private` agent's one member is the person it belongs to. Use the members endpoints instead. */ members?: string[]; /** * @deprecated * @description Ignored. * @default false */ confirm_visibility_change?: boolean; /** * @deprecated * @description Ignored. */ affected_resource_dispositions?: components["schemas"]["AgentAudienceResourceDisposition"][]; /** * @deprecated * @description Ignored. * @enum {string} */ stranded_disposition?: "retain" | "delete"; }; /** * @description Classifies a memory entry. Kinds carry different retention and compaction semantics: facts and preferences are durable, episodes are the primary input to compaction, and a summary is the compacted product of other entries. * @enum {string} */ MemoryKind: "fact" | "preference" | "episode" | "summary"; /** * @description Memory search ranking mode. * @enum {string} */ MemorySearchMode: "keyword" | "semantic" | "hybrid"; MemorySearchCoverage: { /** @description Number of this agent's current entries with a ready semantic search projection, before any `kind` filter. */ indexed_entries: number; /** @description Number of this agent's current entries, before any `kind` filter. */ total_entries: number; /** @description Whether every current entry has a ready projection. When false, semantic and hybrid results rank only the indexed subset. */ complete: boolean; }; /** @description Summary across an agent's shared and user-private memory partitions: how many entries it holds, a breakdown by kind, and when it last changed. */ AgentMemory: { /** @description The agent that owns this memory. */ agent_id: string; /** @description Number of entries currently held. */ entry_count: number; /** @description Entry counts keyed by memory kind. */ counts_by_kind: { [key: string]: number; }; /** * Format: date-time * @description When any entry was last changed, when there are entries. */ updated_at?: string; }; /** @description A single durable memory in an agent's shared or user-private partition, identified by a stable key within that partition. */ AgentMemoryEntry: { /** @description Stable identifier the agent chose for this memory. */ key: string; /** @description User principal ID for private memory; empty for shared memory. */ user_id: string; kind: components["schemas"]["MemoryKind"]; /** @description Short one-line summary shown in the agent's memory index. */ summary?: string; /** @description The remembered content. */ content?: string; /** @description Structured metadata stored alongside the memory (provenance, tags, …). */ metadata?: { [key: string]: unknown; }; /** @description Rank from 0 to 100; higher ranks sooner in recall and is kept longer under the memory cap. */ importance: number; /** @description Whether the entry is guaranteed in the memory index and exempt from the memory cap. */ pinned: boolean; /** @description Identifier of this memory entry. */ entry_id: string; /** @description Monotonic version, incremented on each update. */ version: number; /** * Format: date-time * @description When the entry was first remembered. */ created_at: string; /** * Format: date-time * @description When the entry was last updated. */ updated_at: string; }; AgentMemoryEntryListResponse: { /** @description Memory entries in the current page. */ items: components["schemas"]["AgentMemoryEntry"][]; /** @description Whether more entries follow this page. */ has_more: boolean; /** @description Cursor to fetch the next page, when has_more is true. */ next_cursor?: string; /** @description Present for semantic and hybrid search. */ search_coverage?: components["schemas"]["MemorySearchCoverage"]; }; /** @enum {string} */ AgentMemoryChangeOperation: "created" | "updated" | "deleted"; /** * @description Why an entry changed. `remembered` is a run writing memory, `api` a direct write, `soft_cap` an eviction. `promoted` and `promotion_reverted` are the two halves of the explicit, attributed promotion act — the only path from a person's private partition into the agent's shared layer, and its undo. * @enum {string} */ AgentMemoryChangeReason: "remembered" | "api" | "soft_cap" | "promoted" | "promotion_reverted"; AgentMemoryChange: { id: string; agent_id: string; /** @description User principal ID for the changed private partition; empty for shared memory. */ user_id: string; memory_entry_id: string; memory_key: string; operation: components["schemas"]["AgentMemoryChangeOperation"]; /** @description Entry version at the time of this mutation, matching `AgentMemoryEntry.version`. */ version: number; reason: components["schemas"]["AgentMemoryChangeReason"]; actor_id?: string; /** Format: date-time */ created_at: string; }; AgentMemoryChangeListResponse: { items: components["schemas"]["AgentMemoryChange"][]; has_more: boolean; /** @description Feed position after this page. Always present, including when `items` is empty; pass it back as `after` on the next request. */ next_cursor: string; }; /** @description Content and partition for a memory entry. The key comes from the path. */ SaveAgentMemoryEntryRequest: { /** * @description User principal ID for private memory. It must identify a current human member of this organization. Omit or send empty for shared memory. * @default */ user_id?: string; /** @description The content to remember. */ content: string; /** @description Optional short one-line summary (≤140 chars) shown in the memory index. */ summary?: string; kind?: components["schemas"]["MemoryKind"]; /** @description Optional structured metadata to store alongside the memory. */ metadata?: { [key: string]: unknown; }; /** @description Optional importance from 0 to 100; higher is kept longer during compaction. */ importance?: number; /** @description Pin to exempt this memory from compaction. */ pinned?: boolean; }; /** * @description Reusable instruction bundle assignable to agents. * @example { * "id": "skill_7n4q8x2m9p5v3r6t", * "name": "Pull request review", * "description": "Review pull requests for correctness and risk.", * "source": "custom", * "instructions": "Check the diff and leave concise findings.", * "allowed_actions": [ * "github.create_review_comment" * ], * "tags": { * "owner": "product" * }, * "created_by": "user_2f9s3k4m5n6p7q8r", * "updated_by": "user_2f9s3k4m5n6p7q8r", * "created_at": "2026-06-15T14:30:00Z", * "updated_at": "2026-06-15T14:30:00Z" * } */ Skill: { /** @description Skill ID. */ id: string; /** @description Human-readable skill name. */ name: string; /** @description Markdown description of the skill's purpose. */ description?: string; /** * @description Ownership and mutability of the Skill. `system` is built-in and `custom` is user-managed. * @enum {string} */ source: "system" | "custom"; /** @description Markdown instructions loaded when the skill is active. */ instructions: string; owner: components["schemas"]["ResourceOwner"]; visibility: components["schemas"]["ResourceVisibility"]; container: components["schemas"]["ResourceContainer"]; posture: components["schemas"]["ResourcePosture"]; controls: components["schemas"]["ResourceControls"]; /** * @description Canonical action names, wildcard selectors, or group references naming the actions this skill needs. Uses the same selector vocabulary as agent action selections. * * The constraint takes effect when an agent invokes the skill and lasts for the rest of that turn. Assigning a skill narrows nothing on its own, and an empty list declares nothing and narrows nothing. Lists from skills invoked in the same turn compose as a union, then intersect with the agent's selected actions. No catalog action is exempt, and a skill can never widen an agent's selection. */ allowed_actions?: string[]; /** @description Action selectors that must match the agent's effective selected catalog set. A skill with any missing requirement is unavailable and cannot be invoked. */ required_actions?: string[]; /** @description Action selectors that improve this skill. Missing recommendations produce warnings only; they never select or present actions. */ recommended_actions?: string[]; /** @description Labels to apply to the skill. */ tags?: components["schemas"]["TagMap"]; /** @description ID of the principal who created this skill. */ created_by?: string; /** @description ID of the principal who last updated this skill. */ updated_by?: string; /** * Format: date-time * @description Record creation timestamp. */ created_at: string; /** * Format: date-time * @description Last update timestamp. */ updated_at: string; }; /** * @description Present when the overall agent-turn budget was exhausted. * @enum {string} */ AgentTurnErrorScope: "agent_turn"; /** * @description Provenance of a completed turn's structured `output`: `tool` when the agent submitted it through the reserved `mobius_submit_output` tool, or `text` when Mobius accepted a schema-valid final message as a fallback. * @enum {string} */ AgentTurnOutputSource: "tool" | "text"; /** @description One attempt of an agent working on the session — the unit that produces a transcript. A turn is triggered by a direct send to the session or an inbound channel message (channel_exchange_id). Its messages are read via the turn's transcript endpoint. */ AgentTurn: { /** @description Stable turn identifier. */ id: string; /** @description Agent that ran this turn. */ agent_id: string; /** @description Session this turn's transcript was appended to. */ session_id: string; /** @description Inbound channel exchange that triggered this turn. Absent for direct sends. */ channel_exchange_id?: string; /** @description True for scheduled work that yields admission priority to direct turns. */ deferrable?: boolean; /** @description Display-only routine name for a scheduled turn's live state. */ routine_name?: string; kind?: components["schemas"]["AgentTurnKind"]; /** @description True while this turn is summarizing older history before it runs. Meaningful only while the turn is `running`; a turn interrupted mid-compaction is requeued and starts the summary again. */ compacting?: boolean; /** @description 1-based attempt number; retries create new turns. */ attempt: number; /** @description Current lifecycle status of the agent turn. */ status: components["schemas"]["AgentTurnStatus"]; /** @description Per-session ordering hint (cosmetic; turns are ordered by creation time). */ seq?: number; /** @description Machine-readable failure category when the turn failed. */ error_type?: string; /** @description Human-readable failure detail when the turn failed. */ error_message?: string; error_scope?: components["schemas"]["AgentTurnErrorScope"]; /** @description The validated structured output. Present only on a `completed` turn that declared an output schema. Read this instead of parsing the transcript. */ output?: { [key: string]: unknown; }; /** @description Where `output` came from: a `mobius_submit_output` submission (`tool`) or the schema-valid final-text fallback (`text`). */ output_source?: components["schemas"]["AgentTurnOutputSource"]; /** @description Token usage recorded when the turn completed or failed. On a failed turn it covers the model calls that finished before the failure. Absent on turns that never reached the model, on turns that a cancel request or the reaper settled, and on a failed resumed turn whose suspended usage could not be read. */ usage?: components["schemas"]["AgentTurnUsage"]; /** * Format: int64 * @description Authoritative active-execution budget selected for the turn. */ effective_timeout_seconds?: number; /** * Format: int64 * @description Credits the turn has spent so far, in thousandths of a credit, by the turn's own meter. A failed or timed-out turn reports what it spent before it stopped. Absent when the turn spent nothing. */ credits_spent_milli?: number; /** * Format: date-time * @description Time the turn was created. */ created_at: string; /** * Format: date-time * @description Time the turn was last updated. */ updated_at: string; /** * Format: date-time * @description When the turn reached a terminal status. */ completed_at?: string; /** * Format: date-time * @description When the person pressed Stop. A running turn keeps running until its executor ends it, usually within a second; a cancelled turn with this set was stopped by the person, and what it wrote and did stays in the conversation. */ stop_requested_at?: string; /** * Format: date-time * @description When this turn was taken back from the transcript. The turn record is kept so its usage stays readable, but its messages no longer appear in the transcript or in the agent's context. Absent on a turn that is still part of the conversation. */ deleted_at?: string | null; }; /** * @description What the turn does. `agent` turns run the agent. A `compaction` turn, queued by a compact request, only summarizes older history; it runs in the session's turn order like any other turn and writes no messages of its own besides the summary. A `voice` turn is one spoken exchange in a voice call. * @enum {string} */ AgentTurnKind: "agent" | "compaction" | "voice"; /** * @description Aggregate token accounting for one terminal turn, summed over every LLM call the turn made, across every segment of a resumed turn. On the turn resource, a failed turn reports the calls that finished before it failed; `turn.failed` carries no usage. It is a usage report, not a bill — see the billing usage events for charged amounts. * @example { * "total_tokens": 22732, * "input_tokens": 1840, * "output_tokens": 412, * "cache_read_input_tokens": 20480, * "calls": 3 * } */ AgentTurnUsage: { /** @description Total processed tokens across the turn: fresh (uncached) input + cache read + cache creation + output. */ total_tokens?: number; /** @description Fresh (uncached) prompt tokens. Cache traffic is reported separately and is never folded in here. */ input_tokens?: number; /** @description Tokens the model generated, including reasoning tokens. */ output_tokens?: number; /** @description Prompt tokens served from the provider's prompt cache. Omitted when zero. */ cache_read_input_tokens?: number; /** @description Prompt tokens written into the provider's prompt cache. Omitted when zero. */ cache_creation_input_tokens?: number; /** @description Hidden reasoning tokens billed as output but absent from the visible reply. Omitted when zero or unreported by the provider. */ reasoning_tokens?: number; /** @description LLM calls folded into this turn's totals. Omitted when zero. */ calls?: number; } & { [key: string]: unknown; }; AgentTurnListResponse: { /** @description Turns in this session, ordered by creation time. */ items: components["schemas"]["AgentTurn"][]; /** @description True when more turns exist past this page. */ has_more?: boolean; /** @description Opaque cursor to pass as `cursor` on the next request. Null when `has_more` is false. */ next_cursor?: string | null; }; SessionListResponse: { /** @description The list of results for this page. */ items: components["schemas"]["Session"][]; /** @description True when more sessions exist past this page. */ has_more?: boolean; /** @description Opaque cursor for the next page — pass back as `cursor`. Null when `has_more` is false. */ next_cursor?: string | null; }; /** @description Mutable display and lifecycle fields for a session. */ UpdateSessionRequest: { /** @description Human-readable session title. */ title?: string; /** @description Lifecycle status. `active` restores archived sessions; `deleted` is terminal. */ status?: components["schemas"]["SessionStatus"]; /** @description Partial patch to the session's compaction policy. Only the supplied fields change; omitted fields keep their current values. */ compaction_policy?: components["schemas"]["SessionCompactionPolicy"]; /** @description Reasoning-effort override for this session. Send a level to override, or `inherit` to clear it and fall back to the agent default. Omit to leave the current value unchanged. */ thinking_effort?: components["schemas"]["ThinkingEffort"]; /** @description Model later turns in this session run on. The history is kept and each reply records the model that produced it. Send an empty string to go back to the agent's own model. Omit to leave it unchanged. Worker-routed agents return `400 invalid_argument` with `details.argument = model_override`. */ model_override?: string; }; SessionTranscriptMessage: { id: string; session_id: string; agent_id: string; turn_id?: string | null; role: components["schemas"]["SessionMessageRole"]; content: components["schemas"]["SessionContentBlock"][]; /** @description Known values include message and compaction; unknown values must be preserved. */ entry_type: string; /** @description Known values are streaming and final; unknown values must be preserved. */ status: string; turn_index: number | null; sequence: number | null; covers_through_sequence?: number | null; /** @description Free-form metadata for this message. A `compaction` entry carries the server-owned keys described on `SessionMessage.metadata`. A `helper_result` key marks untrusted helper output, as described there. */ metadata?: { [key: string]: unknown; }; /** @description Server-owned safe display projection when this message was triggered by an external event. */ event_projection?: components["schemas"]["SessionEventProjection"]; /** @description Who wrote this message, resolved server side from the authenticated sender. Present only on `user` messages written by a principal in this organization; routine inputs and event deliveries carry execution identity instead and remain unattributed. */ author?: components["schemas"]["SessionMessageAuthor"]; /** Format: date-time */ created_at: string; }; SessionTranscriptTurn: { id: string; agent_id: string; session_id: string; channel_exchange_id?: string; attempt: number; kind?: components["schemas"]["AgentTurnKind"]; /** @description Same as `compacting` on the turn resource. */ compacting?: boolean; /** @description Known AgentTurn status; unknown values must be preserved. */ status: string; seq?: number; error_type?: string; error_message?: string; /** @description Token usage recorded when the turn completed or failed. On a failed turn it covers the model calls that finished before the failure. Identical to the `usage` on the turn resource, and identical on the bootstrap and cursored reads of this snapshot. */ usage?: components["schemas"]["AgentTurnUsage"]; /** @description The validated structured output, delivered on the terminal `turn.upsert` frame. Present only on a `completed` turn that declared an output schema. */ output?: { [key: string]: unknown; }; /** @description Where `output` came from (`tool` or `text`). */ output_source?: components["schemas"]["AgentTurnOutputSource"]; wait?: components["schemas"]["SessionTranscriptWait"]; /** Format: date-time */ created_at: string; /** Format: date-time */ updated_at: string; /** Format: date-time */ completed_at?: string; /** * Format: date-time * @description When the person pressed Stop. Same as `stop_requested_at` on the turn resource. A reducer keeps the turn's streaming rows as they stood from then on; the stored rows that end the turn replace them. */ stop_requested_at?: string; /** * Format: date-time * @description Set when the turn has been taken back. A reducer that receives this drops the turn and every row belonging to it; the turn frame is the whole signal, since the removed message rows are never re-sent. */ deleted_at?: string | null; }; SessionTranscriptSnapshot: { messages: components["schemas"]["SessionTranscriptMessage"][]; turns: components["schemas"]["SessionTranscriptTurn"][]; /** @description Pending interactions raised by agent tool calls in this session. */ interactions: components["schemas"]["Interaction"][]; /** @description Whether next_page_token continues this fixed transcript cut. */ has_more: boolean; resume_cursor: string; /** @description Opaque continuation present when has_more is true. */ next_page_token?: string; /** @description The latest state of each background helper in a turn that has not ended, in the order they were made. Live only: never stored, and empty once the turn ends. */ helpers?: components["schemas"]["SessionHelper"][]; }; /** @description One step of a background helper, as the display catalog phrases it. Never the step's input, output, tool name, or the helper's own text. */ SessionHelperStep: { /** @description For example "Saving a row in support_hire_onboarding…". */ phrase: string; /** @enum {string} */ status: "running" | "done" | "failed"; }; /** @description A background helper as the person sees it while its turn runs. The server sends the whole state on every change, so a client shows the latest one. */ SessionHelper: { turn_id: string; /** @description The helper's id, the same as the start step's display.helper.id. */ helper_id: string; /** @description The start call's id. */ tool_call_id: string; /** @description A short plain title for the person, such as "Welcome email". */ title: string; /** * @description waiting: queued for a free slot. working: running. finished, unfinished (it ended without a result), and stopped are ends. * @enum {string} */ state: "waiting" | "working" | "finished" | "unfinished" | "stopped"; /** @description The helper's last steps, newest last. */ steps: components["schemas"]["SessionHelperStep"][]; /** @description How many steps came before the ones listed. */ earlier_steps: number; /** * Format: date-time * @description When the start call made the helper. */ created_at: string; /** * Format: date-time * @description When the helper started running, after any wait for a slot. Absent while waiting. */ started_at?: string; /** * Format: date-time * @description When the helper ended. Absent until it ends. */ ended_at?: string; }; /** @description Live pulse: a helper's whole state, sent on every change (made, started, a step starts or ends, ended). Not stored; a reconnect reads it from the snapshot. */ HelperUpsertFrame: components["schemas"]["SessionHelper"] & { /** @enum {string} */ event_type: "helper.upsert"; session_id: string; } & { /** * @description discriminator enum property added by openapi-typescript * @enum {string} */ event_type: "helper.upsert"; }; SessionTranscriptFrame: components["schemas"]["MessageUpsertFrame"] | components["schemas"]["MessageBlockFrame"] | components["schemas"]["MessageBlockPatchFrame"] | components["schemas"]["MessageDeltaFrame"] | components["schemas"]["TurnUpsertFrame"] | components["schemas"]["InteractionUpsertFrame"] | components["schemas"]["StreamReadyFrame"] | components["schemas"]["StreamEndFrame"] | components["schemas"]["VoiceCallStartedFrame"] | components["schemas"]["VoiceCallEndedFrame"] | components["schemas"]["HelperUpsertFrame"]; MessageUpsertFrame: components["schemas"]["SessionTranscriptMessage"] & { /** @enum {string} */ event_type: "message.upsert"; } & { /** * @description discriminator enum property added by openapi-typescript * @enum {string} */ event_type: "message.upsert"; }; MessageBlockFrame: { /** * @description discriminator enum property added by openapi-typescript * @enum {string} */ event_type: "message.block"; session_id: string; message_id: string; content_index: number; block: components["schemas"]["SessionContentBlock"]; }; MessageBlockPatchFrame: { /** * @description discriminator enum property added by openapi-typescript * @enum {string} */ event_type: "message.block.patch"; session_id: string; message_id: string; content_index: number; /** @description Known values are pending, running, ok, error, and cancelled. */ status?: string; progress?: { [key: string]: unknown; } | null; resolved_action?: components["schemas"]["SessionResolvedAction"]; display?: components["schemas"]["SessionToolDisplay"]; }; MessageDeltaFrame: { /** * @description discriminator enum property added by openapi-typescript * @enum {string} */ event_type: "message.delta"; session_id: string; message_id: string; content_index: number; text?: string; thinking?: string; /** * Format: int64 * @description The turn's live revision that carried this text. A page that stops the turn sends the last one it showed, so the saved reply ends where the page did. */ revision?: number; /** * Format: date-time * @description When the server published this frame. The server merges a block's deltas for up to 50 ms or 2 KiB, so this is when the merged text left the server. Clients use it to measure lag. */ emitted_at?: string; }; CancelSessionRequest: { /** @description What the person had on screen when they pressed Stop: for each turn they were watching, the last live revision the page showed. A stopped reply is saved through that revision. Without it, the reply is saved as it stood when the stop arrived. */ shown?: components["schemas"]["ShownTurnRevision"][]; }; ShownTurnRevision: { turn_id: string; /** Format: int64 */ revision: number; }; TurnUpsertFrame: components["schemas"]["SessionTranscriptTurn"] & { /** @enum {string} */ event_type: "turn.upsert"; } & { /** * @description discriminator enum property added by openapi-typescript * @enum {string} */ event_type: "turn.upsert"; }; InteractionUpsertFrame: components["schemas"]["Interaction"] & { /** @enum {string} */ event_type: "interaction.upsert"; } & { /** * @description discriminator enum property added by openapi-typescript * @enum {string} */ event_type: "interaction.upsert"; }; StreamReadyFrame: { /** * @description discriminator enum property added by openapi-typescript * @enum {string} */ event_type: "stream.ready"; session_id: string; resume_cursor: string; }; /** * @description JSON payload of a single `data:` line on a turn's SSE response, paired with an `event: ` line. The streaming responses of `startTurn` and `invokeAgent` use it. The response first replays the transcript messages committed after the cursor, then tails the turn live, and closes once the session is idle. * * The `event:` line is the authoritative frame selector. This union is reference-only: several payloads are structurally identical (e.g. `user.message` and `agent.message`) or permissive open objects, so the `data:` body alone cannot be shape-matched to a single variant. Consumers MUST dispatch on the `event:` name and decode the body as the corresponding payload — never validate the bare body against the union. * * Durable message frames (`user.message`, `agent.message`, `compaction.created`) are replayed from the transcript and carry an SSE `id: `. That `id:` is not a resume cursor: the inline stream cannot be resumed, and a repeated POST starts another turn unless it reuses the same `idempotency_key`. A client that loses the inline stream follows the turn on `streamSessionTranscript` from the acknowledgement's `resume_cursor` (`?cursor=`). Terminal `turn.*` frames mark the active turn settling. `session.message.preview`, `session.resync`, `nudge.queued`, `nudge.delivered`, `nudge.cancelled`, `tool.call`, `tool.result`, `compaction.started`, `compaction.failed`, and the transcript preview frames (`message.upsert`, `message.block`, `message.block.patch`, `message.delta`) are live-only and carry no `id:`. Streamed text arrives as `message.delta`, coalesced per block. `stream.end` is the final envelope on every deliberate server-side close and also carries no `id:`. */ SessionStreamFrame: components["schemas"]["SessionUserMessagePayload"] | components["schemas"]["AgentMessagePayload"] | components["schemas"]["CompactionStartedPayload"] | components["schemas"]["CompactionCreatedPayload"] | components["schemas"]["CompactionFailedPayload"] | components["schemas"]["TurnStartedPayload"] | components["schemas"]["TurnWaitingPayload"] | components["schemas"]["TurnCompletedPayload"] | components["schemas"]["TurnFailedPayload"] | components["schemas"]["TurnCancelledPayload"] | components["schemas"]["NudgeEventPayload"] | components["schemas"]["SessionMessagePreviewFrame"] | components["schemas"]["SessionResyncFrame"] | components["schemas"]["StreamEndFrame"] | components["schemas"]["ToolCallPayload"] | components["schemas"]["ToolResultPayload"] | components["schemas"]["MessageUpsertFrame"] | components["schemas"]["MessageBlockFrame"] | components["schemas"]["MessageBlockPatchFrame"] | components["schemas"]["MessageDeltaFrame"]; /** @description Live-only, SessionMessage-compatible transcript preview for an in-flight agent response segment. It carries no durable `seq`, transcript `sequence`, or stable `message_id`; the committed row later replaces it by `turn_id` plus `metadata.response_message_index`. */ SessionMessagePreviewFrame: { /** @enum {string} */ event_type: "session.message.preview"; /** @description Provisional live id. Do not persist or use as the durable message id. */ id: string; /** @description Session this preview belongs to. */ session_id: string; /** @description Agent container executing the parent session, when known. */ agent_id?: string; /** @description Agent turn that produced the preview. */ turn_id: string; /** * Format: int64 * @description Monotonic per-turn sequence across all live-only session frames; use to detect dropped live frames. */ live_sequence?: number; role: components["schemas"]["SessionMessageRole"]; entry_type: components["schemas"]["SessionMessageEntryType"]; /** @description Ordered content blocks using the same canonical block shape as SessionMessage. */ content: components["schemas"]["SessionContentBlock"][]; /** @description Must include `response_message_index`, the handoff key shared with the durable transcript row. */ metadata: { [key: string]: unknown; }; /** * Format: date-time * @description Server timestamp when this live preview frame was emitted. */ emitted_at?: string; } & { [key: string]: unknown; }; /** @description Ephemeral live transcript snapshot for an in-flight turn. Deployments with shared cache support make it available across backend replicas. */ SessionLiveSnapshot: { session_id: string; turn_id: string; /** @description Always empty. Kept for the response shape while the endpoint is retired. */ frames: { [key: string]: unknown; }[]; /** * Format: int64 * @description Highest live_sequence recorded for the turn, or 0 when none is known. */ last_live_sequence: number; /** * Format: date-time * @description Server timestamp when the snapshot was last updated. */ updated_at: string; }; /** @description Live-only marker asking the client to reconcile the active turn from the live snapshot endpoint. */ SessionResyncFrame: { /** @enum {string} */ event_type: "session.resync"; session_id: string; /** @description Machine-readable resync reason, e.g. `subscriber_overflow`. */ reason: string; }; /** @description Final envelope on a deliberate session-stream close. An idle close means no non-terminal turn remains; a rotate close asks the client to reconnect immediately with the same durable transcript cursor. An access_ended close means the caller can no longer read the conversation, for example because its owner stopped sharing it; the client should not reconnect. */ StreamEndFrame: { /** * @description discriminator enum property added by openapi-typescript * @enum {string} */ event_type: "stream.end"; session_id: string; /** @enum {string} */ reason: "idle" | "rotate" | "access_ended"; }; /** @description Live pulse: a voice call started in the chat. Not replayed on reconnect. A client that missed it learns of a running call when a send returns 409 `voice_call_active`. */ VoiceCallStartedFrame: { /** * @description discriminator enum property added by openapi-typescript * @enum {string} */ event_type: "voice_call.started"; session_id: string; voice_call: components["schemas"]["VoiceCallFrameCall"]; }; /** @description The call a `voice_call.started` frame announces. */ VoiceCallFrameCall: { id: string; /** Format: date-time */ started_at: string; principal_id: string; }; /** @description Live pulse: the chat's voice call ended, and sends work again. Not replayed on reconnect. A client that missed it learns the call ended when a send no longer returns 409 `voice_call_active`. */ VoiceCallEndedFrame: { /** * @description discriminator enum property added by openapi-typescript * @enum {string} */ event_type: "voice_call.ended"; session_id: string; voice_call_id: string; /** @description Why the call ended. Known values are hangup, time_limit, funding, provider_error, client_gone, server_shutdown, disabled, server_error, lost, and access_revoked. */ end_reason: string; /** Format: date-time */ ended_at?: string; }; /** @description Payload of a `user.message` content event: the durable encoding of one non-assistant transcript message — caller input, or a user-role message carrying tool results. It mirrors the transcript row exactly, carrying the message identity (`message_id` + `sequence`) and full content. Replaying these events reconstructs the same view as reading the messages API. */ SessionUserMessagePayload: { /** @description Id of the transcript message this event mirrors. */ message_id: string; /** * Format: int64 * @description The mirrored message's per-session transcript sequence. */ sequence: number; /** @description Transcript role of the message (e.g. `user`, `system`, or a user-role message carrying tool results); never `assistant`. */ role: components["schemas"]["SessionMessageRole"]; /** @description The message's full canonical content blocks (text, tool_result, …). */ content: components["schemas"]["SessionContentBlock"][]; /** @description The agent turn that produced this message, when applicable. */ turn_id?: string; } & { [key: string]: unknown; }; /** @description Payload of a `turn.started` event. Empty: the turn is identified by the envelope `turn_id`, so nothing is duplicated in the payload. */ TurnStartedPayload: { [key: string]: unknown; }; /** @description Payload of an `agent.message` content event: the durable encoding of one assistant transcript message. Carries the message's full structured content (text, thinking, tool_use) plus the message identity (`message_id` + `sequence`). Replaying these events reconstructs the same view as reading the messages API. */ AgentMessagePayload: { /** @description Id of the transcript message this event mirrors. */ message_id: string; /** * Format: int64 * @description The mirrored message's per-session transcript sequence. */ sequence: number; /** * @description Always `assistant`. * @enum {string} */ role: "assistant"; /** @description The assistant message's full canonical content blocks (text, thinking, tool_use). */ content: components["schemas"]["SessionContentBlock"][]; /** @description The agent turn that produced this message. */ turn_id?: string; } & { [key: string]: unknown; }; /** @description Payload of a live-only `tool.call` frame — an in-flight preview that a tool was invoked during the active turn. Never persisted and carries no sequence: the durable record of the call is the `tool_use` content block of the assistant message, delivered as an `agent.message` event when the turn commits. */ ToolCallPayload: { tool_call_id?: string; tool_name?: string; input?: { [key: string]: unknown; }; /** * Format: int64 * @description Monotonic per-turn sequence across all live-only session frames; use to detect dropped live frames. */ live_sequence?: number; /** * Format: date-time * @description Server timestamp when this live preview frame was emitted. */ emitted_at?: string; } & { [key: string]: unknown; }; /** @description Payload of a live-only `tool.result` frame — an in-flight preview that a tool returned during the active turn. Never persisted and carries no sequence: the durable record is the `tool_result` content block of the following transcript message, delivered as a `user.message` event when the turn commits. */ ToolResultPayload: { tool_call_id?: string; tool_name?: string; /** @description The tool result as canonical content blocks (e.g. `[{ "type": "text", "text": "…" }]`), the same `SessionContentBlock` shape as the `tool_result` content of the durable transcript message — so the live preview and the committed record read identically. In practice the server collapses the result to a single `text` block. */ content?: components["schemas"]["SessionContentBlock"][]; display?: string; is_error?: boolean; error?: string; /** * Format: int64 * @description Monotonic per-turn sequence across all live-only session frames; use to detect dropped live frames. */ live_sequence?: number; /** * Format: date-time * @description Server timestamp when this live preview frame was emitted. */ emitted_at?: string; } & { [key: string]: unknown; }; TurnWaitingPayload: { turn_id?: string; reason?: string; wait?: components["schemas"]["SessionTranscriptWait"]; } & { [key: string]: unknown; }; SessionTranscriptWait: { /** @enum {string} */ kind: "interaction"; interaction_id: string; tool_call_id: string; /** Format: date-time */ expires_at?: string; }; /** @description Payload of a `turn.completed` event — the terminal idle marker carrying token usage. The assistant output is not duplicated here; it is delivered as `agent.message` content events when the transcript commits. The same usage is readable after the fact on the turn resource, so a consumer that missed the pulse never has to replay the stream for it. */ TurnCompletedPayload: { /** @description Token usage of the completed turn. A failed turn emits `turn.failed`, which carries no usage; read a failed turn's usage from the turn resource. */ usage?: components["schemas"]["AgentTurnUsage"]; } & { [key: string]: unknown; }; TurnFailedPayload: { error?: string; error_type?: string; } & { [key: string]: unknown; }; TurnCancelledPayload: { reason?: string; } & { [key: string]: unknown; }; /** @description Live reconciliation hint emitted for `nudge.queued`, `nudge.delivered`, and `nudge.cancelled`. Re-read the queue resource after receiving it; this pulse is not durable replay state. */ NudgeEventPayload: { nudge_id: string; turn_id: string; delivery: components["schemas"]["SessionNudgeDelivery"]; status: components["schemas"]["SessionNudgeStatus"]; } & { [key: string]: unknown; }; /** * @description What started a compaction pass. `auto` is the threshold-gated pass a turn runs before it loads its context; `manual` is a compaction turn queued by a compact request. `append` appears only on summaries written before compaction moved into turns. * @enum {string} */ CompactionTrigger: "auto" | "manual" | "append"; /** @description Payload of a `compaction.started` event, emitted immediately before the summarizer call and only once every gate has passed — so receiving it means a pass is really running. Live-only: it is not replayed on reconnect, so a client that connects mid-pass reads the session's `compaction` field instead. Every started pass is followed by exactly one `compaction.created` or `compaction.failed`. */ CompactionStartedPayload: { trigger?: components["schemas"]["CompactionTrigger"]; /** @description Lowest transcript sequence this pass is summarizing. */ from_sequence?: number; /** @description Highest transcript sequence this pass is summarizing. */ through_sequence?: number; /** @description Number of transcript messages this pass is folding into the summary. */ message_count?: number; /** @description Estimated token size of the window being summarized. */ estimated_tokens?: number; /** @description Model that will produce the summary. */ summary_model?: string; } & { [key: string]: unknown; }; /** @description Payload of a `compaction.failed` event — the other terminal outcome of a started pass. It guarantees an indicator opened on `compaction.started` always comes down, instead of hanging on a pass that produced no summary. Live-only, like `compaction.started`: a failed pass appends nothing to the transcript, so there is no durable row to replay. The transcript is unchanged; the next pass recomputes from the same boundary. */ CompactionFailedPayload: { trigger?: components["schemas"]["CompactionTrigger"]; /** @description Lowest transcript sequence the failed pass was summarizing. */ from_sequence?: number; /** @description Highest transcript sequence the failed pass was summarizing. */ through_sequence?: number; /** @description Machine-readable failure category. Currently `summarizer_error`, `timeout`, `empty_summary`, or `storage_error`. Treat it as an open string: new categories may be added, and a client that switches on it should fall through to a generic "compaction failed". */ error_type?: string; /** @description Truncated failure detail. Diagnostics live in the server logs, not here. */ error_message?: string; } & { [key: string]: unknown; }; /** @description Payload of a `compaction.created` event, emitted when the session transcript is summarized. The event is non-terminal: it never closes the session stream, so a live consumer observes a compaction landing inline. */ CompactionCreatedPayload: { trigger?: components["schemas"]["CompactionTrigger"]; /** @description Id of the compaction summary message appended to the transcript. */ message_id?: string; /** * Format: int64 * @description The summary message's per-session transcript sequence. */ sequence?: number; /** @description Transcript role of the summary entry. */ role?: string; /** @description The summary's full canonical content blocks, so replaying the stream reconstructs the compaction entry exactly. */ content?: components["schemas"]["SessionContentBlock"][]; /** @description Highest message sequence the new summary covers — the before/after boundary. */ covers_through_sequence?: number; /** @description Number of transcript messages folded into this summary. */ message_count?: number; /** @description Model that produced the summary. */ summary_model?: string; } & { [key: string]: unknown; }; /** @description One content block in a session transcript message — the canonical, frozen JSON shape Mobius persists and replays, discriminated by `type`. The variants are `text`, `thinking`, `tool_use`, `tool_result`, `image`, and `document`, plus host-managed `reminder` blocks when caller runtime context is explicitly included. Each variant permits provider-specific extra fields (citations, signatures, cache hints, and the like), and unknown fields are preserved rather than rejected, so the transcript round-trips losslessly across providers. */ SessionContentBlock: components["schemas"]["SessionTextBlock"] | components["schemas"]["SessionThinkingBlock"] | components["schemas"]["SessionToolUseBlock"] | components["schemas"]["SessionToolResultBlock"] | components["schemas"]["SessionImageBlock"] | components["schemas"]["SessionDocumentBlock"] | components["schemas"]["SessionReminderBlock"]; /** @description Assistant or caller text. */ SessionTextBlock: { /** * @description discriminator enum property added by openapi-typescript * @enum {string} */ type: "text"; /** @description The text content. */ text: string; } & { [key: string]: unknown; }; /** @description An extended-reasoning block produced by a reasoning model. */ SessionThinkingBlock: { /** * @description discriminator enum property added by openapi-typescript * @enum {string} */ type: "thinking"; /** @description The reasoning text. */ thinking: string; /** @description Provider signature for the reasoning block, when present. */ signature?: string; } & { [key: string]: unknown; }; /** @description A tool call the agent issued. */ SessionToolUseBlock: { /** * @description discriminator enum property added by openapi-typescript * @enum {string} */ type: "tool_use"; /** @description Tool-call id; the matching tool_result references it. */ id: string; /** @description Tool name. */ name: string; /** @description Tool input arguments. */ input: { [key: string]: unknown; }; /** @description Known values are pending, running, ok, error, and cancelled; unknown values must be preserved. */ status?: string; /** @description Latest in-flight progress snapshot. Absent on final transcript rows. */ progress?: { [key: string]: unknown; }; resolved_action?: components["schemas"]["SessionResolvedAction"]; display?: components["schemas"]["SessionToolDisplay"]; } & { [key: string]: unknown; }; /** @description Canonical action resolved by a catalog tool dispatch. */ SessionResolvedAction: { /** @description Canonical action name, before provider-safe wire-name mangling. */ name: string; /** @description Resolved action arguments. Meta-router command wrappers are removed. */ input: { [key: string]: unknown; }; }; /** @description Plain-language phrasing for a tool call, recorded when the call is made. Clients show these words instead of the tool name or its arguments. */ SessionToolDisplay: { /** @description What the tool does, in sentence case, for example "Export a PDF". */ label: string; /** @description Phrase while the call runs, for example "Exporting a PDF…". */ running?: string; /** @description Phrase once it succeeds, for example: Exported "Q3 update.pdf". */ done?: string; /** @description Phrase for a group of these calls; "{n}" is replaced by the count. */ done_many?: string; /** @description The one thing the call acted on, such as a file name. Never message bodies. */ subject?: string; /** @description The artifact the call created or changed, when there is one. */ artifact_id?: string; /** @description The first version of the document artifact_id belongs to, when the call made a document version. Revisions of one document share it. */ artifact_root_id?: string; /** @description The private assistant exchange opened by this call, when there is one. Access is checked when opened. */ session_id?: string; /** @description The integration's name as people know it, shown before the label, for example "GitHub". */ integration?: string; /** @description Provider key for the integration icon, for example "github". */ integration_key?: string; /** @description One safe line explaining a failure, only for Mobius's own tools. Empty for integration and third party tools, whose error text can quote private content. */ error?: string; /** @description The background helper this step started. Present only on a subagent call that started one, never on a blocking call. */ helper?: components["schemas"]["SessionToolHelper"]; }; /** @description A background helper that a step started, named for the person. */ SessionToolHelper: { /** @description The helper's id. A result row names the same id in metadata.helper_result. */ id: string; /** @description A short plain title for the person, such as "Welcome email". */ title: string; }; /** @description The result of a tool call. */ SessionToolResultBlock: { /** * @description discriminator enum property added by openapi-typescript * @enum {string} */ type: "tool_result"; /** @description The tool_use id this result answers. */ tool_use_id: string; /** @description Result payload — a string, or an array of typed sub-blocks using the same canonical block shape as a transcript message. */ content?: string | components["schemas"]["SessionContentBlock"][]; /** @description True when the tool reported a failure. */ is_error?: boolean; display?: components["schemas"]["SessionToolDisplay"]; } & { [key: string]: unknown; }; /** @description An image block, e.g. multimodal caller input. */ SessionImageBlock: { /** * @description discriminator enum property added by openapi-typescript * @enum {string} */ type: "image"; source?: components["schemas"]["SessionImageSource"]; /** @description Server-detected MIME type for an artifact-backed image. */ media_type?: string; /** @description Original filename for an artifact-backed image. */ title?: string; /** * Format: int64 * @description Server-observed byte size for an artifact-backed image. */ size_bytes?: number; } & { [key: string]: unknown; }; /** @description Canonical image source descriptor. Known source types are `base64` (`media_type` plus `data`), `url` (`url`), and Mobius-managed `artifact` (`artifact_id`). Provider-specific extensions are preserved. */ SessionImageSource: { /** @enum {string} */ type: "base64" | "url" | "artifact"; /** @description MIME type for base64 content. */ media_type?: string; /** @description Base64 image payload. */ data?: string; /** * Format: uri * @description Fetchable image URL for a URL source. */ url?: string; /** @description Mobius artifact id returned by the session attachment endpoint. */ artifact_id?: string; } & { [key: string]: unknown; }; /** @description A canonical document block. Mobius persists this provider-neutral block after translating supported caller dialects such as OpenAI `input_file` and Chat Completions `file` blocks. Base64 data stays in `source.data`; clients must not render or log that field. */ SessionDocumentBlock: { /** * @description discriminator enum property added by openapi-typescript * @enum {string} */ type: "document"; source: components["schemas"]["SessionDocumentSource"]; /** @description Human-readable filename or document title, when supplied. */ title?: string; /** @description Server-detected MIME type for an artifact-backed document. */ media_type?: string; /** * Format: int64 * @description Server-observed byte size for an artifact-backed document. */ size_bytes?: number; /** @description Parsed page count for an artifact-backed PDF. */ page_count?: number; /** @description Optional model-facing context for the document. */ context?: string; /** @description Provider citation options, when supported. */ citations?: { [key: string]: unknown; }; } & { [key: string]: unknown; }; /** @description Canonical document source descriptor. Known source types are `base64` (`media_type` plus `data`), `url` (`url`), `text` (`media_type` plus `data`), provider-managed `file` (`file_id`), and Mobius-managed `artifact` (`artifact_id`). Provider-managed file references are not portable across model providers; artifact sources are resolved only after re-checking their session binding. */ SessionDocumentSource: { /** * @description Source discriminator; known values are base64, url, text, file, and artifact. * @enum {string} */ type: "base64" | "url" | "text" | "file" | "artifact"; /** @description MIME type for base64 or text content. */ media_type?: string; /** @description Base64 payload or literal text, depending on source type. Inline payloads are limited to 256 KiB after base64 decoding or as UTF-8 text; larger documents must use an artifact source created by the session attachment endpoint. */ data?: string; /** * Format: uri * @description Fetchable document URL for a URL source. */ url?: string; /** @description Provider-managed file identifier for a file source. */ file_id?: string; /** @description Mobius artifact id returned by the session attachment endpoint. */ artifact_id?: string; } & { [key: string]: unknown; }; CreateSessionAttachmentRequest: { /** * Format: binary * @description The document or image bytes. Multipart parts may arrive in any order. */ file: string; /** @description Optional display filename. Defaults to the multipart filename. */ name?: string; /** @description Optional hint only; Mobius detects and validates PDF, DOCX, XLSX, PPTX, text, Markdown, and supported image types from the bytes. */ mime?: string; /** * Format: int64 * @description Optional declared byte size; when supplied it must match the uploaded bytes. */ size_bytes?: number; }; CompleteSessionPDFUploadRequest: { name: string; /** Format: int64 */ size_bytes: number; part_count: number; }; CreateSessionArtifactReferenceRequest: { /** @description Identifier of an existing library artifact the caller can read. */ artifact_id: string; }; SessionAttachmentResponse: { artifact: components["schemas"]["Artifact"]; content_block: components["schemas"]["SessionContentBlock"]; }; /** @description Host-managed runtime context returned only when the request explicitly includes caller-supplied context. */ SessionReminderBlock: { /** * @description discriminator enum property added by openapi-typescript * @enum {string} */ type: "reminder"; /** @description Model-visible reminder name, including the `app-` namespace. */ name: string; /** * @description Reminder authority tier. * @enum {string} */ tier: "contextual" | "operator"; /** @description Reminder content rendered to the model. */ content: string; } & { [key: string]: unknown; }; /** * @description Stable UI treatment for a projected event. `interaction` is the outcome of a question the agent asked with mobius.interaction.create: answered, dismissed, or expired. * @enum {string} */ SessionEventProjectionKind: "generic" | "repository_change" | "file_change" | "email" | "calendar_event" | "message" | "work_item" | "content_change" | "business_record" | "interaction"; SessionEventProjectionAttribute: { /** @description Short fact label selected by the server-side formatter. */ label: string; /** @description Plain-text, bounded fact value. */ value: string; }; /** @description Bounded, display-safe projection of the external event associated with a session message. The complete provider payload is deliberately absent. */ SessionEventProjection: { kind: components["schemas"]["SessionEventProjectionKind"]; /** @description Concrete event type that started the work. */ event_type: string; /** @description Provider identifier when the event came from an integration. */ provider?: string; /** @description Short human-readable description of what happened. */ title: string; /** @description Optional provider-specific change summary. */ summary?: string; /** @description Optional bounded plain-text excerpt from the event, such as a comment or review body. */ excerpt?: string; /** @description Human-readable affected resource name, never an internal event or source ID. */ resource_name?: string; /** * Format: uri * @description Optional http(s) link to the affected provider resource. */ resource_url?: string; /** * Format: date-time * @description Upstream occurrence time, falling back to receipt time. */ occurred_at?: string; /** @description Small provider-selected facts; never arbitrary payload fields. */ attributes?: components["schemas"]["SessionEventProjectionAttribute"][]; }; /** @description One persisted message or compaction entry in a session transcript. */ SessionMessage: { /** @description Stable message identifier. */ id: string; /** @description Session this message belongs to. */ session_id: string; /** @description Agent container executing the parent session. */ agent_id: string; /** @description Role of this message in the transcript. */ role: components["schemas"]["SessionMessageRole"]; /** @description Ordered canonical content blocks (text, thinking, tool_use, tool_result, image, document). */ content: components["schemas"]["SessionContentBlock"][]; /** @description Whether this row is a normal message or a compaction summary. */ entry_type: components["schemas"]["SessionMessageEntryType"]; /** @description For `compaction` messages, the highest sequence number this summary covers. It is an internal ordering key, not a quantity: use `metadata.conversation_message_count` to say how much history the summary folded away. */ covers_through_sequence?: number; /** @description Monotonic per-session sequence number assigned at append time. */ sequence: number; /** @description AgentTurn that produced this message. Run, step, and channel identity for the message are read from this turn. Absent for compaction summaries and messages not tied to a turn. */ turn_id?: string; /** @description Free-form caller metadata for this message. A `compaction` entry instead carries server-owned keys describing the pass that wrote it: `trigger` (a `CompactionTrigger`: what started the pass), `conversation_message_count` (transcript rows folded into the summary, counting only rows a reader sees — the number to show a user), `message_count` (the raw window size, including host-injected context rows), `from_sequence` / `through_sequence` (the window's sequence bounds), `estimated_tokens`, `strategy`, `summary_model`, and `summary_provider`. A `helper_result` key (`{id, tool_call_id, title, outcome, text}`; `text` only when finished) marks a background helper's result, written only by the server; callers cannot set it. The row's text is then the helper's own final message: untrusted helper output, not the person's words, even though the row's role is `user`. A reader that feeds rows to a model must skip these rows. */ metadata?: { [key: string]: unknown; }; /** @description Server-owned safe display projection when this message was triggered by an external event. */ event_projection?: components["schemas"]["SessionEventProjection"]; /** @description Who wrote this message, resolved server side from the authenticated sender. Present only on `user` messages written by a principal in this organization; routine inputs and event deliveries carry execution identity instead and remain unattributed. */ author?: components["schemas"]["SessionMessageAuthor"]; /** * Format: date-time * @description Server timestamp when the message was appended. */ created_at: string; }; /** @description The principal that wrote a message, resolved from the authenticated sender at read time so the transcript can render a name and avatar without a lookup per message. Never accepted on write. A message that arrived through a chat app has an `external` author: the person in that app, named as the app reported them. */ SessionMessageAuthor: { /** @description Principal id of the author. For an `external` author, a stable id for that person in that chat app account; it is not a principal. */ id: string; /** * @description The principal's kind, resolved from the principal record. `external` is a person in a chat app, who is not a Mobius principal. * @enum {string} */ kind: "human" | "agent" | "service" | "system" | "external"; /** @description The chat app an `external` author wrote from, such as `slack`. */ provider?: string; /** @description Single-line label for the author. */ display_name: string; /** @description Avatar image, when the principal has one. */ avatar_url?: string; /** @description Mantine palette key for the avatar fallback when no image is set. */ color?: string; }; SessionMessageListResponse: { /** @description Messages in this page, ordered by `sequence` ascending. */ items: components["schemas"]["SessionMessage"][]; /** @description True when more messages exist past this page in the query's scan direction. */ has_more?: boolean; /** * Format: int64 * @description Sequence of the last (highest) item — pass back as `after_sequence` to page forward (newer). */ next_sequence?: number; /** * Format: int64 * @description Sequence of the first (lowest) item — pass back as `before_sequence` with `order=desc` to page backward (older). After paginating history, open the stream with `after_sequence=next_sequence` to receive the in-flight turn and everything after it — the stream and the messages API share one `sequence` cursor, so there is no overlap and no gap. */ prev_sequence?: number; }; AppendSessionMessagesRequest: { /** @description Messages to append to the session, in order. */ messages: components["schemas"]["AppendSessionMessage"][]; /** @description Fresh (uncached) input tokens to add to this session's lifetime total. */ token_input_total?: number; /** @description Output tokens to add to this session's lifetime total. */ token_output_total?: number; /** @description Prompt-cache-read input tokens to add to this session's lifetime total. */ cache_read_input_total?: number; /** @description Prompt-cache-write input tokens to add to this session's lifetime total. */ cache_creation_input_total?: number; /** @description Model that produced these messages. */ model?: string; /** @description Provider for the supplied `model`. */ model_provider?: string; }; /** @description Message payload to append to an existing durable session. */ AppendSessionMessage: { /** @description Role to store for this appended message. */ role: components["schemas"]["SessionMessageRole"]; /** @description Ordered content blocks (text, tool calls, tool results, images). Blocks of type `reminder` are host-managed runtime context and are rejected on this surface. */ content: { [key: string]: unknown; }[]; /** @description Free-form caller metadata for this message. */ metadata?: { [key: string]: unknown; }; /** * Format: date-time * @description Caller-supplied creation timestamp. The server assigns one if absent. */ created_at?: string; }; /** @description A single compound invocation: which stored agent to run, how to resolve the session, the caller's input message, and optional channel routing context. `operation.timeout_seconds` must be at least one and takes precedence for this admitted turn. */ InvokeAgentRequest: { agent_ref: components["schemas"]["AgentRef"]; session?: components["schemas"]["InvokeSessionSpec"]; operation?: components["schemas"]["AgentTurnOperationPolicy"]; input: components["schemas"]["InvokeInput"]; /** @description Optional structured-output contract for this turn. Read the validated value from the completed turn's `output`. */ output?: components["schemas"]["TurnOutputSpec"]; channel_context?: components["schemas"]["ChannelContext"]; }; /** @description Operational policy for this newly admitted turn only. It is not saved on the session. Its timeout takes precedence over the agent default and must be at least one second. */ AgentTurnOperationPolicy: { /** * Format: int64 * @description Overall active-execution budget for this logical turn. */ timeout_seconds?: number; }; /** @description Reference to an agent in this org. Supply exactly one of `id` (the agent identifier) or `name` (the org-unique agent name). A blueprint-binding reference form is reserved for a later release and is not resolvable yet. */ AgentRef: { /** @description Agent identifier. */ id?: string; /** @description Org-unique agent name. */ name?: string; }; /** @description How to resolve or create the session this invocation runs in. Mirrors the create-session policy: `mode` + `session_key` resolve a durable conversation for the agent, and the remaining fields seed a session that does not already exist (they are ignored when an existing session is resolved). Omit the whole object to use a single default session per agent in `continue_or_create` mode. */ InvokeSessionSpec: { /** * @description `continue_or_create` (default) resolves an existing session for the `session_key` or creates one; `new` always creates a fresh session; `continue` resolves an existing session and fails if none exists. * @enum {string} */ mode?: "new" | "continue" | "continue_or_create"; /** @description Stable key identifying the conversation within the agent. */ session_key?: string; /** @description Human-friendly title for a newly created session. */ title?: string; owner?: components["schemas"]["ResourceOwner"]; visibility?: components["schemas"]["ResourceVisibility"]; /** @description Model to use for a newly created session. Overrides the stored agent's model and is ignored when an existing session is resolved. Creating a session for a worker-routed agent returns `400 invalid_argument` with `details.argument = model_override`. */ model_override?: string; /** @description Per-session compaction overrides applied when the session is first created. Merged over the agent's default policy and server defaults. Ignored when an existing session is resolved. */ compaction_policy?: components["schemas"]["SessionCompactionPolicy"]; /** @description Retention policy applied when the session is first created. Ignored when an existing session is resolved. */ retention?: components["schemas"]["SessionRetentionPolicy"]; /** @description Reasoning-effort override applied when the session is first created. Overrides the agent default. Ignored when an existing session is resolved. */ thinking_effort?: components["schemas"]["ThinkingEffort"]; /** @description Free-form caller metadata stored on a newly created session. */ metadata?: { [key: string]: unknown; }; }; /** @enum {string} */ ContextIncludeParam: "context"; RuntimeContextItem: { /** @description Stable application-defined context name. Delivered to the model namespaced as `app-`. Supply the application name without that namespace; for example, `app-board` is delivered as `app-app-board`. */ name: string; /** @description Current value of this context, rendered verbatim to the model. OpenAPI `maxLength` counts Unicode code points; Mobius separately enforces an 8,192-byte UTF-8 limit server-side. */ content: string; }; /** * @description Ordered application-owned runtime context for this turn. Send the full current value for each named item. Mobius records an item only on first use, material change, or after compaction removes its prior value from the active model window. Omitting a name leaves its last value standing; send an explicit value such as `none` to clear application state. Names must be unique within the request. Content is limited to 8,192 UTF-8 bytes per item and 16,384 bytes total. * * Context remains at contextual authority and cannot grant permissions. A retry using the same `idempotency_key` returns the original turn and ignores any newly supplied context. */ RuntimeContext: components["schemas"]["RuntimeContextItem"][]; /** @description Attaches a structured-output contract to a turn. When present, Mobius exposes a reserved submit tool whose input schema is the schema below, validates the submission server-side, and a turn that never produces a schema-valid object fails with `error_type: output_schema_unsatisfied` instead of completing. Read the validated value from the completed turn's `output`. This is a per-turn contract, not agent identity, so it works with stored agents and may differ between turns of one session. */ TurnOutputSpec: { /** @description JSON Schema the turn's final output must satisfy. The root must be `type: object` and self-contained (no `$ref`); the serialized schema must not exceed 32 KiB. Mobius enforces the OpenAPI 3.0 subset: `required`, `enum`, `additionalProperties`, `minItems`/`maxItems`, `minLength`/`maxLength`, `pattern`, numeric bounds, nested objects/arrays, `oneOf`/`anyOf`/`allOf`, and `nullable`. Not supported: `$ref`/`$defs`, `if`/`then`/`else`, `const` (use a one-value `enum`), `patternProperties`, and `prefixItems`. */ schema: { [key: string]: unknown; }; }; /** @description The caller input message that starts the agent turn. */ InvokeInput: { /** @description Ordered content blocks for the input message. Canonical documents use `{ "type": "document", "source": { "type": "base64", "media_type": "application/pdf", "data": "..." }, "title": "report.pdf" }` or a URL source. Mobius also translates supported OpenAI `input_file` and Chat Completions `file` blocks at ingestion. */ content: { [key: string]: unknown; }[]; /** @description Dedup key scoped to the resolved session. A repeat call with the same key returns the existing invocation and writes nothing new; it never restarts a terminal turn. Derive it from the provider event id for Slack/Telegram webhook retries. Omitting it or sending a blank value disables retry deduplication. */ idempotency_key?: string; context?: components["schemas"]["RuntimeContext"]; /** @description Free-form caller metadata attached to the input message. */ metadata?: { [key: string]: unknown; }; }; /** @description Optional messaging provider/channel routing context (Slack, Telegram, …). Persisted on the started turn's input-message metadata under a `channel_context` key so chat history and support views can trace a turn back to the provider thread it came from. */ ChannelContext: { /** @description Messaging provider, e.g. `slack` or `telegram`. */ provider?: string; /** @description Provider workspace/team identifier. */ workspace_id?: string; /** @description Provider channel or chat identifier. */ channel_id?: string; /** @description Provider thread identifier within the channel. */ thread_id?: string; }; /** @description Resolve-or-create policy for a session. */ CreateSessionRequest: { /** @description Agent container that executes the session. The agent never owns it. */ agent_id: string; /** * @description `continue_or_create` (default) resolves an existing session for the `session_key` or creates one; `new` always creates a fresh session; `continue` resolves an existing session and fails if none exists. * @enum {string} */ mode?: "new" | "continue" | "continue_or_create"; /** @description Stable key identifying the conversation within the agent. */ session_key?: string; /** @description Human-friendly session title. */ title?: string; owner?: components["schemas"]["ResourceOwner"]; visibility?: components["schemas"]["ResourceVisibility"]; /** @description Model to use for a newly created session. Overrides the stored agent's model. Ignored when an existing session is resolved. Creating a session for a worker-routed agent returns `400 invalid_argument` with `details.argument = model_override`. */ model_override?: string; /** @description Per-session compaction overrides applied when the session is first created. Merged over the agent's default policy and server defaults. Ignored when an existing session is resolved. */ compaction_policy?: components["schemas"]["SessionCompactionPolicy"]; /** @description Retention policy applied when the session is first created. Ignored when an existing session is resolved. */ retention?: components["schemas"]["SessionRetentionPolicy"]; /** @description Reasoning-effort override applied when the session is first created. Overrides the agent default. Ignored when an existing session is resolved. */ thinking_effort?: components["schemas"]["ThinkingEffort"]; /** @description Free-form caller metadata for the session. */ metadata?: { [key: string]: unknown; }; }; /** @description Caller input that starts an agent turn in a session. `operation.timeout_seconds` must be at least one and takes precedence for this admitted turn. */ StartTurnRequest: { /** * @description Role of the input message. A turn carries caller input, so only `user` is accepted; defaults to `user` when omitted. * @default user * @enum {string} */ role?: "user"; /** @description Ordered content blocks for the input message. Canonical documents use `{ "type": "document", "source": { "type": "base64", "media_type": "application/pdf", "data": "..." }, "title": "report.pdf" }` or a URL source. Mobius also translates supported OpenAI `input_file` and Chat Completions `file` blocks at ingestion. */ content: { [key: string]: unknown; }[]; /** @description Dedup key scoped to the session. A repeat call with the same key returns the existing invocation and writes nothing new; it never restarts a terminal turn. Omitting it or sending a blank value disables retry deduplication. */ idempotency_key?: string; operation?: components["schemas"]["AgentTurnOperationPolicy"]; context?: components["schemas"]["RuntimeContext"]; /** @description Optional structured-output contract for this turn. Read the validated value from the completed turn's `output`. */ output?: components["schemas"]["TurnOutputSpec"]; /** @description Free-form caller metadata attached to the input message. */ metadata?: { [key: string]: unknown; }; }; /** @description Acknowledgement that a turn started, with a stream cursor. */ TurnAck: { session: components["schemas"]["Session"]; turn: components["schemas"]["AgentTurn"]; /** @description Durable caller row created for this turn. */ user_message?: components["schemas"]["SessionTranscriptMessage"]; /** @description Opaque stable v2 lower boundary for streaming and terminal settlement. It precedes every durable message owned by the returned turn and is safe for both fresh and deduplicated invocations. A deduplicated retry may replay already-observed frames. */ resume_cursor: string; /** * Format: int64 * @description The transcript message `sequence` this turn starts after. To follow the turn, pass `resume_cursor` to `GET .../transcript/stream`. */ after_sequence: number; /** @description True when a repeated idempotency key returned an existing turn without restarting it. */ deduped?: boolean; }; NudgeSessionRequest: { /** @description User direction to deliver at the next iteration boundary. */ content: string; /** @description Dedup key scoped to the session. Reusing the key with identical content returns the original nudge request; different content conflicts. */ idempotency_key?: string; /** @description Free-form caller metadata retained with the nudge request. */ metadata?: { [key: string]: unknown; }; /** * @description When true and the target turn is waiting on an interruptible agent tool, resolve that tool call with `{ "interrupted": true, "reason": "user_direction" }` and resume the same turn. Running and newly queued turns ignore this field. * * A turn waiting on the outcome of a question it asked with `mobius.interaction.create` (`mobius_event_wait` on `interaction.resolved`) is resumed by every nudge, with or without this field. The question stays open: the tool result also carries `interaction_id` and `interaction_status: "pending"`, and the question's outcome still arrives in the conversation as its own input. * @default false */ wake?: boolean; }; /** * @description Durable nudge queue lifecycle status. * @enum {string} */ SessionNudgeStatus: "pending" | "delivered" | "cancelled"; /** * @description `current_turn` means the input targets an existing turn and will reach the agent as contextual runtime input at that turn's next safe boundary. `new_turn` means the input was converted to a regular user message carried by a fresh direct-session turn (the same shape as a send); the nudge is `delivered` the moment that conversion commits. A nudge accepted as `current_turn` converts to `new_turn` if its target turn ends before absorbing it, so the durable record reflects how the input was ultimately routed — the acknowledgement reflects routing at admission time. * @enum {string} */ SessionNudgeDelivery: "current_turn" | "new_turn"; SessionNudgeTurn: { id: string; status: components["schemas"]["AgentTurnStatus"]; }; SessionNudge: { /** @description Stable nudge identifier. */ id: string; status: components["schemas"]["SessionNudgeStatus"]; delivery: components["schemas"]["SessionNudgeDelivery"]; /** @description Exact user direction supplied when the nudge was queued. */ content: string; turn: components["schemas"]["SessionNudgeTurn"]; /** @description Principal that queued the nudge. */ sender_principal_id: string; /** Format: date-time */ created_at: string; /** Format: date-time */ delivered_at?: string | null; /** Format: date-time */ cancelled_at?: string | null; }; SessionNudgeListResponse: { items: components["schemas"]["SessionNudge"][]; has_more: boolean; /** @description Opaque continuation cursor, or null at the end. */ next_cursor?: string | null; }; SessionNudgeAck: { /** @description Stable id of the durable nudge mailbox row. */ nudge_id: string; status: components["schemas"]["SessionNudgeStatus"]; delivery: components["schemas"]["SessionNudgeDelivery"]; session: components["schemas"]["Session"]; turn: components["schemas"]["AgentTurn"]; /** * Format: int64 * @description Current transcript sequence cursor for following the target turn. */ after_sequence: number; /** @description True when an existing idempotent nudge request was returned. */ deduped: boolean; /** @description True when wake interrupted a waiting tool and requeued this turn. */ woke_turn: boolean; }; /** @description One OR branch. All populated fields in this object match together. */ SessionEventSubscriptionFilter: { /** @description A public exact event type or a supported provider wildcard such as `github.pull_request.*`. Subscriptions accept the same public events an agent can wait for. The one interaction event that can be followed is `interaction.resolved`, with `source_id` set to a question the session's agent asked in this session; any other interaction filter is refused. A question the agent asks is already followed by its own subscription until it is answered, dismissed, or expires, so a filter on a question that something in the session already follows, or that has already closed, is refused with 409. */ event_type: string; /** @description Optional public source identifier restriction. */ source_id?: string; /** @description Optional integration connection restriction. */ integration_id?: string; /** @description Optional equality constraints over event payload fields. Dot paths address nested objects. */ match?: { [key: string]: unknown; }; /** @description Optional Boolean expression over `event` and `meta`. Errors fail closed. */ condition?: string; }; CreateSessionEventSubscriptionRequest: { /** @description ORed public-event filter branches. */ filters: components["schemas"]["SessionEventSubscriptionFilter"][]; /** * Format: date-time * @description Optional future stop time. */ expires_at?: string | null; /** @description Retry key scoped to this session. */ idempotency_key?: string; /** * @description When true, the subscription ends after its first matching event. That event is still delivered to the conversation, and the subscription stops with `stop_reason` `delivered_once` in the same step, so no later event can match it. When false, the subscription keeps delivering until it is unsubscribed, stopped, or expires. Retrying with the same `idempotency_key` must repeat the same value. * @default false */ once?: boolean; }; /** @enum {string} */ SessionEventSubscriptionStatus: "active" | "funding_paused" | "stopped" | "expired"; SessionEventSubscription: { id: string; session_id: string; agent_id: string; /** @description Authorizing principal recorded at creation. */ created_by: string; /** @description Server-resolved authority and billing scope; not event-controlled. */ execution_scope: { [key: string]: unknown; }; /** @description True when the subscription ends after its first matching event. Once that event matches, `status` is `stopped` with `stop_reason` `delivered_once`, and its delivery still reaches the conversation. */ once: boolean; status: components["schemas"]["SessionEventSubscriptionStatus"]; stop_reason?: string; /** @description Most recent fail-closed match or delivery diagnostic. */ last_diagnostic?: string; /** Format: date-time */ last_diagnostic_at?: string | null; /** @description Reserved, not-yet-injected event inputs. The subscription stops visibly at 256. */ pending_delivery_count: number; /** * Format: date-time * @description First observed time intake stopped because the pending-input limit was reached. */ coverage_cutoff_at?: string | null; filters: components["schemas"]["SessionEventSubscriptionFilter"][]; /** Format: date-time */ activation_at: string; /** Format: date-time */ activation_reconciled_at?: string | null; /** Format: date-time */ expires_at?: string | null; /** Format: date-time */ stopped_at?: string | null; /** Format: date-time */ created_at: string; /** Format: date-time */ updated_at: string; }; SessionEventSubscriptionCreateResponse: { subscription: components["schemas"]["SessionEventSubscription"]; deduped: boolean; }; SessionEventSubscriptionListResponse: { items: components["schemas"]["SessionEventSubscription"][]; has_more: boolean; next_cursor?: string | null; }; /** @enum {string} */ SessionEventDeliveryStatus: "pending" | "delivered" | "cancelled" | "failed"; SessionEventDelivery: { id: string; subscription_id: string; session_id: string; source_event_id: string; event_type: string; source_id: string; event: { [key: string]: unknown; }; meta: { [key: string]: unknown; }; target_turn_id?: string; message_id?: string; status: components["schemas"]["SessionEventDeliveryStatus"]; /** @description Machine-readable note about this delivery, such as `payload_truncated_at_65536_bytes`. `superseded_by_event_wait` means an agent wait in the same conversation already received this event, so it was not added a second time: the status is `delivered` and `target_turn_id` is the turn that received it. */ diagnostic?: string; /** Format: date-time */ created_at: string; /** Format: date-time */ updated_at: string; /** Format: date-time */ delivered_at?: string | null; /** Format: date-time */ cancelled_at?: string | null; }; SessionEventDeliveryListResponse: { items: components["schemas"]["SessionEventDelivery"][]; has_more: boolean; next_cursor?: string | null; }; /** @description Markdown-extraction state for an Office upload that requested conversion. */ ArtifactConversionSummary: { /** @enum {string} */ state: "converting" | "ready" | "failed"; /** @description Failure reason when state is failed. */ error?: string; }; /** @description Server-owned file exchange provenance. */ ArtifactSource: { /** @description Origin type, such as email_attachment, drive_file or onedrive_item. */ kind: string; /** @description Source provider. */ provider: string; /** @description Exact connection used to save the file. */ connection_id: string; /** @description Source message ID. */ message_id?: string; /** @description Source attachment ID. */ attachment_id?: string; /** @description Gmail MIME part ID, scoped to the source message. */ part_id?: string; /** @description Original attachment filename. */ filename?: string; /** @description Provider message receipt time. */ received_at?: string; /** @description Google Drive file ID. */ file_id?: string; /** @description Google Drive browser URL. */ web_view_link?: string; /** @description Google-native export format used for this snapshot. */ export_mime?: string; /** @description Observed Google Drive version. */ version?: string; /** @description Observed Google Drive head revision. */ head_revision_id?: string; /** @description Observed binary Drive checksum. */ md5_checksum?: string; /** @description OneDrive or SharePoint drive ID. */ drive_id?: string; /** @description OneDrive or SharePoint item ID. */ item_id?: string; /** @description Provider browser URL. */ web_url?: string; /** @description Observed OneDrive entity tag. */ etag?: string; /** @description Observed OneDrive content tag. */ ctag?: string; /** * Format: date-time * @description Time the copy was saved. */ saved_at: string; }; /** @description Server-owned file exchange provenance. */ ArtifactDelivery: { /** @description Destination provider. */ provider: string; /** @description Exact connection used to publish. */ connection_id: string; /** @description OneDrive or SharePoint drive ID. */ drive_id?: string; /** @description OneDrive or SharePoint item ID. */ item_id?: string; /** @description Google Drive file ID. */ file_id?: string; /** @description Published filename. */ name?: string; /** @description Destination browser URL. */ web_url?: string; /** @description Checksum of the delivered library bytes. */ sha256: string; /** * Format: date-time * @description Time publishing completed. */ delivered_at: string; }; /** * @description Stored file or generated artifact metadata. Lineage fields are included by artifact-versions, explicit latest_only=true listings, and uploads declaring previous_artifact_id. Ordinary calls omit the new fields for existing SDKs with strict response decoders. * @example { * "id": "art_2m7q9x5v3p8n4r6t", * "owner": { * "kind": "team" * }, * "visibility": "organization", * "posture": "team", * "name": "reports/review-findings.md", * "mime_type": "text/markdown", * "size_bytes": 1842, * "sha256": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef", * "created_at": "2026-06-15T14:30:00Z", * "created_by": "agent_5n8p2q7m4x9r3v6t" * } */ Artifact: { /** @description Unique artifact identifier. */ id: string; /** @description First artifact ID in this version chain. Always returned by current servers. */ root_id?: string; /** @description Exact parent artifact ID; empty for version one. May point to a deleted version. */ previous_id?: string; /** @description Parent version plus one. Concurrent revisions may share a number; creation time and ID break ties. */ version?: number; owner: components["schemas"]["ResourceOwner"]; visibility: components["schemas"]["ResourceVisibility"]; container?: components["schemas"]["ResourceContainer"]; posture: components["schemas"]["ResourcePosture"]; /** @description Display name or relative virtual path. Forward slash may be used to organize artifacts inside private or organization-visible space. */ name: string; /** @description MIME type recorded for the artifact content. */ mime_type: string; /** * Format: int64 * @description Artifact content size in bytes. */ size_bytes: number; /** @description SHA-256 digest of the artifact content, when available. */ sha256?: string; /** * Format: date-time * @description Time the artifact metadata was created. */ created_at: string; /** @description Principal ID of the actor who created this artifact. Empty for system-initiated writes. */ created_by?: string; /** * Format: date-time * @description Time the artifact metadata was last updated. */ updated_at?: string; /** @description Principal ID of the actor who last updated this artifact. Empty for system-initiated writes. */ updated_by?: string; /** @description Caller-supplied artifact metadata. Mobius-owned storage metadata is not exposed. */ metadata?: { [key: string]: unknown; }; /** @description Conversion summary for an Office artifact that requested conversion. Absent for artifacts with no conversion. */ conversion?: components["schemas"]["ArtifactConversionSummary"]; source?: components["schemas"]["ArtifactSource"]; /** @description The newest successful publish destinations, in chronological order. */ readonly delivered_to?: components["schemas"]["ArtifactDelivery"][]; }; /** * @description V1 accepts invoke; notify is reserved and returns unsupported_routine_kind. * @enum {string} */ RoutineKind: "invoke" | "notify"; /** * @description Whose the routine is. `person` pauses with its owner's offboarding and runs on their connections. `team` belongs to the business: it has no `owner_id`, survives its creator's departure, and must name at least one responsible person. A routine installed from a blueprint has none while it waits for setup, and naming one is part of turning it on. * @enum {string} */ RoutineOwnerKind: "person" | "team"; /** * @description Who may change the routine. `team` is any member who can already reach it; `named` is the principals holding a `manager` row plus organization administrators. Defaults to `named`; only a person may change it, because `named` -> `team` turns "these people" into "anyone". * @enum {string} */ RoutineManagedBy: "team" | "named"; /** * @description The relationship a principal holds to a routine. `follower` is opt-in attention, `responsible` is the person the routine waits on, `manager` may change it. One principal may hold more than one. * @enum {string} */ RoutineRelationship: "follower" | "responsible" | "manager"; /** * @description Narrows what a follower is notified about. Ignored on the other relationships, which are always notified. * @enum {string} */ RoutineFollowLevel: "all_results" | "failures_only"; RoutinePrincipal: { principal_id: string; relationship: components["schemas"]["RoutineRelationship"]; level?: components["schemas"]["RoutineFollowLevel"]; /** * @description The principal's kind, resolved from the principal record. * @enum {string} */ kind: "human" | "agent" | "service" | "system"; display_name?: string; /** @description Principal who wrote this row. */ added_by?: string; /** Format: date-time */ added_at: string; }; RoutinePrincipalList: { items: components["schemas"]["RoutinePrincipal"][]; }; AddRoutinePrincipalRequest: { /** @description Confirm access to existing and future routine results and the selected manager powers. Required when inviting another person to private work. */ confirm_audience_expansion?: boolean; principal_id: string; relationship: components["schemas"]["RoutineRelationship"]; level?: components["schemas"]["RoutineFollowLevel"]; }; /** @description Exactly one of at, interval, or cron is required. */ RoutineSchedule: { /** Format: date-time */ at?: string; /** @example 24h */ interval?: string; /** @example 0 8 * * * */ cron?: string; /** @example America/New_York */ timezone?: string; /** Format: date-time */ starts_at?: string; /** Format: date-time */ ends_at?: string; max_occurrences?: number; }; /** * @description What starts this routine's runs. `schedule` fires on the routine's schedule; `event` fires when a matching integration event arrives. Derived from whichever of `schedule` and `event` the routine carries, never stored. * @enum {string} */ RoutineTrigger: "schedule" | "event"; /** @description Exactly one of `schedule` and `event` is required: a routine runs on a schedule or when an event arrives, not both. */ RoutineCreateRequest: { /** @description Immutable follow target from the event catalog. Omitted uses the catalog target whose default_for matches the event type, or event when none does; event always creates a conversation per event; routine shares one conversation; custom evaluates follow_key. A provider target keeps an event type it covers and otherwise subscribes to the whole provider. */ follow_target?: string | null; /** @description Immutable expr over event and meta; required only with custom. Must yield a non-empty string of at most 2048 bytes. */ follow_key?: string | null; /** * @description Seconds without events before an open thread is shown as idle. * @default 1209600 */ idle_after?: number; /** * @description Turn allowance per thread. Only a human can raise it. * @default 25 */ max_turns_per_thread?: number; /** * @description Maximum concurrent threads. Only a human can raise it. * @default 5 */ concurrency?: number; connection_bindings?: components["schemas"]["ConnectionBindings"]; /** @description Confirm access to existing and future routine results and the selected manager powers. Required when inviting another person to private work. */ confirm_audience_expansion?: boolean; /** @description Optional conversation this routine was proposed in, kept as provenance. Occurrences run in their own sessions, so this never affects where results are delivered. Omitted for a routine created from the form. */ session_id?: string; agent_id: string; name?: string; instructions: string; kind?: components["schemas"]["RoutineKind"]; schedule?: components["schemas"]["RoutineSchedule"]; /** @description Runs the routine when a matching integration event arrives. Each matched event creates a ledger entry for each followed thread. Runs serialize within a thread, with concurrent threads bounded by the routine's concurrency setting; each-event routines serialize per routine. Waiting thread events may be coalesced into the newest entry. A run still waiting six hours later is closed `skipped` with `error_code` `stale`. `event_type` may be omitted when `follow_target` names a provider target, which derives the subscription; the `event`, `routine`, and `custom` follow targets require an explicit event type. */ event?: components["schemas"]["EventTrigger"]; /** * @deprecated * @description Ignored. An assistant chooses a folder for each file it saves. */ output_folder?: string | null; /** @description Model every run uses instead of the assistant's. Omit to use the assistant's model. Whether the organization may run it is checked when each run starts. Rejected for a worker-routed assistant. */ model_override?: string; /** @description Reasoning effort every run uses instead of the assistant's. Omit (or send `inherit`) to use the assistant's. */ thinking_effort?: components["schemas"]["ThinkingEffort"]; /** Format: int64 */ per_occurrence_ceiling_milli: number; /** Format: int64 */ daily_ceiling_milli: number; /** @description Defaults to `person`. `team` requires organization administration. */ owner_kind?: components["schemas"]["RoutineOwnerKind"]; /** @description Defaults to `named`. */ managed_by?: components["schemas"]["RoutineManagedBy"]; /** @description The people the routine waits on. Required and non-empty when `owner_kind` is `team`; rejected otherwise. Each must be a person. */ responsible_principal_ids?: string[]; /** @description Principals who opt into the routine's results. The creator is added automatically. */ follower_principal_ids?: string[]; }; RoutineUpdateRequest: { /** @description Immutable follow target. May be omitted or echo the current value (null and event are the same value); changing it is rejected. Create a new routine to follow a different target. */ follow_target?: string | null; /** @description Immutable custom follow expression. May be omitted or echo the current value; changing it is rejected. Create a new routine to use a different expression. */ follow_key?: string | null; /** * @description Seconds without events before an open thread is shown as idle. * @default 1209600 */ idle_after?: number; /** * @description Turn allowance per thread. Only a human can raise it. * @default 25 */ max_turns_per_thread?: number; /** * @description Maximum concurrent threads. Only a human can raise it. * @default 5 */ concurrency?: number; connection_bindings?: components["schemas"]["ConnectionBindings"]; name?: string; instructions?: string; /** * @deprecated * @description Ignored. An assistant chooses a folder for each file it saves. */ output_folder?: string | null; /** @description Replacement model for every run. Omit to leave it unchanged; send an empty string to return to the assistant's model. */ model_override?: string; /** @description Replacement reasoning effort for every run. Omit to leave it unchanged; send `inherit` to return to the assistant's. */ thinking_effort?: components["schemas"]["ThinkingEffort"]; /** @description Makes this a scheduled routine, dropping any event trigger it had. Rejected together with `event`. */ schedule?: components["schemas"]["RoutineSchedule"]; /** @description Makes this an event routine, dropping any schedule it had. Rejected together with `schedule`. */ event?: components["schemas"]["EventTrigger"]; /** * Format: int64 * @description A person may move this either way. An agent may only lower it, so no agent widens the budget it runs under; raising it as an agent receives 403. */ per_occurrence_ceiling_milli?: number; /** * Format: int64 * @description Must remain at least the per-occurrence ceiling. A person may move it either way; an agent may only lower it. */ daily_ceiling_milli?: number; /** @description Only a person may change this. An agent manager receives 403. */ managed_by?: components["schemas"]["RoutineManagedBy"]; }; Routine: { /** @description Immutable follow target from the event catalog. Null or event creates a conversation per event; routine shares one conversation; custom evaluates follow_key. Provider targets derive the event subscription. */ follow_target?: string | null; /** @description Immutable expr over event and meta; required only with custom. Must yield a non-empty string of at most 2048 bytes. */ follow_key?: string | null; /** * @description Seconds without events before an open thread is shown as idle. * @default 1209600 */ idle_after?: number; /** * @description Turn allowance per thread. Only a human can raise it. * @default 25 */ max_turns_per_thread?: number; /** * @description Maximum concurrent threads. Only a human can raise it. * @default 5 */ concurrency?: number; /** @description Actions permitted for this caller; the server rechecks each request. `edit` changes the name, schedule, model, and lowers limits. `configure` also changes the instructions, the watched event, the accounts it uses, and raises limits: on a person's routine only its owner may. */ available_actions?: ("edit" | "configure" | "run" | "pause" | "resume" | "delete" | "invite")[]; posture?: components["schemas"]["ResourcePosture"]; /** @enum {string} */ audience?: "private" | "named" | "organization" | "team"; id: string; org_id: string; agent_id: string; /** @description The conversation the routine was proposed in, kept as provenance and nothing more. Each occurrence runs in its own session, so this is absent for a form-created routine and for one whose conversation has since been deleted. Archiving it does not stop the routine. */ origin_session_id?: string; /** @description The custodian. Absent under team custody, which has no owner. */ owner_id?: string; owner_kind: components["schemas"]["RoutineOwnerKind"]; managed_by: components["schemas"]["RoutineManagedBy"]; /** @description The people this routine waits on. Non-empty under team custody, except on a routine installed from a blueprint that still waits for setup. */ responsible?: components["schemas"]["RoutinePrincipal"][]; /** @description Whether the calling principal follows this routine. */ following: boolean; /** @description Whether a recent run has landed since the calling principal last opened its session. Computed per caller from their session read marks, never stored, and always false on a routine they do not follow — following is what opts you into the indicator. */ unread?: boolean; /** @description Principals holding a follower row. Responsible people and managers are notified too, and are named separately. */ follower_count: number; name: string; /** @description Present only after ordinary content access is authorized. */ instructions?: string; kind: components["schemas"]["RoutineKind"]; trigger: components["schemas"]["RoutineTrigger"]; /** @description Present when `trigger` is `schedule`. */ schedule?: components["schemas"]["RoutineSchedule"]; /** @description Present when `trigger` is `event`. */ event?: components["schemas"]["EventTrigger"]; timezone: string; /** @description Model every run uses. Absent when runs use the assistant's model. */ model_override?: string; /** @description Reasoning effort every run uses. Absent when runs use the assistant's. */ thinking_effort?: components["schemas"]["ThinkingEffort"]; status: components["schemas"]["RoutineStatus"]; pause_reason?: string; /** * @description Caller-specific persistent attention state. Absence does not prove provider connectivity. * @enum {string} */ attention?: "account_repair"; /** * Format: date-time * @description Absent on an event routine, which has no next fire to predict. */ next_fire_at?: string; /** Format: date-time */ last_fire_at?: string; /** Format: date-time */ completed_at?: string; /** Format: int64 */ per_occurrence_ceiling_milli: number; /** Format: int64 */ daily_ceiling_milli: number; connection_bindings?: components["schemas"]["ConnectionBindings"]; /** Format: date-time */ created_at: string; /** Format: date-time */ updated_at: string; }; RoutineList: { items: components["schemas"]["Routine"][]; has_more: boolean; next_cursor?: string; }; /** @description One run of a routine, and the durable record of it. Status, outcome, error, credits, and timing all live here, so a run whose transcript is gone is still a complete row. */ RoutineOccurrence: { /** @description Stable URL-safe key of the followed thread. */ thread_key?: string; /** @description Followed item title at event intake. */ thread_title?: string; /** @description Occurrence ID retaining this event when skipped as coalesced. */ coalesced_into?: string; id: string; routine_id: string; /** @description The routine's current name, carried on the row so a cross-routine ledger renders without joining against every routine in the organization. */ routine_name?: string; /** @description The conversation this run happened in, minted at admission. Absent for a run skipped before admission, and for one whose session has since been deleted. */ session_id?: string; /** Format: date-time */ scheduled_at: string; /** Format: date-time */ intake_at: string; /** Format: int64 */ lateness_milliseconds: number; /** * @description What put this run on the ledger: the routine's schedule, a principal asking for it now, or an integration event that matched the routine's event trigger. Every kind is bounded and recorded the same way. Always present — a row written before manual runs existed reads as `schedule`, which is what it was. * @enum {string} */ trigger: "schedule" | "manual" | "event"; /** @description The principal who put this run on the ledger, named the same way the routine's changelog names an actor: a human or an agent, either of which can ask for a run through the API. Always present when `trigger` is `manual`, because a manual run is somebody's act and the record has to say whose. For a scheduled or event run it is the routine's own custodian, and so absent under team custody, which has no custodian to name. */ triggered_by?: string; /** @description The source event that started this run. Present only when `trigger` is `event`; it is the row the integration events list shows for the delivery. */ source_event_id?: string; /** @description The exact connection and grant pair whose event started this run. Immutable server-authored provenance, not action authority. */ event_source_binding?: components["schemas"]["ConnectionBinding"]; /** @description The accounts this run was cleared to use, as admission checked them. Absent before admission and for a run that uses no account. */ connection_bindings?: components["schemas"]["ConnectionBindings"]; /** @description The concrete event type that arrived (`github.issues.opened`), not the pattern the routine subscribed to. Present only when `trigger` is `event`. */ event_type?: string; /** * @description `blocked` is a run that ended without doing its work: the assistant reported it (`error_code` `agent_reported`), or the conversation's files could not be opened (`workspace_unavailable`). `error_message` says why. A pending run with `next_attempt_at` is waiting to be tried again after an attempt that stopped. * @enum {string} */ status: "pending" | "admitted" | "completed" | "failed" | "blocked" | "skipped" | "missed"; /** * Format: date-time * @description When a pending run that already ran once will be tried again. Absent otherwise. */ next_attempt_at?: string; /** @description A completed run's headline: one line saying what it did, derived from the run's own final message with markdown removed and length capped, falling back to the scheduled time when the run said nothing. Safe to render in a table cell as-is. */ outcome?: string; error_code?: string; error_message?: string; turn_id?: string; /** Format: int64 */ credits_spent_milli: number; /** @description The model this run's conversation ran on, whether chosen by the routine, the assistant, or the organization default. Absent for a run that never reached a model. */ model?: string; /** @description Whether this run landed after the calling principal last opened its session. Computed per caller from their session read marks, never stored, and always false on a routine they do not follow. */ unread?: boolean; /** @description Link to the run's transcript, which is the whole of session_id's conversation: one session holds exactly one occurrence. Absent whenever session_id is; render the row without it rather than as an error. */ transcript_url?: string; }; /** * @description One recorded change to a routine, read from the audit trail. * * Deliberately narrower than an audit log entry: no IP address, no user agent, no request ID. This is a product surface a colleague reads, not a security investigation, and the operational fields would expose a person to everyone who can see the routine they touched. */ RoutineChange: { id: string; /** @description What happened: create, update, delete, transfer, or run (a person asking for a run now). */ action: string; /** @description The actor's display name as it stood when the change was made. An agent's name appears here exactly as a person's does. */ actor_name?: string; /** @description The human or agent who made the change. */ principal_id?: string; /** @description The credential or session the change came through, when one was recorded. */ credential_name?: string; /** @description The values before and after. Withheld fields read as `` rather than disappearing. */ changes?: { before?: { [key: string]: unknown; }; after?: { [key: string]: unknown; }; }; /** @enum {string} */ status: "success" | "failure"; error_type?: string; /** Format: date-time */ created_at: string; }; RoutineChangeList: { items: components["schemas"]["RoutineChange"][]; has_more: boolean; next_cursor?: string; }; RoutineOccurrenceList: { items: components["schemas"]["RoutineOccurrence"][]; has_more: boolean; next_cursor?: string; }; RoutineProposal: { id: string; session_id: string; agent_id: string; proposed_to: string; /** @enum {string} */ status: "pending" | "approved" | "dismissed" | "expired"; routine_id?: string; /** Format: date-time */ expires_at: string; /** @description What the agent proposed. */ payload: { [key: string]: unknown; }; /** @description What the owner approved, edits included. Present once approved. */ approved_payload?: { [key: string]: unknown; }; }; /** @description The owner's approval, with any changes made on the card. An omitted field keeps the proposal's value. Changing the schedule or a ceiling recomputes the 30-day maximum. */ RoutineProposalApproval: { /** @description Confirm sharing existing and future routine results with the proposed named people. */ confirm_audience_expansion?: boolean; name?: string; instructions?: string; schedule?: components["schemas"]["RoutineSchedule"]; /** * @deprecated * @description Ignored. An assistant chooses a folder for each file it saves. */ output_folder?: string; /** Format: int64 */ per_occurrence_ceiling_milli?: number; /** Format: int64 */ daily_ceiling_milli?: number; /** @description People to share the routine with, replacing the proposed list. An empty list shares it with nobody. Naming anyone requires confirm_audience_expansion. */ follower_principal_ids?: string[]; /** @description Connected accounts each run uses, replacing the proposed ones. An empty object uses none. */ connection_bindings?: components["schemas"]["ConnectionBindings"]; }; RoutineThread: { /** @description Opaque stable URL-safe thread key. */ key: string; routine_id: string; session_id?: string; /** @enum {string} */ state: "open" | "idle" | "closed"; outcome?: string; title: string; url?: string; author?: string; adopted: boolean; event_count: number; turn_count: number; /** @description The turn allowance is exhausted; a human manager can resume the thread or raise the routine cap. */ paused: boolean; /** Format: int64 */ credits_spent_milli: number; /** Format: date-time */ opened_at: string; /** Format: date-time */ last_event_at: string; /** Format: date-time */ closed_at?: string; }; RoutineThreadList: { items: components["schemas"]["RoutineThread"][]; has_more: boolean; next_cursor?: string; }; RoutineFollowPreviewRequest: { integration_event_id: string; follow_key: string; }; RoutineFollowPreview: { key: string; /** @description The expression's resolved value. */ title: string; }; /** * @example { * "name": "Pull request review", * "description": "Review pull requests for correctness and risk.", * "instructions": "Check the diff and leave concise findings.", * "allowed_actions": [ * "github.create_review_comment" * ], * "tags": { * "owner": "product" * } * } */ SkillRequest: { /** @description Human-readable skill name. */ name: string; /** @description Markdown description of the skill's purpose. */ description?: string; /** @description Markdown instructions loaded when the skill is active. */ instructions: string; /** * @description Action selectors naming the actions this skill permits after it is invoked. Empty declares nothing and narrows nothing. * @default [] */ allowed_actions?: string[]; /** * @description Action selectors that must already be effective for this skill to be invoked. * @default [] */ required_actions?: string[]; /** * @description Optional action selectors that produce warnings when absent and never select actions. * @default [] */ recommended_actions?: string[]; /** @description Optional explicit custodian. Omit to keep the default shown by the create surface. */ owner?: components["schemas"]["ResourceOwner"]; /** @description Optional declared audience. Omit for Only you. */ visibility?: components["schemas"]["ResourceVisibility"]; /** @description Labels to apply to the skill. */ tags?: components["schemas"]["TagMap"]; }; ImportSkillRequest: { /** @description Full skill document, optionally with YAML frontmatter. */ content: string; /** @description Optional name override. */ name?: string; }; SkillListResponse: { /** @description The list of results for this page. */ items: components["schemas"]["Skill"][]; }; /** * @description `apply` performs the change; `preview` validates and returns a plan without mutating resources. * @enum {string} */ BlueprintApplyMode: "preview" | "apply"; /** * @description The kind of Mobius resource a binding or change refers to. * @enum {string} */ BlueprintResourceType: "action" | "skill" | "agent" | "table" | "routine"; /** * @description What apply did (or, in preview, would do): `created` a new resource, `updated` a managed one, `adopted` a matching unmanaged one, or left an `unchanged` resource untouched. * @enum {string} */ BlueprintChangeAction: "created" | "updated" | "adopted" | "unchanged"; /** @description A reference to a Mobius resource by direct `id`, by blueprint `key` (resolved within this apply first, then against existing bindings), or by `blueprint_ref` (resolved by key; its namespace is recorded as provenance and is not used for reference resolution in this version). */ BlueprintResourceRef: { /** @description Direct resource id. */ id?: string; /** @description Blueprint-defined resource key. */ key?: string; blueprint_ref?: components["schemas"]["BlueprintRef"]; }; /** @description A namespaced blueprint key reference. */ BlueprintRef: { namespace?: string; key: string; }; /** @description A desired blueprint plus the apply mode. */ ApplyBlueprintRequest: { /** @description Optional namespace that forms part of the blueprint identity. */ namespace?: string; /** @description Optional blueprint identifier that forms part of the blueprint identity. */ blueprint_key?: string; /** @description Optional blueprint version recorded as provenance. */ blueprint_version?: string; /** @description When set, controls whether ordinary update and delete operations may change resources managed by this blueprint. Blueprint Apply and blueprint deletion remain allowed. Omit to preserve protection on existing bindings; new bindings default to unprotected. */ protect_resources?: boolean; mode?: components["schemas"]["BlueprintApplyMode"]; resources: components["schemas"]["BlueprintResources"]; }; /** @description The desired resources grouped by type. All groups are optional. */ BlueprintResources: { actions?: components["schemas"]["BlueprintActionInput"][]; skills?: components["schemas"]["BlueprintSkillInput"][]; agents?: components["schemas"]["BlueprintAgentInput"][]; tables?: components["schemas"]["BlueprintTableInput"][]; routines?: components["schemas"]["BlueprintRoutineInput"][]; }; /** @description A desired scheduled team routine. Apply creates it paused with the reason `waiting_for_setup`, with no responsible person and no accounts. It never runs until someone names a responsible person and resumes it. Re-apply updates its name, instructions, schedule, and ceilings, and never its status, people, or accounts. */ BlueprintRoutineInput: { key: string; name: string; /** @description Key of an agent in this blueprint. Fixed after the routine is created. */ agent_key: string; instructions: string; schedule: components["schemas"]["RoutineSchedule"]; /** Format: int64 */ per_occurrence_ceiling_milli: number; /** Format: int64 */ daily_ceiling_milli: number; }; /** @description A desired action. `name` is its immutable org-unique identity. */ BlueprintActionInput: { /** @description Blueprint-defined handle other resources use to reference it. */ key: string; name: string; /** * @description Endpoint kind. Defaults to `http`. Immutable after create. * @enum {string} */ type?: "http" | "worker"; /** @description Endpoint URL for http actions. */ endpoint?: string; title?: string; description?: string; input_schema?: { [key: string]: unknown; }; output_schema?: { [key: string]: unknown; }; annotations?: components["schemas"]["BlueprintActionAnnotations"]; tags?: components["schemas"]["TagMap"]; }; /** @description Behavioral annotations describing how an action may be used. */ BlueprintActionAnnotations: { idempotent?: boolean; destructive?: boolean; read_only?: boolean; long_running?: boolean; }; /** @description A desired skill. */ BlueprintSkillInput: { key: string; name: string; title?: string; description?: string; instructions?: string; /** @description Action selectors naming the actions this skill permits after it is invoked. Empty declares nothing and narrows nothing. */ allowed_actions?: string[]; /** @description Action selectors that must already be effective for this skill to be invoked. */ required_actions?: string[]; /** @description Optional action selectors that warn when absent and never select actions. */ recommended_actions?: string[]; tags?: components["schemas"]["TagMap"]; }; /** @description A desired agent. `skills`, when present, replaces the agent's full assignment set; omit it to leave existing assignments untouched. */ BlueprintAgentInput: { key: string; name: string; description?: string; model?: string; /** @description Default route for model calls made by this agent. */ model_route?: components["schemas"]["AgentModelRoute"]; /** @description How selected actions are presented to the model. */ tool_presentation?: components["schemas"]["AgentToolPresentation"]; /** @description Exact reviewed actions selected for this agent. Templates should use exact selectors so the proposed authority is visible during review. An empty array selects no catalog actions. */ action_selectors?: components["schemas"]["ActionSelector"][]; system_prompt?: string; /** * Format: int64 * @description Per-turn execution timeout; `0` uses the platform default. */ timeout_seconds?: number; /** @description Desired agent lifecycle status. */ status?: components["schemas"]["AgentStatus"]; /** @description Default session-compaction policy inherited by new sessions. */ compaction_policy?: components["schemas"]["SessionCompactionPolicy"]; /** @description Default reasoning-effort level for the agent's sessions. */ thinking_effort?: components["schemas"]["ThinkingEffort"]; color?: string; skills?: components["schemas"]["BlueprintResourceRef"][]; tags?: components["schemas"]["TagMap"]; }; /** @description A desired table. `key` is its stable Blueprint handle; `name` is org-unique (lower snake_case) and may be changed after binding. `schema` carries the full column and identity definition and is validated on apply. The identity column and the required-ness of existing columns are immutable after create, so a re-apply that changes them is rejected. */ BlueprintTableInput: { /** @description Blueprint-defined handle other resources use to reference it. */ key: string; name: string; description?: string; /** @description Optional author guidance for how this table should be used (e.g. surfaced to agents). */ instructions?: string; schema: components["schemas"]["TableSchema"]; }; /** @description The outcome of an apply or preview. */ BlueprintApplyResult: { /** * @description `applied` for a mutating apply, `previewed` for a preview. * @enum {string} */ status: "applied" | "previewed"; namespace?: string; blueprint_key?: string; blueprint_version?: string; changes: components["schemas"]["BlueprintChange"][]; bindings: components["schemas"]["BlueprintBinding"][]; }; BlueprintChange: { resource_type: components["schemas"]["BlueprintResourceType"]; key: string; action: components["schemas"]["BlueprintChangeAction"]; /** @description The provisioned resource id. Empty for would-create entries in a preview. */ resource_id?: string; }; BlueprintBinding: { resource_type: components["schemas"]["BlueprintResourceType"]; key: string; resource_id: string; namespace?: string; blueprint_key?: string; blueprint_version?: string; /** @description Whether ordinary definition mutations are blocked. */ protected: boolean; /** @description Whether deleting the blueprint will delete this resource instead of retaining it. */ delete_on_destroy: boolean; }; BlueprintBindingListResponse: { items: components["schemas"]["BlueprintBinding"][]; }; SetBlueprintProtectionRequest: { protected: boolean; }; BlueprintDeleteResult: { /** @enum {string} */ status: "deleted"; namespace?: string; blueprint_key: string; /** @description Resources deleted with the blueprint. */ deleted: components["schemas"]["BlueprintBinding"][]; /** @description Adopted or legacy resources retained after their bindings were removed. */ retained: components["schemas"]["BlueprintBinding"][]; }; /** * @description Column value type: `string`, `number`, `boolean`, `date`, `object`, `array`, or `any`. `link` stores one row of another table and reads as `{id, name}`. `lookup` and `rollup` are computed on read and cannot be written. `select` holds one of the column's `choices`; `multi_select` holds an array of them. * @enum {string} */ ColumnType: "string" | "number" | "boolean" | "date" | "object" | "array" | "any" | "link" | "lookup" | "rollup" | "select" | "multi_select"; /** @description For a `link` column, the table each cell points at. A cell holds one row. */ ColumnLink: { /** @description Target table id. A table name is accepted on write and stored as the id. */ table: string; /** * @description What deleting a target row does. `restrict` refuses while rows link to it; `set_null` clears those cells. * @default restrict * @enum {string} */ on_delete?: "restrict" | "set_null"; }; /** @description For a `lookup` column, a read-only value shown from the linked row. */ ColumnLookup: { /** @description Link column in this table. */ via: string; /** @description Stored column in the linked table. */ field: string; }; /** @description For a `rollup` column, a read-only aggregate over rows in another table that link to this row. */ ColumnRollup: { /** @description Table id whose rows link here. A table name is accepted on write. */ from_table: string; /** @description Link column in `from_table` that points at this table. */ via: string; /** * @description Aggregate function. * @enum {string} */ fn: "count" | "sum" | "avg" | "min" | "max"; /** @description Column in `from_table` to aggregate. Not used by `count`. */ field?: string; /** @description Optional filter on `from_table` rows, in query filter syntax. */ where?: { [key: string]: unknown; }; }; /** * @description Chip color from the product palette. A choice saved without one takes the next palette color. * @enum {string} */ ChoiceColor: "blue" | "green" | "yellow" | "orange" | "red" | "pink" | "grape" | "violet" | "indigo" | "cyan" | "teal" | "lime" | "gray"; /** @description One allowed value of a select column. */ ColumnChoice: { /** @description The value as stored and shown. */ value: string; color?: components["schemas"]["ChoiceColor"]; }; /** @description How a column's values read in the table. It never changes stored values. */ ColumnDisplay: { /** * @description Numbers: `integer`, `decimal`, `currency`, `percent`, `rating` (1-5 stars), `progress` (0-100). Strings: `long_text`, `url`, `email`, `phone`. Dates: `date`, `datetime`, `relative`. Rollups and lookups take the number and date formats. * @enum {string} */ format?: "integer" | "decimal" | "currency" | "percent" | "rating" | "progress" | "long_text" | "url" | "email" | "phone" | "date" | "datetime" | "relative"; /** @description Decimal places for `decimal`, `currency`, and `percent`. */ decimals?: number; /** @description ISO 4217 code for `currency`. Defaults to USD. */ currency?: string; /** * @description For select columns, how chips are filled. Defaults to `light`. * @enum {string} */ chips?: "light" | "filled"; }; /** @description One typed column in a table schema. */ ColumnDef: { /** @description Column name used as the key inside row `data`. */ name: string; /** @description JSON-compatible value type accepted for this column. */ type: components["schemas"]["ColumnType"]; /** * @description Whether inserts must include a non-null value for this column. * @default false */ required?: boolean; /** * @deprecated * @description Compatibility hint retained for older schemas. It does not create a physical database index. * @default false */ indexed?: boolean; /** @description Default value applied when column is absent on insert */ default?: unknown; /** @description Human-readable explanation of the column's purpose. */ description?: string; /** * @description Whether authors should avoid using this column in new rows. * @default false */ deprecated?: boolean; link?: components["schemas"]["ColumnLink"]; lookup?: components["schemas"]["ColumnLookup"]; rollup?: components["schemas"]["ColumnRollup"]; /** @description For a `select` or `multi_select` column, the allowed values in display and sort order. */ choices?: components["schemas"]["ColumnChoice"][]; display?: components["schemas"]["ColumnDisplay"]; }; /** @description Compatibility metadata for older table schemas. Declared indexes do not create physical database indexes. */ IndexDef: { /** @description Stable index name unique within the table schema. */ name: string; /** @description Column names included in the index, in order. */ columns: string[]; }; /** @description Column definition for a virtual table. Each table has exactly one required string identity column and may nominate one optional string secondary key column. */ TableSchema: { /** @description Name of the required string column that uniquely identifies one row in this table. */ identity_column: string; /** @description Optional string column optimized for secondary lookups. It cannot be changed after creation. */ secondary_key_column?: string; /** @description Ordered list of columns accepted in row data. */ columns: components["schemas"]["ColumnDef"][]; /** * @deprecated * @description Compatibility metadata retained for older schemas. Index declarations do not create physical database indexes. */ indexes?: components["schemas"]["IndexDef"][]; /** * @description Allows rows to include undeclared keys while declared columns continue to be validated. * @default false */ open?: boolean; }; /** * @description Machine principal kind. `service` is the standalone user-facing API client identity. `agent` and `system` are internal backing identities for agent execution and platform-internal work. (Human principals are managed as organization members, not on this surface.) * @enum {string} */ PrincipalKind: "service" | "agent" | "system"; /** * @description Canonical business-lifecycle state. `active` allows authentication and job claims; `disabled` is a reversible kill switch that blocks them but preserves the record and its assignments; `deleted` is the retained archived state used for audit, attribution, and history. * @enum {string} */ PrincipalState: "active" | "disabled" | "deleted"; /** @description Non-human identity used by workers, agents, and API keys. A principal makes permissions, delegation, and credential rotation explicit without tying machine access to a human user. The `id` is the stable identity used by credentials, role assignments, and agent execution. */ Principal: { /** @description Unique identifier for this principal. */ id: string; /** @description Machine kind of this principal. */ kind: components["schemas"]["PrincipalKind"]; /** @description Current lifecycle state: `active`, `disabled`, or retained `deleted`. */ state: components["schemas"]["PrincipalState"]; /** @description Human-readable name for this principal. Immutable after creation. */ name: string; /** @description Optional human-readable description. */ description?: string; /** @description Typed, human-readable stable reference for this machine principal (`svc:acme-ci`, `agent:harry`, `system`). Replaces the synthetic email for non-humans (PRD 2026-06-04 FR-3). */ handle?: string; /** @description Optional human principal accountable for this machine principal. */ owner_id?: string; /** @description Role IDs currently assigned to this principal in the org. */ role_ids?: string[]; /** @description Arbitrary key-value metadata. Subject to size and nesting depth limits. */ metadata?: { [key: string]: unknown; }; tags?: components["schemas"]["TagMap"]; /** * Format: date-time * @description Timestamp when this principal was created. */ created_at: string; /** * Format: date-time * @description Timestamp when this principal was last updated. */ updated_at: string; }; PrincipalListResponse: { /** @description The list of results for this page. */ items: components["schemas"]["Principal"][]; }; CreatePrincipalRequest: { /** @description Human-readable name for this principal. Immutable after creation. */ name: string; /** @description Optional human-readable description. */ description?: string; /** @description Human principal accountable for this service principal. */ owner_id?: string; /** @description Arbitrary metadata to attach to the principal. */ metadata?: { [key: string]: unknown; }; /** @description One or more role IDs to assign at creation time. All assignments are created atomically with the principal. Requires `mobius.org.admin`. Each role must belong to this org or be system-defined. */ role_ids?: string[]; tags?: components["schemas"]["TagMap"]; }; UpdatePrincipalRequest: { /** @description Replacement description. */ description?: string; /** @description Replacement lifecycle state: `active` or `disabled`. */ state?: components["schemas"]["PrincipalState"]; /** @description Human principal accountable for this principal. */ owner_id?: string; /** @description Replacement metadata. */ metadata?: { [key: string]: unknown; }; /** @description Replacement role IDs for this principal in the org. Send an empty array to remove all org role assignments. Requires `mobius.org.admin`. */ role_ids?: string[]; tags?: components["schemas"]["TagMap"]; }; /** * @description Table metadata and schema. * @example { * "id": "table_2x7q5m9v3p8r4n6t", * "name": "review_findings", * "description": "Pull-request review findings.", * "schema": { * "columns": [ * { * "name": "pull_request_url", * "type": "string", * "required": true * }, * { * "name": "severity", * "type": "string" * }, * { * "name": "summary", * "type": "string" * } * ], * "identity_column": "pull_request_url" * }, * "tags": { * "team": "product" * }, * "created_by": "user_2f9s3k4m5n6p7q8r", * "updated_by": "user_2f9s3k4m5n6p7q8r", * "created_at": "2026-06-15T14:30:00Z", * "updated_at": "2026-06-15T14:30:00Z" * } */ Table: { /** @description Unique table identifier. */ id: string; owner: components["schemas"]["ResourceOwner"]; visibility: components["schemas"]["ResourceVisibility"]; container?: components["schemas"]["ResourceContainer"]; posture: components["schemas"]["ResourcePosture"]; controls: components["schemas"]["ResourceControls"]; /** @description Lowercase snake_case table name, unique within the org. */ name: string; /** @description Human-readable table description. */ description?: string; /** @description Optional author guidance for how this table should be used (e.g. surfaced to agents). */ instructions?: string; /** @description Column and index schema enforced for table rows. */ schema: components["schemas"]["TableSchema"]; /** @description Free-form labels used for filtering, ownership, or automation. */ tags?: components["schemas"]["TagMap"]; /** @description User ID of the principal who created this table. */ created_by?: string; /** @description User ID of the principal who last updated this table. */ updated_by?: string; /** * Format: date-time * @description Time the table was created. */ created_at: string; /** * Format: date-time * @description Time the table metadata or schema was last updated. */ updated_at: string; }; /** * @description Cursor-paginated list of tables. * @example { * "items": [ * { * "id": "table_2x7q5m9v3p8r4n6t", * "name": "review_findings", * "schema": { * "columns": [ * { * "name": "pull_request_url", * "type": "string", * "required": true * } * ], * "identity_column": "pull_request_url" * }, * "created_at": "2026-06-15T14:30:00Z", * "updated_at": "2026-06-15T14:30:00Z" * } * ], * "has_more": false * } */ TableListResponse: { /** @description Tables in the current page. */ items: components["schemas"]["Table"][]; /** @description Whether another page is available. */ has_more: boolean; /** @description Cursor to pass on the next request when `has_more` is true. */ next_cursor?: string; }; /** @description Point-in-time storage and indexing statistics for one table. */ TableStats: { /** @description Table these statistics describe. */ table_id: string; /** * Format: int64 * @description Approximate number of rows in the table. */ row_count: number; /** * Format: int64 * @description Approximate bytes used by table data. */ approx_data_bytes: number; /** * Format: int64 * @description Approximate bytes used by secondary lookup indexes. */ approx_index_bytes: number; /** @description Number of schema columns optimized for secondary lookup. */ indexed_column_count: number; /** @description Number of compatibility index declarations stored in the table schema. */ declared_index_count: number; /** @description Whether the table-scoped keyword search index is present. */ search_index_present: boolean; /** * Format: date-time * @description Time this statistics snapshot was generated. */ generated_at: string; /** * Format: date-time * @description Creation time of the oldest row, when the table has rows. */ oldest_row_created_at?: string; /** * Format: date-time * @description Update time of the newest changed row, when the table has rows. */ newest_row_updated_at?: string; }; /** * @example { * "name": "review_findings", * "description": "Pull-request review findings.", * "schema": { * "columns": [ * { * "name": "pull_request_url", * "type": "string", * "required": true * }, * { * "name": "severity", * "type": "string" * }, * { * "name": "summary", * "type": "string" * } * ], * "identity_column": "pull_request_url" * } * } */ CreateTableRequest: { /** @description Table name (lowercase, snake_case); unique within the org. */ name: string; /** @description Optional human-readable description of the table. */ description?: string; /** @description Optional author guidance for how this table should be used (e.g. surfaced to agents). */ instructions?: string; owner?: components["schemas"]["ResourceOwner"]; visibility?: components["schemas"]["ResourceVisibility"]; /** @description Column and index definition for the new table. */ schema: components["schemas"]["TableSchema"]; }; UpdateTableRequest: { /** @description Table name (lowercase, snake_case); unique within the org. */ name?: string; /** @description Optional human-readable description of the table. */ description?: string; /** @description Optional author guidance for how this table should be used (e.g. surfaced to agents). */ instructions?: string; /** @description Replacement column and index definition. The identity column and required column settings are immutable after creation; newly added columns must be optional. */ schema?: components["schemas"]["TableSchema"]; }; /** * @description One stored row in a table. * @example { * "id": "row_5p9x2q7m4n8v3r6t", * "table_id": "table_2x7q5m9v3p8r4n6t", * "data": { * "pull_request_url": "https://github.com/deepnoodle-ai/mobius-cloud/pull/123", * "severity": "medium", * "summary": "Add a regression test for the error path." * }, * "version": 1, * "created_at": "2026-06-15T14:30:00Z", * "updated_at": "2026-06-15T14:30:00Z" * } */ TableRow: { /** @description Unique row identifier. */ id: string; /** @description Table this row belongs to. */ table_id: string; /** @description JSON object keyed by table column name. */ data: { [key: string]: unknown; }; /** @description Optimistic-lock version incremented on each update. */ version: number; /** * Format: date-time * @description Time the row was inserted. */ created_at: string; /** * Format: date-time * @description Time the row was last updated. */ updated_at: string; }; /** * @example { * "data": { * "pull_request_url": "https://github.com/deepnoodle-ai/mobius-cloud/pull/123", * "severity": "medium", * "summary": "Add a regression test for the error path." * } * } */ InsertRowRequest: { /** @description JSON object keyed by table column name. */ data: { [key: string]: unknown; }; }; UpdateRowRequest: { /** @description Fields to merge into the existing row, keyed by table column name. */ data: { [key: string]: unknown; }; /** @description Expected version for optimistic locking. Omit or 0 to skip the check. */ version?: number; }; QueryRowsRequest: { /** @description Column equality or operator filter */ filter?: { [key: string]: unknown; }; /** @description Sort clauses applied after filtering. */ sort?: { /** @description Column name to sort by. */ field: string; /** * @description Sort direction for this field: `asc` or `desc`. * @default asc * @enum {string} */ order?: "asc" | "desc"; }[]; /** * @description Maximum number of rows to return (1–100, default 20). * @default 20 */ limit?: number; /** @description Opaque cursor from a prior response. */ cursor?: string; }; /** @description Cursor-paginated table row query result. */ TableRowQueryListResponse: { /** @description Rows in the current page. */ items: components["schemas"]["TableRow"][]; /** @description Whether another result page is available. */ has_more: boolean; /** @description Page size used for this response. */ limit?: number; /** @description Cursor to pass on the next query when `has_more` is true. */ next_cursor?: string; }; SearchRowsRequest: { /** @description Search query. In keyword and hybrid mode it uses the keyword syntax: words are all required, `"quoted words"` are a phrase, `OR` between two terms accepts either, and `-term` excludes. Punctuation splits words. See the operation description. */ query: string; /** * @description Search mode. `keyword` matches words with the keyword syntax, `semantic` uses similarity over indexed row text, and `hybrid` combines both and drops rows that hold an excluded term. * @default keyword * @enum {string} */ mode?: "keyword" | "semantic" | "hybrid"; /** @description Optional column equality or operator filter applied before search. */ filter?: { [key: string]: unknown; }; /** * @description Maximum number of rows to return (1–100, default 20). * @default 20 */ limit?: number; /** @description Opaque cursor from a prior search response. */ cursor?: string; }; /** @description Cursor-paginated table row search result. */ TableRowSearchListResponse: { /** @description Rows matching the search query and filters. */ items: components["schemas"]["TableRow"][]; /** @description Whether another result page is available. */ has_more: boolean; /** @description Page size used for this response. */ limit?: number; /** @description Cursor to pass on the next search when `has_more` is true. */ next_cursor?: string; }; BulkInsertRowsRequest: { /** @description Row data objects to validate and insert. */ rows: { [key: string]: unknown; }[]; }; /** @description Result of a successful bulk row insert. */ BulkInsertRowsResult: { /** @description Number of rows inserted. */ inserted: number; /** @description Inserted rows in request order. */ items: components["schemas"]["TableRow"][]; }; UpsertRowRequest: { /** @description Fields to create or merge into the row. Must include the table's identity column. */ data: { [key: string]: unknown; }; }; /** @description Result of inserting or updating a row by the table's identity column. */ UpsertRowResult: { /** @description Row after insert or update. */ row: components["schemas"]["TableRow"]; /** @description True when a new row was inserted; false when an existing row was updated. */ created: boolean; }; /** * @example { * "name": "reports/2026/weekly.md" * } */ UpdateArtifactRequest: { /** @description New name for the file, as a relative virtual path. A leading folder moves the file: `reports/2026/weekly.md` places it in `reports/2026`, a bare `weekly.md` places it at the root. */ name: string; }; /** * @description A declared Library folder. * @example { * "id": "afd_2m7q9x5v3p8n4r6t", * "path": "reports/2026", * "name": "2026", * "parent_path": "reports", * "owner": { * "kind": "team" * }, * "visibility": "organization", * "created_at": "2026-09-14T14:30:00Z" * } */ ArtifactFolder: { /** @description Folder ID. */ id: string; /** @description Normalized folder path, with no leading or trailing slash. */ path: string; /** @description Last segment of the path. */ name: string; /** @description Path of the containing folder; empty at the root. */ parent_path: string; owner: components["schemas"]["ResourceOwner"]; visibility: components["schemas"]["ResourceVisibility"]; /** Format: date-time */ created_at: string; /** @description Principal that declared the folder. */ created_by?: string; }; /** @description One immediate subfolder, declared or implied by a file name. */ ArtifactFolderSummary: { /** @description Normalized folder path. */ path: string; /** @description Last segment of the path, for display. */ name: string; /** @description Whether a folder record exists. Only a declared folder can be deleted; an implied one disappears with its last file. */ declared: boolean; /** @description Folder ID, present only when the folder is declared. */ id?: string; }; /** * @example { * "items": [ * { * "path": "reports", * "name": "reports", * "declared": true, * "id": "afd_2m7q9x5v3p8n4r6t" * }, * { * "path": "invoices", * "name": "invoices", * "declared": false * } * ] * } */ ArtifactFolderListResponse: { /** @description Immediate subfolders, ordered by name. */ items: components["schemas"]["ArtifactFolderSummary"][]; }; /** * @example { * "path": "reports/2026", * "visibility": "organization" * } */ CreateArtifactFolderRequest: { /** @description Folder path to declare, relative and with no leading or trailing slash. Intermediate folders are implied by this path and need no declaration of their own. */ path: string; /** @description Who sees the folder. Omit for `private`, visible only to the person creating it. It never changes who can open the files inside. */ visibility?: components["schemas"]["ResourceVisibility"]; }; /** * @example { * "items": [ * { * "id": "art_2m7q9x5v3p8n4r6t", * "visibility": "organization", * "name": "reports/review-findings.md", * "mime_type": "text/markdown", * "size_bytes": 1842, * "created_at": "2026-06-15T14:30:00Z" * } * ], * "has_more": false * } */ ArtifactListResponse: { /** @description Artifacts in the current page. */ items: components["schemas"]["Artifact"][]; /** @description Whether another page is available. */ has_more: boolean; /** @description Cursor to pass on the next request when `has_more` is true. */ next_cursor?: string; }; CreateArtifactRequest: { /** * Format: binary * @description File bytes to upload into artifact storage. Multipart parts may be sent in any order; Mobius reads metadata fields and temporarily spools the file part when needed before streaming bytes to artifact storage. */ file: string; /** @description Display name or relative virtual path. Forward slash may be used to organize artifacts inside private or organization-visible space. */ name: string; /** @description Optional exact parent artifact ID. Requires edit access and inherits its custody and visibility. Creates new bytes and a new ID; never changes existing references. */ previous_artifact_id?: string; /** @description Optional MIME type override. Defaults to the uploaded file part content type, then `application/octet-stream`. */ mime?: string; /** * Format: int64 * @description Optional declared file size. When supplied, Mobius verifies the streamed byte count exactly matches this value. */ size_bytes?: number; /** @description Optional caller metadata JSON object. Encoded as JSON in the multipart field and limited to 64 KiB. */ metadata?: { [key: string]: unknown; }; /** @description Optional custodian. Omit to keep the upload with the authenticated person. */ owner?: components["schemas"]["ResourceOwner"]; /** @description Optional audience. Omit to keep the upload private. */ visibility?: components["schemas"]["ResourceVisibility"]; /** * @description When "true" and the uploaded file is DOCX, XLSX, or PPTX, extract a Markdown rendition asynchronously for model delivery. Ignored for other file types. * @enum {string} */ convert?: "true" | "false"; }; /** @description Short-lived URL for downloading artifact content. */ ArtifactSignedUrl: { /** @description Signed URL to call before `expires_at`. */ url: string; /** * @description HTTP method to use with `url`; currently `GET`. * @enum {string} */ method: "GET"; /** * Format: date-time * @description Time when the signed URL expires. */ expires_at: string; }; /** @description Current artifact storage usage and quota snapshot. */ ArtifactQuotaUsage: { /** * Format: int64 * @description Bytes currently counted toward the artifact quota. */ used_bytes: number; /** * Format: int64 * @description Maximum bytes allowed for artifacts. */ limit_bytes: number; /** * Format: int64 * @description Number of artifacts currently counted. */ artifact_count: number; /** * Format: int64 * @description Number of artifacts waiting for content upload. */ pending_count: number; /** * Format: date-time * @description Time this quota snapshot was generated. */ generated_at: string; }; ArtifactVersionList: { root_id: string; /** @description Accessible available versions ordered oldest to newest. Deleted versions are omitted. */ versions: components["schemas"]["Artifact"][]; }; }; responses: { /** @description Bad Request */ BadRequest: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ErrorResponse"]; }; }; /** @description Unauthorized */ Unauthorized: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ErrorResponse"]; }; }; /** @description Not Found */ NotFound: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ErrorResponse"]; }; }; /** @description Conflict */ Conflict: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ErrorResponse"]; }; }; /** @description Service Unavailable */ ServiceUnavailable: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ErrorResponse"]; }; }; /** @description Forbidden */ Forbidden: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ErrorResponse"]; }; }; /** @description Rate limit exceeded. Retry after the delay indicated in the `Retry-After` header. */ TooManyRequests: { headers: { /** @description Seconds to wait before retrying. */ "Retry-After"?: number; /** @description Limit of the tightest active rate-limit bucket. */ "X-RateLimit-Limit"?: number; /** @description Requests remaining in the tightest bucket's current window. */ "X-RateLimit-Remaining"?: number; /** @description Unix timestamp (seconds) when the tightest bucket resets. */ "X-RateLimit-Reset"?: number; /** @description Scope of the tightest bucket. */ "X-RateLimit-Scope"?: "key" | "org" | "browser"; /** @description All active windows for the selected scope, in `limit;w=seconds` form. */ "X-RateLimit-Policy"?: string; [name: string]: unknown; }; content: { "application/json": components["schemas"]["ErrorResponse"]; }; }; /** @description No Content */ NoContent: { headers: { [name: string]: unknown; }; content?: never; }; }; parameters: { /** @description Resource ID. */ IDParam: string; /** @description Identifier of the conversation session. */ SessionIdParam: string; /** @description Identifier of a turn within a session. */ TurnIdParam: string; /** @description Action name as registered in the catalog. */ ActionNameParam: string; /** @description Principal ID. */ principal_id: string; /** @description Cursor for pagination (opaque string from previous response) */ CursorParam: string; /** @description Maximum number of items to return */ LimitParam: number; /** @description Continuation cursor for sequence-ordered lists. Only include rows whose monotonic per-resource sequence is strictly greater than this value. Pass the `next_sequence` from the previous response to fetch the next page. */ AfterSequenceParam: number; /** @description Backward continuation cursor for sequence-ordered lists. Only include rows whose monotonic per-resource sequence is strictly less than this value. Combine with `order=desc` to page toward older rows from a known position; pass the `prev_sequence` from the previous response to fetch the next older page. */ BeforeSequenceParam: number; /** @description Scan direction for the page. `asc` (the default) returns oldest-first; `desc` returns newest-first — the way to fetch the latest rows of a long list (the tail) in a single request. Items in the response are always ordered ascending regardless of this value; `order` only selects which end of the list the page is taken from. */ OrderParam: "asc" | "desc"; /** @description SSE reconnect cursor. The browser EventSource API replays the last event's `id` in this header on automatic reconnect; the server resumes the stream after that sequence number. When both this header and the `after_sequence` query parameter are supplied, the larger sequence wins, so an explicit `after_sequence` never rewinds a live reconnect. Ignored for non-streaming (JSON) requests. */ LastEventIDParam: number; /** @description Organization ID. */ OrgIDParam: string; /** @description Environment ID. */ EnvironmentIDParam: string; /** @description Reference type name, such as `slack.channel` or `table.table`. */ ReferenceTypeParam: string; /** @description Exact integration connection this account-scoped operation acts on. Invalid, inaccessible, stale, or wrong-provider IDs never fall back to another connection. */ IntegrationIDQueryParam: string; /** @description Integration record ID. */ IntegrationIDParam: string; /** @description Integration event receipt ID. */ IntegrationEventIDParam: string; /** @description Framework provider identifier from the integration provider catalog. */ IntegrationProviderParam: string; /** @description Stable caller-generated key. Reusing it returns the original operation. */ IdempotencyKey: string; /** @description The key identifying a memory entry. Restricted to a path-safe character set (letters, numbers, and `. _ : -`) so it stays reliably addressable. */ MemoryKeyParam: string; /** @description User principal ID for a private memory partition. It must identify a current human member of this organization. Omit for shared memory. */ MemoryUserIDParam: string; /** @description Set to `context` to include caller-supplied runtime context rows whose model-visible names begin with `app-`. Platform-owned runtime context remains hidden. */ ContextIncludeParam: components["schemas"]["ContextIncludeParam"]; /** @description Set to `true` to include durable transcript rows salvaged from a failed or cancelled turn. These rows carry `partial` and `terminal_outcome` metadata and remain excluded from future model context. */ TerminalPartialsIncludeParam: boolean; /** @description Session nudge identifier. */ NudgeIdParam: string; /** @description Durable session event subscription identifier. */ SessionEventSubscriptionIdParam: string; /** @description ID of the artifact */ ArtifactIdParam: string; RoutineID: string; RoutineProposalID: string; WorkflowID: string; WorkflowRunID: string; /** @description Table ID. */ TableIDParam: string; /** @description Filter tables by name. Table names are unique within an org; use this as a discovery filter and use the returned table `id` for follow-up operations. */ TableNameQueryParam: string; /** @description ID of the declared folder */ ArtifactFolderIdParam: string; /** @description Narrows the listing to one section of the Library. `company` is the company's files, which everyone in the organization can read. `personal` is the caller's own files, which only the caller can read. Omit it to list every section the caller can read. */ LibraryPlaceParam: "company" | "personal"; /** @description Authoring format the template applies to */ DocumentTemplateFormatParam: "docx" | "pptx"; }; requestBodies: { /** @description Outbound signed-context HTTP action request. */ SignedActionInvocationV1: { content: { "application/vnd.mobius.action-invocation+json; version=1": components["schemas"]["ActionInvocationV1"]; }; }; }; headers: never; pathItems: never; } export type $defs = Record; export interface operations { updateResourceOwnership: { parameters: { query?: never; header?: never; path: { resource_type: "action" | "artifact" | "environment" | "routine" | "secret" | "session" | "skill" | "table" | "webhook"; /** @description Resource ID. */ resource_id: components["parameters"]["IDParam"]; }; cookie?: never; }; requestBody: { content: { "application/json": components["schemas"]["ResourceOwnershipTransitionRequest"]; }; }; responses: { /** @description Updated ownership state */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ResourceOwnershipState"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 409: components["responses"]["Conflict"]; }; }; listAPIKeys: { parameters: { query?: { /** @description Maximum number of items to return */ limit?: components["parameters"]["LimitParam"]; /** @description Cursor for pagination (opaque string from previous response) */ cursor?: components["parameters"]["CursorParam"]; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["APIKeyListResponse"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; }; }; createAPIKey: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody: { content: { /** * @example { * "name": "CI worker", * "principal_id": "svc_7q2v9x6m3n8p5r4t", * "expires_at": "2026-09-15T14:30:00Z", * "tags": { * "owner": "product" * } * } */ "application/json": components["schemas"]["CreateAPIKeyRequest"]; }; }; responses: { /** @description Created */ 201: { headers: { [name: string]: unknown; }; content: { /** * @example { * "id": "cred_1jz8q2m7xp9vn4kt", * "name": "CI worker", * "key_prefix": "mbx_7q2v", * "principal_id": "svc_7q2v9x6m3n8p5r4t", * "expires_at": "2026-09-15T14:30:00Z", * "tags": { * "owner": "product" * }, * "created_at": "2026-06-15T14:30:00Z", * "updated_at": "2026-06-15T14:30:00Z", * "key": "mbx_7q2v9k1m_redacted" * } */ "application/json": components["schemas"]["APIKeyCreateResult"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 409: components["responses"]["Conflict"]; 429: components["responses"]["TooManyRequests"]; }; }; deleteAPIKey: { parameters: { query?: never; header?: never; path: { /** @description Resource ID. */ resource_id: components["parameters"]["IDParam"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description No Content */ 204: { headers: { [name: string]: unknown; }; content?: never; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 429: components["responses"]["TooManyRequests"]; }; }; createAction: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody: { content: { /** * @example { * "name": "review-pr", * "title": "Review PR", * "description": "Review a pull request and return findings.", * "endpoint_kind": "http", * "invocation_format": "signed_context_v1", * "endpoint_url": "https://hooks.example.com/mobius/review-pr", * "input_schema": { * "type": "object", * "required": [ * "pull_request_url" * ], * "properties": { * "pull_request_url": { * "type": "string" * } * } * }, * "annotations": { * "idempotent": true, * "read_only": true * } * } */ "application/json": components["schemas"]["CreateActionRequest"]; }; }; responses: { /** @description Created */ 201: { headers: { [name: string]: unknown; }; content: { /** * @example { * "id": "act_8m4x9q2v7p5n3r6t", * "name": "review-pr", * "title": "Review PR", * "description": "Review a pull request and return findings.", * "endpoint_kind": "http", * "invocation_format": "signed_context_v1", * "endpoint_url": "https://hooks.example.com/mobius/review-pr", * "input_schema": { * "type": "object", * "required": [ * "pull_request_url" * ], * "properties": { * "pull_request_url": { * "type": "string" * } * } * }, * "annotations": { * "idempotent": true, * "destructive": false, * "read_only": true * }, * "tags": { * "owner": "product" * }, * "signing_secret": "whsec_redacted", * "owner": { * "kind": "person", * "id": "user_2f9s3k4m5n6p7q8r" * }, * "visibility": "private", * "posture": "only_you", * "created_at": "2026-06-15T14:30:00Z", * "updated_at": "2026-06-15T14:30:00Z" * } */ "application/json": components["schemas"]["Action"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 409: components["responses"]["Conflict"]; 429: components["responses"]["TooManyRequests"]; }; }; deleteAction: { parameters: { query?: never; header?: never; path: { /** @description Action name as registered in the catalog. */ action_name: components["parameters"]["ActionNameParam"]; }; cookie?: never; }; requestBody?: never; responses: { 204: components["responses"]["NoContent"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 409: components["responses"]["Conflict"]; 429: components["responses"]["TooManyRequests"]; }; }; updateAction: { parameters: { query?: never; header?: never; path: { /** @description Action name as registered in the catalog. */ action_name: components["parameters"]["ActionNameParam"]; }; cookie?: never; }; requestBody: { content: { /** * @example { * "title": "Review PR", * "description": "Review a pull request and return prioritized findings.", * "tags": { * "owner": "product" * } * } */ "application/json": components["schemas"]["UpdateActionRequest"]; }; }; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["Action"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 429: components["responses"]["TooManyRequests"]; }; }; rotateActionSecret: { parameters: { query?: never; header?: never; path: { /** @description Action name as registered in the catalog. */ action_name: components["parameters"]["ActionNameParam"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { /** * @example { * "secret_version": 2, * "signing_secret": "whsec_redacted" * } */ "application/json": components["schemas"]["RotateSecretResult"]; }; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 429: components["responses"]["TooManyRequests"]; }; }; listActionInvocations: { parameters: { query?: { /** @description Cursor for pagination (opaque string from previous response) */ cursor?: components["parameters"]["CursorParam"]; /** @description Maximum number of items to return */ limit?: components["parameters"]["LimitParam"]; /** @description Filter to invocations from a specific job. */ job_id?: string; /** @description Filter to invocations executed in a specific environment. */ environment_id?: string; /** @description Filter to invocations of a specific action. */ action_name?: string; /** @description Filter to an immutable custom Action ID. */ action_id?: string; /** @description Action name prefix; the provider or built-in namespace. Matches invocations whose action name begins with `.` — a provider slug (`gmail`), a built-in namespace (`mobius`, `environment`), or an MCP server slug. The trailing dot is implied, so `gmail` does not match `gmail_extra.send`. */ integration?: string; /** @description Filter to invocations made by a specific agent. */ agent_id?: string; /** @description Only include invocations started at or after this time (inclusive). */ started_after?: string; /** @description Only include invocations started strictly before this time (exclusive). */ started_before?: string; /** @description Filter by the scope that owned the selected definition. */ definition_scope?: "platform" | "custom"; /** @description Filter to deliveries signed with a specific secret version. */ secret_version?: number; /** @description Filter to a signed delivery identity. */ delivery_id?: string; /** @description Filter to the request or dispatch correlation identity. */ correlation_id?: string; /** @description Filter to calls dispatched on this connected account. */ connection_id?: string; /** @description Filter by terminal status (e.g. "success", "failed"). */ status?: string; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ActionInvocationListResponse"]; }; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; }; }; getActionInvocation: { parameters: { query?: never; header?: never; path: { job_id: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Current or terminal invocation result. */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ActionInvocationResult"]; }; }; 401: components["responses"]["Unauthorized"]; 404: components["responses"]["NotFound"]; }; }; invokeAction: { parameters: { query?: never; header?: never; path: { /** @description Action name as registered in the catalog. */ action_name: components["parameters"]["ActionNameParam"]; }; cookie?: never; }; requestBody: { content: { /** * @example { * "input": { * "channel": "#product", * "text": "Deployment finished." * }, * "timeout_seconds": 30, * "dry_run": false * } */ "application/json": components["schemas"]["InvokeActionRequest"]; }; }; responses: { /** @description OK — invocation completed synchronously */ 200: { headers: { [name: string]: unknown; }; content: { /** * @example { * "status": "completed", * "job_id": "job_2m7x9q5v8p3n4r6t", * "output": { * "message_ts": "1718461800.000100" * } * } */ "application/json": components["schemas"]["ActionInvocationResult"]; }; }; /** @description Accepted — asynchronous invocation is still active */ 202: { headers: { /** @description Pollable invocation result. */ Location?: string; [name: string]: unknown; }; content: { /** * @example { * "status": "active", * "job_id": "job_2m7x9q5v8p3n4r6t" * } */ "application/json": components["schemas"]["ActionInvocationResult"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 409: components["responses"]["Conflict"]; 429: components["responses"]["TooManyRequests"]; }; }; listCatalogEvents: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["EventCatalogResponse"]; }; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; }; }; listCatalogActions: { parameters: { query?: { /** @description Judge readiness for this agent's account grants. */ agent_id?: string; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ActionCatalogListResponse"]; }; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; }; }; getCatalogAction: { parameters: { query?: never; header?: never; path: { /** @description Action name as registered in the catalog. */ action_name: components["parameters"]["ActionNameParam"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ActionCatalogEntry"]; }; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; listCatalogModels: { parameters: { query?: { /** @description Which models to list. Defaults to `text`. */ capability?: components["schemas"]["ModelCapability"]; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ModelCatalogResponse"]; }; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; listCatalogWorkerModels: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["WorkerModelCatalogListResponse"]; }; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; openWorkerSocket: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description WebSocket upgrade accepted. */ 101: { headers: { [name: string]: unknown; }; content?: never; }; /** @description Placeholder response for OpenAPI tooling; successful clients receive a 101 upgrade. */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["WorkerSocketFrame"]; }; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; listConnectionGovernance: { parameters: { query?: { provider?: string; /** @description Maximum number of items to return */ limit?: components["parameters"]["LimitParam"]; /** @description Cursor for pagination (opaque string from previous response) */ cursor?: components["parameters"]["CursorParam"]; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description Minimal governance metadata */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ConnectionGovernanceListResponse"]; }; }; 403: components["responses"]["Forbidden"]; }; }; deactivateConnectionGovernance: { parameters: { query?: never; header?: never; path: { integration_id: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Connection deactivated */ 204: { headers: { [name: string]: unknown; }; content?: never; }; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; startConnectionTeamManagement: { parameters: { query?: never; header?: never; path: { integration_id: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Completed management change with kind complete and the same active integration */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["IntegrationConnectResponse"]; }; }; 400: components["responses"]["BadRequest"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 409: components["responses"]["Conflict"]; }; }; confirmConnectionReplacement: { parameters: { query?: never; header?: never; path: { integration_id: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Replacement confirmed */ 204: { headers: { [name: string]: unknown; }; content?: never; }; 404: components["responses"]["NotFound"]; }; }; listConnectionGrants: { parameters: { query?: never; header?: never; path: { integration_id: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Controller-authorized grants */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ConnectionGrantListResponse"]; }; }; 404: components["responses"]["NotFound"]; }; }; materializeConnectionGrants: { parameters: { query?: never; header?: never; path: { integration_id: string; }; cookie?: never; }; requestBody: { content: { "application/json": components["schemas"]["MaterializeConnectionGrantsRequest"]; }; }; responses: { /** @description Individual grants; replay preserves identical active grants */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ConnectionGrantListResponse"]; }; }; 404: components["responses"]["NotFound"]; }; }; revokeConnectionGrant: { parameters: { query?: never; header?: never; path: { integration_id: string; grant_id: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Grant revoked or already absent */ 204: { headers: { [name: string]: unknown; }; content?: never; }; 404: components["responses"]["NotFound"]; }; }; listAgentConnectionGrants: { parameters: { query?: never; header?: never; path: { agent_id: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Authorized operational labels and grants */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ConnectionGrantListResponse"]; }; }; 404: components["responses"]["NotFound"]; }; }; listAgentConnectionDefaults: { parameters: { query: { context: components["schemas"]["ConnectionDefaultContext"]; execution_mode: components["schemas"]["ConnectionExecutionMode"]; }; header?: never; path: { agent_id: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Saved state and selectable account choices by provider */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ConnectionDefaultPreferenceListResponse"]; }; }; 400: components["responses"]["BadRequest"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; setAgentConnectionDefault: { parameters: { query?: never; header?: never; path: { agent_id: string; provider: string; }; cookie?: never; }; requestBody: { content: { "application/json": components["schemas"]["SetConnectionDefaultRequest"]; }; }; responses: { /** @description Context default selected */ 204: { headers: { [name: string]: unknown; }; content?: never; }; 400: components["responses"]["BadRequest"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; clearAgentConnectionDefault: { parameters: { query: { context: components["schemas"]["ConnectionDefaultContext"]; execution_mode: components["schemas"]["ConnectionExecutionMode"]; }; header?: never; path: { agent_id: string; provider: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Context default cleared or already absent */ 204: { headers: { [name: string]: unknown; }; content?: never; }; 400: components["responses"]["BadRequest"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; listBillingUsageEvents: { parameters: { query?: { /** @description Filter to usage events in this billing period. */ period_start?: string; /** @description Inclusive lower bound on `recorded_at`. When present, results and cursors use chronological `(recorded_at, id)` order for durable incremental mirroring. */ recorded_after?: string; /** @description Filter to one usage counter. */ counter?: string; /** @description Filter to one usage source type. */ source_type?: string; /** @description Filter to one source identifier. */ source_id?: string; /** @description Filter to usage attributed to one job. */ job_id?: string; /** @description Filter to usage recorded for one API key. */ api_key_id?: string; /** @description Return only events that cost credits, leaving out zero-credit evidence such as accepted events and bring-your-own-key usage. */ charged_only?: boolean; /** @description Maximum number of items to return */ limit?: components["parameters"]["LimitParam"]; /** @description Cursor for pagination (opaque string from previous response) */ cursor?: components["parameters"]["CursorParam"]; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["BillingUsageEventListResponse"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; }; }; listOrgPermissions: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["PermissionCatalogResponse"]; }; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; listRoles: { parameters: { query?: { /** @description Maximum number of items to return */ limit?: components["parameters"]["LimitParam"]; /** @description Cursor for pagination (opaque string from previous response) */ cursor?: components["parameters"]["CursorParam"]; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["RoleListResponse"]; }; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; }; }; createRole: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody: { content: { "application/json": components["schemas"]["CreateRoleRequest"]; }; }; responses: { /** @description Created */ 201: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["Role"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 409: components["responses"]["Conflict"]; }; }; getRole: { parameters: { query?: never; header?: never; path: { /** @description Resource ID. */ resource_id: components["parameters"]["IDParam"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["Role"]; }; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; deleteRole: { parameters: { query?: never; header?: never; path: { /** @description Resource ID. */ resource_id: components["parameters"]["IDParam"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description No Content */ 204: { headers: { [name: string]: unknown; }; content?: never; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; updateRole: { parameters: { query?: never; header?: never; path: { /** @description Resource ID. */ resource_id: components["parameters"]["IDParam"]; }; cookie?: never; }; requestBody: { content: { "application/json": components["schemas"]["UpdateRoleRequest"]; }; }; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["Role"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 409: components["responses"]["Conflict"]; }; }; listRoleAssignments: { parameters: { query?: { /** @description Filter to assignments for a specific principal. */ principal_id?: string; /** @description Filter to assignments for a specific role. */ role_id?: string; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["RoleAssignmentListResponse"]; }; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; }; }; createRoleAssignment: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody: { content: { "application/json": components["schemas"]["CreateRoleAssignmentRequest"]; }; }; responses: { /** @description Created */ 201: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["RoleAssignment"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 409: components["responses"]["Conflict"]; }; }; deleteRoleAssignment: { parameters: { query?: never; header?: never; path: { /** @description Resource ID. */ resource_id: components["parameters"]["IDParam"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description No Content */ 204: { headers: { [name: string]: unknown; }; content?: never; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; scheduleOrgDeletion: { parameters: { query?: never; header?: never; path: { /** @description Organization ID. */ org_id: components["parameters"]["OrgIDParam"]; }; cookie?: never; }; requestBody: { content: { "application/json": components["schemas"]["OrgDeletionRequest"]; }; }; responses: { /** @description Deletion scheduled; poll Location for progress */ 202: { headers: { /** @description Path of this organization's deletion resource. */ Location?: string; [name: string]: unknown; }; content: { "application/json": components["schemas"]["OrgDeletion"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 409: components["responses"]["Conflict"]; }; }; getOrgDeletion: { parameters: { query?: never; header?: never; path: { /** @description Organization ID. */ org_id: components["parameters"]["OrgIDParam"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description Current or terminal deletion state */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["OrgDeletion"]; }; }; 401: components["responses"]["Unauthorized"]; 404: components["responses"]["NotFound"]; }; }; cancelOrgDeletion: { parameters: { query?: never; header?: never; path: { /** @description Organization ID. */ org_id: components["parameters"]["OrgIDParam"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description Deletion cancelled and local access restored */ 204: { headers: { [name: string]: unknown; }; content?: never; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 409: components["responses"]["Conflict"]; }; }; getOAuthReturnOrigins: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["OAuthReturnOrigins"]; }; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; replaceOAuthReturnOrigins: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody: { content: { "application/json": components["schemas"]["PutOAuthReturnOriginsRequest"]; }; }; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["OAuthReturnOrigins"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; getOrgContext: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["OrgContext"]; }; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; replaceOrgContext: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody: { content: { "application/json": components["schemas"]["PutOrgContextRequest"]; }; }; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["OrgContext"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; listInteractions: { parameters: { query?: { /** @description Filter by status */ status?: components["schemas"]["InteractionStatus"]; /** @description Filter by interaction protocol kind */ kind?: components["schemas"]["InteractionKind"]; /** @description Filter to interactions raised by an agent tool call (`consumer.kind=agent_tool`) whose invocation is a turn of the given chat session. Lets a chat surface the pending interactions opened by its own agent tool calls. */ session_id?: string; /** @description Filter by resolved target user ID. */ target_user_id?: string; /** @description When true, returns only interactions visible to the authenticated user. */ inbox?: boolean; /** @description When true, returns only interactions the authenticated user submitted a response to, newest answer first (ordered and paged by the caller's latest response time). Cannot be combined with inbox=true; sent together, the request fails with 400. */ responded_by_me?: boolean; /** @description Keeps only interactions the user responded to at or after this time. Requires responded_by_me=true; sent without it, the request fails with 400. */ responded_since?: string; /** @description Cursor for pagination (opaque string from previous response) */ cursor?: components["parameters"]["CursorParam"]; /** @description Maximum number of items to return */ limit?: components["parameters"]["LimitParam"]; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["InteractionListResponse"]; }; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; }; }; createInteraction: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody: { content: { /** * @example { * "target_user_ids": [ * "user_2f9s3k4m5n6p7q8r" * ], * "kind": "request_approval", * "title": "Approve publishing the April billing report?", * "context": { * "report_id": "rpt_2026_04", * "amount_usd": 12850 * }, * "spec": { * "questions": [ * { * "id": "decision", * "prompt": "Approve publishing the April billing report?", * "mode": "confirm", * "required": true, * "default_confirmed": false * } * ] * }, * "require_all": false, * "expires_at": "2026-04-25T14:30:00Z" * } */ "application/json": components["schemas"]["CreateInteractionRequest"]; }; }; responses: { /** @description Created */ 201: { headers: { [name: string]: unknown; }; content: { /** * @example { * "id": "iact_6x2m8q5v9p3n7r4t", * "kind": "request_approval", * "status": "pending", * "title": "Approve publishing the April billing report?", * "context": { * "report_id": "rpt_2026_04", * "amount_usd": 12850 * }, * "spec": { * "questions": [ * { * "id": "decision", * "prompt": "Approve publishing the April billing report?", * "mode": "confirm", * "required": true, * "default_confirmed": false * } * ] * }, * "target_user_ids": [ * "user_2f9s3k4m5n6p7q8r" * ], * "owner": { * "kind": "person", * "id": "user_2f9s3k4m5n6p7q8r" * }, * "visibility": "private", * "posture": "only_you", * "expires_at": "2026-04-25T14:30:00Z", * "created_at": "2026-04-24T14:30:00Z", * "updated_at": "2026-04-24T14:30:00Z", * "require_all": false * } */ "application/json": components["schemas"]["Interaction"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; getInteraction: { parameters: { query?: never; header?: never; path: { /** @description Resource ID. */ resource_id: components["parameters"]["IDParam"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["Interaction"]; }; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; deleteInteraction: { parameters: { query?: never; header?: never; path: { /** @description Resource ID. */ resource_id: components["parameters"]["IDParam"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description No Content */ 204: { headers: { [name: string]: unknown; }; content?: never; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; respondToInteraction: { parameters: { query?: never; header?: never; path: { /** @description Resource ID. */ resource_id: components["parameters"]["IDParam"]; }; cookie?: never; }; requestBody: { content: { "application/json": components["schemas"]["RespondToInteractionRequest"]; }; }; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { /** * @example { * "id": "iact_6x2m8q5v9p3n7r4t", * "kind": "request_approval", * "status": "completed", * "title": "Approve publishing the April billing report?", * "context": { * "report_id": "rpt_2026_04", * "amount_usd": 12850 * }, * "spec": { * "questions": [ * { * "id": "decision", * "prompt": "Approve publishing the April billing report?", * "mode": "confirm", * "required": true, * "default_confirmed": false * } * ] * }, * "target_user_ids": [ * "user_2f9s3k4m5n6p7q8r" * ], * "owner": { * "kind": "person", * "id": "user_2f9s3k4m5n6p7q8r" * }, * "visibility": "private", * "posture": "only_you", * "responder": { * "user_id": "user_2f9s3k4m5n6p7q8r" * }, * "resolving_response_id": "iresp_3v7q2m9x5p8n4r6t", * "responses": [ * { * "id": "iresp_3v7q2m9x5p8n4r6t", * "interaction_id": "iact_6x2m8q5v9p3n7r4t", * "response_kind": "response", * "state": "submitted", * "responder_user_id": "user_2f9s3k4m5n6p7q8r", * "answers": [ * { * "question_id": "decision", * "value": "approved" * } * ], * "comment": "Approved for publication.", * "responded_at": "2026-04-24T14:42:00Z", * "created_at": "2026-04-24T14:42:00Z", * "updated_at": "2026-04-24T14:42:00Z" * } * ], * "outcome": [ * { * "question_id": "decision", * "value": "approved" * } * ], * "resolved_by": "any_of", * "expires_at": "2026-04-25T14:30:00Z", * "completed_at": "2026-04-24T14:42:00Z", * "created_at": "2026-04-24T14:30:00Z", * "updated_at": "2026-04-24T14:42:00Z", * "require_all": false * } */ "application/json": components["schemas"]["Interaction"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 409: components["responses"]["Conflict"]; }; }; reviewInteraction: { parameters: { query?: never; header?: never; path: { /** @description Resource ID. */ resource_id: components["parameters"]["IDParam"]; }; cookie?: never; }; requestBody: { content: { "application/json": components["schemas"]["ReviewInteractionRequest"]; }; }; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["Interaction"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 409: components["responses"]["Conflict"]; }; }; cancelInteraction: { parameters: { query?: never; header?: never; path: { /** @description Resource ID. */ resource_id: components["parameters"]["IDParam"]; }; cookie?: never; }; requestBody?: { content: { /** * @example { * "reason": "Superseded by a revised approval request." * } */ "application/json": components["schemas"]["CancelInteractionRequest"]; }; }; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["Interaction"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; listAgents: { parameters: { query?: { /** @description Filter to the org-unique agent with this exact name. */ name?: string; /** @description Filter to the agent backed by this principal. */ principal_id?: string; /** @description Filter by administrative status (active/inactive), independent of presence. */ status?: components["schemas"]["AgentStatus"]; /** @description Cursor for pagination (opaque string from previous response) */ cursor?: components["parameters"]["CursorParam"]; /** @description Maximum number of items to return */ limit?: components["parameters"]["LimitParam"]; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["AgentListResponse"]; }; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; createAgent: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody: { content: { /** * @example { * "name": "PR reviewer", * "description": "Reviews pull requests for risky changes.", * "color": "teal", * "model": "claude-sonnet-4-6", * "tool_presentation": "flat", * "tags": { * "owner": "product" * } * } */ "application/json": components["schemas"]["CreateAgentRequest"]; }; }; responses: { /** @description The existing agent, adopted by `external_ref` (`if_exists: adopt`). No fields were written. */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["Agent"]; }; }; /** @description Created */ 201: { headers: { [name: string]: unknown; }; content: { /** * @example { * "id": "agent_5n8p2q7m4x9r3v6t", * "principal_id": "agent_5n8p2q7m4x9r3v6t", * "name": "PR reviewer", * "description": "Reviews pull requests for risky changes.", * "color": "teal", * "model": "claude-sonnet-4-6", * "tool_presentation": "flat", * "memory_enabled": true, * "status": "active", * "tags": { * "owner": "product" * }, * "owner": { * "kind": "person", * "id": "user_2f9s3k4m5n6p7q8r" * }, * "visibility": "private", * "posture": "only_you", * "created_by": "user_2f9s3k4m5n6p7q8r", * "updated_by": "user_2f9s3k4m5n6p7q8r", * "created_at": "2026-06-15T14:30:00Z", * "updated_at": "2026-06-15T14:30:00Z" * } */ "application/json": components["schemas"]["Agent"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 409: components["responses"]["Conflict"]; 429: components["responses"]["TooManyRequests"]; }; }; getAgent: { parameters: { query?: never; header?: never; path: { /** @description Resource ID. */ resource_id: components["parameters"]["IDParam"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["Agent"]; }; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; deleteAgent: { parameters: { query?: never; header?: never; path: { /** @description Resource ID. */ resource_id: components["parameters"]["IDParam"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description No Content */ 204: { headers: { [name: string]: unknown; }; content?: never; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 429: components["responses"]["TooManyRequests"]; }; }; updateAgent: { parameters: { query?: never; header?: never; path: { /** @description Resource ID. */ resource_id: components["parameters"]["IDParam"]; }; cookie?: never; }; requestBody: { content: { /** * @example { * "status": "active", * "model": "claude-sonnet-4-6", * "tags": { * "owner": "product" * } * } */ "application/json": components["schemas"]["UpdateAgentRequest"]; }; }; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["Agent"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 409: components["responses"]["Conflict"]; 429: components["responses"]["TooManyRequests"]; }; }; listDeletedAgents: { parameters: { query?: { /** @description Cursor for pagination (opaque string from previous response) */ cursor?: components["parameters"]["CursorParam"]; /** @description Maximum number of items to return */ limit?: components["parameters"]["LimitParam"]; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["DeletedAgentListResponse"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; }; }; restoreAgent: { parameters: { query?: never; header?: never; path: { /** @description Resource ID. */ resource_id: components["parameters"]["IDParam"]; }; cookie?: never; }; requestBody: { content: { /** * @example { * "name": "Litigation strategist (Dan)" * } */ "application/json": components["schemas"]["RestoreAgentRequest"]; }; }; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["RestoredAgentResult"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 409: components["responses"]["Conflict"]; }; }; listAgentMembers: { parameters: { query?: never; header?: never; path: { /** @description Resource ID. */ resource_id: components["parameters"]["IDParam"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["AgentMemberListResponse"]; }; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; addAgentMembers: { parameters: { query?: never; header?: never; path: { /** @description Resource ID. */ resource_id: components["parameters"]["IDParam"]; }; cookie?: never; }; requestBody: { content: { "application/json": components["schemas"]["AddAgentMembersRequest"]; }; }; responses: { /** @description The audience after the add. */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["AgentMemberListResponse"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 409: components["responses"]["Conflict"]; }; }; copyAgent: { parameters: { query?: never; header?: never; path: { /** @description Resource ID. */ resource_id: components["parameters"]["IDParam"]; }; cookie?: never; }; requestBody: { content: { "application/json": components["schemas"]["CopyAgentRequest"]; }; }; responses: { /** @description Created */ 201: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["AgentCopy"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 409: components["responses"]["Conflict"]; }; }; removeAgentMember: { parameters: { query?: never; header?: never; path: { /** @description Resource ID. */ resource_id: components["parameters"]["IDParam"]; /** @description The principal to remove from the audience. */ principal_id: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Removed */ 204: { headers: { [name: string]: unknown; }; content?: never; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 409: components["responses"]["Conflict"]; }; }; updateAgentMember: { parameters: { query?: never; header?: never; path: { /** @description Resource ID. */ resource_id: components["parameters"]["IDParam"]; /** @description The member to change. */ principal_id: string; }; cookie?: never; }; requestBody: { content: { "application/json": components["schemas"]["UpdateAgentMemberRequest"]; }; }; responses: { /** @description The members after the change. */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["AgentMemberListResponse"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; provisionAgentInbox: { parameters: { query?: never; header?: never; path: { /** @description Resource ID. */ resource_id: components["parameters"]["IDParam"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["Agent"]; }; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 429: components["responses"]["TooManyRequests"]; }; }; listAgentMessagingBindings: { parameters: { query?: never; header?: never; path: { /** @description Resource ID. */ resource_id: components["parameters"]["IDParam"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["AgentMessagingBindingListResponse"]; }; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; saveAgentMessagingBinding: { parameters: { query?: never; header?: never; path: { /** @description Resource ID. */ resource_id: components["parameters"]["IDParam"]; }; cookie?: never; }; requestBody: { content: { /** * @example { * "provider": "slack", * "integration_id": "int_slack_7x3m9q2v5p8n4r6t", * "enabled": true, * "dms": true, * "mentions": true, * "all_messages": false, * "channels": [ * "C0123456789" * ], * "dm_policy": "open", * "reply_mode": "auto" * } */ "application/json": components["schemas"]["AgentMessagingBindingRequest"]; }; }; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["AgentMessagingBinding"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 409: components["responses"]["Conflict"]; 429: components["responses"]["TooManyRequests"]; }; }; listAgentSkillAssignments: { parameters: { query?: never; header?: never; path: { /** @description Resource ID. */ resource_id: components["parameters"]["IDParam"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["SkillAssignmentListResponse"]; }; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; replaceAgentSkillAssignments: { parameters: { query?: never; header?: never; path: { /** @description Resource ID. */ resource_id: components["parameters"]["IDParam"]; }; cookie?: never; }; requestBody: { content: { /** * @example { * "skill_ids": [ * "skill_7n4q8x2m9p5v3r6t" * ] * } */ "application/json": components["schemas"]["ReplaceSkillsRequest"]; }; }; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["SkillAssignmentListResponse"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 429: components["responses"]["TooManyRequests"]; }; }; getAgentTools: { parameters: { query?: { /** @description Optional assigned skill name to simulate as invoked, so the response shows the tool scope a turn would run under once that skill is loaded. Omitted means no skill action constraint is applied; the resolved set still reflects the other filters on this request (`allowed_actions`). */ skill_name?: string; /** @description Optional comma-separated canonical action names, wildcard selectors, or group references to apply as a per-invocation filter against the resolved tool set. */ allowed_actions?: string; }; header?: never; path: { /** @description Resource ID. */ resource_id: components["parameters"]["IDParam"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["AgentToolManifest"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; getAgentMemory: { parameters: { query?: never; header?: never; path: { /** @description Resource ID. */ resource_id: components["parameters"]["IDParam"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["AgentMemory"]; }; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; listAgentMemoryEntries: { parameters: { query?: { /** @description Optional search over entry keys, kinds, summaries, and content. Omit to list. */ query?: string; /** @description Search ranking mode for a non-blank `query`. Omit for backwards-compatible keyword search. Semantic and hybrid search can return `503 memory_semantic_search_unavailable` when the embedding or search-index service is unavailable; callers may retry or fall back to `keyword`. */ search_mode?: components["schemas"]["MemorySearchMode"]; /** @description Optional filter to a single memory kind. */ kind?: components["schemas"]["MemoryKind"]; /** @description Cursor for pagination (opaque string from previous response) */ cursor?: components["parameters"]["CursorParam"]; /** @description Maximum number of items to return */ limit?: components["parameters"]["LimitParam"]; }; header?: never; path: { /** @description Resource ID. */ resource_id: components["parameters"]["IDParam"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["AgentMemoryEntryListResponse"]; }; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 503: components["responses"]["ServiceUnavailable"]; }; }; listAgentMemoryChanges: { parameters: { query?: { /** @description Opaque cursor returned as `next_cursor` by the previous response. Omit on the first request to read retained changes oldest-first. When no retained changes exist, the empty response still returns a stable bootstrap cursor that observes future mutations. */ after?: string; /** @description Maximum number of items to return */ limit?: components["parameters"]["LimitParam"]; }; header?: never; path: { /** @description Resource ID. */ resource_id: components["parameters"]["IDParam"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["AgentMemoryChangeListResponse"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; /** @description The supplied change cursor is older than retained history. */ 410: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ErrorResponse"]; }; }; }; }; saveAgentMemoryEntry: { parameters: { query?: never; header?: never; path: { /** @description Resource ID. */ resource_id: components["parameters"]["IDParam"]; /** @description The key identifying a memory entry. Restricted to a path-safe character set (letters, numbers, and `. _ : -`) so it stays reliably addressable. */ memory_key: components["parameters"]["MemoryKeyParam"]; }; cookie?: never; }; requestBody: { content: { /** * @example { * "content": "The production database runs in us-east-1.", * "summary": "Production database region", * "kind": "fact", * "importance": 80, * "user_id": "user_2f9s3k4m5n6p7q8r" * } */ "application/json": components["schemas"]["SaveAgentMemoryEntryRequest"]; }; }; responses: { /** @description Updated */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["AgentMemoryEntry"]; }; }; /** @description Created */ 201: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["AgentMemoryEntry"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 429: components["responses"]["TooManyRequests"]; }; }; deleteAgentMemoryEntry: { parameters: { query?: { /** @description User principal ID for a private memory partition. It must identify a current human member of this organization. Omit for shared memory. */ user_id?: components["parameters"]["MemoryUserIDParam"]; }; header?: never; path: { /** @description Resource ID. */ resource_id: components["parameters"]["IDParam"]; /** @description The key identifying a memory entry. Restricted to a path-safe character set (letters, numbers, and `. _ : -`) so it stays reliably addressable. */ memory_key: components["parameters"]["MemoryKeyParam"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description Deleted */ 204: { headers: { [name: string]: unknown; }; content?: never; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 429: components["responses"]["TooManyRequests"]; }; }; promoteAgentMemoryEntry: { parameters: { query?: never; header?: never; path: { /** @description Resource ID. */ resource_id: components["parameters"]["IDParam"]; /** @description The key identifying a memory entry. Restricted to a path-safe character set (letters, numbers, and `. _ : -`) so it stays reliably addressable. */ memory_key: components["parameters"]["MemoryKeyParam"]; }; cookie?: never; }; requestBody: { content: { /** * @example { * "user_id": "user_2f9s3k4m5n6p7q8r" * } */ "application/json": components["schemas"]["PromoteAgentMemoryEntryRequest"]; }; }; responses: { /** @description The promoted shared entry. */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["AgentMemoryEntry"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 409: components["responses"]["Conflict"]; }; }; revertAgentMemoryPromotion: { parameters: { query?: never; header?: never; path: { /** @description Resource ID. */ resource_id: components["parameters"]["IDParam"]; /** @description The key identifying a memory entry. Restricted to a path-safe character set (letters, numbers, and `. _ : -`) so it stays reliably addressable. */ memory_key: components["parameters"]["MemoryKeyParam"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description Reverted */ 204: { headers: { [name: string]: unknown; }; content?: never; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; invokeAgent: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody: { content: { /** * @example { * "agent_ref": { * "id": "agent_5n8p2q7m4x9r3v6t" * }, * "session": { * "mode": "continue_or_create", * "session_key": "app:acct_123:user_456:slack:support:thread_789", * "title": "Support in Slack", * "model_override": "claude-sonnet-4-6", * "metadata": { * "account_id": "acct_123", * "user_id": "user_456" * } * }, * "operation": { * "timeout_seconds": 120 * }, * "input": { * "content": [ * { * "type": "text", * "text": "Can you summarize my open tickets?" * } * ], * "idempotency_key": "slack:evt_0a1b2c3d" * }, * "channel_context": { * "provider": "slack", * "workspace_id": "T123", * "channel_id": "C123", * "thread_id": "1700000000.123" * } * } */ "application/json": components["schemas"]["InvokeAgentRequest"]; }; }; responses: { /** @description Server-sent event stream of the turn's activity, returned when the request sets `Accept: text/event-stream`. `SessionStreamFrame` describes the framing. */ 200: { headers: { [name: string]: unknown; }; content: { "text/event-stream": components["schemas"]["SessionStreamFrame"]; }; }; /** @description The turn was accepted and is running. */ 202: { headers: { /** @description Pollable session turn. */ Location?: string; [name: string]: unknown; }; content: { "application/json": components["schemas"]["TurnAck"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; /** @description A distinct direct invocation is already queued, running, or waiting. The `session_turn_active` error details contain its `turn_id` and `status`. While a voice call is in progress in the chat, a send returns `voice_call_active` with the message "A voice call is in progress in this chat." */ 409: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ErrorResponse"]; }; }; 429: components["responses"]["TooManyRequests"]; }; }; listSessions: { parameters: { query?: { /** @description Filter to sessions owned by this agent. */ agent_id?: string; /** @description Filter to sessions owned by the org-unique agent with this exact name. Mutually exclusive with `agent_id`. */ agent_name?: string; /** @description Look up the session with this exact routing key — a read-only deterministic lookup that avoids a create-or-resolve round trip, returning the one matching session or an empty list. Requires exactly one of `agent_id` or `agent_name`, since session keys are scoped to an agent. */ session_key?: string; /** @description Filter by session status. */ status?: components["schemas"]["SessionStatus"]; /** @description Filter by session scope. */ scope?: components["schemas"]["SessionScope"]; /** @description Filter messaging sessions by provider metadata, e.g. `slack` or `telegram`. */ provider?: string; /** @description Filter to sessions created by this integration, e.g. agent sessions started from a connected provider. */ integration_id?: string; /** @description Only include sessions with activity after this timestamp. */ since?: string; /** @description Return at most this many sessions per agent, each agent's newest activity first, so one busy agent cannot crowd the others out of the page. `limit` still caps the total. Cannot be combined with `cursor`, `agent_id`, or `agent_name`. */ per_agent_limit?: number; /** @description Cursor for pagination (opaque string from previous response) */ cursor?: components["parameters"]["CursorParam"]; /** @description Maximum number of items to return */ limit?: components["parameters"]["LimitParam"]; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["SessionListResponse"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; createSession: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody: { content: { "application/json": components["schemas"]["CreateSessionRequest"]; }; }; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["Session"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; getSession: { parameters: { query?: never; header?: never; path: { /** @description Identifier of the conversation session. */ session_id: components["parameters"]["SessionIdParam"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["Session"]; }; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; deleteSession: { parameters: { query?: never; header?: never; path: { /** @description Identifier of the conversation session. */ session_id: components["parameters"]["SessionIdParam"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description No Content */ 204: { headers: { [name: string]: unknown; }; content?: never; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 409: components["responses"]["Conflict"]; 429: components["responses"]["TooManyRequests"]; }; }; updateSession: { parameters: { query?: never; header?: never; path: { /** @description Identifier of the conversation session. */ session_id: components["parameters"]["SessionIdParam"]; }; cookie?: never; }; requestBody: { content: { "application/json": components["schemas"]["UpdateSessionRequest"]; }; }; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["Session"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 409: components["responses"]["Conflict"]; 429: components["responses"]["TooManyRequests"]; }; }; markSessionRead: { parameters: { query?: never; header?: never; path: { /** @description Identifier of the conversation session. */ session_id: components["parameters"]["SessionIdParam"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description Read mark advanced */ 204: { headers: { [name: string]: unknown; }; content?: never; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; createSessionAttachment: { parameters: { query?: never; header?: { /** @description Optional retry key, scoped to this session and caller. An identical retry returns the original attachment. Reusing the key with different file bytes, filename, or MIME hint is rejected with a conflict. */ "Idempotency-Key"?: string; }; path: { /** @description Identifier of the conversation session. */ session_id: components["parameters"]["SessionIdParam"]; }; cookie?: never; }; requestBody: { content: { "multipart/form-data": components["schemas"]["CreateSessionAttachmentRequest"]; }; }; responses: { /** @description Existing attachment returned for an idempotent retry. */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["SessionAttachmentResponse"]; }; }; /** @description Attachment uploaded. */ 201: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["SessionAttachmentResponse"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; /** @description The idempotency key was reused with different file bytes, filename, or MIME hint. */ 409: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ErrorResponse"]; }; }; /** @description Attachment exceeds its per-type size, Office safety, or PDF page limit. */ 413: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ErrorResponse"]; }; }; /** @description Artifact storage is unavailable (`artifact_storage_unavailable`). */ 503: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ErrorResponse"]; }; }; }; }; putSessionPDFUploadPart: { parameters: { query?: never; header?: never; path: { /** @description Identifier of the conversation session. */ session_id: components["parameters"]["SessionIdParam"]; upload_id: string; part_number: number; }; cookie?: never; }; requestBody: { content: { "application/octet-stream": string; }; }; responses: { /** @description Chunk staged. */ 204: { headers: { [name: string]: unknown; }; content?: never; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; /** @description Chunk exceeds 8 MiB. */ 413: { headers: { [name: string]: unknown; }; content?: never; }; 503: components["responses"]["ServiceUnavailable"]; }; }; completeSessionPDFUpload: { parameters: { query?: never; header?: { "Idempotency-Key"?: string; }; path: { /** @description Identifier of the conversation session. */ session_id: components["parameters"]["SessionIdParam"]; upload_id: string; }; cookie?: never; }; requestBody: { content: { "application/json": components["schemas"]["CompleteSessionPDFUploadRequest"]; }; }; responses: { /** @description PDF already committed by this idempotency key. */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["SessionAttachmentResponse"]; }; }; /** @description PDF committed and referenced. */ 201: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["SessionAttachmentResponse"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; /** @description PDF exceeds 100 MiB. */ 413: { headers: { [name: string]: unknown; }; content?: never; }; 503: components["responses"]["ServiceUnavailable"]; }; }; deleteSessionAttachment: { parameters: { query?: never; header?: never; path: { /** @description Identifier of the conversation session. */ session_id: components["parameters"]["SessionIdParam"]; /** @description ID of the artifact */ artifact_id: components["parameters"]["ArtifactIdParam"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description No Content */ 204: { headers: { [name: string]: unknown; }; content?: never; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 409: components["responses"]["Conflict"]; }; }; createSessionArtifactReference: { parameters: { query?: never; header?: never; path: { /** @description Identifier of the conversation session. */ session_id: components["parameters"]["SessionIdParam"]; }; cookie?: never; }; requestBody: { content: { "application/json": components["schemas"]["CreateSessionArtifactReferenceRequest"]; }; }; responses: { /** @description The session already referenced this file. */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["SessionAttachmentResponse"]; }; }; /** @description File referenced into the session. */ 201: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["SessionAttachmentResponse"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 409: components["responses"]["Conflict"]; /** @description The file exceeds its per-type size or PDF page limit for model delivery. */ 413: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ErrorResponse"]; }; }; /** @description Artifact storage is unavailable (`artifact_storage_unavailable`). */ 503: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ErrorResponse"]; }; }; }; }; listSessionMessages: { parameters: { query?: { /** @description Continuation cursor for sequence-ordered lists. Only include rows whose monotonic per-resource sequence is strictly greater than this value. Pass the `next_sequence` from the previous response to fetch the next page. */ after_sequence?: components["parameters"]["AfterSequenceParam"]; /** @description Backward continuation cursor for sequence-ordered lists. Only include rows whose monotonic per-resource sequence is strictly less than this value. Combine with `order=desc` to page toward older rows from a known position; pass the `prev_sequence` from the previous response to fetch the next older page. */ before_sequence?: components["parameters"]["BeforeSequenceParam"]; /** @description Scan direction for the page. `asc` (the default) returns oldest-first; `desc` returns newest-first — the way to fetch the latest rows of a long list (the tail) in a single request. Items in the response are always ordered ascending regardless of this value; `order` only selects which end of the list the page is taken from. */ order?: components["parameters"]["OrderParam"]; /** @description Maximum number of items to return */ limit?: components["parameters"]["LimitParam"]; /** @description Set to `context` to include caller-supplied runtime context rows whose model-visible names begin with `app-`. Platform-owned runtime context remains hidden. */ include?: components["parameters"]["ContextIncludeParam"]; /** @description Set to `true` to include durable transcript rows salvaged from a failed or cancelled turn. These rows carry `partial` and `terminal_outcome` metadata and remain excluded from future model context. */ include_terminal_partials?: components["parameters"]["TerminalPartialsIncludeParam"]; }; header?: never; path: { /** @description Identifier of the conversation session. */ session_id: components["parameters"]["SessionIdParam"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["SessionMessageListResponse"]; }; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; appendSessionMessages: { parameters: { query?: never; header?: never; path: { /** @description Identifier of the conversation session. */ session_id: components["parameters"]["SessionIdParam"]; }; cookie?: never; }; requestBody: { content: { "application/json": components["schemas"]["AppendSessionMessagesRequest"]; }; }; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["Session"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 429: components["responses"]["TooManyRequests"]; }; }; listSessionTurns: { parameters: { query?: { /** @description Return exactly the turns with these ids (the transcript-join primitive). When set, pagination and ordering are ignored and the named turns are returned in chronological order. */ ids?: string[]; /** @description Scan direction for the page. `asc` (the default) returns oldest-first; `desc` returns newest-first — the way to fetch the latest rows of a long list (the tail) in a single request. Items in the response are always ordered ascending regardless of this value; `order` only selects which end of the list the page is taken from. */ order?: components["parameters"]["OrderParam"]; /** @description Cursor for pagination (opaque string from previous response) */ cursor?: components["parameters"]["CursorParam"]; /** @description Maximum number of items to return */ limit?: components["parameters"]["LimitParam"]; }; header?: never; path: { /** @description Identifier of the conversation session. */ session_id: components["parameters"]["SessionIdParam"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["AgentTurnListResponse"]; }; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; startTurn: { parameters: { query?: never; header?: never; path: { /** @description Identifier of the conversation session. */ session_id: components["parameters"]["SessionIdParam"]; }; cookie?: never; }; requestBody: { content: { "application/json": components["schemas"]["StartTurnRequest"]; }; }; responses: { /** @description Server-sent event stream of the turn's activity, returned when the request sets `Accept: text/event-stream`. `SessionStreamFrame` describes the framing. */ 200: { headers: { [name: string]: unknown; }; content: { "text/event-stream": components["schemas"]["SessionStreamFrame"]; }; }; /** @description The turn was accepted and is running. */ 202: { headers: { /** @description Pollable session turn. */ Location?: string; [name: string]: unknown; }; content: { "application/json": components["schemas"]["TurnAck"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; /** @description A distinct direct invocation is already queued, running, or waiting. The `session_turn_active` error details contain its `turn_id` and `status`. While a voice call is in progress in the chat, a send returns `voice_call_active` with the message "A voice call is in progress in this chat." */ 409: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ErrorResponse"]; }; }; 429: components["responses"]["TooManyRequests"]; }; }; getSessionTurn: { parameters: { query?: never; header?: never; path: { /** @description Identifier of the conversation session. */ session_id: components["parameters"]["SessionIdParam"]; /** @description Identifier of a turn within a session. */ turn_id: components["parameters"]["TurnIdParam"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["AgentTurn"]; }; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; deleteSessionTurn: { parameters: { query?: never; header?: never; path: { /** @description Identifier of the conversation session. */ session_id: components["parameters"]["SessionIdParam"]; /** @description Identifier of a turn within a session. */ turn_id: components["parameters"]["TurnIdParam"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description No Content */ 204: { headers: { [name: string]: unknown; }; content?: never; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; /** @description The session has a turn in flight (`session_turn_active`), or the turn is not the session's last one (`turn_not_last`). */ 409: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ErrorResponse"]; }; }; 429: components["responses"]["TooManyRequests"]; }; }; listSessionNudges: { parameters: { query?: { /** @description Filter by one or more nudge statuses. */ status?: components["schemas"]["SessionNudgeStatus"][]; /** @description Scan direction for the page. `asc` (the default) returns oldest-first; `desc` returns newest-first — the way to fetch the latest rows of a long list (the tail) in a single request. Items in the response are always ordered ascending regardless of this value; `order` only selects which end of the list the page is taken from. */ order?: components["parameters"]["OrderParam"]; /** @description Cursor for pagination (opaque string from previous response) */ cursor?: components["parameters"]["CursorParam"]; /** @description Maximum number of items to return */ limit?: components["parameters"]["LimitParam"]; }; header?: never; path: { /** @description Identifier of the conversation session. */ session_id: components["parameters"]["SessionIdParam"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["SessionNudgeListResponse"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; nudgeSession: { parameters: { query?: never; header?: never; path: { /** @description Identifier of the conversation session. */ session_id: components["parameters"]["SessionIdParam"]; }; cookie?: never; }; requestBody: { content: { "application/json": components["schemas"]["NudgeSessionRequest"]; }; }; responses: { /** @description The nudge input was accepted for delivery. */ 202: { headers: { /** @description Pollable session nudge. */ Location?: string; [name: string]: unknown; }; content: { "application/json": components["schemas"]["SessionNudgeAck"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 409: components["responses"]["Conflict"]; 429: components["responses"]["TooManyRequests"]; }; }; getSessionNudge: { parameters: { query?: never; header?: never; path: { /** @description Identifier of the conversation session. */ session_id: components["parameters"]["SessionIdParam"]; /** @description Session nudge identifier. */ nudge_id: components["parameters"]["NudgeIdParam"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["SessionNudge"]; }; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; cancelNudge: { parameters: { query?: never; header?: never; path: { /** @description Identifier of the conversation session. */ session_id: components["parameters"]["SessionIdParam"]; /** @description Session nudge identifier. */ nudge_id: components["parameters"]["NudgeIdParam"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description The nudge is cancelled. */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["SessionNudge"]; }; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 409: components["responses"]["Conflict"]; }; }; listSessionEventSubscriptions: { parameters: { query?: { /** @description Filter by one or more subscription states. */ status?: components["schemas"]["SessionEventSubscriptionStatus"][]; /** @description Scan direction for the page. `asc` (the default) returns oldest-first; `desc` returns newest-first — the way to fetch the latest rows of a long list (the tail) in a single request. Items in the response are always ordered ascending regardless of this value; `order` only selects which end of the list the page is taken from. */ order?: components["parameters"]["OrderParam"]; /** @description Cursor for pagination (opaque string from previous response) */ cursor?: components["parameters"]["CursorParam"]; /** @description Maximum number of items to return */ limit?: components["parameters"]["LimitParam"]; }; header?: never; path: { /** @description Identifier of the conversation session. */ session_id: components["parameters"]["SessionIdParam"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["SessionEventSubscriptionListResponse"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; createSessionEventSubscription: { parameters: { query?: never; header?: never; path: { /** @description Identifier of the conversation session. */ session_id: components["parameters"]["SessionIdParam"]; }; cookie?: never; }; requestBody: { content: { "application/json": components["schemas"]["CreateSessionEventSubscriptionRequest"]; }; }; responses: { /** @description Existing idempotent subscription returned. */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["SessionEventSubscriptionCreateResponse"]; }; }; /** @description Subscription created. */ 201: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["SessionEventSubscriptionCreateResponse"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 409: components["responses"]["Conflict"]; }; }; getSessionEventSubscription: { parameters: { query?: never; header?: never; path: { /** @description Identifier of the conversation session. */ session_id: components["parameters"]["SessionIdParam"]; /** @description Durable session event subscription identifier. */ subscription_id: components["parameters"]["SessionEventSubscriptionIdParam"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["SessionEventSubscription"]; }; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; unsubscribeSessionEventSubscription: { parameters: { query?: never; header?: never; path: { /** @description Identifier of the conversation session. */ session_id: components["parameters"]["SessionIdParam"]; /** @description Durable session event subscription identifier. */ subscription_id: components["parameters"]["SessionEventSubscriptionIdParam"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description The stopped subscription. */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["SessionEventSubscription"]; }; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; stopSessionEventSubscriptions: { parameters: { query?: never; header?: never; path: { /** @description Identifier of the conversation session. */ session_id: components["parameters"]["SessionIdParam"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description Subscriptions stopped. */ 204: { headers: { [name: string]: unknown; }; content?: never; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; listSessionEventDeliveries: { parameters: { query?: { status?: components["schemas"]["SessionEventDeliveryStatus"][]; /** @description Scan direction for the page. `asc` (the default) returns oldest-first; `desc` returns newest-first — the way to fetch the latest rows of a long list (the tail) in a single request. Items in the response are always ordered ascending regardless of this value; `order` only selects which end of the list the page is taken from. */ order?: components["parameters"]["OrderParam"]; /** @description Cursor for pagination (opaque string from previous response) */ cursor?: components["parameters"]["CursorParam"]; /** @description Maximum number of items to return */ limit?: components["parameters"]["LimitParam"]; }; header?: never; path: { /** @description Identifier of the conversation session. */ session_id: components["parameters"]["SessionIdParam"]; /** @description Durable session event subscription identifier. */ subscription_id: components["parameters"]["SessionEventSubscriptionIdParam"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["SessionEventDeliveryListResponse"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; getSessionTurnLive: { parameters: { query?: never; header?: never; path: { /** @description Identifier of the conversation session. */ session_id: components["parameters"]["SessionIdParam"]; /** @description Identifier of a turn within a session. */ turn_id: components["parameters"]["TurnIdParam"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["SessionLiveSnapshot"]; }; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; cancelTurn: { parameters: { query?: never; header?: never; path: { /** @description Identifier of the conversation session. */ session_id: components["parameters"]["SessionIdParam"]; /** @description Identifier of a turn within a session. */ turn_id: components["parameters"]["TurnIdParam"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["AgentTurn"]; }; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; getSessionTranscript: { parameters: { query?: { /** @description Opaque resume_cursor from a prior snapshot or stream. */ cursor?: string; /** @description Opaque fixed-cut continuation returned as next_page_token. */ page_token?: string; /** @description Maximum number of items to return */ limit?: components["parameters"]["LimitParam"]; }; header?: never; path: { /** @description Identifier of the conversation session. */ session_id: components["parameters"]["SessionIdParam"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description Transcript snapshot. */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["SessionTranscriptSnapshot"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; streamSessionTranscript: { parameters: { query?: { /** @description Opaque resume cursor. */ cursor?: string; /** @description With no cursor, start at the session's current end instead of replaying its history. The stream still sends the in-flight rows, the turns that have not finished, and pending interactions, then `stream.ready`. For a client that reads the history from the messages API. A cursor takes precedence. */ tail?: boolean; }; header?: { /** @description Opaque resume cursor from the last delivered state frame. */ "Last-Event-ID"?: string; }; path: { /** @description Identifier of the conversation session. */ session_id: components["parameters"]["SessionIdParam"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description Authoritative transcript SSE stream. */ 200: { headers: { [name: string]: unknown; }; content: { "text/event-stream": components["schemas"]["SessionTranscriptFrame"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; cancelSession: { parameters: { query?: never; header?: never; path: { /** @description Identifier of the conversation session. */ session_id: components["parameters"]["SessionIdParam"]; }; cookie?: never; }; requestBody?: { content: { "application/json": components["schemas"]["CancelSessionRequest"]; }; }; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["Session"]; }; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; compactSession: { parameters: { query?: never; header?: never; path: { /** @description Identifier of the conversation session. */ session_id: components["parameters"]["SessionIdParam"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["Session"]; }; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 409: components["responses"]["Conflict"]; 429: components["responses"]["TooManyRequests"]; }; }; listRoutineThreads: { parameters: { query?: { limit?: number; cursor?: string; /** @description When true, returns only threads at their turn limit. They skip new events until a manager resumes them. */ paused?: boolean; }; header?: never; path: { routine_id: components["parameters"]["RoutineID"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description Threads ordered by last activity. */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["RoutineThreadList"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; getRoutineThread: { parameters: { query?: never; header?: never; path: { routine_id: components["parameters"]["RoutineID"]; key: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Thread record. */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["RoutineThread"]; }; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; resumeRoutineThread: { parameters: { query?: never; header?: never; path: { routine_id: components["parameters"]["RoutineID"]; key: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Resumed thread. */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["RoutineThread"]; }; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 409: components["responses"]["Conflict"]; }; }; previewRoutineFollowKey: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody: { content: { "application/json": components["schemas"]["RoutineFollowPreviewRequest"]; }; }; responses: { /** @description Resolved custom thread key. */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["RoutineFollowPreview"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; listRoutines: { parameters: { query?: { owner_id?: string; agent_id?: string; /** @description Filter to routines proposed in one conversation. Provenance only; it is not where they run. */ origin_session_id?: string; /** @description Filter to persistent account-repair work assigned to the authenticated human. */ attention?: "account_repair"; /** @description Narrow to these routine statuses. Omit for every status, cancelled included. */ status?: components["schemas"]["RoutineStatus"][]; limit?: number; /** @description next_cursor from the previous page. */ cursor?: string; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description Reachable routines. */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["RoutineList"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; }; }; createRoutine: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody: { content: { "application/json": components["schemas"]["RoutineCreateRequest"]; }; }; responses: { /** @description Routine created. */ 201: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["Routine"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 409: components["responses"]["Conflict"]; }; }; listRoutineOccurrences: { parameters: { query?: { /** @description Narrow to one thread; requires routine_id. */ thread_key?: string; /** @description Narrow to one routine. This is what the deleted nested route was. */ routine_id?: string; /** @description Narrow to routines one person is the custodian of. Team-custody routines have no owner and never match. */ owner_id?: string; /** @description Narrow to these occurrence statuses. */ status?: ("pending" | "admitted" | "completed" | "failed" | "blocked" | "skipped" | "missed")[]; /** @description Only occurrences scheduled at or after this time. */ since?: string; /** @description Only occurrences scheduled before this time. */ until?: string; limit?: number; /** @description next_cursor from the previous page. */ cursor?: string; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description Occurrences. */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["RoutineOccurrenceList"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; getRoutineOccurrence: { parameters: { query?: never; header?: never; path: { occurrence_id: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Current or terminal occurrence. */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["RoutineOccurrence"]; }; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; getRoutine: { parameters: { query?: never; header?: never; path: { routine_id: components["parameters"]["RoutineID"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description Routine. */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["Routine"]; }; }; 401: components["responses"]["Unauthorized"]; 404: components["responses"]["NotFound"]; }; }; deleteRoutine: { parameters: { query?: never; header?: never; path: { routine_id: components["parameters"]["RoutineID"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description Routine cancelled. */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["Routine"]; }; }; 401: components["responses"]["Unauthorized"]; 404: components["responses"]["NotFound"]; }; }; updateRoutine: { parameters: { query?: never; header?: never; path: { routine_id: components["parameters"]["RoutineID"]; }; cookie?: never; }; requestBody: { content: { "application/json": components["schemas"]["RoutineUpdateRequest"]; }; }; responses: { /** @description Routine updated. */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["Routine"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 404: components["responses"]["NotFound"]; }; }; markRoutineRead: { parameters: { query?: never; header?: never; path: { routine_id: components["parameters"]["RoutineID"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description Read marks advanced */ 204: { headers: { [name: string]: unknown; }; content?: never; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; listRoutineChanges: { parameters: { query?: { limit?: number; /** @description next_cursor from the previous page. */ cursor?: string; }; header?: never; path: { routine_id: components["parameters"]["RoutineID"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description Changes. */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["RoutineChangeList"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; runRoutineNow: { parameters: { query?: never; header?: never; path: { routine_id: components["parameters"]["RoutineID"]; }; cookie?: never; }; requestBody?: never; responses: { /** * @description Run accepted. The occurrence is pending until the alarm admits it, which is why this is not a 200 with a running row. * * A manual run carries a ten-minute deadline: asking for one is an act of attention, and work that cannot start within ten minutes is answering a stale intention. An occurrence still pending past that deadline is closed on the ledger with `status: skipped` and `error_code: stale` rather than run late. */ 202: { headers: { /** @description Pollable occurrence. */ Location?: string; [name: string]: unknown; }; content: { "application/json": components["schemas"]["RoutineOccurrence"]; }; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 409: components["responses"]["Conflict"]; }; }; pauseRoutine: { parameters: { query?: never; header?: never; path: { routine_id: components["parameters"]["RoutineID"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description Routine paused. */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["Routine"]; }; }; /** @description Routine paused by an administrator who may stop it but not read it, so no routine is returned. */ 204: { headers: { [name: string]: unknown; }; content?: never; }; 401: components["responses"]["Unauthorized"]; 404: components["responses"]["NotFound"]; }; }; resumeRoutine: { parameters: { query?: never; header?: never; path: { routine_id: components["parameters"]["RoutineID"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description Routine resumed. */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["Routine"]; }; }; /** @description Routine resumed by an administrator who may stop it but not read it, so no routine is returned. */ 204: { headers: { [name: string]: unknown; }; content?: never; }; 401: components["responses"]["Unauthorized"]; 404: components["responses"]["NotFound"]; }; }; listRoutinePrincipals: { parameters: { query?: never; header?: never; path: { routine_id: components["parameters"]["RoutineID"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description Roster. */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["RoutinePrincipalList"]; }; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; addRoutinePrincipal: { parameters: { query?: never; header?: never; path: { routine_id: components["parameters"]["RoutineID"]; }; cookie?: never; }; requestBody: { content: { "application/json": components["schemas"]["AddRoutinePrincipalRequest"]; }; }; responses: { /** @description The roster after the add. */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["RoutinePrincipalList"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; removeRoutinePrincipal: { parameters: { query?: { /** @description Limit the removal to one relationship. Omit to remove all of them. */ relationship?: components["schemas"]["RoutineRelationship"]; }; header?: never; path: { routine_id: components["parameters"]["RoutineID"]; principal_id: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Removed. */ 204: { headers: { [name: string]: unknown; }; content?: never; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 409: components["responses"]["Conflict"]; }; }; getRoutineProposal: { parameters: { query?: never; header?: never; path: { proposal_id: components["parameters"]["RoutineProposalID"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description The proposal. */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["RoutineProposal"]; }; }; 401: components["responses"]["Unauthorized"]; 404: components["responses"]["NotFound"]; }; }; approveRoutineProposal: { parameters: { query?: never; header?: never; path: { proposal_id: components["parameters"]["RoutineProposalID"]; }; cookie?: never; }; requestBody?: { content: { "application/json": components["schemas"]["RoutineProposalApproval"]; }; }; responses: { /** @description Existing routine returned for an idempotent replay. */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["Routine"]; }; }; /** @description Routine created. */ 201: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["Routine"]; }; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 409: components["responses"]["Conflict"]; }; }; dismissRoutineProposal: { parameters: { query?: never; header?: never; path: { proposal_id: components["parameters"]["RoutineProposalID"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description Proposal dismissed. */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["RoutineProposal"]; }; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; listSkills: { parameters: { query?: { /** @description Include read-only system skill templates. */ include_system?: boolean; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["SkillListResponse"]; }; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; createSkill: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody: { content: { /** * @example { * "name": "Pull request review", * "description": "Review pull requests for correctness and risk.", * "instructions": "Check the diff and leave concise findings.", * "allowed_actions": [ * "github.create_review_comment" * ], * "tags": { * "owner": "product" * } * } */ "application/json": components["schemas"]["SkillRequest"]; }; }; responses: { /** @description Created */ 201: { headers: { [name: string]: unknown; }; content: { /** * @example { * "id": "skill_7n4q8x2m9p5v3r6t", * "name": "Pull request review", * "description": "Review pull requests for correctness and risk.", * "source": "custom", * "instructions": "Check the diff and leave concise findings.", * "allowed_actions": [ * "github.create_review_comment" * ], * "tags": { * "owner": "product" * }, * "owner": { * "kind": "person", * "id": "user_2f9s3k4m5n6p7q8r" * }, * "visibility": "private", * "container": null, * "posture": "only_you", * "created_by": "user_2f9s3k4m5n6p7q8r", * "updated_by": "user_2f9s3k4m5n6p7q8r", * "created_at": "2026-06-15T14:30:00Z", * "updated_at": "2026-06-15T14:30:00Z" * } */ "application/json": components["schemas"]["Skill"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 409: components["responses"]["Conflict"]; 429: components["responses"]["TooManyRequests"]; }; }; importSkill: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody: { content: { /** * @example { * "name": "Pull request review", * "content": "---\nallowed_actions:\n - github.create_review_comment\n---\nCheck the diff and leave concise findings.\n" * } */ "application/json": components["schemas"]["ImportSkillRequest"]; }; }; responses: { /** @description Created */ 201: { headers: { [name: string]: unknown; }; content: { /** * @example { * "id": "skill_7n4q8x2m9p5v3r6t", * "name": "Pull request review", * "description": "Review pull requests for correctness and risk.", * "source": "custom", * "instructions": "Check the diff and leave concise findings.", * "allowed_actions": [ * "github.create_review_comment" * ], * "tags": { * "owner": "product" * }, * "owner": { * "kind": "person", * "id": "user_2f9s3k4m5n6p7q8r" * }, * "visibility": "private", * "container": null, * "posture": "only_you", * "created_by": "user_2f9s3k4m5n6p7q8r", * "updated_by": "user_2f9s3k4m5n6p7q8r", * "created_at": "2026-06-15T14:30:00Z", * "updated_at": "2026-06-15T14:30:00Z" * } */ "application/json": components["schemas"]["Skill"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 409: components["responses"]["Conflict"]; 429: components["responses"]["TooManyRequests"]; }; }; getSkill: { parameters: { query?: never; header?: never; path: { /** @description Skill ID. */ skill_id: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["Skill"]; }; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; updateSkill: { parameters: { query?: never; header?: never; path: { /** @description Skill ID. */ skill_id: string; }; cookie?: never; }; requestBody: { content: { /** * @example { * "name": "Pull request review", * "description": "Review pull requests for correctness and risk.", * "instructions": "Check the diff and leave concise findings.", * "allowed_actions": [ * "github.create_review_comment" * ], * "tags": { * "owner": "product" * } * } */ "application/json": components["schemas"]["SkillRequest"]; }; }; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["Skill"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 409: components["responses"]["Conflict"]; 429: components["responses"]["TooManyRequests"]; }; }; deleteSkill: { parameters: { query?: never; header?: never; path: { /** @description Skill ID. */ skill_id: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description No Content */ 204: { headers: { [name: string]: unknown; }; content?: never; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 429: components["responses"]["TooManyRequests"]; }; }; applyBlueprint: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody: { content: { /** * @example { * "namespace": "support", * "blueprint_key": "triage", * "blueprint_version": "1", * "mode": "apply", * "resources": { * "actions": [ * { * "key": "notify", * "name": "support.notify", * "title": "Notify support", * "description": "Send a support-team notification.", * "input_schema": { * "type": "object" * } * } * ] * } * } */ "application/json": components["schemas"]["ApplyBlueprintRequest"]; }; }; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["BlueprintApplyResult"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; /** @description A blueprint reference points at a resource that does not exist. */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ErrorResponse"]; }; }; /** @description A blueprint reference or apply conflict requires human review. */ 409: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ErrorResponse"]; }; }; 429: components["responses"]["TooManyRequests"]; }; }; listBlueprintBindings: { parameters: { query?: { /** @description Optional namespace filter for the owning blueprint identity. */ namespace?: string; /** @description Optional blueprint identifier filter. */ blueprint_key?: string; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["BlueprintBindingListResponse"]; }; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 429: components["responses"]["TooManyRequests"]; }; }; setBlueprintProtection: { parameters: { query?: { /** @description Blueprint namespace. Omit for an unnamespaced blueprint. */ namespace?: string; }; header?: never; path: { blueprint_key: string; }; cookie?: never; }; requestBody: { content: { "application/json": components["schemas"]["SetBlueprintProtectionRequest"]; }; }; responses: { /** @description Protection updated. */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["BlueprintBindingListResponse"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 409: components["responses"]["Conflict"]; 429: components["responses"]["TooManyRequests"]; }; }; deleteBlueprint: { parameters: { query?: { /** @description Blueprint namespace. Omit for an unnamespaced blueprint. */ namespace?: string; /** @description Also delete adopted resources and legacy bindings whose ownership is unknown. Defaults to false. Use only after inspecting the blueprint bindings because these resources may contain customer-authored data. */ delete_retained?: boolean; }; header?: never; path: { blueprint_key: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Blueprint bindings removed and selected resources deleted. */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["BlueprintDeleteResult"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 409: components["responses"]["Conflict"]; 429: components["responses"]["TooManyRequests"]; }; }; listPrincipals: { parameters: { query?: { /** @description Filter principals by kind. */ kind?: components["schemas"]["PrincipalKind"]; /** @description Include disabled principals. By default only active ones are returned. */ include_disabled?: boolean; /** @description Maximum number of items to return */ limit?: components["parameters"]["LimitParam"]; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["PrincipalListResponse"]; }; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; createPrincipal: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody: { content: { "application/json": components["schemas"]["CreatePrincipalRequest"]; }; }; responses: { /** @description Created */ 201: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["Principal"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 409: components["responses"]["Conflict"]; }; }; getPrincipal: { parameters: { query?: never; header?: never; path: { /** @description Resource ID. */ resource_id: components["parameters"]["IDParam"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["Principal"]; }; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; deletePrincipal: { parameters: { query?: never; header?: never; path: { /** @description Resource ID. */ resource_id: components["parameters"]["IDParam"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description No Content */ 204: { headers: { [name: string]: unknown; }; content?: never; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 409: components["responses"]["Conflict"]; }; }; updatePrincipal: { parameters: { query?: never; header?: never; path: { /** @description Resource ID. */ resource_id: components["parameters"]["IDParam"]; }; cookie?: never; }; requestBody: { content: { "application/json": components["schemas"]["UpdatePrincipalRequest"]; }; }; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["Principal"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; listTables: { parameters: { query?: { /** @description Cursor for pagination (opaque string from previous response) */ cursor?: components["parameters"]["CursorParam"]; /** @description Maximum number of items to return */ limit?: components["parameters"]["LimitParam"]; /** @description Filter tables by name. Table names are unique within an org; use this as a discovery filter and use the returned table `id` for follow-up operations. */ name?: components["parameters"]["TableNameQueryParam"]; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["TableListResponse"]; }; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; }; }; createTable: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody: { content: { /** * @example { * "name": "review_findings", * "description": "Pull-request review findings.", * "schema": { * "columns": [ * { * "name": "pull_request_url", * "type": "string", * "required": true * }, * { * "name": "severity", * "type": "string" * }, * { * "name": "summary", * "type": "string" * } * ], * "identity_column": "pull_request_url" * } * } */ "application/json": components["schemas"]["CreateTableRequest"]; }; }; responses: { /** @description Created */ 201: { headers: { [name: string]: unknown; }; content: { /** * @example { * "id": "table_2x7q5m9v3p8r4n6t", * "name": "review_findings", * "description": "Pull-request review findings.", * "schema": { * "columns": [ * { * "name": "pull_request_url", * "type": "string", * "required": true * }, * { * "name": "severity", * "type": "string" * }, * { * "name": "summary", * "type": "string" * } * ], * "identity_column": "pull_request_url" * }, * "owner": { * "kind": "person", * "id": "user_2f9s3k4m5n6p7q8r" * }, * "visibility": "private", * "posture": "only_you", * "created_at": "2026-06-15T14:30:00Z", * "updated_at": "2026-06-15T14:30:00Z" * } */ "application/json": components["schemas"]["Table"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 409: components["responses"]["Conflict"]; 429: components["responses"]["TooManyRequests"]; }; }; getTable: { parameters: { query?: never; header?: never; path: { /** @description Table ID. */ table_id: components["parameters"]["TableIDParam"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["Table"]; }; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; deleteTable: { parameters: { query?: never; header?: never; path: { /** @description Table ID. */ table_id: components["parameters"]["TableIDParam"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description No Content */ 204: { headers: { [name: string]: unknown; }; content?: never; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 429: components["responses"]["TooManyRequests"]; }; }; updateTable: { parameters: { query?: never; header?: never; path: { /** @description Table ID. */ table_id: components["parameters"]["TableIDParam"]; }; cookie?: never; }; requestBody: { content: { /** * @example { * "description": "Pull-request review findings for release triage.", * "instructions": "Prioritize critical and high-severity review findings." * } */ "application/json": components["schemas"]["UpdateTableRequest"]; }; }; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { /** * @example { * "id": "table_2x7q5m9v3p8r4n6t", * "name": "review_findings", * "description": "Pull-request review findings for release triage.", * "schema": { * "columns": [ * { * "name": "pull_request_url", * "type": "string", * "required": true * }, * { * "name": "severity", * "type": "string" * }, * { * "name": "summary", * "type": "string" * } * ], * "identity_column": "pull_request_url" * }, * "tags": { * "team": "product" * }, * "owner": { * "kind": "person", * "id": "user_2f9s3k4m5n6p7q8r" * }, * "visibility": "private", * "posture": "only_you", * "created_at": "2026-06-15T14:30:00Z", * "updated_at": "2026-06-15T14:35:00Z" * } */ "application/json": components["schemas"]["Table"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 409: components["responses"]["Conflict"]; 429: components["responses"]["TooManyRequests"]; }; }; getTableStats: { parameters: { query?: never; header?: never; path: { /** @description Table ID. */ table_id: components["parameters"]["TableIDParam"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["TableStats"]; }; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; createTableRow: { parameters: { query?: never; header?: never; path: { /** @description Table ID. */ table_id: components["parameters"]["TableIDParam"]; }; cookie?: never; }; requestBody: { content: { /** * @example { * "data": { * "pull_request_url": "https://github.com/deepnoodle-ai/mobius-cloud/pull/123", * "severity": "medium", * "summary": "Add a regression test for the error path." * } * } */ "application/json": components["schemas"]["InsertRowRequest"]; }; }; responses: { /** @description Created */ 201: { headers: { [name: string]: unknown; }; content: { /** * @example { * "id": "row_5p9x2q7m4n8v3r6t", * "table_id": "table_2x7q5m9v3p8r4n6t", * "data": { * "pull_request_url": "https://github.com/deepnoodle-ai/mobius-cloud/pull/123", * "severity": "medium", * "summary": "Add a regression test for the error path." * }, * "version": 1, * "created_at": "2026-06-15T14:30:00Z", * "updated_at": "2026-06-15T14:30:00Z" * } */ "application/json": components["schemas"]["TableRow"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 429: components["responses"]["TooManyRequests"]; }; }; queryTableRows: { parameters: { query?: never; header?: never; path: { /** @description Table ID. */ table_id: components["parameters"]["TableIDParam"]; }; cookie?: never; }; requestBody?: { content: { /** * @example { * "filter": { * "severity": { * "$in": [ * "high", * "critical" * ] * } * }, * "sort": [ * { * "field": "created_at", * "order": "desc" * } * ], * "limit": 50 * } */ "application/json": components["schemas"]["QueryRowsRequest"]; }; }; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { /** * @example { * "items": [ * { * "id": "row_5p9x2q7m4n8v3r6t", * "table_id": "table_2x7q5m9v3p8r4n6t", * "data": { * "pull_request_url": "https://github.com/deepnoodle-ai/mobius-cloud/pull/123", * "severity": "medium", * "summary": "Add a regression test for the error path." * }, * "version": 1, * "created_at": "2026-06-15T14:30:00Z", * "updated_at": "2026-06-15T14:30:00Z" * } * ], * "has_more": false, * "limit": 50 * } */ "application/json": components["schemas"]["TableRowQueryListResponse"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 429: components["responses"]["TooManyRequests"]; }; }; searchTableRows: { parameters: { query?: never; header?: never; path: { /** @description Table ID. */ table_id: components["parameters"]["TableIDParam"]; }; cookie?: never; }; requestBody: { content: { /** * @example { * "query": "regression", * "filter": { * "severity": "medium" * }, * "limit": 25 * } */ "application/json": components["schemas"]["SearchRowsRequest"]; }; }; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { /** * @example { * "items": [ * { * "id": "row_5p9x2q7m4n8v3r6t", * "table_id": "table_2x7q5m9v3p8r4n6t", * "data": { * "pull_request_url": "https://github.com/deepnoodle-ai/mobius-cloud/pull/123", * "severity": "medium", * "summary": "Add a regression test for the error path." * }, * "version": 1, * "created_at": "2026-06-15T14:30:00Z", * "updated_at": "2026-06-15T14:30:00Z" * } * ], * "has_more": false, * "limit": 25 * } */ "application/json": components["schemas"]["TableRowSearchListResponse"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 429: components["responses"]["TooManyRequests"]; }; }; upsertTableRow: { parameters: { query?: never; header?: never; path: { /** @description Table ID. */ table_id: components["parameters"]["TableIDParam"]; }; cookie?: never; }; requestBody: { content: { /** * @example { * "data": { * "pull_request_url": "https://github.com/deepnoodle-ai/mobius-cloud/pull/123", * "severity": "high", * "summary": "Add regression coverage before merge." * } * } */ "application/json": components["schemas"]["UpsertRowRequest"]; }; }; responses: { /** @description Updated */ 200: { headers: { [name: string]: unknown; }; content: { /** * @example { * "row": { * "id": "row_5p9x2q7m4n8v3r6t", * "table_id": "table_2x7q5m9v3p8r4n6t", * "data": { * "pull_request_url": "https://github.com/deepnoodle-ai/mobius-cloud/pull/123", * "severity": "high", * "summary": "Add regression coverage before merge." * }, * "version": 2, * "created_at": "2026-06-15T14:30:00Z", * "updated_at": "2026-06-15T14:36:00Z" * }, * "created": false * } */ "application/json": components["schemas"]["UpsertRowResult"]; }; }; /** @description Created */ 201: { headers: { [name: string]: unknown; }; content: { /** * @example { * "row": { * "id": "row_6n3r8v4m7q2x9p5t", * "table_id": "table_2x7q5m9v3p8r4n6t", * "data": { * "pull_request_url": "https://github.com/deepnoodle-ai/mobius-cloud/pull/124", * "severity": "low", * "summary": "Polish API examples." * }, * "version": 1, * "created_at": "2026-06-15T14:37:00Z", * "updated_at": "2026-06-15T14:37:00Z" * }, * "created": true * } */ "application/json": components["schemas"]["UpsertRowResult"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 409: components["responses"]["Conflict"]; 429: components["responses"]["TooManyRequests"]; }; }; bulkCreateTableRows: { parameters: { query?: never; header?: never; path: { /** @description Table ID. */ table_id: components["parameters"]["TableIDParam"]; }; cookie?: never; }; requestBody: { content: { /** * @example { * "rows": [ * { * "pull_request_url": "https://github.com/deepnoodle-ai/mobius-cloud/pull/123", * "severity": "medium", * "summary": "Add a regression test for the error path." * }, * { * "pull_request_url": "https://github.com/deepnoodle-ai/mobius-cloud/pull/124", * "severity": "low", * "summary": "Polish API examples." * } * ] * } */ "application/json": components["schemas"]["BulkInsertRowsRequest"]; }; }; responses: { /** @description Created */ 201: { headers: { [name: string]: unknown; }; content: { /** * @example { * "inserted": 2, * "items": [ * { * "id": "row_5p9x2q7m4n8v3r6t", * "table_id": "table_2x7q5m9v3p8r4n6t", * "data": { * "pull_request_url": "https://github.com/deepnoodle-ai/mobius-cloud/pull/123", * "severity": "medium", * "summary": "Add a regression test for the error path." * }, * "version": 1, * "created_at": "2026-06-15T14:30:00Z", * "updated_at": "2026-06-15T14:30:00Z" * } * ] * } */ "application/json": components["schemas"]["BulkInsertRowsResult"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 429: components["responses"]["TooManyRequests"]; }; }; getTableRow: { parameters: { query?: never; header?: never; path: { /** @description Table ID. */ table_id: components["parameters"]["TableIDParam"]; /** @description Table row ID. */ row_id: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { /** * @example { * "id": "row_5p9x2q7m4n8v3r6t", * "table_id": "table_2x7q5m9v3p8r4n6t", * "data": { * "pull_request_url": "https://github.com/deepnoodle-ai/mobius-cloud/pull/123", * "severity": "medium", * "summary": "Add a regression test for the error path." * }, * "version": 1, * "created_at": "2026-06-15T14:30:00Z", * "updated_at": "2026-06-15T14:30:00Z" * } */ "application/json": components["schemas"]["TableRow"]; }; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; deleteTableRow: { parameters: { query?: never; header?: never; path: { /** @description Table ID. */ table_id: components["parameters"]["TableIDParam"]; /** @description Table row ID. */ row_id: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description No Content */ 204: { headers: { [name: string]: unknown; }; content?: never; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 429: components["responses"]["TooManyRequests"]; }; }; updateTableRow: { parameters: { query?: never; header?: never; path: { /** @description Table ID. */ table_id: components["parameters"]["TableIDParam"]; /** @description Table row ID. */ row_id: string; }; cookie?: never; }; requestBody: { content: { /** * @example { * "data": { * "severity": "high" * }, * "version": 1 * } */ "application/json": components["schemas"]["UpdateRowRequest"]; }; }; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { /** * @example { * "id": "row_5p9x2q7m4n8v3r6t", * "table_id": "table_2x7q5m9v3p8r4n6t", * "data": { * "pull_request_url": "https://github.com/deepnoodle-ai/mobius-cloud/pull/123", * "severity": "high", * "summary": "Add a regression test for the error path." * }, * "version": 2, * "created_at": "2026-06-15T14:30:00Z", * "updated_at": "2026-06-15T14:36:00Z" * } */ "application/json": components["schemas"]["TableRow"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 409: components["responses"]["Conflict"]; 429: components["responses"]["TooManyRequests"]; }; }; listArtifacts: { parameters: { query?: { /** @description Return the explicitly selected current version when accessible, otherwise the latest available and accessible version per root. Excludes trashed files. Apply before name/MIME filters and pagination. This is the default, and what the Library shows. Only an explicit `true` adds the lineage fields (`root_id`, `previous_id`, `version`) to each item. `false` returns every available version of every file, including superseded versions and files in the trash. */ latest_only?: boolean; /** @description Mime prefix filter (e.g. `image/`) */ mime?: string; /** @description Case-insensitive substring match on the artifact name. Filenames are how people and agents refer to a file, so this is the search key for "find the file called ...". */ q?: string; /** @description Folder to list, as a relative path with no leading or trailing slash. A file's folder is the directory part of its `name`, so `reports/2026` returns `reports/2026/weekly.md`. Omit it or send an empty value for the root. */ folder?: string; /** @description Include files in subfolders of `folder`. With `false`, only files whose folder is exactly `folder` are returned; at the root that means files whose name carries no folder at all. */ recursive?: boolean; /** @description Only files this assistant made, in any folder. An assistant picks a folder for each file, so its files are not in one place. */ agent_id?: string; /** @description Narrows the listing to one section of the Library. `company` is the company's files, which everyone in the organization can read. `personal` is the caller's own files, which only the caller can read. Omit it to list every section the caller can read. */ place?: components["parameters"]["LibraryPlaceParam"]; /** @description Cursor for pagination (opaque string from previous response) */ cursor?: components["parameters"]["CursorParam"]; /** @description Maximum number of items to return */ limit?: components["parameters"]["LimitParam"]; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ArtifactListResponse"]; }; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; }; }; createArtifact: { parameters: { query?: never; header?: { /** @description Active job lease token for worker-produced artifacts. */ "X-Mobius-Lease-Token"?: string; /** @description Optional durable retry key, unique within the authenticated principal's org scope. */ "Idempotency-Key"?: string; }; path?: never; cookie?: never; }; requestBody: { content: { "multipart/form-data": components["schemas"]["CreateArtifactRequest"]; }; }; responses: { /** @description Existing artifact returned for an idempotent retry */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["Artifact"]; }; }; /** @description Artifact uploaded */ 201: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["Artifact"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 409: components["responses"]["Conflict"]; /** @description Payload too large */ 413: { headers: { [name: string]: unknown; }; content: { /** * @example { * "error": { * "code": "payload_too_large", * "message": "artifact upload exceeds the maximum allowed size" * } * } */ "application/json": components["schemas"]["ErrorResponse"]; }; }; }; }; getArtifact: { parameters: { query?: never; header?: never; path: { /** @description ID of the artifact */ artifact_id: components["parameters"]["ArtifactIdParam"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["Artifact"]; }; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; deleteArtifact: { parameters: { query?: never; header?: never; path: { /** @description ID of the artifact */ artifact_id: components["parameters"]["ArtifactIdParam"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description Deleted */ 204: { headers: { [name: string]: unknown; }; content?: never; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 409: components["responses"]["Conflict"]; 429: components["responses"]["TooManyRequests"]; }; }; updateArtifact: { parameters: { query?: never; header?: never; path: { /** @description ID of the artifact */ artifact_id: components["parameters"]["ArtifactIdParam"]; }; cookie?: never; }; requestBody: { content: { "application/json": components["schemas"]["UpdateArtifactRequest"]; }; }; responses: { /** @description Updated artifact */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["Artifact"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 409: components["responses"]["Conflict"]; }; }; getArtifactContent: { parameters: { query?: never; header?: never; path: { /** @description ID of the artifact */ artifact_id: components["parameters"]["ArtifactIdParam"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description Streamed artifact bytes */ 200: { headers: { [name: string]: unknown; }; content: { "application/octet-stream": string; }; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 409: components["responses"]["Conflict"]; }; }; createArtifactSignedUrl: { parameters: { query?: { /** @description Requested signed URL TTL. The server caps this at the maximum supported artifact download TTL. */ ttl_seconds?: number; /** @description How a browser should treat the bytes. `inline` lets the browser render them. `attachment` makes the browser save them under the artifact's file name. */ disposition?: "inline" | "attachment"; }; header?: never; path: { /** @description ID of the artifact */ artifact_id: components["parameters"]["ArtifactIdParam"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description Signed URL created */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ArtifactSignedUrl"]; }; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; 409: components["responses"]["Conflict"]; 429: components["responses"]["TooManyRequests"]; }; }; getArtifactStorageQuota: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ArtifactQuotaUsage"]; }; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; }; }; listArtifactVersions: { parameters: { query?: never; header?: never; path: { /** @description ID of the artifact */ artifact_id: components["parameters"]["ArtifactIdParam"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description Artifact lineage */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ArtifactVersionList"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; }; }; listArtifactFolders: { parameters: { query?: { /** @description Folder whose children are listed. Omit for the root. */ parent?: string; /** @description Narrows the listing to one section of the Library. `company` is the company's files, which everyone in the organization can read. `personal` is the caller's own files, which only the caller can read. Omit it to list every section the caller can read. */ place?: components["parameters"]["LibraryPlaceParam"]; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description OK */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ArtifactFolderListResponse"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; }; }; createArtifactFolder: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody: { content: { "application/json": components["schemas"]["CreateArtifactFolderRequest"]; }; }; responses: { /** @description The folder was already declared */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ArtifactFolder"]; }; }; /** @description Folder created */ 201: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ArtifactFolder"]; }; }; 400: components["responses"]["BadRequest"]; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; }; }; deleteArtifactFolder: { parameters: { query?: never; header?: never; path: { /** @description ID of the declared folder */ folder_id: components["parameters"]["ArtifactFolderIdParam"]; }; cookie?: never; }; requestBody?: never; responses: { /** @description Deleted */ 204: { headers: { [name: string]: unknown; }; content?: never; }; 401: components["responses"]["Unauthorized"]; 403: components["responses"]["Forbidden"]; 404: components["responses"]["NotFound"]; /** @description The folder still contains files or subfolders */ 409: { headers: { [name: string]: unknown; }; content: { /** * @example { * "error": { * "code": "folder_not_empty", * "message": "folder \"reports\" still contains 3 files; move or delete them first", * "details": { * "file_count": 3 * } * } * } */ "application/json": components["schemas"]["ErrorResponse"]; }; }; }; }; } //# sourceMappingURL=schema.d.ts.map