{"openapi":"3.1.0","info":{"title":"Worcflow API","version":"0.1.0"},"paths":{"/v1/auth/email/bootstrap":{"get":{"tags":["email-auth"],"summary":"Bootstrap","operationId":"bootstrap_v1_auth_email_bootstrap_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/auth/email/request-link":{"post":{"tags":["email-auth"],"summary":"Request Link","operationId":"request_link_v1_auth_email_request_link_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Start"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/email/verify-code":{"post":{"tags":["email-auth"],"summary":"Verify Code","operationId":"verify_code_v1_auth_email_verify_code_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Code"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/email/verify-link":{"post":{"tags":["email-auth"],"summary":"Verify Link","operationId":"verify_link_v1_auth_email_verify_link_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Link"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/email/cancel":{"post":{"tags":["email-auth"],"summary":"Cancel","operationId":"cancel_v1_auth_email_cancel_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Cancel"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/health":{"get":{"summary":"Health","operationId":"health_api_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/workspaces":{"get":{"tags":["workspaces"],"summary":"List All","operationId":"list_all_v1_workspaces_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["workspaces"],"summary":"Create","operationId":"create_v1_workspaces_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWorkspaceRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}":{"get":{"tags":["workspaces"],"summary":"Get","operationId":"get_v1_workspaces__workspace_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["workspaces"],"summary":"Update","operationId":"update_v1_workspaces__workspace_id__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/channels":{"post":{"tags":["workspaces"],"summary":"Connect Channel","operationId":"connect_channel_v1_workspaces__workspace_id__channels_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["workspaces"],"summary":"List Channels","operationId":"list_channels_v1_workspaces__workspace_id__channels_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/channels/{channel_id}":{"delete":{"tags":["workspaces"],"summary":"Disconnect Channel","operationId":"disconnect_channel_v1_workspaces__workspace_id__channels__channel_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Channel Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/messages/ingest":{"post":{"tags":["ingest"],"summary":"Ingest","operationId":"ingest_v1_messages_ingest_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/messages/ingest/email":{"post":{"tags":["ingest"],"summary":"Ingest By Address","operationId":"ingest_by_address_v1_messages_ingest_email_post","parameters":[{"name":"address","in":"query","required":true,"schema":{"type":"string","title":"Address"}},{"name":"format","in":"query","required":false,"schema":{"type":"string","default":"rfc822","title":"Format"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/whatsapp/reconcile":{"post":{"tags":["whatsapp-webhook"],"summary":"Reconcile Sessions","description":"Gateway boot reconciliation — the authoritative owner of a WhatsApp\nsession is the backend, not the gateway's local creds.\n\nThe Baileys gateway restores every session it has persisted creds for; if a\nconnection was deleted or revoked (last-writer-wins number transfer) while\nthe gateway was unreachable, its creds survive and the session would\nresurrect on restart — a phantom tap on a workspace that no longer owns it.\nOn boot the gateway calls this with its persisted session ids; we return the\nsubset that still have a live Baileys connection, and it clears the rest.","operationId":"reconcile_sessions_api_webhooks_whatsapp_reconcile_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/webhooks/whatsapp/{session_id}/sync-state":{"post":{"tags":["whatsapp-webhook"],"summary":"Whatsapp Sync State","description":"Gap check for the gateway's history sync — the reconcile counterpart to\nthe live webhook below.\n\nThe gateway sends, per chat, the ids of the history messages it is holding;\nwe answer with exactly the ids we have NOT ingested, and only those get\nforwarded (so no media is downloaded or re-uploaded for messages we hold).\n\nPresence, not recency: an earlier version compared newest timestamps, which\ndetects a chat lagging at the tail but goes permanently blind to a hole in\nthe middle — the moment any newer message lands, the newest timestamps\nagree and the hole reads as \"current\". A customer's dropped message became\nexactly such a hole and was unrecoverable. Ids don't have that failure.\n\nChats this workspace doesn't monitor are omitted entirely. Same authority\nargument as /reconcile above: what has been ingested is the backend's\nfact, not something the gateway can infer from what it believes it sent.\n\nBack-compat: an entry carrying `latestTs` instead of `messages` (a gateway\nstill on the old build during the deploy skew window) gets the old\nnewest-timestamp answer in `behind`; new entries are answered in `missing`.","operationId":"whatsapp_sync_state_api_webhooks_whatsapp__session_id__sync_state_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/whatsapp/{session_id}/history":{"post":{"tags":["whatsapp-webhook"],"summary":"Whatsapp History Intake","description":"History-lane intake (§7.3) — the pairing blob and the live traffic of\nunmonitored chats, stored so a chat monitored *later* has history behind it.\n\nA history row is inert: it opens no query, creates no enrichment job, records\nno reception, is never receipted, and is readable by no viewer until its chat\nis granted. The whole slice lands in one idempotent transaction; the live\nheartbeat (``message.normalized``) is deliberately NOT emitted, because a\npairing burst would mask a dead live session.","operationId":"whatsapp_history_intake_api_webhooks_whatsapp__session_id__history_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/whatsapp/{session_id}":{"post":{"tags":["whatsapp-webhook"],"summary":"Whatsapp Webhook","description":"Per-number inbound webhook for the Baileys gateway.","operationId":"whatsapp_webhook_api_webhooks_whatsapp__session_id__post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/mailboxes/{mailbox_id}/sync-status":{"get":{"tags":["sync"],"summary":"Get Mailbox Sync Status","operationId":"get_mailbox_sync_status_v1_mailboxes__mailbox_id__sync_status_get","parameters":[{"name":"mailbox_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Mailbox Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MailboxSyncStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/mailboxes/{mailbox_id}/resync":{"post":{"tags":["sync"],"summary":"Resync Mailbox Endpoint","operationId":"resync_mailbox_endpoint_v1_mailboxes__mailbox_id__resync_post","parameters":[{"name":"mailbox_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Mailbox Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sync-status":{"get":{"tags":["sync"],"summary":"Get Workspace Sync Status","operationId":"get_workspace_sync_status_v1_workspaces__workspace_id__sync_status_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceSyncStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/resync":{"post":{"tags":["sync"],"summary":"Resync Workspace Endpoint","operationId":"resync_workspace_endpoint_v1_workspaces__workspace_id__resync_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/nuke-sync":{"post":{"tags":["sync"],"summary":"Nuke Sync","operationId":"nuke_sync_v1_workspaces__workspace_id__nuke_sync_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/gmail":{"post":{"tags":["sync"],"summary":"Gmail Push","description":"Accept a Gmail Pub/Sub push: record a durable wake, sync off the request.\n\n200 means the wake is committed, or that the push was deliberately rejected\n(malformed, or a mailbox we don't know). A wake that fails to commit is a 503, so\nPub/Sub redelivers it. The sync itself runs in the background\n(``app.sync.gmail_push``) and never holds this request's connection across Gmail.","operationId":"gmail_push_api_webhooks_gmail_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/workspaces/{workspace_id}/sources/gmail/service-account":{"post":{"tags":["workspace-sources"],"summary":"Connect Service Account","operationId":"connect_service_account_v1_workspaces__workspace_id__sources_gmail_service_account_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GmailConnectRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/gmail/status":{"get":{"tags":["workspace-sources"],"summary":"Get Status","description":"Single best onboarding — primarily for one-card UIs. Use\n``GET /onboardings`` to enumerate every onboarding in the workspace.","operationId":"get_status_v1_workspaces__workspace_id__sources_gmail_status_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/gmail/onboardings":{"get":{"tags":["workspace-sources"],"summary":"List Onboardings","description":"All Gmail onboardings for the workspace (SA + OAuth), sorted with\nACTIVE first then by recency.","operationId":"list_onboardings_v1_workspaces__workspace_id__sources_gmail_onboardings_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OnboardingStatus"},"title":"Response List Onboardings V1 Workspaces  Workspace Id  Sources Gmail Onboardings Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/gmail/mailboxes":{"get":{"tags":["workspace-sources"],"summary":"Get Mailboxes","operationId":"get_mailboxes_v1_workspaces__workspace_id__sources_gmail_mailboxes_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"onboardingId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Onboardingid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["workspace-sources"],"summary":"Select Mailboxes","operationId":"select_mailboxes_v1_workspaces__workspace_id__sources_gmail_mailboxes_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GmailMailboxSelectRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/gmail/backfill":{"get":{"tags":["workspace-sources"],"summary":"Backfill Progress","operationId":"backfill_progress_v1_workspaces__workspace_id__sources_gmail_backfill_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/gmail/mailboxes/{mailbox_id}/catch-up/resume":{"post":{"tags":["workspace-sources"],"summary":"Resume Catch Up","description":"Continue a stopped Gmail catch-up from its saved page (LAS-147).\n\nThe card's way back after a catch-up stopped, without a Google sign-in\n(which, for a customer's shared mailbox, means 2FA on someone else's\nphone). A dead grant can only be fixed by signing in, so that is a 409 the\ncard answers with its reconnect button. The lease is claimed here, as the\nresync does, so a double click or a client retry starts one run.","operationId":"resume_catch_up_v1_workspaces__workspace_id__sources_gmail_mailboxes__mailbox_id__catch_up_resume_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"mailbox_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Mailbox Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/gmail/retry/{onboarding_id}":{"post":{"tags":["workspace-sources"],"summary":"Retry Onboarding","operationId":"retry_onboarding_v1_workspaces__workspace_id__sources_gmail_retry__onboarding_id__post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"onboarding_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Onboarding Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/gmail/oauth/start":{"post":{"tags":["workspace-sources"],"summary":"Start Oauth","description":"Begin a per-account OAuth flow. Returns the URL to redirect to.\n\n`returnTo` is the path the caller wants the browser back on afterwards. It\nis optional and validated; without it the flow lands on the configured\nsettings page, which is wrong for anyone who did not start there.","operationId":"start_oauth_v1_workspaces__workspace_id__sources_gmail_oauth_start_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"type":"object","additionalProperties":true},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/gmail/{onboarding_id}":{"delete":{"tags":["workspace-sources"],"summary":"Disconnect Onboarding","description":"Tear down an onboarding (`onboarding.disconnect.disconnect_onboarding`, also a desk mailbox's own teardown).\nA connected company mailbox only by a workspace admin; one at a person's own desk by them or an admin; a sign-in\nthat never connected by any member.","operationId":"disconnect_onboarding_v1_workspaces__workspace_id__sources_gmail__onboarding_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"onboarding_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Onboarding Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/onboarding/google/oauth/callback":{"get":{"tags":["workspace-sources"],"summary":"Google Oauth Callback","operationId":"google_oauth_callback_v1_onboarding_google_oauth_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tools/oauth/callback":{"get":{"tags":["tools"],"summary":"Tools Oauth Callback","operationId":"tools_oauth_callback_v1_tools_oauth_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},{"name":"error_description","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Description"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/whatsapp":{"post":{"tags":["workspace-sources"],"summary":"Connect Whatsapp","operationId":"connect_whatsapp_v1_workspaces__workspace_id__sources_whatsapp_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"deskId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Deskid"}},{"name":"employeeOnly","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Employeeonly"}},{"name":"lineType","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linetype"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"type":"object","additionalProperties":true},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["workspace-sources"],"summary":"Disconnect Whatsapp","operationId":"disconnect_whatsapp_v1_workspaces__workspace_id__sources_whatsapp_delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"connectionId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Connectionid"}},{"name":"deskId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Deskid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/whatsapp/resync":{"post":{"tags":["workspace-sources"],"summary":"Whatsapp Resync","description":"Re-request anything WhatsApp delivered but we never stored.\n\nThe live stream can lose a message silently — one WhatsApp could not\ndecrypt on first delivery, or an event that never arrived — and the hole is\ninvisible from the inside. This is how an operator closes it without\nwaiting for a reconnect; the same routine also runs daily.\n\n`chatId` scopes it to one conversation — which is how an operator actually\nnotices, staring at the chat that is missing something.\n\nReturns what was requested. Recovered messages arrive asynchronously\nthrough the inbound webhook and appear in the conversation as normal.","operationId":"whatsapp_resync_v1_workspaces__workspace_id__sources_whatsapp_resync_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"chatId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chatid"}},{"name":"connectionId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Connectionid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/whatsapp/status":{"get":{"tags":["workspace-sources"],"summary":"Whatsapp Status","description":"Live gateway check by default (the Connect/QR flow, the card).\n``cached=true`` is the shell's periodic poll: the stored status, with a\nlive check only when this instance has not made one in a minute.","operationId":"whatsapp_status_v1_workspaces__workspace_id__sources_whatsapp_status_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"connectionId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Connectionid"}},{"name":"deskId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Deskid"}},{"name":"cached","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Cached"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/whatsapp/groups":{"get":{"tags":["workspace-sources"],"summary":"Whatsapp Groups","description":"The chats to offer on a number, read live. ``watched=true`` is only the\nwatched ones, on every number the caller may see, from our own records:\nno gateway read, so a picker or a count across several numbers is one\nrequest (named by their stored label).","operationId":"whatsapp_groups_v1_workspaces__workspace_id__sources_whatsapp_groups_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"connectionId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Connectionid"}},{"name":"deskId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Deskid"}},{"name":"watched","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Watched"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["workspace-sources"],"summary":"Set Whatsapp Groups","operationId":"set_whatsapp_groups_v1_workspaces__workspace_id__sources_whatsapp_groups_put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"connectionId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Connectionid"}},{"name":"deskId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Deskid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/whatsapp/chats-read":{"get":{"tags":["workspace-sources"],"summary":"Whatsapp Chats Read","description":"The chats being read on a number, each with the apps that use it. Our own rows only.","operationId":"whatsapp_chats_read_v1_workspaces__workspace_id__sources_whatsapp_chats_read_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"connectionId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Connectionid"}},{"name":"deskId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Deskid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["workspace-sources"],"summary":"Whatsapp Read Chats","description":"Start reading some chats on a number. Only adds; Undo of a stop is this too.","operationId":"whatsapp_read_chats_v1_workspaces__workspace_id__sources_whatsapp_chats_read_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"connectionId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Connectionid"}},{"name":"deskId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Deskid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadChatsBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/whatsapp/chats-read/stop":{"post":{"tags":["workspace-sources"],"summary":"Whatsapp Stop Reading Chat","description":"Stop reading one chat on a number: switched off, never deleted.","operationId":"whatsapp_stop_reading_chat_v1_workspaces__workspace_id__sources_whatsapp_chats_read_stop_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"connectionId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Connectionid"}},{"name":"deskId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Deskid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StopChatBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/whatsapp/qr":{"get":{"tags":["workspace-sources"],"summary":"Whatsapp Qr","operationId":"whatsapp_qr_v1_workspaces__workspace_id__sources_whatsapp_qr_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"connectionId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Connectionid"}},{"name":"deskId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Deskid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/whatsapp/pairing-code":{"get":{"tags":["workspace-sources"],"summary":"Whatsapp Pairing Code","operationId":"whatsapp_pairing_code_v1_workspaces__workspace_id__sources_whatsapp_pairing_code_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"phoneNumber","in":"query","required":true,"schema":{"type":"string","title":"Phonenumber"}},{"name":"connectionId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Connectionid"}},{"name":"deskId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Deskid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/whatsapp/passkey":{"get":{"tags":["workspace-sources"],"summary":"Whatsapp Passkey","description":"Whether WhatsApp is asking for the owner's passkey to finish linking,\nand the WebAuthn request to sign when it is.","operationId":"whatsapp_passkey_v1_workspaces__workspace_id__sources_whatsapp_passkey_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"connectionId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Connectionid"}},{"name":"deskId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Deskid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["workspace-sources"],"summary":"Whatsapp Passkey Submit","description":"Relay the passkey signature (from the worcflow browser extension) to\nWhatsApp. 409 when nothing is waiting for it: already answered, expired or\nmalformed. The screen then re-reads GET for what to show next.","operationId":"whatsapp_passkey_submit_v1_workspaces__workspace_id__sources_whatsapp_passkey_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"connectionId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Connectionid"}},{"name":"deskId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Deskid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppPasskeySubmit"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/whatsapp/restart":{"post":{"tags":["workspace-sources"],"summary":"Whatsapp Restart Link","description":"Start this number's link over on its own row after WhatsApp's passkey\nstep failed or expired, so a fresh QR appears.","operationId":"whatsapp_restart_link_v1_workspaces__workspace_id__sources_whatsapp_restart_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"connectionId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Connectionid"}},{"name":"deskId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Deskid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/whatsapp/mode":{"patch":{"tags":["workspace-sources"],"summary":"Set Whatsapp Mode","description":"Set send mode (``read_only`` | ``read_write``) on a desk's own WhatsApp\nnumber (its holder) or a workspace/employee line (workspace admin).","operationId":"set_whatsapp_mode_v1_workspaces__workspace_id__sources_whatsapp_mode_patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"connectionId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Connectionid"}},{"name":"deskId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Deskid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/whatsapp/monitoring":{"patch":{"tags":["workspace-sources"],"summary":"Set Whatsapp Monitoring","description":"Set monitoring posture (``lineType``, ``autoMonitorGroups``) on a desk\nWhatsApp number or workspace number.","operationId":"set_whatsapp_monitoring_v1_workspaces__workspace_id__sources_whatsapp_monitoring_patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"connectionId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Connectionid"}},{"name":"deskId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Deskid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/fireflies":{"post":{"tags":["workspace-sources"],"summary":"Connect Fireflies","operationId":"connect_fireflies_v1_workspaces__workspace_id__sources_fireflies_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FirefliesConnectRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["workspace-sources"],"summary":"Disconnect Fireflies","operationId":"disconnect_fireflies_v1_workspaces__workspace_id__sources_fireflies_delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/fireflies/resync":{"post":{"tags":["workspace-sources"],"summary":"Resync Fireflies","operationId":"resync_fireflies_v1_workspaces__workspace_id__sources_fireflies_resync_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/app__schemas__admin__FirefliesResyncRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/google-drive/oauth/start":{"post":{"tags":["workspace-sources"],"summary":"Start Google Oauth","operationId":"start_google_oauth_v1_workspaces__workspace_id__sources_google_drive_oauth_start_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"type":"object","additionalProperties":true},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/google-drive/status":{"get":{"tags":["workspace-sources"],"summary":"Google Status","operationId":"google_status_v1_workspaces__workspace_id__sources_google_drive_status_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/google-drive/onboardings":{"get":{"tags":["workspace-sources"],"summary":"List Google Onboardings","description":"All of this product's onboardings for the workspace (one per linked\naccount), sorted ACTIVE first then by recency.","operationId":"list_google_onboardings_v1_workspaces__workspace_id__sources_google_drive_onboardings_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/google-drive/{onboarding_id}":{"delete":{"tags":["workspace-sources"],"summary":"Disconnect Google","operationId":"disconnect_google_v1_workspaces__workspace_id__sources_google_drive__onboarding_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"onboarding_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Onboarding Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/google-calendar/oauth/start":{"post":{"tags":["workspace-sources"],"summary":"Start Google Oauth","operationId":"start_google_oauth_v1_workspaces__workspace_id__sources_google_calendar_oauth_start_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"type":"object","additionalProperties":true},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/google-calendar/status":{"get":{"tags":["workspace-sources"],"summary":"Google Status","operationId":"google_status_v1_workspaces__workspace_id__sources_google_calendar_status_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/google-calendar/onboardings":{"get":{"tags":["workspace-sources"],"summary":"List Google Onboardings","description":"All of this product's onboardings for the workspace (one per linked\naccount), sorted ACTIVE first then by recency.","operationId":"list_google_onboardings_v1_workspaces__workspace_id__sources_google_calendar_onboardings_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/google-calendar/{onboarding_id}":{"delete":{"tags":["workspace-sources"],"summary":"Disconnect Google","operationId":"disconnect_google_v1_workspaces__workspace_id__sources_google_calendar__onboarding_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"onboarding_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Onboarding Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/google-meet/oauth/start":{"post":{"tags":["workspace-sources"],"summary":"Start Google Oauth","operationId":"start_google_oauth_v1_workspaces__workspace_id__sources_google_meet_oauth_start_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"type":"object","additionalProperties":true},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/google-meet/status":{"get":{"tags":["workspace-sources"],"summary":"Google Status","operationId":"google_status_v1_workspaces__workspace_id__sources_google_meet_status_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/google-meet/onboardings":{"get":{"tags":["workspace-sources"],"summary":"List Google Onboardings","description":"All of this product's onboardings for the workspace (one per linked\naccount), sorted ACTIVE first then by recency.","operationId":"list_google_onboardings_v1_workspaces__workspace_id__sources_google_meet_onboardings_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/google-meet/{onboarding_id}":{"delete":{"tags":["workspace-sources"],"summary":"Disconnect Google","operationId":"disconnect_google_v1_workspaces__workspace_id__sources_google_meet__onboarding_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"onboarding_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Onboarding Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/google-meet/sync":{"get":{"tags":["workspace-sources"],"summary":"Google Meet Sync","description":"Per connected account: meetings brought in, waiting, without a\ntranscript or cut short, analysis that gave up, the last check and the\nlast good one.","operationId":"google_meet_sync_v1_workspaces__workspace_id__sources_google_meet_sync_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/google-meet/retry-failed":{"post":{"tags":["workspace-sources"],"summary":"Google Meet Retry Failed","description":"Put the Google Meet meetings whose analysis gave up back on the queue.","operationId":"google_meet_retry_failed_v1_workspaces__workspace_id__sources_google_meet_retry_failed_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/zoom/oauth/start":{"post":{"tags":["workspace-sources"],"summary":"Start Zoom Oauth","operationId":"start_zoom_oauth_v1_workspaces__workspace_id__sources_zoom_oauth_start_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/app__connectors__zoom__routes__StartOAuthBody"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/zoom/onboardings":{"get":{"tags":["workspace-sources"],"summary":"List Zoom Grants","operationId":"list_zoom_grants_v1_workspaces__workspace_id__sources_zoom_onboardings_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/zoom/{grant_id}":{"delete":{"tags":["workspace-sources"],"summary":"Disconnect Zoom","operationId":"disconnect_zoom_v1_workspaces__workspace_id__sources_zoom__grant_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"grant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Grant Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/zoom/sync":{"get":{"tags":["workspace-sources"],"summary":"Zoom Sync","operationId":"zoom_sync_v1_workspaces__workspace_id__sources_zoom_sync_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/zoom/retry-failed":{"post":{"tags":["workspace-sources"],"summary":"Zoom Retry Failed","operationId":"zoom_retry_failed_v1_workspaces__workspace_id__sources_zoom_retry_failed_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/onboarding/zoom/oauth/callback":{"get":{"tags":["workspace-sources"],"summary":"Zoom Oauth Callback","operationId":"zoom_oauth_callback_v1_onboarding_zoom_oauth_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/onboarding/zoom/deauthorize":{"post":{"tags":["workspace-sources"],"summary":"Zoom Deauthorize","description":"Zoom tells us a person removed worcflow's app. Zoom has already revoked\nthe tokens, so nothing is revoked here; every sign-in of that Zoom user, in\nevery workspace, is disconnected. Zoom may send the same notice again: the\nsecond finds nothing and answers 200.","operationId":"zoom_deauthorize_v1_onboarding_zoom_deauthorize_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/workspaces/{workspace_id}/sources/zoho-{product}/oauth/start":{"post":{"tags":["workspace-sources"],"summary":"Start Zoho Oauth","operationId":"start_zoho_oauth_v1_workspaces__workspace_id__sources_zoho__product__oauth_start_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"product","in":"path","required":true,"schema":{"type":"string","title":"Product"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/app__connectors__zoho__routes__StartOAuthBody"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/zoho-{product}/onboardings":{"get":{"tags":["workspace-sources"],"summary":"List Zoho Grants","operationId":"list_zoho_grants_v1_workspaces__workspace_id__sources_zoho__product__onboardings_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"product","in":"path","required":true,"schema":{"type":"string","title":"Product"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/zoho-{product}/{grant_id}":{"delete":{"tags":["workspace-sources"],"summary":"Disconnect Zoho","operationId":"disconnect_zoho_v1_workspaces__workspace_id__sources_zoho__product___grant_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"product","in":"path","required":true,"schema":{"type":"string","title":"Product"}},{"name":"grant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Grant Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/zoho-{product}/{grant_id}/teams":{"get":{"tags":["workspace-sources"],"summary":"List Zoho Teams","operationId":"list_zoho_teams_v1_workspaces__workspace_id__sources_zoho__product___grant_id__teams_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"product","in":"path","required":true,"schema":{"type":"string","title":"Product"}},{"name":"grant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Grant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/zoho-{product}/{grant_id}/teams/{team_id}":{"post":{"tags":["workspace-sources"],"summary":"Connect Zoho Team","operationId":"connect_zoho_team_v1_workspaces__workspace_id__sources_zoho__product___grant_id__teams__team_id__post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"product","in":"path","required":true,"schema":{"type":"string","title":"Product"}},{"name":"grant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Grant Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"string","title":"Team Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/onboarding/zoho/oauth/callback":{"get":{"tags":["workspace-sources"],"summary":"Zoho Oauth Callback","operationId":"zoho_oauth_callback_v1_onboarding_zoho_oauth_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},{"name":"accounts-server","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accounts-Server"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/slack/oauth/start":{"post":{"tags":["workspace-sources"],"summary":"Start Slack Oauth","operationId":"start_slack_oauth_v1_workspaces__workspace_id__sources_slack_oauth_start_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/app__connectors__slack__routes__StartOAuthBody"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/slack/onboardings":{"get":{"tags":["workspace-sources"],"summary":"List Slack Installs","operationId":"list_slack_installs_v1_workspaces__workspace_id__sources_slack_onboardings_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/slack/{grant_id}":{"delete":{"tags":["workspace-sources"],"summary":"Disconnect Slack","operationId":"disconnect_slack_v1_workspaces__workspace_id__sources_slack__grant_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"grant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Grant Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/onboarding/slack/oauth/callback":{"get":{"tags":["workspace-sources"],"summary":"Slack Oauth Callback","operationId":"slack_oauth_callback_v1_onboarding_slack_oauth_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/upload_post":{"get":{"tags":["workspace-sources"],"summary":"Social Accounts","description":"The card: unavailable (no key here), not_connected, connected (with its accounts), unlinked (disconnected\nfrom Settings → Tools; accounts still listed), or disconnecting.","operationId":"social_accounts_v1_workspaces__workspace_id__sources_upload_post_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"include_pages","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Pages"}},{"name":"includePages","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Includepages"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["workspace-sources"],"summary":"Disconnect","description":"`disconnected` once the profile is gone at Upload-Post; `disconnecting` while that delete waits for another try.","operationId":"disconnect_v1_workspaces__workspace_id__sources_upload_post_delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/upload_post/connect/{network}/start":{"post":{"tags":["workspace-sources"],"summary":"Start Connect","description":"This workspace's profile (made if missing) and `network`'s own consent screen for it.","operationId":"start_connect_v1_workspaces__workspace_id__sources_upload_post_connect__network__start_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"network","in":"path","required":true,"schema":{"type":"string","title":"Network"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StartBody"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/upload_post/reconnect":{"post":{"tags":["workspace-sources"],"summary":"Reconnect","description":"After the kernel's Disconnect: the tool back, with the grants that Disconnect took away.","operationId":"reconnect_v1_workspaces__workspace_id__sources_upload_post_reconnect_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/upload_post/accounts/{network}":{"delete":{"tags":["workspace-sources"],"summary":"Disconnect Account","description":"One account off this workspace's profile; the other accounts and the profile stay.","operationId":"disconnect_account_v1_workspaces__workspace_id__sources_upload_post_accounts__network__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"network","in":"path","required":true,"schema":{"type":"string","title":"Network"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/onboarding/upload_post/return":{"get":{"tags":["workspace-sources"],"summary":"Connect Return","description":"Where Upload-Post's callback sends the browser after the network's screen. It changes nothing:\nthe accounts are read from the profile; this only says how the connect went.","operationId":"connect_return_v1_onboarding_upload_post_return_get","parameters":[{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"connect_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Connect Status"}},{"name":"platform","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Platform"}},{"name":"error_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/upload_post":{"post":{"summary":"Upload Post Webhook","operationId":"upload_post_webhook_api_webhooks_upload_post_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/workspaces/{workspace_id}/sources/outlook/oauth/start":{"post":{"tags":["workspace-sources"],"summary":"Start Outlook Oauth","operationId":"start_outlook_oauth_v1_workspaces__workspace_id__sources_outlook_oauth_start_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/app__connectors__microsoft__routes__StartOAuthBody"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/outlook/onboardings":{"get":{"tags":["workspace-sources"],"summary":"List Outlook Grants","operationId":"list_outlook_grants_v1_workspaces__workspace_id__sources_outlook_onboardings_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/outlook/{grant_id}":{"delete":{"tags":["workspace-sources"],"summary":"Disconnect Outlook","operationId":"disconnect_outlook_v1_workspaces__workspace_id__sources_outlook__grant_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"grant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Grant Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/teams/oauth/start":{"post":{"tags":["workspace-sources"],"summary":"Start Teams Oauth","operationId":"start_teams_oauth_v1_workspaces__workspace_id__sources_teams_oauth_start_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/app__connectors__microsoft__routes__StartOAuthBody"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/teams/onboardings":{"get":{"tags":["workspace-sources"],"summary":"List Teams Grants","operationId":"list_teams_grants_v1_workspaces__workspace_id__sources_teams_onboardings_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/teams/{grant_id}":{"delete":{"tags":["workspace-sources"],"summary":"Disconnect Teams","operationId":"disconnect_teams_v1_workspaces__workspace_id__sources_teams__grant_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"grant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Grant Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/teams/sync":{"get":{"tags":["workspace-sources"],"summary":"Teams Sync","operationId":"teams_sync_v1_workspaces__workspace_id__sources_teams_sync_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/teams/retry-failed":{"post":{"tags":["workspace-sources"],"summary":"Teams Retry Failed","operationId":"teams_retry_failed_v1_workspaces__workspace_id__sources_teams_retry_failed_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/outlook-calendar/oauth/start":{"post":{"tags":["workspace-sources"],"summary":"Start Calendar Oauth","operationId":"start_calendar_oauth_v1_workspaces__workspace_id__sources_outlook_calendar_oauth_start_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/app__connectors__microsoft__routes__StartOAuthBody"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/outlook-calendar/onboardings":{"get":{"tags":["workspace-sources"],"summary":"List Calendar Grants","operationId":"list_calendar_grants_v1_workspaces__workspace_id__sources_outlook_calendar_onboardings_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/outlook-calendar/{grant_id}":{"delete":{"tags":["workspace-sources"],"summary":"Disconnect Calendar","operationId":"disconnect_calendar_v1_workspaces__workspace_id__sources_outlook_calendar__grant_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"grant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Grant Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/onedrive/oauth/start":{"post":{"tags":["workspace-sources"],"summary":"Start Onedrive Oauth","operationId":"start_onedrive_oauth_v1_workspaces__workspace_id__sources_onedrive_oauth_start_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/app__connectors__microsoft__routes__StartOAuthBody"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/onedrive/onboardings":{"get":{"tags":["workspace-sources"],"summary":"List Onedrive Grants","operationId":"list_onedrive_grants_v1_workspaces__workspace_id__sources_onedrive_onboardings_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/onedrive/{grant_id}":{"delete":{"tags":["workspace-sources"],"summary":"Disconnect Onedrive","operationId":"disconnect_onedrive_v1_workspaces__workspace_id__sources_onedrive__grant_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"grant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Grant Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/onboarding/microsoft/oauth/callback":{"get":{"tags":["workspace-sources"],"summary":"Microsoft Oauth Callback","operationId":"microsoft_oauth_callback_v1_onboarding_microsoft_oauth_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},{"name":"error_description","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Description"}},{"name":"admin_consent","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Consent"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/teams/bot":{"post":{"summary":"Teams Bot Webhook","operationId":"teams_bot_webhook_api_webhooks_teams_bot_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/workspaces/{workspace_id}/sources/teams-bot/consent":{"post":{"summary":"Start Consent","description":"The Microsoft page where the company's Teams admin approves the Chief of Staff bot.","operationId":"start_consent_v1_workspaces__workspace_id__sources_teams_bot_consent_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentStart"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/teams-bot/link":{"post":{"summary":"Start Link","description":"The Microsoft sign-in that links the caller's own Teams account, so the bot knows them.","operationId":"start_link_v1_workspaces__workspace_id__sources_teams_bot_link_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentStart"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/teams-bot":{"get":{"summary":"List Installs","description":"The companies connected, the chats the bot is in, and whether the caller linked their own Teams account.","operationId":"list_installs_v1_workspaces__workspace_id__sources_teams_bot_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/teams-bot/package":{"get":{"summary":"App Package","description":"The Teams app file the company's Teams admin uploads (Teams admin center → Manage apps).","operationId":"app_package_v1_workspaces__workspace_id__sources_teams_bot_package_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sources/teams-bot/{install_id}":{"delete":{"summary":"Disconnect Install","operationId":"disconnect_install_v1_workspaces__workspace_id__sources_teams_bot__install_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"install_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Install Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/onboarding/microsoft/teams-bot/callback":{"get":{"summary":"Consent Callback","description":"Where Microsoft sends the admin back. Unauthenticated by necessity; the signed,\nexpiring state names the workspace and who started the connect, and the tenant\ncomes only from exchanging the one-time code with Microsoft.","operationId":"consent_callback_v1_onboarding_microsoft_teams_bot_callback_get","parameters":[{"name":"state","in":"query","required":false,"schema":{"type":"string","default":"","title":"State"}},{"name":"code","in":"query","required":false,"schema":{"type":"string","default":"","title":"Code"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},{"name":"error_description","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Description"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/health":{"get":{"tags":["workspace-sources"],"summary":"Workspace Health","operationId":"workspace_health_v1_workspaces__workspace_id__health_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceHealthResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/fireflies/sync-status":{"get":{"tags":["fireflies"],"summary":"Fireflies Sync Status","operationId":"fireflies_sync_status_v1_workspaces__workspace_id__fireflies_sync_status_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FirefliesSyncStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/fireflies/refresh":{"post":{"tags":["fireflies"],"summary":"Refresh Fireflies","operationId":"refresh_fireflies_v1_workspaces__workspace_id__fireflies_refresh_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FirefliesSyncStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/fireflies/resync":{"post":{"tags":["fireflies"],"summary":"Resync Fireflies","operationId":"resync_fireflies_v1_workspaces__workspace_id__fireflies_resync_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/app__schemas__sync__FirefliesResyncRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FirefliesSyncStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/fireflies":{"post":{"tags":["fireflies"],"summary":"Fireflies Webhook","operationId":"fireflies_webhook_api_webhooks_fireflies_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/webhooks/recall":{"post":{"summary":"Recall Webhook","operationId":"recall_webhook_api_webhooks_recall_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/webhooks/agentmail":{"post":{"summary":"Agentmail Webhook","operationId":"agentmail_webhook_api_webhooks_agentmail_post","responses":{"204":{"description":"Successful Response"}}}},"/v1/worcflows":{"post":{"tags":["worcflows"],"summary":"Create Worcflow","operationId":"create_worcflow_v1_worcflows_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWorcflowRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["worcflows"],"summary":"List Worcflows","operationId":"list_worcflows_v1_worcflows_get","parameters":[{"name":"workspaceId","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspaceid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/worcflows/{worcflow_id}":{"get":{"tags":["worcflows"],"summary":"Get Worcflow","operationId":"get_worcflow_v1_worcflows__worcflow_id__get","parameters":[{"name":"worcflow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Worcflow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["worcflows"],"summary":"Update Worcflow","operationId":"update_worcflow_v1_worcflows__worcflow_id__patch","parameters":[{"name":"worcflow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Worcflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWorcflowRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["worcflows"],"summary":"Archive Worcflow","operationId":"archive_worcflow_v1_worcflows__worcflow_id__delete","parameters":[{"name":"worcflow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Worcflow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/entities":{"post":{"tags":["entities"],"summary":"Create Entity","operationId":"create_entity_v1_workspaces__workspace_id__entities_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["entities"],"summary":"List Entities","operationId":"list_entities_v1_workspaces__workspace_id__entities_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"entityType","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entitytype"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/entities/{entity_id}":{"get":{"tags":["entities"],"summary":"Get Entity","operationId":"get_entity_v1_workspaces__workspace_id__entities__entity_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"entity_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Entity Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/entities/{entity_id}/identifiers":{"get":{"tags":["entities"],"summary":"List Identifiers","operationId":"list_identifiers_v1_workspaces__workspace_id__entities__entity_id__identifiers_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"entity_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Entity Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["entities"],"summary":"Add Identifier","operationId":"add_identifier_v1_workspaces__workspace_id__entities__entity_id__identifiers_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"entity_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Entity Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/relationships":{"post":{"tags":["entities"],"summary":"Create Relationship","operationId":"create_relationship_v1_workspaces__workspace_id__relationships_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["entities"],"summary":"List Relationships","operationId":"list_relationships_v1_workspaces__workspace_id__relationships_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"entityId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Entityid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/memberships":{"post":{"tags":["org"],"summary":"Create Membership","operationId":"create_membership_v1_workspaces__workspace_id__memberships_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["org"],"summary":"List Memberships","operationId":"list_memberships_v1_workspaces__workspace_id__memberships_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"entityId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Entityid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/memberships/{membership_id}":{"get":{"tags":["org"],"summary":"Get Membership","operationId":"get_membership_v1_workspaces__workspace_id__memberships__membership_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"membership_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Membership Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/memberships/{membership_id}/reports":{"get":{"tags":["org"],"summary":"List Reports","operationId":"list_reports_v1_workspaces__workspace_id__memberships__membership_id__reports_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"membership_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Membership Id"}},{"name":"asOf","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asof"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/me":{"get":{"tags":["auth"],"summary":"Get Me","description":"Return the currently authenticated user's profile.","operationId":"get_me_v1_auth_me_get","parameters":[{"name":"X-Auth-Anon-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Auth-Anon-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/demo-pack-validations":{"post":{"tags":["demo-workspaces"],"summary":"Validate","operationId":"validate_v1_admin_demo_pack_validations_post","responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/admin/demo-pack-mappings":{"post":{"tags":["demo-workspaces"],"summary":"Mapping Preview","operationId":"mapping_preview_v1_admin_demo_pack_mappings_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MappingBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/demo-workspaces":{"get":{"tags":["demo-workspaces"],"summary":"List Demos","operationId":"list_demos_v1_admin_demo_workspaces_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["demo-workspaces"],"summary":"Create","operationId":"create_v1_admin_demo_workspaces_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBody"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/demo-workspaces/{demo_id}":{"get":{"tags":["demo-workspaces"],"summary":"Detail","operationId":"detail_v1_admin_demo_workspaces__demo_id__get","parameters":[{"name":"demo_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Demo Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["demo-workspaces"],"summary":"Delete Demo","operationId":"delete_demo_v1_admin_demo_workspaces__demo_id__delete","parameters":[{"name":"demo_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Demo Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionBody"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/demo-workspaces/{demo_id}/original-pack":{"get":{"tags":["demo-workspaces"],"summary":"Export","operationId":"export_v1_admin_demo_workspaces__demo_id__original_pack_get","parameters":[{"name":"demo_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Demo Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/demo-workspaces/{demo_id}/reset":{"post":{"tags":["demo-workspaces"],"summary":"Reset","operationId":"reset_v1_admin_demo_workspaces__demo_id__reset_post","parameters":[{"name":"demo_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Demo Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionBody"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/demo-workspaces/{demo_id}/operations/{operation_id}/retry":{"post":{"tags":["demo-workspaces"],"summary":"Retry","operationId":"retry_v1_admin_demo_workspaces__demo_id__operations__operation_id__retry_post","parameters":[{"name":"demo_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Demo Id"}},{"name":"operation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Operation Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/demo-workspaces/{demo_id}/sessions":{"post":{"tags":["demo-workspaces"],"summary":"Mint","operationId":"mint_v1_admin_demo_workspaces__demo_id__sessions_post","parameters":[{"name":"demo_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Demo Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonaBody"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/demo-sessions/exchange":{"post":{"tags":["demo-workspaces"],"summary":"Exchange","operationId":"exchange_v1_demo_sessions_exchange_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExchangeBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/demo-sessions/current":{"delete":{"tags":["demo-workspaces"],"summary":"Revoke","operationId":"revoke_v1_demo_sessions_current_delete","responses":{"204":{"description":"Successful Response"}}}},"/v1/demo-sessions/history":{"get":{"tags":["demo-workspaces"],"summary":"History","operationId":"history_v1_demo_sessions_history_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/admin/workspaces":{"get":{"tags":["admin"],"summary":"List Workspaces","operationId":"list_workspaces_v1_admin_workspaces_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/AdminWorkspaceSummary"},"type":"array","title":"Response List Workspaces V1 Admin Workspaces Get"}}}}}},"post":{"tags":["admin"],"summary":"Create Workspace","operationId":"create_workspace_v1_admin_workspaces_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWorkspaceRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminWorkspaceSummary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/workspaces/{workspace_id}":{"get":{"tags":["admin"],"summary":"Get Workspace","operationId":"get_workspace_v1_admin_workspaces__workspace_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminWorkspaceSummary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin"],"summary":"Update Workspace","operationId":"update_workspace_v1_admin_workspaces__workspace_id__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWorkspaceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminWorkspaceSummary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/workspaces/{workspace_id}/users":{"post":{"tags":["admin"],"summary":"Add User","operationId":"add_user_v1_admin_workspaces__workspace_id__users_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddUserRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceUser"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["admin"],"summary":"List Users","operationId":"list_users_v1_admin_workspaces__workspace_id__users_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WorkspaceUser"},"title":"Response List Users V1 Admin Workspaces  Workspace Id  Users Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/workspaces/{workspace_id}/users/{user_id}":{"patch":{"tags":["admin"],"summary":"Update User Role","operationId":"update_user_role_v1_admin_workspaces__workspace_id__users__user_id__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateUserRoleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceUser"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin"],"summary":"Remove User","operationId":"remove_user_v1_admin_workspaces__workspace_id__users__user_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/workspaces/{workspace_id}/users/{user_id}/review-code":{"post":{"tags":["admin"],"summary":"Renew Review Code","description":"Extend a reviewer's seat by another 30 days, optionally with a new code.","operationId":"renew_review_code_v1_admin_workspaces__workspace_id__users__user_id__review_code_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenewReviewCodeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceUser"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/workspaces/{workspace_id}/sources/whatsapp":{"post":{"tags":["admin"],"summary":"Connect Whatsapp","operationId":"connect_whatsapp_v1_admin_workspaces__workspace_id__sources_whatsapp_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin"],"summary":"Disconnect Whatsapp","operationId":"disconnect_whatsapp_v1_admin_workspaces__workspace_id__sources_whatsapp_delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"connectionId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Connectionid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/workspaces/{workspace_id}/sources/whatsapp/status":{"get":{"tags":["admin"],"summary":"Whatsapp Status","operationId":"whatsapp_status_v1_admin_workspaces__workspace_id__sources_whatsapp_status_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"connectionId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Connectionid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/workspaces/{workspace_id}/sources/whatsapp/qr":{"get":{"tags":["admin"],"summary":"Whatsapp Qr","operationId":"whatsapp_qr_v1_admin_workspaces__workspace_id__sources_whatsapp_qr_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"connectionId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Connectionid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/workspaces/{workspace_id}/sources/whatsapp/pairing-code":{"get":{"tags":["admin"],"summary":"Whatsapp Pairing Code","operationId":"whatsapp_pairing_code_v1_admin_workspaces__workspace_id__sources_whatsapp_pairing_code_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"phoneNumber","in":"query","required":true,"schema":{"type":"string","title":"Phonenumber"}},{"name":"connectionId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Connectionid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/workspaces/{workspace_id}/sources/whatsapp/passkey":{"get":{"tags":["admin"],"summary":"Admin Whatsapp Passkey","description":"Whether WhatsApp is asking for the owner's passkey to finish linking,\nand the WebAuthn request to sign when it is.","operationId":"admin_whatsapp_passkey_v1_admin_workspaces__workspace_id__sources_whatsapp_passkey_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"connectionId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Connectionid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin"],"summary":"Admin Whatsapp Passkey Submit","description":"Relay the passkey signature (from the worcflow browser extension) to\nWhatsApp. 409 when nothing is waiting for it: already answered, expired or\nmalformed. The screen then re-reads GET for what to show next.","operationId":"admin_whatsapp_passkey_submit_v1_admin_workspaces__workspace_id__sources_whatsapp_passkey_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"connectionId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Connectionid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppPasskeySubmit"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/workspaces/{workspace_id}/sources/whatsapp/restart":{"post":{"tags":["admin"],"summary":"Admin Whatsapp Restart Link","description":"Start this number's link over on its own row after WhatsApp's passkey\nstep failed or expired, so a fresh QR appears.","operationId":"admin_whatsapp_restart_link_v1_admin_workspaces__workspace_id__sources_whatsapp_restart_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"connectionId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Connectionid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/workspaces/{workspace_id}/sources/whatsapp/mode":{"patch":{"tags":["admin"],"summary":"Set Whatsapp Mode","description":"Flip the connection between read_only (never sends) and read_write.\n\nread_only is the low-ban-risk default; read_write lets the workspace send\nunder the anti-ban guardrails. Sends stay blocked until an admin flips this.","operationId":"set_whatsapp_mode_v1_admin_workspaces__workspace_id__sources_whatsapp_mode_patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"connectionId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Connectionid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppModeUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/workspaces/{workspace_id}/sources/whatsapp/monitoring":{"patch":{"tags":["admin"],"summary":"Set Whatsapp Monitoring","description":"Set which unpicked chats start monitoring themselves.\n\n``lineType`` decides 1:1 chats (an office desk takes every DM, a personal\nphone only known external contacts); ``autoMonitorGroups`` opts every group\nin. Both optional — an omitted field is left as-is.","operationId":"set_whatsapp_monitoring_v1_admin_workspaces__workspace_id__sources_whatsapp_monitoring_patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"connectionId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Connectionid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppMonitoringUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/workspaces/{workspace_id}/sources/whatsapp/send-limits":{"patch":{"tags":["admin"],"summary":"Set Whatsapp Send Limits","description":"Set this number's send limits, replacing the automatic warm-up ladder;\n``limits`` null hands it back to the ladder. Bounded by the guard's hard\nceilings. Pacing and the unique-recipient guard are unchanged.","operationId":"set_whatsapp_send_limits_v1_admin_workspaces__workspace_id__sources_whatsapp_send_limits_patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"connectionId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Connectionid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppSendLimitsUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/workspaces/{workspace_id}/sources/whatsapp/groups":{"get":{"tags":["admin"],"summary":"Whatsapp Groups","description":"List monitorable chats (groups + recent 1:1 contacts), each flagged with\nwhether it's currently monitored.","operationId":"whatsapp_groups_v1_admin_workspaces__workspace_id__sources_whatsapp_groups_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"connectionId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Connectionid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["admin"],"summary":"Set Whatsapp Groups","description":"Set the monitored group set to exactly `body.groups` ([{id, name}]).","operationId":"set_whatsapp_groups_v1_admin_workspaces__workspace_id__sources_whatsapp_groups_put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"connectionId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Connectionid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/workspaces/{workspace_id}/sources/whatsapp/chats-read":{"get":{"tags":["admin"],"summary":"Whatsapp Chats Read","description":"The chats being read on a number, each with the apps that use it. Our own rows only.","operationId":"whatsapp_chats_read_v1_admin_workspaces__workspace_id__sources_whatsapp_chats_read_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"connectionId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Connectionid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin"],"summary":"Whatsapp Read Chats","description":"Start reading some chats on a number. Only adds.","operationId":"whatsapp_read_chats_v1_admin_workspaces__workspace_id__sources_whatsapp_chats_read_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"connectionId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Connectionid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadChatsBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/workspaces/{workspace_id}/sources/whatsapp/chats-read/stop":{"post":{"tags":["admin"],"summary":"Whatsapp Stop Reading Chat","description":"Stop reading one chat on a number: switched off, never deleted.","operationId":"whatsapp_stop_reading_chat_v1_admin_workspaces__workspace_id__sources_whatsapp_chats_read_stop_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"connectionId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Connectionid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StopChatBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/workspaces/{workspace_id}/whatsapp/number-limit":{"get":{"tags":["admin"],"summary":"Get Whatsapp Number Limit","description":"How many WhatsApp numbers this workspace may link, and how many it has.","operationId":"get_whatsapp_number_limit_v1_admin_workspaces__workspace_id__whatsapp_number_limit_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["admin"],"summary":"Set Whatsapp Number Limit","description":"Set how many WhatsApp numbers this workspace may link, clamped to\n1..10 (one gateway host and one IP carry every number). Lowering it below\nthe numbers already linked removes none; it only stops new ones.","operationId":"set_whatsapp_number_limit_v1_admin_workspaces__workspace_id__whatsapp_number_limit_put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppNumberLimitUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/workspaces/{workspace_id}/voice-notes":{"get":{"tags":["admin"],"summary":"Get Voice Notes","description":"Whether this workspace's voice notes are turned into text, and how much audio it has had read today.","operationId":"get_voice_notes_v1_admin_workspaces__workspace_id__voice_notes_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["admin"],"summary":"Set Voice Notes","description":"Turn reading voice notes on or off for this workspace. Takes effect on the next message the backend\nstores; the WhatsApp gateway follows within minutes. On starts model spend and sends audio to the speech\nvendor, so who did it is in the admin event log. Notes that arrived while it was off are not read later:\ntheir audio was never kept.","operationId":"set_voice_notes_v1_admin_workspaces__workspace_id__voice_notes_put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceNotesUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/workspaces/{workspace_id}/sources/fireflies":{"post":{"tags":["admin"],"summary":"Connect Fireflies","operationId":"connect_fireflies_v1_admin_workspaces__workspace_id__sources_fireflies_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FirefliesConnectRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin"],"summary":"Disconnect Fireflies","operationId":"disconnect_fireflies_v1_admin_workspaces__workspace_id__sources_fireflies_delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/workspaces/{workspace_id}/sources/fireflies/resync":{"post":{"tags":["admin"],"summary":"Resync Fireflies","operationId":"resync_fireflies_v1_admin_workspaces__workspace_id__sources_fireflies_resync_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/app__schemas__admin__FirefliesResyncRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/workspaces/{workspace_id}/sources/gmail/onboardings":{"get":{"tags":["admin"],"summary":"Gmail Onboardings","operationId":"gmail_onboardings_v1_admin_workspaces__workspace_id__sources_gmail_onboardings_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OnboardingStatus"},"title":"Response Gmail Onboardings V1 Admin Workspaces  Workspace Id  Sources Gmail Onboardings Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/workspaces/{workspace_id}/sources/gmail/backfill":{"get":{"tags":["admin"],"summary":"Gmail Backfill","operationId":"gmail_backfill_v1_admin_workspaces__workspace_id__sources_gmail_backfill_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/workspaces/{workspace_id}/sources/gmail/mailboxes/{mailbox_id}/catch-up/resume":{"post":{"tags":["admin"],"summary":"Resume Gmail Catch Up","operationId":"resume_gmail_catch_up_v1_admin_workspaces__workspace_id__sources_gmail_mailboxes__mailbox_id__catch_up_resume_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"mailbox_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Mailbox Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/workspaces/{workspace_id}/sources/gmail/mailboxes":{"get":{"tags":["admin"],"summary":"Gmail Mailboxes","operationId":"gmail_mailboxes_v1_admin_workspaces__workspace_id__sources_gmail_mailboxes_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"onboardingId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Onboardingid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin"],"summary":"Select Gmail Mailboxes","operationId":"select_gmail_mailboxes_v1_admin_workspaces__workspace_id__sources_gmail_mailboxes_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GmailMailboxSelectRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/workspaces/{workspace_id}/sources/gmail/service-account":{"post":{"tags":["admin"],"summary":"Connect Gmail Service Account","operationId":"connect_gmail_service_account_v1_admin_workspaces__workspace_id__sources_gmail_service_account_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GmailConnectRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/workspaces/{workspace_id}/sources/gmail/oauth/start":{"post":{"tags":["admin"],"summary":"Start Gmail Oauth","operationId":"start_gmail_oauth_v1_admin_workspaces__workspace_id__sources_gmail_oauth_start_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"type":"object","additionalProperties":true},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/workspaces/{workspace_id}/sources/gmail/{onboarding_id}":{"delete":{"tags":["admin"],"summary":"Disconnect Gmail","operationId":"disconnect_gmail_v1_admin_workspaces__workspace_id__sources_gmail__onboarding_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"onboarding_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Onboarding Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/workspaces/{workspace_id}/sources/google-drive/onboardings":{"get":{"tags":["admin"],"summary":"Google Drive Onboardings","operationId":"google_drive_onboardings_v1_admin_workspaces__workspace_id__sources_google_drive_onboardings_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/workspaces/{workspace_id}/sources/google-drive/oauth/start":{"post":{"tags":["admin"],"summary":"Start Google Drive Oauth","operationId":"start_google_drive_oauth_v1_admin_workspaces__workspace_id__sources_google_drive_oauth_start_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"type":"object","additionalProperties":true},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/workspaces/{workspace_id}/sources/google-drive/{onboarding_id}":{"delete":{"tags":["admin"],"summary":"Disconnect Google Drive","operationId":"disconnect_google_drive_v1_admin_workspaces__workspace_id__sources_google_drive__onboarding_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"onboarding_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Onboarding Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/workspaces/{workspace_id}/health":{"get":{"tags":["admin"],"summary":"Workspace Health","operationId":"workspace_health_v1_admin_workspaces__workspace_id__health_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceHealthResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/workspaces/{workspace_id}/agent-diagnostics/{diagnostics_id}":{"get":{"tags":["admin"],"summary":"Download Agent Diagnostics","description":"One paired agent's diagnostics bundle, as the zip it uploaded.\n\nPlatform-operator only, like the capability that asked for it. Every\ndownload is recorded on the row (who, when, how many) and logged, because\nthe logs inside can name the customer's companies and ledgers. An expired\nbundle is gone (404), whether or not the retention job has run yet.","operationId":"download_agent_diagnostics_v1_admin_workspaces__workspace_id__agent_diagnostics__diagnostics_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"diagnostics_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Diagnostics Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/model-routes":{"get":{"tags":["model-routes"],"summary":"List Routes","operationId":"list_routes_v1_admin_model_routes_get","parameters":[{"name":"workspaceId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workspaceid"}},{"name":"modelTier","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Modeltier"}},{"name":"includeInactive","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Includeinactive"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ModelRouteOut"},"title":"Response List Routes V1 Admin Model Routes Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["model-routes"],"summary":"Create Route","operationId":"create_route_v1_admin_model_routes_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelRouteCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelRouteOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/model-routes/{route_id}":{"patch":{"tags":["model-routes"],"summary":"Update Route","operationId":"update_route_v1_admin_model_routes__route_id__patch","parameters":[{"name":"route_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Route Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelRouteUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelRouteOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["model-routes"],"summary":"Delete Route","operationId":"delete_route_v1_admin_model_routes__route_id__delete","parameters":[{"name":"route_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Route Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/model-routes/catalog":{"get":{"tags":["model-routes"],"summary":"Get Model Catalog","description":"The provider's servable-model list, for the route editor's picker.\n\nAuthoring-time only — nothing on the inference path reads this. Cached\none hour; a failed refresh serves the previous snapshot as ``stale``.\nPrices are converted to USD per million tokens (the unit humans compare\nin); providers without a catalog return ``catalogSupported=false`` and\nthe editor keeps its free-text input.","operationId":"get_model_catalog_v1_admin_model_routes_catalog_get","parameters":[{"name":"provider","in":"query","required":true,"schema":{"type":"string","title":"Provider"}},{"name":"refresh","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Refresh"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/model-routes/consumers":{"get":{"tags":["model-routes"],"summary":"List Tier Consumers","description":"Which app decisions run on each tier — the blast radius of a route edit.\n\nA pure manifest read (no DB): every ``autonomy`` entry that names a\n``model_tier`` is an app decision the gateway will resolve through this\ntable. Decisions with no tier make no model call and are omitted.","operationId":"list_tier_consumers_v1_admin_model_routes_consumers_get","parameters":[{"name":"modelTier","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Modeltier"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TierConsumerOut"},"title":"Response List Tier Consumers V1 Admin Model Routes Consumers Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/model-routes/reasoning":{"get":{"tags":["model-routes"],"summary":"List Tier Reasoning","description":"Every tier's reasoning mode — the operator's override or the code\ndefault. Read from the table rather than this instance's snapshot, so the\npage shows what was saved even on an instance that has not polled yet.","operationId":"list_tier_reasoning_v1_admin_model_routes_reasoning_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/TierReasoningOut"},"type":"array","title":"Response List Tier Reasoning V1 Admin Model Routes Reasoning Get"}}}}}}},"/v1/admin/model-routes/reasoning/{tier}":{"put":{"tags":["model-routes"],"summary":"Set Tier Reasoning","description":"Set (or, with ``mode: null``, clear) one tier's reasoning mode.\n\nTakes effect on this instance before the response returns and on every\nother instance at its next route poll, because it bumps the same revision\na route edit does. It also retires this tier's advisor scores — the mode is\npart of ``policy_fingerprint(tier)`` — and only this tier's.\n\nAn upsert rather than read-then-write, so two operators saving the same\ntier at once cannot collide on the key: last write wins, and both writes\nbump the revision.","operationId":"set_tier_reasoning_v1_admin_model_routes_reasoning__tier__put","parameters":[{"name":"tier","in":"path","required":true,"schema":{"type":"string","title":"Tier"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TierReasoningUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TierReasoningOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/model-routes/resolve":{"get":{"tags":["model-routes"],"summary":"Resolve Preview","description":"Explain which route (and model) ``invoke`` would pick for a request shape\n— the operator's 'why did it route there?' tool. Resolves against a fresh\nsnapshot so it reflects the committed table.","operationId":"resolve_preview_v1_admin_model_routes_resolve_get","parameters":[{"name":"modelTier","in":"query","required":true,"schema":{"type":"string","title":"Modeltier"}},{"name":"workspaceId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workspaceid"}},{"name":"sensitivity","in":"query","required":false,"schema":{"type":"string","default":"standard","title":"Sensitivity"}},{"name":"language","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"}},{"name":"plan","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolvePreviewOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/model-proposals":{"get":{"tags":["model-proposals"],"summary":"List Proposals","operationId":"list_proposals_v1_admin_model_proposals_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ModelProposalOut"},"title":"Response List Proposals V1 Admin Model Proposals Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/model-proposals/{proposal_id}":{"get":{"tags":["model-proposals"],"summary":"Get Proposal","operationId":"get_proposal_v1_admin_model_proposals__proposal_id__get","parameters":[{"name":"proposal_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Proposal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelProposalOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/model-proposals/{proposal_id}/approve":{"post":{"tags":["model-proposals"],"summary":"Approve Proposal","operationId":"approve_proposal_v1_admin_model_proposals__proposal_id__approve_post","parameters":[{"name":"proposal_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Proposal Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProposalApproveIn"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelProposalOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/model-proposals/{proposal_id}/reject":{"post":{"tags":["model-proposals"],"summary":"Reject Proposal","operationId":"reject_proposal_v1_admin_model_proposals__proposal_id__reject_post","parameters":[{"name":"proposal_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Proposal Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProposalRejectIn"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelProposalOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/model-leaderboard/budget":{"get":{"tags":["model-leaderboard"],"summary":"Get Budget","description":"The effective monthly audition budget and month-to-date spend — the\nsame numbers the eval runner's guard reads.","operationId":"get_budget_v1_admin_model_leaderboard_budget_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdvisorBudgetOut"}}}}}},"put":{"tags":["model-leaderboard"],"summary":"Set Budget","description":"Operator override for the audition budget. Fleet-wide instantly (the\nrunner reads the row at check time); audited (who, when); bounded by the\nschema so a typo can't become a spending decision.","operationId":"set_budget_v1_admin_model_leaderboard_budget_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdvisorBudgetIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdvisorBudgetOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/model-leaderboard/thresholds/{tier}":{"put":{"tags":["model-leaderboard"],"summary":"Set Thresholds","description":"Operator override for a tier's sustained-degradation thresholds. Read\nby the weekly scan at run start — fleet-wide, no redeploy; audited;\nbounded by the schema. Lowering fires more audits and alerts; raising can\nmask a genuinely degrading route.","operationId":"set_thresholds_v1_admin_model_leaderboard_thresholds__tier__put","parameters":[{"name":"tier","in":"path","required":true,"schema":{"type":"string","title":"Tier"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TierThresholdsIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TierThresholdsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["model-leaderboard"],"summary":"Reset Thresholds","description":"Drop the tier's threshold overrides — back to the ``tuning`` defaults.\nScreening overrides on the same row are untouched.","operationId":"reset_thresholds_v1_admin_model_leaderboard_thresholds__tier__delete","parameters":[{"name":"tier","in":"path","required":true,"schema":{"type":"string","title":"Tier"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TierThresholdsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/model-leaderboard/screening/{tier}":{"put":{"tags":["model-leaderboard"],"summary":"Set Screening","description":"Operator override for a tier's policy pre-filters (price ceiling,\ncontext floor). Read by the scans at run start — fleet-wide, no redeploy;\naudited (who, when); bounded by the schema. The correctness filters\n(structured output, pseudo-model, real-price) are code, not knobs.\nA raised ceiling admits pricier models into future audit pools — spend\nstays bounded by the nightly audit cap and the monthly budget.","operationId":"set_screening_v1_admin_model_leaderboard_screening__tier__put","parameters":[{"name":"tier","in":"path","required":true,"schema":{"type":"string","title":"Tier"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TierScreeningIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TierScreeningOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["model-leaderboard"],"summary":"Reset Screening","description":"Drop the tier's screening overrides — back to the ``tuning`` defaults.\nAlert-threshold overrides on the same row are untouched.","operationId":"reset_screening_v1_admin_model_leaderboard_screening__tier__delete","parameters":[{"name":"tier","in":"path","required":true,"schema":{"type":"string","title":"Tier"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TierScreeningOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/model-leaderboard/eval-set":{"get":{"tags":["model-leaderboard"],"summary":"Get Eval Set","description":"The tier's eval set — what its eval scores actually measured.\nRead-only: cases are seeded from code and reviewed there.","operationId":"get_eval_set_v1_admin_model_leaderboard_eval_set_get","parameters":[{"name":"tier","in":"query","required":true,"schema":{"type":"string","title":"Tier"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvalSetOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/model-leaderboard/eval-set/{tier}/cases":{"post":{"tags":["model-leaderboard"],"summary":"Create Case","description":"Add a case to a tier's eval set.\n\nThis rewrites the grading instrument: every cached score on the tier was\nmeasured against the old suite and stops being current the moment this\nlands. The response says how many models that invalidated — they will be\nre-auditioned, with real money, bounded by the nightly cap.","operationId":"create_case_v1_admin_model_leaderboard_eval_set__tier__cases_post","parameters":[{"name":"tier","in":"path","required":true,"schema":{"type":"string","title":"Tier"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvalCaseIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaseEditImpactOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/model-leaderboard/eval-set/{tier}/cases/{case_id}":{"put":{"tags":["model-leaderboard"],"summary":"Update Case","description":"Correct a case. The highest-leverage destructive action here: a wrong\nexpected answer penalises *correct* models and does so invisibly, which is\nwhy the before/after is journalled with both fingerprints.","operationId":"update_case_v1_admin_model_leaderboard_eval_set__tier__cases__case_id__put","parameters":[{"name":"tier","in":"path","required":true,"schema":{"type":"string","title":"Tier"}},{"name":"case_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Case Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvalCaseIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaseEditImpactOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["model-leaderboard"],"summary":"Deactivate Case","description":"Retire a case. Deactivated, never deleted: the runs that were graded\nwith it stay explicable, and a retirement is reversible.","operationId":"deactivate_case_v1_admin_model_leaderboard_eval_set__tier__cases__case_id__delete","parameters":[{"name":"tier","in":"path","required":true,"schema":{"type":"string","title":"Tier"}},{"name":"case_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Case Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaseEditImpactOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/model-leaderboard/eval-set/{tier}/cases/{case_id}/restore":{"post":{"tags":["model-leaderboard"],"summary":"Restore Case","operationId":"restore_case_v1_admin_model_leaderboard_eval_set__tier__cases__case_id__restore_post","parameters":[{"name":"tier","in":"path","required":true,"schema":{"type":"string","title":"Tier"}},{"name":"case_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Case Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaseEditImpactOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/model-leaderboard/eval-set/{tier}/history":{"get":{"tags":["model-leaderboard"],"summary":"Eval Set History","description":"The tier's eval-set audit trail, newest first.","operationId":"eval_set_history_v1_admin_model_leaderboard_eval_set__tier__history_get","parameters":[{"name":"tier","in":"path","required":true,"schema":{"type":"string","title":"Tier"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CaseEditOut"},"title":"Response Eval Set History V1 Admin Model Leaderboard Eval Set  Tier  History Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/model-leaderboard":{"get":{"tags":["model-leaderboard"],"summary":"Get Leaderboard","operationId":"get_leaderboard_v1_admin_model_leaderboard_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/TierLeaderboardOut"},"type":"array","title":"Response Get Leaderboard V1 Admin Model Leaderboard Get"}}}}}}},"/v1/admin/usage/fleet":{"get":{"tags":["admin-usage"],"summary":"Fleet Usage","description":"Workspaces × cost for a period, with coverage, platform traffic, meter\nintegrity and reconciliation variance as first-class parts of the payload.\n\nEvery cost total in the response is accompanied by its ``coveragePct``. That\nis a contract, not a convenience: a total rendered without the share of\ncalls whose cost is actually known is the \"the operator will know\"\nanti-pattern applied to a number.","operationId":"fleet_usage_v1_admin_usage_fleet_get","parameters":[{"name":"period","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"YYYY-MM; defaults to the open period","title":"Period"},"description":"YYYY-MM; defaults to the open period"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Fleet Usage V1 Admin Usage Fleet Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/social-media-manager/hires":{"get":{"tags":["admin"],"summary":"List Hires","operationId":"list_hires_v1_admin_social_media_manager_hires_get","parameters":[{"name":"after","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The last workspace id of the previous page","title":"After"},"description":"The last workspace id of the previous page"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":25,"title":"Limit"}},{"name":"light","in":"query","required":false,"schema":{"type":"boolean","description":"Skip S3 profile reads and spend aggregation for lightweight status polling","default":false,"title":"Light"},"description":"Skip S3 profile reads and spend aggregation for lightweight status polling"},{"name":"workspaceIds","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"description":"Optional explicit workspace ids to refresh","title":"Workspaceids"},"description":"Optional explicit workspace ids to refresh"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Hires V1 Admin Social Media Manager Hires Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/social-media-manager/hires/start":{"post":{"tags":["admin"],"summary":"Start Hire","operationId":"start_hire_v1_admin_social_media_manager_hires_start_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartHireRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Start Hire V1 Admin Social Media Manager Hires Start Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/social-media-manager/hires/{workspace_id}":{"get":{"tags":["admin"],"summary":"Run Page","operationId":"run_page_v1_admin_social_media_manager_hires__workspace_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Page V1 Admin Social Media Manager Hires  Workspace Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/social-media-manager/hires/{workspace_id}/files":{"post":{"tags":["admin"],"summary":"Upload Files","operationId":"upload_files_v1_admin_social_media_manager_hires__workspace_id__files_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadFilesRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Upload Files V1 Admin Social Media Manager Hires  Workspace Id  Files Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/social-media-manager/hires/{workspace_id}/files/init":{"post":{"tags":["admin"],"summary":"Init File Upload","operationId":"init_file_upload_v1_admin_social_media_manager_hires__workspace_id__files_init_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InitUploadFileRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Init File Upload V1 Admin Social Media Manager Hires  Workspace Id  Files Init Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/social-media-manager/hires/{workspace_id}/files/complete":{"post":{"tags":["admin"],"summary":"Complete File Upload","operationId":"complete_file_upload_v1_admin_social_media_manager_hires__workspace_id__files_complete_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompleteUploadFileRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Complete File Upload V1 Admin Social Media Manager Hires  Workspace Id  Files Complete Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/social-media-manager/hires/{workspace_id}/go":{"post":{"tags":["admin"],"summary":"Release Hold","operationId":"release_hold_v1_admin_social_media_manager_hires__workspace_id__go_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Release Hold V1 Admin Social Media Manager Hires  Workspace Id  Go Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/social-media-manager/hires/{workspace_id}/stop":{"post":{"tags":["admin"],"summary":"Stop Stage","operationId":"stop_stage_v1_admin_social_media_manager_hires__workspace_id__stop_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StopStageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Stop Stage V1 Admin Social Media Manager Hires  Workspace Id  Stop Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/social-media-manager/hires/{workspace_id}/rerun":{"post":{"tags":["admin"],"summary":"Rerun Stage","operationId":"rerun_stage_v1_admin_social_media_manager_hires__workspace_id__rerun_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RerunStageRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Rerun Stage V1 Admin Social Media Manager Hires  Workspace Id  Rerun Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/social-media-manager/hires/{workspace_id}/runtime":{"post":{"tags":["admin"],"summary":"Set Runtime Mode","operationId":"set_runtime_mode_v1_admin_social_media_manager_hires__workspace_id__runtime_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetRuntimeModeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Runtime Mode V1 Admin Social Media Manager Hires  Workspace Id  Runtime Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/social-media-manager/runtime/billing":{"get":{"tags":["admin"],"summary":"Runtime Billing Health","operationId":"runtime_billing_health_v1_admin_social_media_manager_runtime_billing_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Runtime Billing Health V1 Admin Social Media Manager Runtime Billing Get"}}}}}}},"/v1/runtime/llm/v1/models":{"get":{"tags":["runtime-llm"],"summary":"List Runtime Models","description":"List concrete and virtual tier model IDs permitted for this runtime job token.","operationId":"list_runtime_models_v1_runtime_llm_v1_models_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Runtime Models V1 Runtime Llm V1 Models Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/runtime/llm/v1/chat/completions":{"post":{"tags":["runtime-llm"],"summary":"Runtime Chat Completions","description":"Proxy OpenAI-compatible chat completions for both SMM Claw and workspace sandbox tokens.","operationId":"runtime_chat_completions_v1_runtime_llm_v1_chat_completions_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/runtime/mcp":{"post":{"tags":["runtime-mcp"],"summary":"Runtime Mcp Endpoint","description":"Streamable HTTP JSON-RPC 2.0 MCP server scoped to the caller's ``wfrt_...`` token.","operationId":"runtime_mcp_endpoint_v1_runtime_mcp_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/runtime/tools/invoke":{"post":{"tags":["runtime-mcp"],"summary":"Invoke Runtime Tool Rest","description":"Typed REST JSON sibling to MCP ``tools/call`` sharing the exact same gateway path.","operationId":"invoke_runtime_tool_rest_v1_runtime_tools_invoke_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuntimeToolInvokeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Invoke Runtime Tool Rest V1 Runtime Tools Invoke Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/runtime/smm/media":{"post":{"tags":["runtime-smm"],"summary":"Upload Runtime Media","description":"Direct upload for small images & PDFs (<= 10 MB) into ``ws/<workspace_id>/``.\n\nAll video uploads and files > 10 MB MUST use ``POST /v1/runtime/smm/media/init`` +\ndirect S3 presigned POST + ``POST /v1/runtime/smm/media/complete``.","operationId":"upload_runtime_media_v1_runtime_smm_media_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_runtime_media_v1_runtime_smm_media_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaUploadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/runtime/smm/media/init":{"post":{"tags":["runtime-smm"],"summary":"Init Runtime Media Upload","description":"Issue a direct-to-S3 presigned POST policy scoped under ``tmp/ws/<workspace_id>/smm-runtime-staging/``\n(up to 250 MB for video, 25 MB for images/PDF) so large media never buffers in App Runner RAM.","operationId":"init_runtime_media_upload_v1_runtime_smm_media_init_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaInitRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaInitResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/runtime/smm/media/staged":{"put":{"tags":["runtime-smm"],"summary":"Put Staged Local Media","description":"Stream a large/video upload directly to local staging disk in 512 KiB chunks (dev/local\nstorage backend only, zero full-file RAM buffering, strictly scoped to this job's prefix).","operationId":"put_staged_local_media_v1_runtime_smm_media_staged_put","parameters":[{"name":"staging_key","in":"query","required":true,"schema":{"type":"string","title":"Staging Key"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Put Staged Local Media V1 Runtime Smm Media Staged Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/runtime/smm/media/complete":{"post":{"tags":["runtime-smm"],"summary":"Complete Runtime Media Upload","description":"Freeze a staged upload into an immutable server-owned ``ws/<workspace_id>/<sha256>`` object\nwith zero DB connection held across S3 hash/copy and zero full-file RAM buffering.","operationId":"complete_runtime_media_upload_v1_runtime_smm_media_complete_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaCompleteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaUploadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/runtime/smm/media/by-handle":{"get":{"tags":["runtime-smm"],"summary":"Download Runtime Media By Handle","description":"Workspace-scoped download of a durable ``ws/<workspace_id>/...`` storage object.\n\nVerifies strict workspace prefix, path-traversal guards, and ``StorageObject`` ownership\nwith ``WHERE workspace_id = :ws AND handle = :handle``, then commits/releases the DB\nconnection BEFORE reading bytes from storage (zero pooled DB connection held across S3 I/O).","operationId":"download_runtime_media_by_handle_v1_runtime_smm_media_by_handle_get","parameters":[{"name":"handle","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":512,"title":"Handle"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/runtime/smm/jobs/{job_id}/progress":{"post":{"tags":["runtime-smm"],"summary":"Report Job Progress","description":"Update Worcflow's live in-memory stage label polled by ``getHome`` and the Admin Run UI,\nand renew active stage run leases (``post_*``, ``video_*``, ``research``, ``pillars``/``month_plan``,\n``brand_read``, ``direction``). Rejects superseded/zombie attempts with HTTP 409 before mutating\nin-memory stage labels, while ignoring late post-completion heartbeats for the already-finished\nwinning attempt cleanly (`200 {\"ok\": true, \"ignored\": \"already_completed\"}`).","operationId":"report_job_progress_v1_runtime_smm_jobs__job_id__progress_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobProgressRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobProgressResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/runtime/smm/jobs/{job_id}/result":{"post":{"tags":["runtime-smm"],"summary":"Commit Job Result","description":"Validate token scope binding, verify ownership of all referenced ``StorageObject`` IDs and\nhandles, reconstruct authoritative server-side run state, and commit via existing fenced committers.","operationId":"commit_job_result_v1_runtime_smm_jobs__job_id__result_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobResultRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobResultResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/platform-tools":{"get":{"tags":["admin"],"summary":"List Platform Tools","operationId":"list_platform_tools_v1_admin_platform_tools_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response List Platform Tools V1 Admin Platform Tools Get"}}}}}}},"/v1/admin/platform-tools/{catalog_id}/oauth/start":{"post":{"tags":["admin"],"summary":"Start Platform Oauth","operationId":"start_platform_oauth_v1_admin_platform_tools__catalog_id__oauth_start_post","parameters":[{"name":"catalog_id","in":"path","required":true,"schema":{"type":"string","title":"Catalog Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StartPlatformOAuthRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Start Platform Oauth V1 Admin Platform Tools  Catalog Id  Oauth Start Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/platform-tools/{catalog_id}/sync":{"post":{"tags":["admin"],"summary":"Sync Platform Tool","operationId":"sync_platform_tool_v1_admin_platform_tools__catalog_id__sync_post","parameters":[{"name":"catalog_id","in":"path","required":true,"schema":{"type":"string","title":"Catalog Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Sync Platform Tool V1 Admin Platform Tools  Catalog Id  Sync Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/platform-tools/{catalog_id}":{"delete":{"tags":["admin"],"summary":"Disconnect Platform Tool","operationId":"disconnect_platform_tool_v1_admin_platform_tools__catalog_id__delete","parameters":[{"name":"catalog_id","in":"path","required":true,"schema":{"type":"string","title":"Catalog Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Disconnect Platform Tool V1 Admin Platform Tools  Catalog Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/platform-tools/oauth/callback":{"get":{"tags":["admin"],"summary":"Platform Tools Oauth Callback","operationId":"platform_tools_oauth_callback_v1_admin_platform_tools_oauth_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},{"name":"error_description","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Description"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/emails/send":{"post":{"tags":["email"],"summary":"Send Email","description":"Send an email via Elastic Email.\n\nThis is the send_email Action primitive — a fire-and-forget outbound\noperation used by worcflows to send email notifications, reminders, etc.","operationId":"send_email_v1_emails_send_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailSendRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailSendResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/whatsapp/send":{"post":{"tags":["whatsapp"],"summary":"Send Message","operationId":"send_message_v1_workspaces__workspace_id__whatsapp_send_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"connectionId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Connectionid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SendTextBody"},{"$ref":"#/components/schemas/SendImageBody"},{"$ref":"#/components/schemas/SendVideoBody"},{"$ref":"#/components/schemas/SendAudioBody"},{"$ref":"#/components/schemas/SendDocumentBody"},{"$ref":"#/components/schemas/SendLocationBody"},{"$ref":"#/components/schemas/SendLiveLocationBody"}],"title":"Request"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendWhatsAppResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/whatsapp/connect":{"post":{"tags":["whatsapp"],"summary":"Connect","description":"Provision a WhatsApp session on the gateway and start the connection flow.\nNo request body needed — one click to connect.","operationId":"connect_v1_workspaces__workspace_id__whatsapp_connect_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/whatsapp/health":{"get":{"tags":["whatsapp"],"summary":"Health","description":"Check gateway session health. Auto-activates connection when phone is linked.","operationId":"health_v1_workspaces__workspace_id__whatsapp_health_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"connectionId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Connectionid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/whatsapp/qr":{"get":{"tags":["whatsapp"],"summary":"Qr Code","description":"Get QR code for WhatsApp login.","operationId":"qr_code_v1_workspaces__workspace_id__whatsapp_qr_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"connectionId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Connectionid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/whatsapp/pairing-code":{"get":{"tags":["whatsapp"],"summary":"Pairing Code","description":"Get pairing code for WhatsApp login (alternative to QR).","operationId":"pairing_code_v1_workspaces__workspace_id__whatsapp_pairing_code_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"phoneNumber","in":"query","required":true,"schema":{"type":"string","title":"Phonenumber"}},{"name":"connectionId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Connectionid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/whatsapp/connection":{"get":{"tags":["whatsapp"],"summary":"Get Connection","description":"Get the WhatsApp connection for this workspace.","operationId":"get_connection_v1_workspaces__workspace_id__whatsapp_connection_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"connectionId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Connectionid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["whatsapp"],"summary":"Disconnect","description":"Hard delete — tear down the gateway session and remove connection.","operationId":"disconnect_v1_workspaces__workspace_id__whatsapp_connection_delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"connectionId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Connectionid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/whatsapp/monitoring":{"patch":{"tags":["whatsapp"],"summary":"Set Monitoring","description":"Set which unpicked chats start monitoring themselves.\n\n``lineType`` decides 1:1 chats (an office desk takes every DM, a personal\nphone only known external contacts); ``autoMonitorGroups`` opts every group\nin; ``contributionClass`` decides whose picture this line's evidence feeds\n(People spec §7.5). All optional — an omitted field is left as-is.","operationId":"set_monitoring_v1_workspaces__workspace_id__whatsapp_monitoring_patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"connectionId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Connectionid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppMonitoringUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/whatsapp/change-phone":{"post":{"tags":["whatsapp"],"summary":"Change Phone","description":"Soft disconnect — unlink phone, keep channel for re-scan.","operationId":"change_phone_v1_workspaces__workspace_id__whatsapp_change_phone_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"connectionId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Connectionid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/whatsapp/groups":{"get":{"tags":["whatsapp"],"summary":"List Groups","description":"List WhatsApp groups available to connect.\nFetches from the workspace's provider and marks which are already registered.","operationId":"list_groups_v1_workspaces__workspace_id__whatsapp_groups_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"connectionId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Connectionid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/broker/invoke":{"post":{"tags":["broker"],"summary":"Invoke","operationId":"invoke_v1_broker_invoke_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvokeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Invoke V1 Broker Invoke Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/session.bootstrap":{"post":{"tags":["broker"],"summary":"Session Bootstrap","operationId":"session_bootstrap_v1_session_bootstrap_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BootstrapRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Session Bootstrap V1 Session Bootstrap Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/employees/{app_id}/stream":{"get":{"tags":["employee-stream"],"summary":"Stream Turn Events","description":"Stream the whole `Last-Event-ID` backlog + live SSE `turn_event` frames with zero held DB sessions.\n\nThe viewer is authorized once in a short session before the response, then again every\n`_REAUTH_INTERVAL_S` while the stream is open: a desk membership, workspace membership, or\napp install taken away closes the stream before another event is sent.","operationId":"stream_turn_events_v1_workspaces__workspace_id__employees__app_id__stream_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"app_id","in":"path","required":true,"schema":{"type":"string","title":"App Id"}},{"name":"desk","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Desk"}},{"name":"scopeKind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scopekind"}},{"name":"scopeId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scopeid"}},{"name":"threadKey","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Threadkey"}},{"name":"turnId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Turnid"}},{"name":"afterSeq","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Afterseq"}},{"name":"once","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Once"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/employees/{app_id}/turns/{turn_id}/stop":{"post":{"tags":["employee-stream"],"summary":"Stop Employee Turn","description":"Request mid-turn Stop cancellation for an active or waiting slice turn.","operationId":"stop_employee_turn_v1_workspaces__workspace_id__employees__app_id__turns__turn_id__stop_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"app_id","in":"path","required":true,"schema":{"type":"string","title":"App Id"}},{"name":"turn_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Turn Id"}},{"name":"desk","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Desk"}},{"name":"scopeKind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scopekind"}},{"name":"scopeId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scopeid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/telemetry/collect":{"post":{"tags":["telemetry"],"summary":"Collect","operationId":"collect_v1_telemetry_collect_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Collect V1 Telemetry Collect Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/telemetry/auth-funnel":{"post":{"tags":["telemetry"],"summary":"Auth Funnel","description":"The pre-auth login funnel door (Fizzy #195) — the one telemetry entry that\ntakes no session.\n\nThe whole login flow happens before a workspace or an authenticated user\nexists, so /collect (which stamps identity from the session) cannot see it.\nThis door accepts a bounded, declared set of ``auth.*`` attention events\nkeyed by a client-generated ``anon_id``, so 'showed up → attempted →\nsucceeded/failed → looping' is measurable at all.\n\nDeliberately UNAUTHENTICATED and hardened accordingly:\n\n* **Endpoint allowlist, not \"any declared name\".** Only the four\n  ``AUTH_FUNNEL_EVENTS`` are accepted; any other name is dropped *before*\n  emit.record, so an anonymous caller cannot post a declared operational or\n  trust event (``message_sent``, ``draft.sent``) into the global stream, and\n  undeclared names never touch the process-global rejected-name counter.\n* **No client-supplied app id.** The kernel owns these names; ``appId`` from\n  the body is ignored, so it cannot overflow ``TelemetryEvent.app_id`` and\n  fail the whole async batch commit.\n* **anon_id is a UUID** (validated on the model), so no PII reaches\n  ``actor_ref`` → the vendor ``distinct_id``.\n* **Per-IP rate limit + batch cap**, a first line against a flood filling the\n  queue/vendor. No token verification and no other outbound call — an emit\n  only enqueues in-process, so the door holds no pooled connection.","operationId":"auth_funnel_v1_telemetry_auth_funnel_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthFunnelRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Auth Funnel V1 Telemetry Auth Funnel Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/ask.query":{"post":{"tags":["ask"],"summary":"Ask Query","operationId":"ask_query_v1_ask_query_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskQueryRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/ask.sessions.list":{"post":{"tags":["ask"],"summary":"Ask Sessions List","operationId":"ask_sessions_list_v1_ask_sessions_list_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionsListRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Ask Sessions List V1 Ask Sessions List Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/ask.suggestions":{"post":{"tags":["ask"],"summary":"Ask Suggestions","description":"The questions this person keeps asking in this lens, in their own words,\nfor a new chat. The client fills the rest with the lens's listed ones. A\nrefresh this request claimed runs after the response, never before it.","operationId":"ask_suggestions_v1_ask_suggestions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuggestionsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Ask Suggestions V1 Ask Suggestions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/ask.sessions.get":{"post":{"tags":["ask"],"summary":"Ask Sessions Get","operationId":"ask_sessions_get_v1_ask_sessions_get_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionGetRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Ask Sessions Get V1 Ask Sessions Get Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/ask.cancel":{"post":{"tags":["ask"],"summary":"Ask Cancel","description":"Stop a question in a chat (G5 slice 4). The client also drops the\nstream, which cancels the turn when the drop reaches us; this is for when\nit does not — a proxy holding the connection, another instance.","operationId":"ask_cancel_v1_ask_cancel_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Ask Cancel V1 Ask Cancel Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/ask.turn":{"post":{"tags":["ask"],"summary":"Ask Turn","description":"One question in a chat, for a client watching it answered by the\nleased worker (G4): its progress while it runs, its ending once it ends.\n\nThe same access contract as reopening the chat, checked before anything\nelse — the chat is the viewer's, its lens still readable, the turn in it —\nand an ended answer is re-checked as the viewer like any replay.","operationId":"ask_turn_v1_ask_turn_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TurnRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Ask Turn V1 Ask Turn Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/ask.sessions.delete":{"post":{"tags":["ask"],"summary":"Ask Sessions Delete","operationId":"ask_sessions_delete_v1_ask_sessions_delete_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionDeleteRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Ask Sessions Delete V1 Ask Sessions Delete Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/progress":{"post":{"tags":["progress"],"summary":"Progress","description":"The watched tasks whose revision moved, each with `rev` and `done`; a\ntask that is gone, or not the caller's, comes back `missing` so the screen\nstops watching it and asks the full read once (which says why).","operationId":"progress_v1_progress_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProgressRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Progress V1 Progress Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/people/import/upload":{"post":{"tags":["people-import"],"summary":"Upload Import","operationId":"upload_import_v1_workspaces__workspace_id__people_import_upload_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_import_v1_workspaces__workspace_id__people_import_upload_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Upload Import V1 Workspaces  Workspace Id  People Import Upload Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/people/{entity_id}/avatar":{"post":{"tags":["people-import"],"summary":"Upload Avatar","description":"The one door bytes may enter for a person's picture, besides the gateway.\n\nAn operator upload outranks every derived source, so it is stored as a\n*declared* avatar belief — terminal against the agent, which means the\nnightly WhatsApp sweep will not quietly replace it.\n\nAuthenticated, extension-allowlisted, size-capped, and durable (`namespace=\n\"avatar\"`, not the ephemeral default) — the picture must outlive the 2-day\nlifecycle that governs chat media.","operationId":"upload_avatar_v1_workspaces__workspace_id__people__entity_id__avatar_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"entity_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Entity Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_avatar_v1_workspaces__workspace_id__people__entity_id__avatar_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Upload Avatar V1 Workspaces  Workspace Id  People  Entity Id  Avatar Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["people-import"],"summary":"Clear Avatar","description":"Pin \"initials only\".\n\nA declaration with a real value, not an absence — which is what makes it\nstick through every sweep instead of being re-filled tomorrow.","operationId":"clear_avatar_v1_workspaces__workspace_id__people__entity_id__avatar_delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"entity_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Entity Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Clear Avatar V1 Workspaces  Workspace Id  People  Entity Id  Avatar Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/books/statements":{"post":{"tags":["books"],"summary":"Upload Statement","operationId":"upload_statement_v1_workspaces__workspace_id__books_statements_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/books/runs/{run_id}/unlock":{"post":{"tags":["books"],"summary":"Unlock Run","description":"Open a statement that failed because it is locked.\n\nWith a typed password, that password; without one, the words of the\nclient's reply to the password question, then the client's kept passwords.\nThe locked file is read again as the unlocked copy, through the same door an\nupload takes, and the failed run it left is removed so the statement is not\nlisted twice. Nothing that fails to open it changes anything but the\n\"they replied\" note, which goes back to plain locked. The password is never\nstored on the run, never logged, and kept only encrypted (`passwords.keep`).\n\n**Two presses at once read it once.** The run is claimed with a conditional\nUPDATE of its failure sentence, committed before the storage fetch; the\nsecond finds it taken (`not_locked`) and the sentence is put back on every\npath that does not read it.","operationId":"unlock_run_v1_workspaces__workspace_id__books_runs__run_id__unlock_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnlockBody"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/books/runs/{run_id}":{"delete":{"tags":["books"],"summary":"Remove Unread Run","description":"Remove a statement worcflow could not read: failed, with no rows.\n\nNothing was read from it, so nothing in the books depends on it; Books' copy\nof the file stays in storage. A statement with rows is refused (`has_rows`):\nthose are taken back through sign-off, never deleted here.","operationId":"remove_unread_run_v1_workspaces__workspace_id__books_runs__run_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/books/runs/{run_id}/send-for-check":{"post":{"tags":["books"],"summary":"Send Run For Check","description":"Email a statement worcflow could not read to the address worcflow checks\nunreadable files at (`books_file_check_email`), with the file attached.\n\n**Once per statement per hour.** The claim is a `job_runs` row keyed by the\nrun, taken before the send, so a double press or two tabs send one email.\nThe connection is handed back across the storage fetch and the send.","operationId":"send_run_for_check_v1_workspaces__workspace_id__books_runs__run_id__send_for_check_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/books/links/{link_id}/send-unread-for-check":{"post":{"tags":["books"],"summary":"Send Folder Unread For Check","description":"Email every file in one folder worcflow could not read, as one zip, to\nthe address worcflow checks unreadable files at (`books_file_check_email`).\n\nRed files only (`unreadable`), from Books' own copies: a file refused\nbefore copies were kept has none, and is named in the email instead (Read\nall again gives it one). Bounded by `_CHECK_ZIP_FILES` and\n`_CHECK_ZIP_BYTES`; the rest are named.\n\n**Once per folder per hour.** The claim is a `job_runs` row keyed by the\nlink, taken before the send, as `send_run_for_check` does. The connection\nis handed back across the storage fetches, the zip and the send.","operationId":"send_folder_unread_for_check_v1_workspaces__workspace_id__books_links__link_id__send_unread_for_check_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"link_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Link Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/books/sheet":{"post":{"tags":["books"],"summary":"Download Working Sheet","description":"The working copy of the month (or months) on screen, as Excel.\n\nNot the Tally file: row 1 says so, rows nobody has answered stay blank, and\nit works before and after sign-off (D3). The whole period gives one\nworksheet per account with opening and closing rows; `lineIds` gives the\nrows on screen in screen order, with a total row. A binary door because the\nbroker is JSON-only, as with the signed export.","operationId":"download_working_sheet_v1_workspaces__workspace_id__books_sheet_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkingSheetBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/books/clients/{client_id}/tally-batches/{batch_id}":{"get":{"tags":["books"],"summary":"Download Tally Batch","description":"Download a Send to Tally's file, exactly as it was sent (Fizzy #655 PR 3).\n\n*Download again* serves the same stored bytes; importing them a second time\nadds every voucher twice, which the file's read-me sheet and the door's\n`X-Books-Warning` header say. A binary door, as the month's export is.","operationId":"download_tally_batch_v1_workspaces__workspace_id__books_clients__client_id__tally_batches__batch_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"client_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Client Id"}},{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Batch Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/books/runs/{run_id}/export":{"get":{"tags":["books"],"summary":"Export Run","description":"Download a signed batch's workbook, exactly as it was signed.\n\nThe latest signature, or `?signoff=<id>` for an earlier one. The bytes are\nthe ones stored when the batch was signed — never rebuilt (spec §14). A run\nthat has never been signed answers 409: nothing leaves unsigned.\n\nA binary door, not a broker capability, because `/v1/broker/invoke` is\nJSON-only — the same reason upload has its own door.","operationId":"export_run_v1_workspaces__workspace_id__books_runs__run_id__export_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}},{"name":"signoff","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Signoff"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/books/runs/{run_id}/statements":{"post":{"tags":["books"],"summary":"Add Statement","description":"Add a second (or later) bank statement to an existing client-period run.\n\nThe period is the run, not the file (spec §5): a client with two or three\nbank accounts is one run holding every statement, so the senior reviews them\nonce — each row attributed to its account, with its own chart and memory. A\nbinary door, like the first-statement upload, because the broker is JSON-only.","operationId":"add_statement_v1_workspaces__workspace_id__books_runs__run_id__statements_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/books/runs/{run_id}/invoices":{"post":{"tags":["books"],"summary":"Upload Invoices","operationId":"upload_invoices_v1_workspaces__workspace_id__books_runs__run_id__invoices_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/books/uploads":{"post":{"tags":["books"],"summary":"Upload Files","description":"One door. Drop files; worcflow works out what each one is.\n\nThe two typed doors stay — `/statements` and `/runs/{id}/invoices` are what\nthe existing surface calls, and each carries guards this one reuses rather\nthan reimplements. What this adds is not a third way to store a file, it is\nthe removal of a question the operator should never have been asked: which\nof two buttons does this file go in? A bank statement and an invoice are\nboth just \"the client sent me this\".\n\nClassification is `intake.read_upload`, on contents. Each file is read,\nclassified and dispatched one at a time: a batch may be forty parts, and\nreading them all up front to classify them would hold four hundred megabytes\nto answer a question about one file.\n\nInvoices settle against a statement's deposits, so they need a run. Two ways\nto have one, and no third:\n\n* `runId` in the form — the existing flow, the operator adding invoices to a\n  statement already open.\n* A statement in the SAME upload. Not a heuristic over history: files\n  dropped together in one request are one act, and attaching them is what\n  the operator meant. Two statements in the drop makes it ambiguous, and\n  ambiguity is refused rather than guessed.\n\nOtherwise the invoice is refused with the instruction, because the honest\nanswer to \"whose books does this invoice belong to?\" is that worcflow cannot\ntell: the parser reads `bill_to`, which is the client's CUSTOMER.","operationId":"upload_files_v1_workspaces__workspace_id__books_uploads_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/books/chat/stream":{"get":{"tags":["books"],"summary":"Stream Accountant Chat","description":"SSE turn-event stream for the asker's own Accountant chat.\n\nThe chat is the asker's alone, so the stream carries only their turns. Auth runs\nin a short session that closes BEFORE the `StreamingResponse` is returned, so no\nORM session is held while the drawer stays open; the same check re-runs every\n`_ACCOUNTANT_STREAM_REAUTH_INTERVAL_S` and closes the stream once the asker is\nno longer a member or Books is switched off.\n\nReplay + live subscription are `turn_stream.stream_scope_events`: the live\nsubscription registers BEFORE persisted rows are read (no replay/live gap) and\nbacklogs over 200 events are paged completely.","operationId":"stream_accountant_chat_v1_workspaces__workspace_id__books_chat_stream_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"afterSeq","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Afterseq"}},{"name":"once","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Once"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/broadcast/group-tags.xlsx":{"get":{"tags":["broadcast"],"summary":"Download Group Tags","description":"Every WhatsApp group with its product and party tags, one row per tag,\nwith the product-tag column offering the configured sheet's tags as a\ndropdown. Always answers with a workbook: when the sheet cannot be read the\ndropdown falls back to the tags already in use, and `X-Worc-Tag-Source`\nsays which.","operationId":"download_group_tags_v1_workspaces__workspace_id__broadcast_group_tags_xlsx_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/broadcast/recipients":{"get":{"tags":["broadcast"],"summary":"List Recipients","description":"Every WhatsApp group and 1:1 contact Broadcast can tag, with a contact's\nname and phone number apart — the surface's picker and group-first view.\nDMs are keyed by their phone JID; a contact whose number WhatsApp withholds\nis listed with ``sendable: false``. ``status`` is null when the list\nloaded, else why it is empty (``no_whatsapp`` | ``groups_unavailable``).","operationId":"list_recipients_v1_workspaces__workspace_id__broadcast_recipients_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Recipients V1 Workspaces  Workspace Id  Broadcast Recipients Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/broadcast/group-tags/import":{"post":{"tags":["broadcast"],"summary":"Preview Group Tags Import","description":"Read an edited workbook and answer with what confirming it would store.\nWrites nothing.","operationId":"preview_group_tags_import_v1_workspaces__workspace_id__broadcast_group_tags_import_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Preview Group Tags Import V1 Workspaces  Workspace Id  Broadcast Group Tags Import Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/invoice/documents":{"post":{"tags":["invoice"],"summary":"Upload Document","operationId":"upload_document_v1_workspaces__workspace_id__invoice_documents_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/compliance/documents/{document_id}":{"get":{"tags":["compliance-documents"],"summary":"Get Document","operationId":"get_document_v1_workspaces__workspace_id__compliance_documents__document_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"document_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Document Id"}},{"name":"download","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Download"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/api-keys":{"post":{"tags":["api-keys"],"summary":"Create Api Key","operationId":"create_api_key_v1_workspaces__workspace_id__api_keys_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyCreated"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["api-keys"],"summary":"List Api Keys","operationId":"list_api_keys_v1_workspaces__workspace_id__api_keys_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ApiKeyResponse"},"title":"Response List Api Keys V1 Workspaces  Workspace Id  Api Keys Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/api-keys/{key_id}":{"delete":{"tags":["api-keys"],"summary":"Revoke Api Key","operationId":"revoke_api_key_v1_workspaces__workspace_id__api_keys__key_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"key_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Key Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/apps/support/groups":{"get":{"tags":["support-api"],"summary":"Get Groups","operationId":"get_groups_v1_apps_support_groups_get","parameters":[{"name":"priority","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority"}},{"name":"label","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"}},{"name":"assigneeEntityId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assigneeentityid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Groups V1 Apps Support Groups Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/apps/support/broadcast/preview":{"post":{"tags":["support-api"],"summary":"Preview Broadcast","operationId":"preview_broadcast_v1_apps_support_broadcast_preview_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BroadcastPreviewRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Preview Broadcast V1 Apps Support Broadcast Preview Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/apps/support/broadcast":{"post":{"tags":["support-api"],"summary":"Broadcast","operationId":"broadcast_v1_apps_support_broadcast_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BroadcastRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Broadcast V1 Apps Support Broadcast Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/apps/support/media":{"post":{"tags":["support-api"],"summary":"Upload Media","description":"Upload a file to broadcast, instead of hosting it at a public URL.\nMultipart (the one non-JSON route on this surface — binary can't ride the\nbroker). Returns a `reference` the broadcast call sends in place of\n`media`; the bytes are held internally until the last paced/queued send.","operationId":"upload_media_v1_apps_support_media_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_media_v1_apps_support_media_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Upload Media V1 Apps Support Media Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/apps/support/broadcast/{broadcast_id}/status":{"get":{"tags":["support-api"],"summary":"Broadcast Status","description":"Poll a broadcast's delivery progress. `broadcast` returns immediately with\n`{broadcastId, total}` and the send fans out in the background (paced), so a\ncaller watches it complete here: `{state, total, sent, queued, failed,\ncancelled, expired, remaining, completed, …}`.","operationId":"broadcast_status_v1_apps_support_broadcast__broadcast_id__status_get","parameters":[{"name":"broadcast_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Broadcast Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Broadcast Status V1 Apps Support Broadcast  Broadcast Id  Status Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/apps/support/broadcast/{broadcast_id}/pause":{"post":{"tags":["support-api"],"summary":"Pause Broadcast","description":"Stop delivering: the in-flight fan-out exits within one send and the\nbroadcast's queued sends are held. Resume continues exactly here.","operationId":"pause_broadcast_v1_apps_support_broadcast__broadcast_id__pause_post","parameters":[{"name":"broadcast_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Broadcast Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Pause Broadcast V1 Apps Support Broadcast  Broadcast Id  Pause Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/apps/support/broadcast/{broadcast_id}/resume":{"post":{"tags":["support-api"],"summary":"Resume Broadcast","description":"Continue a paused broadcast: held sends requeue in their original order\nand the fan-out picks up from where it stopped.","operationId":"resume_broadcast_v1_apps_support_broadcast__broadcast_id__resume_post","parameters":[{"name":"broadcast_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Broadcast Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Resume Broadcast V1 Apps Support Broadcast  Broadcast Id  Resume Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/apps/support/broadcast/{broadcast_id}/cancel":{"post":{"tags":["support-api"],"summary":"Cancel Broadcast","description":"Terminal stop: the remaining fan-out never runs and pending queued sends\nare withdrawn. Messages already delivered stay delivered.","operationId":"cancel_broadcast_v1_apps_support_broadcast__broadcast_id__cancel_post","parameters":[{"name":"broadcast_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Broadcast Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Cancel Broadcast V1 Apps Support Broadcast  Broadcast Id  Cancel Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/connectors/tally/exchange":{"post":{"tags":["tally-connector"],"summary":"Exchange","operationId":"exchange_v1_connectors_tally_exchange_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExchangeRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExchangeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/connectors/tally/push":{"post":{"tags":["tally-connector"],"summary":"Push","operationId":"push_v1_connectors_tally_push_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PushRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PushResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/connectors/tally/reconcile/start":{"post":{"tags":["tally-connector"],"summary":"Reconcile Start","operationId":"reconcile_start_v1_connectors_tally_reconcile_start_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReconcileStartRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Reconcile Start V1 Connectors Tally Reconcile Start Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/connectors/tally/reconcile/{snapshot_id}/ids":{"post":{"tags":["tally-connector"],"summary":"Reconcile Ids","operationId":"reconcile_ids_v1_connectors_tally_reconcile__snapshot_id__ids_post","parameters":[{"name":"snapshot_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Snapshot Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReconcileChunkRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Reconcile Ids V1 Connectors Tally Reconcile  Snapshot Id  Ids Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/connectors/tally/reconcile/{snapshot_id}/commit":{"post":{"tags":["tally-connector"],"summary":"Reconcile Commit","operationId":"reconcile_commit_v1_connectors_tally_reconcile__snapshot_id__commit_post","parameters":[{"name":"snapshot_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Snapshot Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReconcileCommitRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Reconcile Commit V1 Connectors Tally Reconcile  Snapshot Id  Commit Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/connectors/tally/reconcile/{snapshot_id}/abort":{"post":{"tags":["tally-connector"],"summary":"Reconcile Abort","operationId":"reconcile_abort_v1_connectors_tally_reconcile__snapshot_id__abort_post","parameters":[{"name":"snapshot_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Snapshot Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/connectors/tally/commands":{"get":{"tags":["tally-connector"],"summary":"Commands","description":"The agent's command poll: long-poll up to ``waitSeconds`` (clamped to\n25), answering immediately when a nudge is pending, and 429 with\nRetry-After when this instance is already holding its ceiling of waiters\nand nothing is pending for the caller. Returning a command\nmarks it delivered — commands are idempotent nudges, so there is no ack.\n\nThe wait loop lives in ``agent_push.wait_for_commands`` and holds nothing\nwhile it sleeps: each re-check is one short claim + commit, so a fleet of\nwaiting agents costs request slots, never pooled connections. Each claim\nre-authorises with fresh reads, so a device revoked or a connector\nsuspended *mid-poll* ends the poll with the same answers the door gives at\nentry, rather than handing queued commands to a credential the operator\njust cut off.","operationId":"commands_v1_connectors_tally_commands_get","parameters":[{"name":"waitSeconds","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Waitseconds"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommandsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/connectors/tally/commands/{command_id}/result":{"post":{"tags":["tally-connector"],"summary":"Command Result","description":"The agent's answer to a ``postVouchers`` command: what Tally said about\neach entry. Fenced to this device's own delivered send and to the entries\nit carried; 404 ``unknown_command`` otherwise, so a machine cannot settle\nanother machine's entries or invent one. Partial answers are fine, and a\nrepeated answer for an entry already recorded changes nothing.","operationId":"command_result_v1_connectors_tally_commands__command_id__result_post","parameters":[{"name":"command_id","in":"path","required":true,"schema":{"type":"string","title":"Command Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommandResultRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommandResultResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/connectors/tally/diagnostics":{"post":{"tags":["tally-connector"],"summary":"Diagnostics","description":"Accept one diagnostics bundle (``application/zip``, at most\n``DIAGNOSTICS_MAX_BYTES``) answering the ``uploadDiagnostics`` command\n``commandId``. A retry of an upload that already landed returns the same\n``diagnosticsId``.","operationId":"diagnostics_v1_connectors_tally_diagnostics_post","parameters":[{"name":"commandId","in":"query","required":true,"schema":{"type":"string","title":"Commandid"}},{"name":"agentVersion","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agentversion"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiagnosticsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/connectors/tally/heartbeat":{"post":{"tags":["tally-connector"],"summary":"Heartbeat","operationId":"heartbeat_v1_connectors_tally_heartbeat_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HeartbeatRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HeartbeatResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/media":{"post":{"tags":["media"],"summary":"Upload Media","operationId":"upload_media_v1_workspaces__workspace_id__media_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_media_v1_workspaces__workspace_id__media_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Upload Media V1 Workspaces  Workspace Id  Media Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/media/uploads":{"post":{"tags":["media"],"summary":"Start Direct Upload","description":"Begin a browser → S3 upload of a broadcast attachment: a signed POST\n(`url` + `fields`) and the `uploadToken` that completes it. Writes nothing.\n`{\"mode\": \"direct\"}` when storage is not S3 — use the multipart door.","operationId":"start_direct_upload_v1_workspaces__workspace_id__media_uploads_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_DirectUploadInput"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Start Direct Upload V1 Workspaces  Workspace Id  Media Uploads Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/media/uploads/complete":{"post":{"tags":["media"],"summary":"Complete Direct Upload","description":"Check what the browser uploaded and answer with the same `reference` the\nmultipart door does. Idempotent: a retry answers the same reference.","operationId":"complete_direct_upload_v1_workspaces__workspace_id__media_uploads_complete_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_CompleteUploadInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Complete Direct Upload V1 Workspaces  Workspace Id  Media Uploads Complete Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/media/serve":{"get":{"tags":["media"],"summary":"Serve Media","operationId":"serve_media_v1_media_serve_get","parameters":[{"name":"h","in":"query","required":true,"schema":{"type":"string","title":"H"}},{"name":"e","in":"query","required":true,"schema":{"type":"string","title":"E"}},{"name":"s","in":"query","required":true,"schema":{"type":"string","title":"S"}},{"name":"fn","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fn"}},{"name":"d","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"D"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/fleet/downloads/{download_id}":{"get":{"tags":["fleet"],"summary":"Fetch Download","operationId":"fetch_download_v1_fleet_downloads__download_id__get","parameters":[{"name":"download_id","in":"path","required":true,"schema":{"type":"string","title":"Download Id"}},{"name":"e","in":"query","required":true,"schema":{"type":"string","title":"E"}},{"name":"s","in":"query","required":true,"schema":{"type":"string","title":"S"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/social-media-manager/approve/{token}":{"get":{"tags":["social_media_manager"],"summary":"Approve Page","description":"The link opened: the post, whose yes this is, and the button. Changes nothing: a link preview opens it too.","operationId":"approve_page_v1_social_media_manager_approve__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["social_media_manager"],"summary":"Approve Tap","description":"The button: ``approvePost`` through the broker as the person the link names, for the version it was sent\nwith. The broker's audit row and every check of the Studio's button apply.","operationId":"approve_tap_v1_social_media_manager_approve__token__post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/chief-of-staff/approve/{token}":{"post":{"tags":["chief_of_staff"],"summary":"Retired Link","description":"#2269's emails carried a signed Approve link; a reply approves now. Kept for a release so an old email's button\nsays what to do instead of a bare 404. Changes nothing.","operationId":"retired_link_v1_chief_of_staff_approve__token__post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["chief_of_staff"],"summary":"Retired Link","description":"#2269's emails carried a signed Approve link; a reply approves now. Kept for a release so an old email's button\nsays what to do instead of a bare 404. Changes nothing.","operationId":"retired_link_v1_chief_of_staff_approve__token__post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/workspaces/{workspace_id}/access":{"get":{"tags":["operator-access"],"summary":"Access Status","description":"Probe only — never starts the clock and never writes an audit row.","operationId":"access_status_v1_admin_workspaces__workspace_id__access_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/workspaces/{workspace_id}/access-requests":{"post":{"tags":["operator-access"],"summary":"Create Access Request","operationId":"create_access_request_v1_admin_workspaces__workspace_id__access_requests_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessRequestCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessGrant"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/access-requests/{grant_id}":{"delete":{"tags":["operator-access"],"summary":"Cancel Access Request","operationId":"cancel_access_request_v1_admin_access_requests__grant_id__delete","parameters":[{"name":"grant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Grant Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/access-requests":{"get":{"tags":["operator-access"],"summary":"List Access Requests","operationId":"list_access_requests_v1_workspaces__workspace_id__access_requests_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessGrantList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/access-requests/{grant_id}/approve":{"post":{"tags":["operator-access"],"summary":"Approve Access Request","operationId":"approve_access_request_v1_workspaces__workspace_id__access_requests__grant_id__approve_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"grant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Grant Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessDecision"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessGrant"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/access-requests/{grant_id}/deny":{"post":{"tags":["operator-access"],"summary":"Deny Access Request","operationId":"deny_access_request_v1_workspaces__workspace_id__access_requests__grant_id__deny_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"grant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Grant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessGrant"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/access-requests/{grant_id}/revoke":{"post":{"tags":["operator-access"],"summary":"Revoke Access Request","operationId":"revoke_access_request_v1_workspaces__workspace_id__access_requests__grant_id__revoke_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"grant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Grant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessGrant"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/access-requests/{grant_id}/report":{"get":{"tags":["operator-access"],"summary":"Access Report","operationId":"access_report_v1_workspaces__workspace_id__access_requests__grant_id__report_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"grant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Grant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessReport"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/board-handoff/{code}":{"get":{"tags":["board-handoff"],"summary":"Board Handoff Redirect","description":"Validate a handoff link, claim/renew the browser lease, and redirect to its signed live view.","operationId":"board_handoff_redirect_v1_board_handoff__code__get","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/board-handoff/{code}/complete":{"post":{"tags":["board-handoff"],"summary":"Board Handoff Complete","description":"Mark a live sign-in handoff completed, revoke live view, and release the workspace browser lease.","operationId":"board_handoff_complete_v1_board_handoff__code__complete_post","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}},{"name":"detected","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Detected"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["board-handoff"],"summary":"Board Handoff Complete","description":"Mark a live sign-in handoff completed, revoke live view, and release the workspace browser lease.","operationId":"board_handoff_complete_v1_board_handoff__code__complete_get","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}},{"name":"detected","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Detected"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/board-profiles":{"get":{"tags":["board-handoff"],"summary":"Get Board Profiles","description":"List this workspace's job-board browser profiles and recent tasks.","operationId":"get_board_profiles_v1_workspaces__workspace_id__board_profiles_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"task_limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Task Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BoardProfilesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/board-profiles/{board}/handoff":{"post":{"tags":["board-handoff"],"summary":"Create Board Handoff","description":"Create a 15-minute single-use live handoff link for this workspace and board.","operationId":"create_board_handoff_v1_workspaces__workspace_id__board_profiles__board__handoff_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"board","in":"path","required":true,"schema":{"type":"string","title":"Board"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CreateBoardHandoffRequest"},{"type":"null"}],"title":"Payload"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBoardHandoffResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/workspaces/{workspace_id}/agent-sandbox":{"get":{"tags":["admin"],"summary":"Get Workspace Agent Sandbox","operationId":"get_workspace_agent_sandbox_v1_admin_workspaces__workspace_id__agent_sandbox_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Workspace Agent Sandbox V1 Admin Workspaces  Workspace Id  Agent Sandbox Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["admin"],"summary":"Put Workspace Agent Sandbox","operationId":"put_workspace_agent_sandbox_v1_admin_workspaces__workspace_id__agent_sandbox_put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigureAgentSandboxRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Put Workspace Agent Sandbox V1 Admin Workspaces  Workspace Id  Agent Sandbox Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin"],"summary":"Delete Workspace Agent Sandbox","operationId":"delete_workspace_agent_sandbox_v1_admin_workspaces__workspace_id__agent_sandbox_delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"destroyInstance","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Destroyinstance"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Workspace Agent Sandbox V1 Admin Workspaces  Workspace Id  Agent Sandbox Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/workspaces/{workspace_id}/agent-sandbox/provision":{"post":{"tags":["admin"],"summary":"Provision Workspace Agent Sandbox","operationId":"provision_workspace_agent_sandbox_v1_admin_workspaces__workspace_id__agent_sandbox_provision_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProvisionAgentSandboxRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Provision Workspace Agent Sandbox V1 Admin Workspaces  Workspace Id  Agent Sandbox Provision Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/workspaces/{workspace_id}/hiring":{"put":{"tags":["admin"],"summary":"Toggle Workspace Hiring","description":"Toggle ``skill_packs: [\"hiring\"]`` on one or all open Chief of Staff desks.","operationId":"toggle_workspace_hiring_v1_admin_workspaces__workspace_id__hiring_put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToggleWorkspaceHiringRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Toggle Workspace Hiring V1 Admin Workspaces  Workspace Id  Hiring Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AccessDecision":{"properties":{"hours":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Hours"}},"type":"object","title":"AccessDecision"},"AccessGrant":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"workspaceId":{"type":"string","format":"uuid","title":"Workspaceid"},"requesterEmail":{"type":"string","title":"Requesteremail"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"requestedHours":{"type":"integer","title":"Requestedhours"},"approvedHours":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Approvedhours"},"status":{"type":"string","title":"Status"},"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Createdat"},"decidedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Decidedat"},"decidedByEmail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decidedbyemail"},"firstAccessedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Firstaccessedat"},"expiresAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expiresat"},"activationExpiresAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Activationexpiresat"},"endedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Endedat"},"actionCount":{"type":"integer","title":"Actioncount","default":0}},"type":"object","required":["id","workspaceId","requesterEmail","requestedHours","status"],"title":"AccessGrant"},"AccessGrantList":{"properties":{"grants":{"items":{"$ref":"#/components/schemas/AccessGrant"},"type":"array","title":"Grants"}},"type":"object","required":["grants"],"title":"AccessGrantList"},"AccessReport":{"properties":{"grant":{"$ref":"#/components/schemas/AccessGrant"},"summary":{"items":{"$ref":"#/components/schemas/AuditSummaryRow"},"type":"array","title":"Summary"},"entries":{"items":{"$ref":"#/components/schemas/AuditEntry"},"type":"array","title":"Entries"}},"type":"object","required":["grant","summary","entries"],"title":"AccessReport"},"AccessRequestCreate":{"properties":{"hours":{"type":"integer","title":"Hours"},"reason":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Reason"}},"type":"object","required":["hours"],"title":"AccessRequestCreate"},"AccessStatus":{"properties":{"state":{"type":"string","title":"State"},"grant":{"anyOf":[{"$ref":"#/components/schemas/AccessGrant"},{"type":"null"}]},"lastGrant":{"anyOf":[{"$ref":"#/components/schemas/AccessGrant"},{"type":"null"}]}},"type":"object","required":["state"],"title":"AccessStatus"},"ActionBody":{"properties":{"expectedGeneration":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expectedgeneration"},"idempotencyKey":{"type":"string","maxLength":100,"minLength":1,"title":"Idempotencykey"}},"additionalProperties":false,"type":"object","required":["expectedGeneration","idempotencyKey"],"title":"ActionBody"},"AddUserRequest":{"properties":{"email":{"type":"string","title":"Email"},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Displayname"},"jobTitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Jobtitle"},"accessRole":{"type":"string","title":"Accessrole","default":"member"},"reviewer":{"type":"boolean","title":"Reviewer","default":false}},"type":"object","required":["email"],"title":"AddUserRequest"},"AdminWorkspaceSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"ingestEmail":{"type":"string","title":"Ingestemail"},"userCount":{"type":"integer","title":"Usercount"},"sources":{"items":{"$ref":"#/components/schemas/WorkspaceSourceSummary"},"type":"array","title":"Sources"},"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Createdat"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updatedat"}},"type":"object","required":["id","name","slug","ingestEmail","userCount","sources"],"title":"AdminWorkspaceSummary"},"AdvisorBudgetIn":{"properties":{"monthlyBudgetUsd":{"type":"number","maximum":100.0,"exclusiveMinimum":0.0,"title":"Monthlybudgetusd"}},"type":"object","required":["monthlyBudgetUsd"],"title":"AdvisorBudgetIn","description":"Bounds are server-enforced: this knob is real money, and a typo of\n5000 for 5.00 must be a 422, not a spending decision."},"AdvisorBudgetOut":{"properties":{"monthlyBudgetUsd":{"type":"number","title":"Monthlybudgetusd"},"source":{"type":"string","title":"Source"},"spentThisMonthUsd":{"type":"number","title":"Spentthismonthusd"},"updatedBy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updatedby"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updatedat"}},"type":"object","required":["monthlyBudgetUsd","source","spentThisMonthUsd"],"title":"AdvisorBudgetOut"},"AgentCommand":{"properties":{"commandId":{"type":"string","title":"Commandid"},"kind":{"type":"string","title":"Kind"},"companyGuid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Companyguid"},"issuedAt":{"type":"string","title":"Issuedat"},"resetGeneration":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Resetgeneration"},"entries":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Entries"}},"type":"object","required":["commandId","kind","issuedAt"],"title":"AgentCommand","description":"One operator command, delivered at most once (no ack round-trip). A\nlost \"syncNow\" costs nothing — the scheduled pass covers it; a lost\n\"resync\" has to be re-issued."},"ApiKeyCreate":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"}},"type":"object","required":["name","scopes"],"title":"ApiKeyCreate"},"ApiKeyCreated":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"keyPrefix":{"type":"string","title":"Keyprefix"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"key":{"type":"string","title":"Key"}},"type":"object","required":["id","name","keyPrefix","scopes","createdAt","key"],"title":"ApiKeyCreated"},"ApiKeyResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"keyPrefix":{"type":"string","title":"Keyprefix"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"lastUsedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Lastusedat"},"revokedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Revokedat"}},"type":"object","required":["id","name","keyPrefix","scopes","createdAt"],"title":"ApiKeyResponse"},"AskQueryRequest":{"properties":{"prompt":{"type":"string","title":"Prompt"},"scope":{"$ref":"#/components/schemas/AskScope"},"workspaceId":{"type":"string","format":"uuid","title":"Workspaceid"},"context":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Context"},"sessionId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Sessionid"},"clientTurnKey":{"anyOf":[{"type":"string","maxLength":64,"minLength":8},{"type":"null"}],"title":"Clientturnkey"}},"type":"object","required":["prompt","scope","workspaceId"],"title":"AskQueryRequest"},"AskScope":{"properties":{"lens":{"type":"string","title":"Lens"},"itemId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Itemid"}},"type":"object","required":["lens"],"title":"AskScope"},"AuditEntry":{"properties":{"method":{"type":"string","title":"Method"},"path":{"type":"string","title":"Path"},"capability":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Capability"},"at":{"type":"string","format":"date-time","title":"At"}},"type":"object","required":["method","path","at"],"title":"AuditEntry"},"AuditSummaryRow":{"properties":{"action":{"type":"string","title":"Action"},"count":{"type":"integer","title":"Count"},"firstAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Firstat"},"lastAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Lastat"}},"type":"object","required":["action","count"],"title":"AuditSummaryRow"},"AuthFunnelRequest":{"properties":{"anonId":{"type":"string","title":"Anonid"},"events":{"items":{"$ref":"#/components/schemas/ClientEvent"},"type":"array","title":"Events"},"sentAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sentat"},"client":{"additionalProperties":true,"type":"object","title":"Client"}},"type":"object","required":["anonId"],"title":"AuthFunnelRequest"},"BoardProfileItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"workspaceId":{"type":"string","format":"uuid","title":"Workspaceid"},"board":{"type":"string","title":"Board"},"status":{"type":"string","title":"Status"},"lastCheckedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Lastcheckedat"},"lastError":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lasterror"},"isBusy":{"type":"boolean","title":"Isbusy"},"leasedUntil":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Leaseduntil"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"}},"type":"object","required":["id","workspaceId","board","status","isBusy","createdAt","updatedAt"],"title":"BoardProfileItem"},"BoardProfilesResponse":{"properties":{"profiles":{"items":{"$ref":"#/components/schemas/BoardProfileItem"},"type":"array","title":"Profiles"},"recentTasks":{"items":{"$ref":"#/components/schemas/BoardTaskItem"},"type":"array","title":"Recenttasks"}},"type":"object","required":["profiles","recentTasks"],"title":"BoardProfilesResponse"},"BoardTaskItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"workspaceId":{"type":"string","format":"uuid","title":"Workspaceid"},"deskId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Deskid"},"board":{"type":"string","title":"Board"},"action":{"type":"string","title":"Action"},"state":{"type":"string","title":"State"},"pageUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pageurl"},"whyNeedsPerson":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Whyneedsperson"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"result":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Result"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"}},"type":"object","required":["id","workspaceId","board","action","state","createdAt","updatedAt"],"title":"BoardTaskItem"},"Body_upload_avatar_v1_workspaces__workspace_id__people__entity_id__avatar_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_avatar_v1_workspaces__workspace_id__people__entity_id__avatar_post"},"Body_upload_import_v1_workspaces__workspace_id__people_import_upload_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_import_v1_workspaces__workspace_id__people_import_upload_post"},"Body_upload_media_v1_apps_support_media_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"mediaType":{"type":"string","title":"Mediatype"}},"type":"object","required":["file","mediaType"],"title":"Body_upload_media_v1_apps_support_media_post"},"Body_upload_media_v1_workspaces__workspace_id__media_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"mediaType":{"type":"string","title":"Mediatype"},"purpose":{"type":"string","title":"Purpose","default":"send"}},"type":"object","required":["file","mediaType"],"title":"Body_upload_media_v1_workspaces__workspace_id__media_post"},"Body_upload_runtime_media_v1_runtime_smm_media_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"kind":{"type":"string","title":"Kind","default":"slide"}},"type":"object","required":["file"],"title":"Body_upload_runtime_media_v1_runtime_smm_media_post"},"BootstrapRequest":{"properties":{"workspaceId":{"type":"string","format":"uuid","title":"Workspaceid"}},"type":"object","required":["workspaceId"],"title":"BootstrapRequest"},"BroadcastPreviewRequest":{"properties":{"audience":{"additionalProperties":true,"type":"object","title":"Audience"}},"type":"object","title":"BroadcastPreviewRequest"},"BroadcastRequest":{"properties":{"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text"},"media":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Media"},"mediaType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mediatype"},"filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename"},"reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference"},"idempotencyKey":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotencykey"},"audience":{"additionalProperties":true,"type":"object","title":"Audience"},"timeSensitive":{"type":"boolean","title":"Timesensitive","default":false},"urgentUntil":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Urgentuntil"}},"type":"object","title":"BroadcastRequest"},"Cancel":{"properties":{"challengeId":{"type":"string","format":"uuid","title":"Challengeid"}},"additionalProperties":false,"type":"object","required":["challengeId"],"title":"Cancel"},"CancelRequest":{"properties":{"workspaceId":{"type":"string","format":"uuid","title":"Workspaceid"},"sessionId":{"type":"string","format":"uuid","title":"Sessionid"},"clientTurnKey":{"anyOf":[{"type":"string","maxLength":64,"minLength":8},{"type":"null"}],"title":"Clientturnkey"},"turnId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Turnid"}},"type":"object","required":["workspaceId","sessionId"],"title":"CancelRequest"},"CandidateSchema":{"properties":{"provider":{"type":"string","title":"Provider"},"model":{"type":"string","title":"Model"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"escalateOn":{"items":{"type":"string"},"type":"array","title":"Escalateon"},"logprobFloor":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Logprobfloor"},"maxTokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Maxtokens"},"reasoningEffort":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reasoningeffort"},"structuredOutput":{"anyOf":[{"type":"string","const":"tool"},{"type":"null"}],"title":"Structuredoutput"},"endpoints":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Endpoints"},"toolChoice":{"anyOf":[{"type":"string","const":"auto"},{"type":"null"}],"title":"Toolchoice"}},"type":"object","required":["provider","model"],"title":"CandidateSchema"},"CaseEditImpactOut":{"properties":{"fingerprintChanged":{"type":"boolean","title":"Fingerprintchanged"},"invalidatedModels":{"type":"integer","title":"Invalidatedmodels"},"case":{"$ref":"#/components/schemas/EvalCaseOut"}},"type":"object","required":["fingerprintChanged","invalidatedModels","case"],"title":"CaseEditImpactOut","description":"What an edit cost. Reported so the invalidation is never a surprise:\nchanging the suite invalidates every cached score on the tier, and those\nmodels get re-auditioned with real money."},"CaseEditOut":{"properties":{"tier":{"type":"string","title":"Tier"},"caseId":{"type":"string","format":"uuid","title":"Caseid"},"action":{"type":"string","title":"Action"},"actor":{"type":"string","title":"Actor"},"at":{"type":"string","format":"date-time","title":"At"},"fingerprintChanged":{"type":"boolean","title":"Fingerprintchanged"},"before":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Before"},"after":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"After"}},"type":"object","required":["tier","caseId","action","actor","at","fingerprintChanged"],"title":"CaseEditOut","description":"One entry in the eval-set audit trail."},"CatalogModelOut":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"contextLength":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Contextlength"},"promptUsdPerM":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Promptusdperm"},"completionUsdPerM":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Completionusdperm"},"supportsStructuredOutput":{"type":"boolean","title":"Supportsstructuredoutput","default":false},"inputModalities":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Inputmodalities"},"zdr":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Zdr"}},"type":"object","required":["id","name"],"title":"CatalogModelOut"},"CatalogOut":{"properties":{"provider":{"type":"string","title":"Provider"},"catalogSupported":{"type":"boolean","title":"Catalogsupported"},"source":{"type":"string","title":"Source"},"fetchedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Fetchedat"},"models":{"items":{"$ref":"#/components/schemas/CatalogModelOut"},"type":"array","title":"Models"},"zdrEnforced":{"type":"boolean","title":"Zdrenforced","default":true},"policyEnforceable":{"type":"boolean","title":"Policyenforceable","default":true}},"type":"object","required":["provider","catalogSupported","source","models"],"title":"CatalogOut","description":"The provider catalog the picker renders. ``source`` is honest about\nfreshness: live | stale | unavailable | unsupported."},"ChannelHealth":{"properties":{"source":{"type":"string","title":"Source"},"status":{"type":"string","title":"Status"},"lastSyncedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Lastsyncedat"},"syncError":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Syncerror"},"detail":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Detail"}},"type":"object","required":["source","status"],"title":"ChannelHealth"},"ChatToRead":{"properties":{"id":{"type":"string","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","required":["id"],"title":"ChatToRead"},"ClientEvent":{"properties":{"name":{"type":"string","title":"Name"},"props":{"additionalProperties":true,"type":"object","title":"Props"},"appId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Appid"},"occurredAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Occurredat"}},"type":"object","required":["name"],"title":"ClientEvent"},"Code":{"properties":{"challengeId":{"type":"string","format":"uuid","title":"Challengeid"},"operationId":{"type":"string","format":"uuid","title":"Operationid"},"code":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Code"}},"additionalProperties":false,"type":"object","required":["challengeId","operationId"],"title":"Code"},"CollectRequest":{"properties":{"workspaceId":{"type":"string","format":"uuid","title":"Workspaceid"},"events":{"items":{"$ref":"#/components/schemas/ClientEvent"},"type":"array","title":"Events"},"sentAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sentat"},"client":{"additionalProperties":true,"type":"object","title":"Client"}},"type":"object","required":["workspaceId"],"title":"CollectRequest"},"CommandResultRequest":{"properties":{"entries":{"items":{"$ref":"#/components/schemas/WriteAnswer"},"type":"array","maxItems":500,"minItems":1,"title":"Entries"}},"type":"object","required":["entries"],"title":"CommandResultRequest","description":"The agent's answer to a \"postVouchers\" command, all of it or part of it.\nRepeating an answer already recorded changes nothing."},"CommandResultResponse":{"properties":{"entries":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Entries"}},"type":"object","required":["entries"],"title":"CommandResultResponse"},"CommandsResponse":{"properties":{"commands":{"items":{"$ref":"#/components/schemas/AgentCommand"},"type":"array","title":"Commands"}},"type":"object","required":["commands"],"title":"CommandsResponse","description":"The long-poll's answer: pending commands immediately, or `[]` at the\n(capped) deadline. Returning a command marks it delivered."},"CompleteUploadFileRequest":{"properties":{"handle":{"type":"string","maxLength":512,"minLength":1,"title":"Handle"},"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"triggerRead":{"type":"boolean","title":"Triggerread","default":false}},"type":"object","required":["handle","name"],"title":"CompleteUploadFileRequest"},"ConfigureAgentSandboxRequest":{"properties":{"sandboxType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sandboxtype"},"instanceId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instanceid"},"instanceUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instanceurl"},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region"},"networkMode":{"anyOf":[{"type":"string","enum":["allowlist","allow_all"]},{"type":"null"}],"title":"Networkmode"},"customAllowedDomains":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Customalloweddomains"},"syncNetwork":{"type":"boolean","title":"Syncnetwork","default":true}},"type":"object","title":"ConfigureAgentSandboxRequest"},"ConsentStart":{"properties":{"returnTo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Returnto"}},"type":"object","title":"ConsentStart"},"CreateBoardHandoffRequest":{"properties":{"pageUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pageurl"},"whyNeedsPerson":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Whyneedsperson"},"deskId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Deskid"},"taskId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Taskid"}},"type":"object","title":"CreateBoardHandoffRequest"},"CreateBoardHandoffResponse":{"properties":{"taskId":{"type":"string","format":"uuid","title":"Taskid"},"board":{"type":"string","title":"Board"},"handoffUrl":{"type":"string","title":"Handoffurl"},"expiresAt":{"type":"string","format":"date-time","title":"Expiresat"},"pageUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pageurl"}},"type":"object","required":["taskId","board","handoffUrl","expiresAt"],"title":"CreateBoardHandoffResponse"},"CreateBody":{"properties":{"revisionId":{"type":"string","format":"uuid","title":"Revisionid"},"mapping":{"additionalProperties":true,"type":"object","title":"Mapping"},"acknowledgedWarnings":{"items":{"type":"string"},"type":"array","maxItems":510,"title":"Acknowledgedwarnings"},"idempotencyKey":{"type":"string","maxLength":100,"minLength":1,"title":"Idempotencykey"}},"additionalProperties":false,"type":"object","required":["revisionId","mapping","acknowledgedWarnings","idempotencyKey"],"title":"CreateBody"},"CreateWorcflowRequest":{"properties":{"workspaceId":{"type":"string","format":"uuid","title":"Workspaceid"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"config":{"additionalProperties":true,"type":"object","title":"Config","default":{}}},"type":"object","required":["workspaceId","name"],"title":"CreateWorcflowRequest"},"CreateWorkspaceRequest":{"properties":{"name":{"type":"string","title":"Name"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"}},"type":"object","required":["name"],"title":"CreateWorkspaceRequest"},"DiagnosticsResponse":{"properties":{"diagnosticsId":{"type":"string","title":"Diagnosticsid"},"byteSize":{"type":"integer","title":"Bytesize"}},"type":"object","required":["diagnosticsId","byteSize"],"title":"DiagnosticsResponse","description":"201: the bundle is stored. The same id comes back for a retried upload\nof the same command."},"EmailSendRequest":{"properties":{"toEmail":{"type":"string","format":"email","title":"Toemail"},"subject":{"type":"string","title":"Subject"},"plainText":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plaintext"},"htmlContent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Htmlcontent"},"replyToEmail":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Replytoemail"},"cc":{"anyOf":[{"items":{"type":"string","format":"email"},"type":"array"},{"type":"null"}],"title":"Cc"},"bcc":{"anyOf":[{"items":{"type":"string","format":"email"},"type":"array"},{"type":"null"}],"title":"Bcc"}},"type":"object","required":["toEmail","subject"],"title":"EmailSendRequest","description":"Request to send an email via the send_email Action primitive."},"EmailSendResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"messageId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Messageid"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["success"],"title":"EmailSendResponse"},"EvalCaseIn":{"properties":{"inputText":{"type":"string","maxLength":4000,"minLength":1,"title":"Inputtext"},"expected":{"additionalProperties":true,"type":"object","title":"Expected"}},"type":"object","required":["inputText","expected"],"title":"EvalCaseIn","description":"A case to create or replace. ``expected`` is validated against the\ntier's own output schema — a case the grader could never match is a\nsilent, permanent zero for every model."},"EvalCaseOut":{"properties":{"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Id"},"inputText":{"type":"string","title":"Inputtext"},"expected":{"additionalProperties":true,"type":"object","title":"Expected"},"active":{"type":"boolean","title":"Active","default":true},"updatedBy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updatedby"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updatedat"},"grader":{"type":"string","title":"Grader","default":"exact"},"systemPrompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Systemprompt"}},"type":"object","required":["inputText","expected"],"title":"EvalCaseOut","description":"One eval case: synthetic input → the exact-match expected\nanswer. Hand-authored, modelled on real traffic patterns — never\ncustomer text, which is why displaying them is safe."},"EvalSetOut":{"properties":{"tier":{"type":"string","title":"Tier"},"prompt":{"type":"string","title":"Prompt"},"grading":{"type":"string","title":"Grading"},"cases":{"items":{"$ref":"#/components/schemas/EvalCaseOut"},"type":"array","title":"Cases"}},"type":"object","required":["tier","prompt","grading","cases"],"title":"EvalSetOut"},"ExchangeBody":{"properties":{"ticket":{"type":"string","maxLength":150,"minLength":1,"title":"Ticket"}},"additionalProperties":false,"type":"object","required":["ticket"],"title":"ExchangeBody"},"ExchangeRequest":{"properties":{"pairingCode":{"type":"string","maxLength":64,"minLength":1,"title":"Pairingcode"},"deviceName":{"type":"string","maxLength":255,"minLength":1,"title":"Devicename"},"agentVersion":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Agentversion"},"tallyLicense":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Tallylicense"},"companies":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array","maxItems":100},{"type":"null"}],"title":"Companies"},"host":{"anyOf":[{"$ref":"#/components/schemas/HostInfo"},{"type":"null"}]}},"type":"object","required":["pairingCode","deviceName"],"title":"ExchangeRequest"},"ExchangeResponse":{"properties":{"deviceId":{"type":"string","title":"Deviceid"},"deviceCredential":{"type":"string","title":"Devicecredential"},"connectorId":{"type":"string","title":"Connectorid"},"workspaceName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspacename"},"toolInstanceId":{"type":"string","title":"Toolinstanceid"},"resetGeneration":{"type":"integer","title":"Resetgeneration"}},"type":"object","required":["deviceId","deviceCredential","connectorId","workspaceName","toolInstanceId","resetGeneration"],"title":"ExchangeResponse"},"FirefliesConnectRequest":{"properties":{"apiKey":{"type":"string","title":"Apikey"},"webhookSecret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhooksecret"},"backfillDays":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Backfilldays"}},"type":"object","required":["apiKey"],"title":"FirefliesConnectRequest"},"FirefliesSyncStatusResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"workspaceId":{"type":"string","format":"uuid","title":"Workspaceid"},"syncStatus":{"type":"string","title":"Syncstatus"},"backfillStatus":{"type":"string","title":"Backfillstatus"},"meetingsBackfilled":{"type":"integer","title":"Meetingsbackfilled"},"meetingsSynced":{"type":"integer","title":"Meetingssynced"},"commitmentsExtracted":{"type":"integer","title":"Commitmentsextracted"},"backfillStartedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Backfillstartedat"},"backfillCompletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Backfillcompletedat"},"lastSyncAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Lastsyncat"},"lastError":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lasterror"},"errorCount":{"type":"integer","title":"Errorcount"}},"type":"object","required":["id","workspaceId","syncStatus","backfillStatus","meetingsBackfilled","meetingsSynced","commitmentsExtracted","backfillStartedAt","backfillCompletedAt","lastSyncAt","lastError","errorCount"],"title":"FirefliesSyncStatusResponse"},"GmailConnectRequest":{"properties":{"serviceAccountJson":{"type":"string","title":"Serviceaccountjson"},"adminEmail":{"type":"string","title":"Adminemail"},"idempotencyKey":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotencykey"}},"type":"object","required":["serviceAccountJson","adminEmail"],"title":"GmailConnectRequest"},"GmailMailboxSelectRequest":{"properties":{"mailboxIds":{"items":{"type":"string"},"type":"array","title":"Mailboxids"},"onboardingId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Onboardingid"}},"type":"object","required":["mailboxIds"],"title":"GmailMailboxSelectRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HeartbeatRequest":{"properties":{"agentVersion":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Agentversion"},"companies":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array","maxItems":100},{"type":"null"}],"title":"Companies"},"cursors":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Cursors"},"consentPending":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Consentpending"},"resetGeneration":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Resetgeneration"},"host":{"anyOf":[{"$ref":"#/components/schemas/HostInfo"},{"type":"null"}]},"writeCompanies":{"anyOf":[{"items":{"type":"string","maxLength":64,"minLength":1},"type":"array","maxItems":100},{"type":"null"}],"title":"Writecompanies"}},"type":"object","title":"HeartbeatRequest"},"HeartbeatResponse":{"properties":{"ok":{"type":"boolean","title":"Ok"},"serverTime":{"type":"string","title":"Servertime"},"recordTypes":{"items":{"type":"string"},"type":"array","title":"Recordtypes"},"reconciliationProtocol":{"type":"integer","title":"Reconciliationprotocol","default":1},"resetGeneration":{"type":"integer","title":"Resetgeneration","default":0},"resyncRequired":{"type":"boolean","title":"Resyncrequired","default":false}},"type":"object","required":["ok","serverTime","recordTypes"],"title":"HeartbeatResponse"},"HostInfo":{"properties":{"osName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Osname"},"osVersion":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Osversion"},"osBuild":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Osbuild"},"osDisplayVersion":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Osdisplayversion"},"hostname":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hostname"},"arch":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Arch"}},"type":"object","title":"HostInfo","description":"The machine the agent runs on, as the agent describes it. Every key is\noptional (an older agent sends no `host` at all); unknown keys are dropped,\nso only these six are ever stored."},"InitUploadFileRequest":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"sizeBytes":{"type":"integer","minimum":1.0,"title":"Sizebytes"},"contentType":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Contenttype"}},"type":"object","required":["name","sizeBytes"],"title":"InitUploadFileRequest"},"InvokeRequest":{"properties":{"capability":{"type":"string","title":"Capability"},"input":{"additionalProperties":true,"type":"object","title":"Input"},"workspaceId":{"type":"string","format":"uuid","title":"Workspaceid"}},"type":"object","required":["capability","workspaceId"],"title":"InvokeRequest"},"JobProgressRequest":{"properties":{"lane":{"type":"string","enum":["brand","direction","research","score","plan","post","posts","video","talk","pipeline"],"title":"Lane"},"label":{"type":"string","maxLength":200,"minLength":1,"title":"Label"},"reset":{"type":"boolean","title":"Reset","default":false}},"type":"object","required":["lane","label"],"title":"JobProgressRequest"},"JobProgressResponse":{"properties":{"ok":{"type":"boolean","title":"Ok","default":true},"ignored":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ignored"}},"type":"object","title":"JobProgressResponse"},"JobResultRequest":{"properties":{"stage":{"type":"string","enum":["brand_read","direction","research","score","pillars","month_plan","post_make","post_edit","video_stories","video_storyboard","video_build","video_edit_audit","video_edit_render"],"title":"Stage"},"occurrence":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Occurrence"},"attempt":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Attempt","default":1},"start":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Start"},"postId":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Postid"},"version":{"anyOf":[{"type":"integer","maximum":10000.0,"minimum":0.0},{"type":"null"}],"title":"Version"},"payload":{"additionalProperties":true,"type":"object","title":"Payload"}},"type":"object","required":["stage","payload"],"title":"JobResultRequest"},"JobResultResponse":{"properties":{"applied":{"type":"boolean","title":"Applied"},"stage":{"type":"string","enum":["brand_read","direction","research","score","pillars","month_plan","post_make","post_edit","video_stories","video_storyboard","video_build","video_edit_audit","video_edit_render"],"title":"Stage"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["applied","stage"],"title":"JobResultResponse"},"LeaderboardEntryOut":{"properties":{"rank":{"type":"integer","title":"Rank"},"provider":{"type":"string","title":"Provider"},"model":{"type":"string","title":"Model"},"evalScore":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Evalscore"},"casesTotal":{"type":"integer","title":"Casestotal"},"blendedUsdPerM":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Blendedusdperm"},"previousBlendedUsdPerM":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Previousblendedusdperm"},"configured":{"type":"boolean","title":"Configured"},"degraded":{"type":"boolean","title":"Degraded","default":false},"degradedReason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Degradedreason"},"staleSuite":{"type":"boolean","title":"Stalesuite","default":false},"stalePolicy":{"type":"boolean","title":"Stalepolicy","default":false},"policyState":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Policystate"},"evaluatedAt":{"type":"string","format":"date-time","title":"Evaluatedat"}},"type":"object","required":["rank","provider","model","casesTotal","configured","evaluatedAt"],"title":"LeaderboardEntryOut"},"Link":{"properties":{"challengeId":{"type":"string","format":"uuid","title":"Challengeid"},"operationId":{"type":"string","format":"uuid","title":"Operationid"},"token":{"anyOf":[{"type":"string","maxLength":43},{"type":"null"}],"title":"Token"}},"additionalProperties":false,"type":"object","required":["challengeId","operationId"],"title":"Link"},"MailboxSyncStatusResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"mailboxId":{"type":"string","format":"uuid","title":"Mailboxid"},"emailAddress":{"type":"string","title":"Emailaddress"},"syncStatus":{"type":"string","title":"Syncstatus"},"backfillStatus":{"type":"string","title":"Backfillstatus"},"messagesBackfilled":{"type":"integer","title":"Messagesbackfilled"},"messagesSynced":{"type":"integer","title":"Messagessynced"},"backfillStartedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Backfillstartedat"},"backfillCompletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Backfillcompletedat"},"lastSyncAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Lastsyncat"},"lastError":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lasterror"},"errorCount":{"type":"integer","title":"Errorcount"}},"type":"object","required":["id","mailboxId","emailAddress","syncStatus","backfillStatus","messagesBackfilled","messagesSynced","backfillStartedAt","backfillCompletedAt","lastSyncAt","lastError","errorCount"],"title":"MailboxSyncStatusResponse"},"MappingBody":{"properties":{"revisionId":{"type":"string","format":"uuid","title":"Revisionid"},"mapping":{"additionalProperties":true,"type":"object","title":"Mapping"},"acknowledgedWarnings":{"items":{"type":"string"},"type":"array","maxItems":510,"title":"Acknowledgedwarnings"}},"additionalProperties":false,"type":"object","required":["revisionId","mapping","acknowledgedWarnings"],"title":"MappingBody"},"MeResponse":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"email":{"type":"string","title":"Email"},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Displayname"},"isAdmin":{"type":"boolean","title":"Isadmin","default":false},"role":{"type":"string","title":"Role","default":"member"},"isWorkspaceAdmin":{"type":"boolean","title":"Isworkspaceadmin","default":false},"workspaceId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspaceid"},"workspaceName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspacename"}},"type":"object","required":["id","email"],"title":"MeResponse"},"MediaCompleteRequest":{"properties":{"stagingKey":{"type":"string","maxLength":512,"minLength":1,"title":"Stagingkey"},"kind":{"type":"string","maxLength":32,"minLength":1,"title":"Kind","default":"video"},"contentType":{"type":"string","maxLength":120,"minLength":1,"title":"Contenttype"}},"type":"object","required":["stagingKey","contentType"],"title":"MediaCompleteRequest"},"MediaInitRequest":{"properties":{"kind":{"type":"string","maxLength":32,"minLength":1,"title":"Kind","default":"video"},"fileName":{"type":"string","maxLength":200,"minLength":1,"title":"Filename"},"contentType":{"type":"string","maxLength":120,"minLength":1,"title":"Contenttype"},"sizeBytes":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Sizebytes"}},"type":"object","required":["fileName","contentType"],"title":"MediaInitRequest"},"MediaInitResponse":{"properties":{"mode":{"type":"string","enum":["presigned_post","local_staged"],"title":"Mode"},"stagingKey":{"type":"string","title":"Stagingkey"},"upload":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Upload"},"localPath":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Localpath"},"contentType":{"type":"string","title":"Contenttype"},"maxBytes":{"type":"integer","title":"Maxbytes"},"expiresIn":{"type":"integer","title":"Expiresin"}},"type":"object","required":["mode","stagingKey","contentType","maxBytes","expiresIn"],"title":"MediaInitResponse"},"MediaUploadResponse":{"properties":{"objectId":{"type":"string","title":"Objectid"},"handle":{"type":"string","title":"Handle"},"sha256":{"type":"string","title":"Sha256"},"bytes":{"type":"integer","title":"Bytes"},"contentType":{"type":"string","title":"Contenttype"},"width":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Width"},"height":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Height"}},"type":"object","required":["objectId","handle","sha256","bytes","contentType"],"title":"MediaUploadResponse"},"ModelProposalOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"triggerType":{"type":"string","title":"Triggertype"},"routeId":{"type":"string","format":"uuid","title":"Routeid"},"targetCandidateIndex":{"type":"integer","title":"Targetcandidateindex"},"targetCandidateRole":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Targetcandidaterole"},"candidates":{"items":{"$ref":"#/components/schemas/ProposalCandidateOut"},"type":"array","title":"Candidates"},"incumbentEvidence":{"anyOf":[{"$ref":"#/components/schemas/ProposalCandidateOut"},{"type":"null"}]},"configurations":{"anyOf":[{"items":{"$ref":"#/components/schemas/ProposalConfigurationOut"},"type":"array"},{"type":"null"}],"title":"Configurations"},"reasoning":{"type":"string","title":"Reasoning"},"status":{"type":"string","title":"Status"},"actedBy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actedby"},"actedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Actedat"},"rejectionReason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rejectionreason"},"routeTier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Routetier"},"routeStrategy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Routestrategy"},"routeLanguage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Routelanguage"},"routeWorkspaceId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Routeworkspaceid"},"routeWorkspaceName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Routeworkspacename"},"routeExists":{"type":"boolean","title":"Routeexists","default":true}},"type":"object","required":["id","createdAt","triggerType","routeId","targetCandidateIndex","candidates","reasoning","status"],"title":"ModelProposalOut"},"ModelRouteCreate":{"properties":{"workspaceId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workspaceid"},"plan":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan"},"modelTier":{"type":"string","title":"Modeltier"},"sensitivity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sensitivity"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"strategy":{"type":"string","title":"Strategy","default":"static"},"candidates":{"items":{"$ref":"#/components/schemas/CandidateSchema"},"type":"array","title":"Candidates"},"version":{"type":"integer","title":"Version","default":1},"active":{"type":"boolean","title":"Active","default":true},"allowUnlistedModel":{"type":"boolean","title":"Allowunlistedmodel","default":false}},"type":"object","required":["modelTier","candidates"],"title":"ModelRouteCreate"},"ModelRouteOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"workspaceId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workspaceid"},"plan":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan"},"modelTier":{"type":"string","title":"Modeltier"},"sensitivity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sensitivity"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"strategy":{"type":"string","title":"Strategy"},"candidates":{"items":{"$ref":"#/components/schemas/CandidateSchema"},"type":"array","title":"Candidates"},"version":{"type":"integer","title":"Version"},"setBy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Setby"},"active":{"type":"boolean","title":"Active"},"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Createdat"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updatedat"},"slugVerification":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Slugverification"}},"type":"object","required":["id","modelTier","strategy","candidates","version","active"],"title":"ModelRouteOut"},"ModelRouteUpdate":{"properties":{"plan":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan"},"sensitivity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sensitivity"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"strategy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Strategy"},"candidates":{"anyOf":[{"items":{"$ref":"#/components/schemas/CandidateSchema"},"type":"array"},{"type":"null"}],"title":"Candidates"},"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"},"active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active"},"allowUnlistedModel":{"type":"boolean","title":"Allowunlistedmodel","default":false}},"type":"object","title":"ModelRouteUpdate","description":"Partial update — only provided fields change."},"OnboardingStatus":{"properties":{"onboardingId":{"type":"string","format":"uuid","title":"Onboardingid"},"workspaceId":{"type":"string","format":"uuid","title":"Workspaceid"},"provider":{"type":"string","title":"Provider"},"authMethod":{"type":"string","title":"Authmethod"},"state":{"type":"string","title":"State"},"adminEmail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Adminemail"},"domainWideAccess":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Domainwideaccess"},"totalMailboxes":{"type":"integer","title":"Totalmailboxes"},"activeMailboxes":{"type":"integer","title":"Activemailboxes"},"failedMailboxes":{"type":"integer","title":"Failedmailboxes"},"failureReason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failurereason"},"failureCode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failurecode"},"retryCount":{"type":"integer","title":"Retrycount"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"},"completedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completedat"},"heldAtDesk":{"items":{"type":"string"},"type":"array","title":"Heldatdesk","default":[]}},"type":"object","required":["onboardingId","workspaceId","provider","authMethod","state","adminEmail","domainWideAccess","totalMailboxes","activeMailboxes","failedMailboxes","failureReason","failureCode","retryCount","scopes","createdAt","updatedAt","completedAt"],"title":"OnboardingStatus"},"PersonaBody":{"properties":{"personaId":{"type":"string","maxLength":64,"minLength":1,"title":"Personaid"}},"additionalProperties":false,"type":"object","required":["personaId"],"title":"PersonaBody"},"PreviewCandidateOut":{"properties":{"provider":{"type":"string","title":"Provider"},"model":{"type":"string","title":"Model"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"escalateOn":{"items":{"type":"string"},"type":"array","title":"Escalateon"},"logprobFloor":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Logprobfloor"},"maxTokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Maxtokens"},"reasoningEffort":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reasoningeffort"},"structuredOutput":{"anyOf":[{"type":"string","const":"tool"},{"type":"null"}],"title":"Structuredoutput"},"endpoints":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Endpoints"},"toolChoice":{"anyOf":[{"type":"string","const":"auto"},{"type":"null"}],"title":"Toolchoice"},"policyVerdict":{"type":"string","title":"Policyverdict","default":"admissible"}},"type":"object","required":["provider","model"],"title":"PreviewCandidateOut","description":"One authored slot, with what the data-handling floor makes of it.\n\nA separate output model rather than a field on `CandidateSchema`, which is\nalso the INPUT shape for authoring a route: the verdict is something the\nplatform computes, never something an operator submits.\n\n'admissible', or the reason the floor refuses it ('not_zdr', 'unknown',\n'not_enforceable'). It exists because `chosenModel` alone hides the\nfailure it is reporting: a cascade whose gate is dead still previews a\nperfectly good answer from the slot behind it, and the operator has no way\nto see that the route they are looking at is running one model short."},"ProductionStatOut":{"properties":{"provider":{"type":"string","title":"Provider"},"model":{"type":"string","title":"Model"},"calls":{"type":"integer","title":"Calls"},"degradedPct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Degradedpct"},"escalatedPct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Escalatedpct"},"costUsd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Costusd"},"configured":{"type":"boolean","title":"Configured"}},"type":"object","required":["provider","model","calls","configured"],"title":"ProductionStatOut","description":"One configured (or recently-trafficked) model's production truth over\nthe trailing window. Rates are None when the denominator is zero —\n'no traffic' must never render as 'zero percent degraded'."},"ProgressRequest":{"properties":{"workspaceId":{"type":"string","format":"uuid","title":"Workspaceid"},"tasks":{"items":{"$ref":"#/components/schemas/Task"},"type":"array","maxItems":20,"title":"Tasks"}},"type":"object","required":["workspaceId","tasks"],"title":"ProgressRequest"},"ProposalApproveIn":{"properties":{"candidateIndex":{"type":"integer","minimum":0.0,"title":"Candidateindex","default":0}},"type":"object","title":"ProposalApproveIn","description":"Approve the top pick by default; ``candidateIndex`` approves a\nrunner-up instead."},"ProposalCandidateOut":{"properties":{"provider":{"type":"string","title":"Provider"},"model":{"type":"string","title":"Model"},"evidence":{"additionalProperties":true,"type":"object","title":"Evidence"}},"type":"object","required":["provider","model"],"title":"ProposalCandidateOut"},"ProposalConfigurationOut":{"properties":{"kind":{"type":"string","title":"Kind"},"recommended":{"type":"boolean","title":"Recommended","default":false},"candidates":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Candidates"},"evidence":{"additionalProperties":true,"type":"object","title":"Evidence"}},"type":"object","required":["kind","candidates"],"title":"ProposalConfigurationOut","description":"One offerable route configuration. ``kind == \"current\"`` is the card's\nanchor row and is never approvable."},"ProposalRejectIn":{"properties":{"reason":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Reason"}},"type":"object","title":"ProposalRejectIn"},"ProvisionAgentSandboxRequest":{"properties":{"sandboxType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sandboxtype"},"region":{"type":"string","title":"Region","default":"ap-south"},"recreateDeleted":{"type":"boolean","title":"Recreatedeleted","default":true}},"type":"object","title":"ProvisionAgentSandboxRequest"},"PushRequest":{"properties":{"companyGuid":{"type":"string","maxLength":64,"minLength":1,"pattern":"^[^/]+$","title":"Companyguid"},"companyName":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Companyname"},"records":{"items":{"$ref":"#/components/schemas/TallyRecordIn"},"type":"array","maxItems":500,"minItems":1,"title":"Records"},"cursors":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Cursors"},"epoch":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Epoch"},"ownerVersion":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Ownerversion"},"batchKey":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Batchkey"},"resetGeneration":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Resetgeneration"}},"type":"object","required":["companyGuid","records"],"title":"PushRequest"},"PushResponse":{"properties":{"batchId":{"type":"string","title":"Batchid"},"recordCount":{"type":"integer","title":"Recordcount"},"status":{"type":"string","title":"Status"}},"type":"object","required":["batchId","recordCount","status"],"title":"PushResponse","description":"202: the batch is durably accepted and queued for the mirror.\n\nAcceptance, not processing: the agent may advance its AlterID cursor on\nthis answer, because the batch row and its payload are committed and a\nworker (re)processes it until it lands — and a re-push of the same records\nis a no-op end to end (content-hash dedupe)."},"ReadChatsBody":{"properties":{"chats":{"items":{"$ref":"#/components/schemas/ChatToRead"},"type":"array","title":"Chats","default":[]}},"type":"object","title":"ReadChatsBody","description":"POST /chats-read: malformed bodies are a 422 before the service runs."},"ReconcileChunkRequest":{"properties":{"recordType":{"type":"string","title":"Recordtype"},"passNo":{"type":"integer","maximum":2.0,"minimum":1.0,"title":"Passno"},"chunkNo":{"type":"integer","minimum":0.0,"title":"Chunkno"},"windowStart":{"type":"integer","minimum":0.0,"title":"Windowstart"},"windowEnd":{"type":"integer","minimum":0.0,"title":"Windowend"},"identities":{"items":{"$ref":"#/components/schemas/ReconcileIdentity"},"type":"array","maxItems":500,"title":"Identities"}},"type":"object","required":["recordType","passNo","chunkNo","windowStart","windowEnd","identities"],"title":"ReconcileChunkRequest"},"ReconcileCommitRequest":{"properties":{"requestId":{"type":"string","maxLength":100,"minLength":1,"title":"Requestid"},"finalUpper":{"additionalProperties":{"type":"integer"},"type":"object","title":"Finalupper"}},"type":"object","required":["requestId","finalUpper"],"title":"ReconcileCommitRequest"},"ReconcileIdentity":{"properties":{"guid":{"type":"string","maxLength":180,"minLength":1,"title":"Guid"},"alterId":{"type":"integer","minimum":1.0,"title":"Alterid"}},"type":"object","required":["guid","alterId"],"title":"ReconcileIdentity"},"ReconcileStartRequest":{"properties":{"companyGuid":{"type":"string","maxLength":64,"minLength":1,"pattern":"^[^/]+$","title":"Companyguid"},"requestId":{"type":"string","maxLength":100,"minLength":1,"title":"Requestid"},"reason":{"type":"string","enum":["periodic","restore","resync","schemaUpgrade","takeover"],"title":"Reason"},"typesUpper":{"additionalProperties":{"type":"integer"},"type":"object","title":"Typesupper"}},"type":"object","required":["companyGuid","requestId","reason","typesUpper"],"title":"ReconcileStartRequest"},"RenewReviewCodeRequest":{"properties":{"rotate":{"type":"boolean","title":"Rotate","default":false}},"type":"object","title":"RenewReviewCodeRequest"},"RerunStageRequest":{"properties":{"stage":{"type":"string","enum":["brand_read","direction","research","pillars","plan","posts"],"title":"Stage"},"only":{"type":"boolean","title":"Only","default":false},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"}},"type":"object","required":["stage"],"title":"RerunStageRequest"},"ResolvePreviewOut":{"properties":{"source":{"type":"string","title":"Source"},"strategy":{"type":"string","title":"Strategy"},"modelTier":{"type":"string","title":"Modeltier"},"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"},"candidates":{"items":{"$ref":"#/components/schemas/PreviewCandidateOut"},"type":"array","title":"Candidates"},"chosenModel":{"type":"string","title":"Chosenmodel"}},"type":"object","required":["source","strategy","modelTier","candidates","chosenModel"],"title":"ResolvePreviewOut","description":"What ``invoke`` would resolve for a given request shape — an operator\n'explain' for the routing table."},"RuntimeToolInvokeRequest":{"properties":{"slotId":{"type":"string","maxLength":100,"minLength":1,"title":"Slotid"},"verb":{"type":"string","maxLength":120,"minLength":1,"title":"Verb"},"arguments":{"additionalProperties":true,"type":"object","title":"Arguments"},"requestKey":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Requestkey"}},"type":"object","required":["slotId","verb"],"title":"RuntimeToolInvokeRequest","description":"CamelCase REST request body for ``POST /v1/runtime/tools/invoke``."},"SendAudioBody":{"properties":{"type":{"type":"string","const":"audio","title":"Type","default":"audio"},"to":{"type":"string","title":"To"},"media":{"type":"string","title":"Media","description":"Public URL of the audio file"},"quoted":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quoted","description":"Message ID to reply to"},"quoted_sender":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quoted Sender","description":"Quoted message's sender (digits) — attributes the reply in groups"},"quoted_from_me":{"type":"boolean","title":"Quoted From Me","description":"True when the quoted message was sent by us","default":false}},"type":"object","required":["to","media"],"title":"SendAudioBody"},"SendDocumentBody":{"properties":{"type":{"type":"string","const":"document","title":"Type","default":"document"},"to":{"type":"string","title":"To"},"media":{"type":"string","title":"Media","description":"Public URL of the document"},"filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename"},"caption":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caption"},"mimetype":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mimetype"},"quoted":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quoted","description":"Message ID to reply to"},"quoted_sender":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quoted Sender","description":"Quoted message's sender (digits) — attributes the reply in groups"},"quoted_from_me":{"type":"boolean","title":"Quoted From Me","description":"True when the quoted message was sent by us","default":false},"mentions":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Mentions","description":"Phone digits of the people @-mentioned in the text/caption"}},"type":"object","required":["to","media"],"title":"SendDocumentBody"},"SendImageBody":{"properties":{"type":{"type":"string","const":"image","title":"Type","default":"image"},"to":{"type":"string","title":"To"},"media":{"type":"string","title":"Media","description":"Public URL of the image"},"caption":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caption"},"quoted":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quoted","description":"Message ID to reply to"},"quoted_sender":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quoted Sender","description":"Quoted message's sender (digits) — attributes the reply in groups"},"quoted_from_me":{"type":"boolean","title":"Quoted From Me","description":"True when the quoted message was sent by us","default":false},"mentions":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Mentions","description":"Phone digits of the people @-mentioned in the text/caption"}},"type":"object","required":["to","media"],"title":"SendImageBody"},"SendLiveLocationBody":{"properties":{"type":{"type":"string","const":"live_location","title":"Type","default":"live_location"},"to":{"type":"string","title":"To"},"latitude":{"type":"number","title":"Latitude"},"longitude":{"type":"number","title":"Longitude"},"duration":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration","description":"Duration in seconds"},"accuracy":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Accuracy"},"speed":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Speed"}},"type":"object","required":["to","latitude","longitude"],"title":"SendLiveLocationBody"},"SendLocationBody":{"properties":{"type":{"type":"string","const":"location","title":"Type","default":"location"},"to":{"type":"string","title":"To"},"latitude":{"type":"number","title":"Latitude"},"longitude":{"type":"number","title":"Longitude"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address"}},"type":"object","required":["to","latitude","longitude"],"title":"SendLocationBody"},"SendTextBody":{"properties":{"type":{"type":"string","const":"text","title":"Type","default":"text"},"to":{"type":"string","title":"To"},"body":{"type":"string","title":"Body"},"quoted":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quoted","description":"Message ID to reply to"},"quoted_sender":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quoted Sender","description":"Quoted message's sender (digits) — attributes the reply in groups"},"quoted_from_me":{"type":"boolean","title":"Quoted From Me","description":"True when the quoted message was sent by us","default":false},"quoted_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quoted Text","description":"Short preview of the quoted message for clients without the original cached"},"mentions":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Mentions","description":"Phone digits of the people @-mentioned in the text/caption"}},"type":"object","required":["to","body"],"title":"SendTextBody"},"SendVideoBody":{"properties":{"type":{"type":"string","const":"video","title":"Type","default":"video"},"to":{"type":"string","title":"To"},"media":{"type":"string","title":"Media","description":"Public URL of the video"},"caption":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caption"},"quoted":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quoted","description":"Message ID to reply to"},"quoted_sender":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quoted Sender","description":"Quoted message's sender (digits) — attributes the reply in groups"},"quoted_from_me":{"type":"boolean","title":"Quoted From Me","description":"True when the quoted message was sent by us","default":false},"mentions":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Mentions","description":"Phone digits of the people @-mentioned in the text/caption"}},"type":"object","required":["to","media"],"title":"SendVideoBody"},"SendWhatsAppResponse":{"properties":{"sent":{"type":"boolean","title":"Sent"},"queued":{"type":"boolean","title":"Queued","default":false},"unconfirmed":{"type":"boolean","title":"Unconfirmed","default":false},"permanent":{"type":"boolean","title":"Permanent","default":false},"retryable":{"type":"boolean","title":"Retryable","default":false},"messageId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Messageid"},"outboxId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outboxid"},"etaSeconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Etaseconds"},"etaLimit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Etalimit"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["sent"],"title":"SendWhatsAppResponse"},"SessionDeleteRequest":{"properties":{"workspaceId":{"type":"string","format":"uuid","title":"Workspaceid"},"sessionId":{"type":"string","format":"uuid","title":"Sessionid"}},"type":"object","required":["workspaceId","sessionId"],"title":"SessionDeleteRequest"},"SessionGetRequest":{"properties":{"workspaceId":{"type":"string","format":"uuid","title":"Workspaceid"},"sessionId":{"type":"string","format":"uuid","title":"Sessionid"},"beforeSeq":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Beforeseq"}},"type":"object","required":["workspaceId","sessionId"],"title":"SessionGetRequest"},"SessionsListRequest":{"properties":{"workspaceId":{"type":"string","format":"uuid","title":"Workspaceid"},"lens":{"type":"string","title":"Lens"},"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},"type":"object","required":["workspaceId","lens"],"title":"SessionsListRequest"},"SetRuntimeModeRequest":{"properties":{"mode":{"type":"string","enum":["native","local_turbo","agent37"],"title":"Mode"},"agent37Region":{"anyOf":[{"type":"string","enum":["ap-south","us","eu"]},{"type":"null"}],"title":"Agent37Region"}},"type":"object","required":["mode"],"title":"SetRuntimeModeRequest"},"StaffUploadFile":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"dataBase64":{"type":"string","minLength":1,"title":"Database64"}},"type":"object","required":["name","dataBase64"],"title":"StaffUploadFile"},"Start":{"properties":{"email":{"type":"string","maxLength":254,"format":"email","title":"Email"},"requestId":{"type":"string","format":"uuid","title":"Requestid"},"returnPath":{"type":"string","maxLength":255,"title":"Returnpath","default":"/"}},"additionalProperties":false,"type":"object","required":["email","requestId"],"title":"Start"},"StartBody":{"properties":{"returnTo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Returnto"}},"type":"object","title":"StartBody"},"StartHireRequest":{"properties":{"workspaceId":{"type":"string","format":"uuid","title":"Workspaceid"},"brandName":{"type":"string","maxLength":120,"minLength":1,"title":"Brandname"},"websiteUrl":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Websiteurl"},"emailedAnswers":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Emailedanswers"},"researchDepth":{"anyOf":[{"type":"string","enum":["light","standard","deep"]},{"type":"null"}],"title":"Researchdepth","default":"standard"},"hold":{"type":"boolean","title":"Hold","default":false},"managerUserId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Manageruserid"},"useGivenPlan":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Usegivenplan"}},"type":"object","required":["workspaceId","brandName"],"title":"StartHireRequest"},"StartPlatformOAuthRequest":{"properties":{"returnTo":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Returnto","default":"/admin/social-media-manager"}},"type":"object","title":"StartPlatformOAuthRequest"},"StopChatBody":{"properties":{"id":{"type":"string","title":"Id"}},"type":"object","required":["id"],"title":"StopChatBody"},"StopStageRequest":{"properties":{"stage":{"type":"string","enum":["brand_read","direction","research","plan","posts"],"title":"Stage"},"reason":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Reason"}},"type":"object","required":["stage"],"title":"StopStageRequest"},"SuggestionsRequest":{"properties":{"workspaceId":{"type":"string","format":"uuid","title":"Workspaceid"},"lens":{"type":"string","title":"Lens"}},"type":"object","required":["workspaceId","lens"],"title":"SuggestionsRequest"},"TallyRecordIn":{"properties":{"recordType":{"type":"string","maxLength":40,"minLength":1,"title":"Recordtype"},"guid":{"type":"string","maxLength":180,"minLength":1,"title":"Guid"},"alterId":{"type":"integer","minimum":0.0,"title":"Alterid"},"payload":{"additionalProperties":true,"type":"object","title":"Payload"}},"type":"object","required":["recordType","guid","alterId","payload"],"title":"TallyRecordIn"},"Task":{"properties":{"kind":{"type":"string","enum":["insightsTurn","askTurn","broadcast"],"title":"Kind"},"id":{"type":"string","format":"uuid","title":"Id"},"rev":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rev"}},"type":"object","required":["kind","id"],"title":"Task"},"TierConsumerOut":{"properties":{"appId":{"type":"string","title":"Appid"},"appName":{"type":"string","title":"Appname"},"decisionType":{"type":"string","title":"Decisiontype"},"modelTier":{"type":"string","title":"Modeltier"},"stakesCeiling":{"type":"string","title":"Stakesceiling"},"describe":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Describe"}},"type":"object","required":["appId","appName","decisionType","modelTier","stakesCeiling"],"title":"TierConsumerOut","description":"One app decision that runs on a model tier.\n\nRead from the app manifests (``autonomy[].model_tier``), not the database:\nthe tier is a *declaration* an app makes, and the routing table answers it.\nWithout this the operator surface shows which model a tier resolves to but\nnever who is standing behind that tier — so 'change the reasoning route'\nreads as a free action when it re-proves every Crucible grant from cold\nstart."},"TierLeaderboardOut":{"properties":{"tier":{"type":"string","title":"Tier"},"gradable":{"type":"boolean","title":"Gradable","default":true},"sweptAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sweptat"},"entries":{"items":{"$ref":"#/components/schemas/LeaderboardEntryOut"},"type":"array","title":"Entries"},"production":{"items":{"$ref":"#/components/schemas/ProductionStatOut"},"type":"array","title":"Production","default":[]},"productionWindowDays":{"type":"integer","title":"Productionwindowdays","default":30},"thresholdsBreached":{"type":"boolean","title":"Thresholdsbreached","default":false},"thresholdWindowDays":{"type":"integer","title":"Thresholdwindowdays","default":7},"staleSuite":{"type":"boolean","title":"Stalesuite","default":false},"agedAfterDays":{"type":"integer","title":"Agedafterdays","default":14},"screening":{"anyOf":[{"$ref":"#/components/schemas/TierScreeningOut"},{"type":"null"}]},"thresholds":{"anyOf":[{"$ref":"#/components/schemas/TierThresholdsOut"},{"type":"null"}]}},"type":"object","required":["tier","entries"],"title":"TierLeaderboardOut"},"TierReasoningOut":{"properties":{"tier":{"type":"string","title":"Tier"},"mode":{"type":"string","title":"Mode"},"defaultMode":{"type":"string","title":"Defaultmode"},"overridden":{"type":"boolean","title":"Overridden"},"updatedBy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updatedby"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updatedat"}},"type":"object","required":["tier","mode","defaultMode","overridden"],"title":"TierReasoningOut","description":"One tier's reasoning mode, as the gateway will apply it.\n\n``mode`` is the effective value; ``defaultMode`` is what the tier ships\nwith; ``overridden`` says which of the two ``mode`` came from, so the UI\ncan offer \"back to default\" without comparing strings."},"TierReasoningUpdate":{"properties":{"mode":{"anyOf":[{"type":"string","enum":["off","off_then_default","default"]},{"type":"null"}],"title":"Mode"}},"type":"object","required":["mode"],"title":"TierReasoningUpdate","description":"Set a tier's mode. ``null`` removes the override — the tier follows its\ncode default again."},"TierScreeningIn":{"properties":{"blendedPriceCeilingUsdPerM":{"type":"number","maximum":200.0,"exclusiveMinimum":0.0,"title":"Blendedpriceceilingusdperm"},"contextMinTokens":{"type":"integer","maximum":2000000.0,"minimum":1000.0,"title":"Contextmintokens"}},"type":"object","required":["blendedPriceCeilingUsdPerM","contextMinTokens"],"title":"TierScreeningIn","description":"Bounds server-enforced: a raised ceiling admits pricier models into\nthe sweep's audit pool, i.e. it is a spending decision — a typo must be\na 422, same contract as the budget."},"TierScreeningOut":{"properties":{"zdrRequired":{"type":"boolean","title":"Zdrrequired","default":true},"structuredOutputRequired":{"type":"boolean","title":"Structuredoutputrequired"},"blendedPriceCeilingUsdPerM":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Blendedpriceceilingusdperm"},"contextMinTokens":{"type":"integer","title":"Contextmintokens"},"source":{"type":"string","title":"Source"},"updatedBy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updatedby"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updatedat"}},"type":"object","required":["structuredOutputRequired","contextMinTokens","source"],"title":"TierScreeningOut","description":"One tier's effective pre-filter rules. The first field is correctness\n(code, display-only); the other two are policy, operator-overridable via\nthe PUT endpoint. ``source`` says whether any override row exists."},"TierThresholdsIn":{"properties":{"escalationRateThreshold":{"type":"number","maximum":0.95,"minimum":0.01,"title":"Escalationratethreshold"},"degradeRateThreshold":{"type":"number","maximum":0.95,"minimum":0.01,"title":"Degraderatethreshold"},"minCalls":{"type":"integer","maximum":100000.0,"minimum":10.0,"title":"Mincalls"}},"type":"object","required":["escalationRateThreshold","degradeRateThreshold","minCalls"],"title":"TierThresholdsIn","description":"Bounds server-enforced: lowering thresholds fires more audits and\nalerts (spend and noise); raising them can mask a degrading route. Either\nway a typo must be a 422, not a policy change."},"TierThresholdsOut":{"properties":{"escalationRateThreshold":{"type":"number","title":"Escalationratethreshold"},"degradeRateThreshold":{"type":"number","title":"Degraderatethreshold"},"minCalls":{"type":"integer","title":"Mincalls"},"windowDays":{"type":"integer","title":"Windowdays"},"source":{"type":"string","title":"Source"},"updatedBy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updatedby"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updatedat"}},"type":"object","required":["escalationRateThreshold","degradeRateThreshold","minCalls","windowDays","source"],"title":"TierThresholdsOut","description":"One tier's effective sustained-degradation thresholds — when the\nweekly scan reacts (a proposal on gradable tiers, a slate-less alert on\nungraded ones). Rates are fractions (0.35 = 35%)."},"ToggleWorkspaceHiringRequest":{"properties":{"enabled":{"type":"boolean","title":"Enabled","default":true},"deskId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Deskid"},"autoProvisionSandbox":{"type":"boolean","title":"Autoprovisionsandbox","default":false}},"type":"object","title":"ToggleWorkspaceHiringRequest"},"TurnRequest":{"properties":{"workspaceId":{"type":"string","format":"uuid","title":"Workspaceid"},"sessionId":{"type":"string","format":"uuid","title":"Sessionid"},"turnId":{"type":"string","format":"uuid","title":"Turnid"},"rev":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rev"}},"type":"object","required":["workspaceId","sessionId","turnId"],"title":"TurnRequest"},"UnlockBody":{"properties":{"password":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Password"},"remember":{"type":"boolean","title":"Remember","default":true}},"type":"object","title":"UnlockBody"},"UpdateUserRoleRequest":{"properties":{"jobTitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Jobtitle"},"accessRole":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accessrole"}},"type":"object","title":"UpdateUserRoleRequest"},"UpdateWorcflowRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Config"}},"type":"object","title":"UpdateWorcflowRequest"},"UpdateWorkspaceRequest":{"properties":{"name":{"type":"string","title":"Name"}},"type":"object","required":["name"],"title":"UpdateWorkspaceRequest"},"UploadFilesRequest":{"properties":{"files":{"items":{"$ref":"#/components/schemas/StaffUploadFile"},"type":"array","maxItems":10,"minItems":1,"title":"Files"},"triggerRead":{"type":"boolean","title":"Triggerread","default":false}},"type":"object","required":["files"],"title":"UploadFilesRequest"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VoiceNotesUpdate":{"properties":{"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["enabled"],"title":"VoiceNotesUpdate","description":"Platform-operator request to turn reading voice notes on or off for a\nworkspace."},"WhatsAppModeUpdate":{"properties":{"mode":{"type":"string","enum":["read_only","read_write"],"title":"Mode"}},"type":"object","required":["mode"],"title":"WhatsAppModeUpdate","description":"Admin request to flip a connection's send posture.\n\n``read_only`` never sends (lower ban risk); ``read_write`` sends under the\nanti-ban guardrails. See services/whatsapp_service.set_send_mode."},"WhatsAppMonitoringUpdate":{"properties":{"lineType":{"anyOf":[{"type":"string","enum":["personal","office"]},{"type":"null"}],"title":"Linetype"},"autoMonitorGroups":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Automonitorgroups"},"contributionClass":{"anyOf":[{"type":"string","enum":["workspace","private"]},{"type":"null"}],"title":"Contributionclass"}},"type":"object","title":"WhatsAppMonitoringUpdate","description":"Patch the workspace's WhatsApp auto-monitoring posture.\n\nEvery field is optional — an omitted one is left as-is. See\nservices/whatsapp_service.maybe_auto_connect_chat for what each decides."},"WhatsAppNumberLimitUpdate":{"properties":{"limit":{"type":"integer","title":"Limit"}},"type":"object","required":["limit"],"title":"WhatsAppNumberLimitUpdate","description":"Platform-operator request to set how many WhatsApp numbers a workspace\nmay link. Clamped to 1..10 by the route, not refused."},"WhatsAppPasskeySubmit":{"properties":{"credential":{"additionalProperties":true,"type":"object","title":"Credential"}},"type":"object","required":["credential"],"title":"WhatsAppPasskeySubmit","description":"The PublicKeyCredential JSON the worcflow browser extension returns\nafter signing WhatsApp's challenge on whatsapp.com. Passed through to the\ngateway as-is; the gateway checks its shape before WhatsApp sees it."},"WhatsAppSendLimits":{"properties":{"perMinute":{"type":"integer","title":"Perminute"},"perHour":{"type":"integer","title":"Perhour"},"perDay":{"type":"integer","title":"Perday"},"recipientsPerDay":{"type":"integer","title":"Recipientsperday"}},"type":"object","required":["perMinute","perHour","perDay","recipientsPerDay"],"title":"WhatsAppSendLimits","description":"Operator-set send limits for one number, replacing the warm-up ladder.\n\nEach is >= 1 and at most the guard's hard ceiling, and per minute <= per\nhour <= per day. See whatsapp_send_guard.SEND_LIMIT_CEILING."},"WhatsAppSendLimitsUpdate":{"properties":{"limits":{"anyOf":[{"$ref":"#/components/schemas/WhatsAppSendLimits"},{"type":"null"}]}},"type":"object","required":["limits"],"title":"WhatsAppSendLimitsUpdate","description":"Platform-operator request to set a number's send limits; ``limits``\nnull hands it back to the automatic warm-up ladder."},"WorkingSheetBody":{"properties":{"runIds":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":24,"minItems":1,"title":"Runids"},"lineIds":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":5000},{"type":"null"}],"title":"Lineids"},"filterLabel":{"anyOf":[{"type":"string","maxLength":400},{"type":"null"}],"title":"Filterlabel"},"grouped":{"type":"boolean","title":"Grouped","default":false},"sourceIds":{"anyOf":[{"items":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"type":"array","maxItems":48},{"type":"null"}],"title":"Sourceids"}},"type":"object","required":["runIds"],"title":"WorkingSheetBody","description":"What the sheet's *Download sheet* asks for (Fizzy #653 §3)."},"WorkspaceHealthResponse":{"properties":{"workspaceId":{"type":"string","format":"uuid","title":"Workspaceid"},"messageCount":{"type":"integer","title":"Messagecount"},"commitmentCount":{"type":"integer","title":"Commitmentcount"},"channels":{"items":{"$ref":"#/components/schemas/ChannelHealth"},"type":"array","title":"Channels"}},"type":"object","required":["workspaceId","messageCount","commitmentCount","channels"],"title":"WorkspaceHealthResponse"},"WorkspaceSourceSummary":{"properties":{"source":{"type":"string","title":"Source"},"status":{"type":"string","title":"Status"},"lastSyncedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Lastsyncedat"},"syncError":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Syncerror"}},"type":"object","required":["source","status"],"title":"WorkspaceSourceSummary"},"WorkspaceSyncStatusResponse":{"properties":{"workspaceId":{"type":"string","format":"uuid","title":"Workspaceid"},"totalMailboxes":{"type":"integer","title":"Totalmailboxes"},"backfilling":{"type":"integer","title":"Backfilling"},"live":{"type":"integer","title":"Live"},"failed":{"type":"integer","title":"Failed"},"totalMessagesBackfilled":{"type":"integer","title":"Totalmessagesbackfilled"},"totalMessagesSynced":{"type":"integer","title":"Totalmessagessynced"},"commitmentsFound":{"type":"integer","title":"Commitmentsfound"},"mailboxes":{"items":{"$ref":"#/components/schemas/MailboxSyncStatusResponse"},"type":"array","title":"Mailboxes"}},"type":"object","required":["workspaceId","totalMailboxes","backfilling","live","failed","totalMessagesBackfilled","totalMessagesSynced","commitmentsFound","mailboxes"],"title":"WorkspaceSyncStatusResponse"},"WorkspaceUser":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"email":{"type":"string","title":"Email"},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Displayname"},"jobTitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Jobtitle"},"accessRole":{"type":"string","title":"Accessrole","default":"member"},"status":{"type":"string","title":"Status"},"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Createdat"},"inviteEmailSent":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Inviteemailsent"},"reviewCode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reviewcode"},"reviewCodeExpiresAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Reviewcodeexpiresat"}},"type":"object","required":["id","email","status"],"title":"WorkspaceUser"},"WriteAnswer":{"properties":{"operationId":{"type":"string","maxLength":64,"minLength":1,"title":"Operationid"},"outcome":{"type":"string","enum":["created","already","refused","unknown"],"title":"Outcome"},"tallyGuid":{"anyOf":[{"type":"string","maxLength":180},{"type":"null"}],"title":"Tallyguid"},"masterId":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Masterid"},"message":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Message"}},"type":"object","required":["operationId","outcome"],"title":"WriteAnswer","description":"What Tally said about one entry of a send."},"_CompleteUploadInput":{"properties":{"uploadToken":{"type":"string","maxLength":4096,"title":"Uploadtoken"}},"additionalProperties":false,"type":"object","required":["uploadToken"],"title":"_CompleteUploadInput"},"_DirectUploadInput":{"properties":{"mediaType":{"type":"string","title":"Mediatype"},"purpose":{"type":"string","title":"Purpose","default":"broadcast"},"filename":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Filename"},"contentType":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Contenttype"},"sizeBytes":{"type":"integer","minimum":0.0,"title":"Sizebytes"}},"additionalProperties":false,"type":"object","required":["mediaType","sizeBytes"],"title":"_DirectUploadInput"},"app__connectors__microsoft__routes__StartOAuthBody":{"properties":{"returnTo":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Returnto"}},"additionalProperties":false,"type":"object","title":"StartOAuthBody","description":"`{returnTo}` — the page the browser comes back to. Anything else is a 422."},"app__connectors__slack__routes__StartOAuthBody":{"properties":{"returnTo":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Returnto"}},"additionalProperties":false,"type":"object","title":"StartOAuthBody","description":"`{returnTo}` — the page the browser comes back to. Anything else is a 422."},"app__connectors__zoho__routes__StartOAuthBody":{"properties":{"returnTo":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Returnto"},"switchAccount":{"type":"boolean","title":"Switchaccount","default":false},"allowWrites":{"type":"boolean","title":"Allowwrites","default":false}},"additionalProperties":false,"type":"object","title":"StartOAuthBody","description":"`{returnTo, switchAccount, allowWrites}` — the page the browser comes back\nto, whether to start from Zoho's sign-out so another account can be chosen,\nand whether to ask for the product's writes too.\nAnything else is a 422."},"app__connectors__zoom__routes__StartOAuthBody":{"properties":{"returnTo":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Returnto"}},"additionalProperties":false,"type":"object","title":"StartOAuthBody"},"app__schemas__admin__FirefliesResyncRequest":{"properties":{"backfillDays":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Backfilldays","default":90}},"type":"object","title":"FirefliesResyncRequest"},"app__schemas__sync__FirefliesResyncRequest":{"properties":{"backfillDays":{"type":"integer","title":"Backfilldays","default":90}},"type":"object","title":"FirefliesResyncRequest"}}}}