{"openapi":"3.1.0","info":{"title":"privateassistant.ai portal","version":"0.1.0"},"paths":{"/signup":{"get":{"summary":"Signup Form","operationId":"signup_form_signup_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"summary":"Signup Submit","operationId":"signup_submit_signup_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_signup_submit_signup_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/":{"get":{"summary":"Signup Form","operationId":"signup_form__get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/login":{"get":{"summary":"Login Page","description":"Skip the intermediate landing page — go straight into Keycloak.\nThe forgot-password link from the old template now lives in the\nKeycloak login form itself, so there's nothing portal-side to render.\n\n`next` (the \"Try again\" link of a sign-in that did not complete, #843)\nis kept only when it is a safe relative path (app/safe_redirect); the\ncallback checks it once more when it pops it.","operationId":"login_page_login_get","parameters":[{"name":"next","in":"query","required":false,"schema":{"type":"string","default":"","title":"Next"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/start":{"get":{"summary":"Auth Start","operationId":"auth_start_auth_start_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/auth/sso-relay":{"get":{"summary":"Auth Sso Relay","description":"Re-run OIDC against Keycloak so the realm SSO cookie is refreshed,\nthen bounce the browser to `next`.\n\nThe portal's session cookie can outlive the realm's SSO cookie. When\nthat happens, links into Keycloak-fronted apps (the account console,\nNextcloud OIDC, etc.) hit the login form even though the user is\n\"logged in\" to the portal. Routing through a fresh /authorize round-\ntrip re-establishes KEYCLOAK_IDENTITY/KEYCLOAK_SESSION on the auth\ndomain so the destination's silent SSO check succeeds.\n\nOnly a relative path on the portal is kept as `next` (app/safe_redirect:\nnot `//host`, not `/\\host`, no scheme, no CR/LF) — this must not become\nan open redirector. It used to accept anything starting with `/`, which\nlet `//evil.example` send a freshly signed-in person off-site. No caller\npasses an absolute URL (the 401 handler, /join and /invite all pass\npaths), so the old Keycloak/portal absolute-URL allowance is gone too.","operationId":"auth_sso_relay_auth_sso_relay_get","parameters":[{"name":"next","in":"query","required":false,"schema":{"type":"string","default":"","title":"Next"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/callback":{"get":{"summary":"Auth Callback","operationId":"auth_callback_auth_callback_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/logout":{"get":{"summary":"Logout","operationId":"logout_logout_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/check/email":{"post":{"summary":"Check Email","description":"Resolve the final `*@privateassistant.ai` address + availability.","operationId":"check_email_check_email_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_check_email_check_email_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/check/company-alias":{"post":{"summary":"Check Company Alias","operationId":"check_company_alias_check_company_alias_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_check_company_alias_check_company_alias_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account":{"get":{"summary":"Account Page","operationId":"account_page_account_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"summary":"Account Submit","operationId":"account_submit_account_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_account_submit_account_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/how-it-works":{"post":{"summary":"Account How It Works","description":"\"Got it, hide\" (hide=1) and \"How it works\" (hide=0) on /account's\nexplainer: a signed cookie per person (workspaces.hidden_value), 365\ndays, no database row — as the passkey offer's \"Not now\"\n(account_security.passkey_later). A bad Origin changes nothing and gets\nthe same way back.","operationId":"account_how_it_works_account_how_it_works_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_account_how_it_works_account_how_it_works_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/profile":{"get":{"summary":"Profile Page","description":"Personal-details settings, surfaced from the avatar menu in the\nheader rather than buried at the bottom of /account. POST still goes\nto /account so the existing handler doesn't need to change.","operationId":"profile_page_account_profile_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/account/company/invites":{"post":{"summary":"Company Invite Create","operationId":"company_invite_create_account_company_invites_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/company/invites/{invite_id}/revoke":{"post":{"summary":"Company Invite Revoke","operationId":"company_invite_revoke_account_company_invites__invite_id__revoke_post","parameters":[{"name":"invite_id","in":"path","required":true,"schema":{"type":"integer","title":"Invite Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/agents/add":{"post":{"summary":"Account Add Agent","description":"\"New workspace…\" on /account: provision a workspace (a Hermes\ncontainer, with its main bot) for the logged-in member: their first one\n(an invited member has none), or a second (third, …) one.\n\nA SECOND one is gated on `users.multi_agent_allowed`; a first one is not\n(`customer[\"agent_id\"]` is the member's lowest-id agent, None without\none). The actual work is in `tenant_api.create_agent_for_existing_customer`,\nwhich applies the same rule — this endpoint is a thin auth wrapper that\nforwards form data and translates exceptions to a redirect with a flash\nerror.","operationId":"account_add_agent_account_agents_add_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/claude/toggle":{"post":{"summary":"Toggle","description":"The person's own switch. On is refused while the organization is off\nor a manager turned them off (checked here, and again in the store).","operationId":"toggle_account_claude_toggle_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_toggle_account_claude_toggle_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/claude/sign-out":{"post":{"summary":"Sign Out","description":"D13, in this order:\n1. the watermark, on its own committed transaction: the door refuses\n   every token signed in before it, whatever happens next. When it\n   cannot be written NOTHING else is done (the card says so);\n2. Keycloak: the consents of both clients and the sessions holding\n   either (hygiene; each failed step is named);\n3. this browser is signed out of the platform (the card's words): the\n   portal session ends (auth.end_portal_session: its record, the\n   cookie) and Keycloak's own session through its end-session, back to\n   /login. The result (and which Keycloak step failed) waits in the\n   new cookie session as `next_after_login`: the card shows it once\n   the person has signed in again.","operationId":"sign_out_account_claude_sign_out_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/organization/{organization_id}/claude":{"get":{"summary":"Org Page","operationId":"org_page_organization__organization_id__claude_get","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/claude/enable":{"post":{"summary":"Org Enable","description":"D4 + D14: a manager of THIS organization agrees to the text shown.","operationId":"org_enable_organization__organization_id__claude_enable_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_org_enable_organization__organization_id__claude_enable_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/claude/disable":{"post":{"summary":"Org Disable","description":"Off: managers and platform admins (D14). Takes effect on the next call.","operationId":"org_disable_organization__organization_id__claude_disable_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/claude/people/{user_id}/off":{"post":{"summary":"Person Off","operationId":"person_off_organization__organization_id__claude_people__user_id__off_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/claude/people/{user_id}/on":{"post":{"summary":"Person On","operationId":"person_on_organization__organization_id__claude_people__user_id__on_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/employee-mcp/bots/list":{"post":{"summary":"Bots List","operationId":"bots_list_internal_employee_mcp_bots_list_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/internal/employee-mcp/bots/ask":{"post":{"summary":"Bots Ask","operationId":"bots_ask_internal_employee_mcp_bots_ask_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/internal/employee-mcp/bots/reply":{"post":{"summary":"Bots Reply","operationId":"bots_reply_internal_employee_mcp_bots_reply_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/internal/employee-mcp/bots/task":{"post":{"summary":"Bots Task","operationId":"bots_task_internal_employee_mcp_bots_task_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/internal/employee-mcp/bots/task-status":{"post":{"summary":"Bots Task Status","operationId":"bots_task_status_internal_employee_mcp_bots_task_status_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/x-connector/call":{"post":{"summary":"X Connector Call","operationId":"x_connector_call_api_x_connector_call_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/agent/{agent_id}/claude/{persona_id}":{"post":{"summary":"Save","operationId":"save_account_agent__agent_id__claude__persona_id__post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","title":"Persona Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_save_account_agent__agent_id__claude__persona_id__post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/memory":{"get":{"summary":"Account Memory View","operationId":"account_memory_view_account_memory_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"summary":"Account Memory Save","operationId":"account_memory_save_account_memory_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_account_memory_save_account_memory_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/security":{"get":{"summary":"Security Page","description":"Render the security page. Two parallel API calls (credentials +\ndevice sessions) — failures degrade to empty lists rather than a\nblocking error so password-change keeps working even if device-list\nis wedged.","operationId":"security_page_account_security_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/account/security/configure":{"get":{"summary":"Trigger Kc Action","description":"Kick off a Keycloak app-initiated action (Authenticator setup,\nrecovery codes, WebAuthn key, ...).\n\nRouted through authlib's ``authorize_redirect`` so the OAuth state +\nPKCE verifier land in the session — the regular ``/auth/callback``\nhandler can then validate the response without a CSRF mismatch.\nWithout this the kc_action= URL would be hand-built, the session\nstate would be empty, and the callback would 500 on\n``MismatchingStateError``.","operationId":"trigger_kc_action_account_security_configure_get","parameters":[{"name":"action","in":"query","required":true,"schema":{"type":"string","title":"Action"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/security/passkey/add":{"get":{"summary":"Add Passkey","description":"Start Keycloak's passkey registration DIRECTLY: the portal client's\nnormal authorize (authlib's state + PKCE in the session, as every sign-in)\nwith kc_action=webauthn-register-passwordless, so the browser/OS shows its\n\"save passkey\" prompt at once. Back through /auth/callback to\nADDED_PATH; that sign-in re-reads the credential (REGISTERING_FLAG).","operationId":"add_passkey_account_security_passkey_add_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/passkey-offer/later":{"post":{"summary":"Passkey Later","description":"\"Not now\": a signed cookie for 30 days (no database row, no Keycloak\nwrite). Back to the page the banner was on.","operationId":"passkey_later_account_passkey_offer_later_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_passkey_later_account_passkey_offer_later_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/security/passkeys/{cred_id}/remove":{"post":{"summary":"Remove Passkey","description":"Remove ONE of the signed-in person's own passkeys (admin API). The sub\nis the session's; the id must be in that person's own passkey list.","operationId":"remove_passkey_account_security_passkeys__cred_id__remove_post","parameters":[{"name":"cred_id","in":"path","required":true,"schema":{"type":"string","title":"Cred Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/security/password":{"post":{"summary":"Change Password","operationId":"change_password_account_security_password_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_change_password_account_security_password_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/security/credentials/{cred_id}/delete":{"post":{"summary":"Delete Credential","description":"Remove a credential. Refuses to delete the password (we have no\nUI to set one immediately afterwards, and Keycloak would otherwise\nrequire an admin reset).","operationId":"delete_credential_account_security_credentials__cred_id__delete_post","parameters":[{"name":"cred_id","in":"path","required":true,"schema":{"type":"string","title":"Cred Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_delete_credential_account_security_credentials__cred_id__delete_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/security/sessions/{session_id}/revoke":{"post":{"summary":"Revoke Session","operationId":"revoke_session_account_security_sessions__session_id__revoke_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"}}}}}}},"/account/security/sessions/revoke-others":{"post":{"summary":"Revoke Other Sessions","description":"Sign out of every device except this one. Keycloak's\n``DELETE /sessions?current=false`` endpoint preserves the current\nsession so the user doesn't lose their portal login while doing the\ncleanup.","operationId":"revoke_other_sessions_account_security_sessions_revoke_others_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/security/devices/{device_id}/revoke":{"post":{"summary":"Revoke Device","description":"Sign out one of THIS person's devices: work_devices.revoke, the one\nrule the API's DELETE runs too. The portal's own Origin only.","operationId":"revoke_device_account_security_devices__device_id__revoke_post","parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"integer","title":"Device Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/agent/{agent_id}":{"get":{"summary":"Account Agent Path Redirect","description":"`/account/agent/agent-009` is the URL people type; the page itself is\n`/account/agent?agent_id=...`. Only the dashboard proxy uses the path form,\nso the obvious shape 404s — send it where the reader meant to go.\n\nThe id is validated before it reaches the Location header: an unchecked\npath segment there turns a convenience redirect into an open redirect.","operationId":"account_agent_path_redirect_account_agent__agent_id__get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/agent":{"get":{"summary":"Agent Page","operationId":"agent_page_account_agent_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/account/agent/restart":{"post":{"summary":"Agent Restart","description":"The one restart (the Actions row's Restart, and Restart now on the\npage's notice and under a Reachable from Claude switch). Same origin\nfirst; then `manage`; then, unless force=1 (Restart anyway), the\nassistant must be idle (agent_idle.busy_reason; a busy one goes back with\nrestart_busy=<code>, nothing restarted and no cooldown used); then the\ncooldown and `docker restart`. Back to `next` when it is a safe local\npath, else the assistant's page.","operationId":"agent_restart_account_agent_restart_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/agent/stop":{"post":{"summary":"Agent Stop","operationId":"agent_stop_account_agent_stop_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/agent/start":{"post":{"summary":"Agent Start","operationId":"agent_start_account_agent_start_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/agent/profile":{"post":{"summary":"Agent Profile","description":"Save the agent's USER.md profile bullets.\n\nMirrors knowledge-topics flow: write fields back to agents.yaml,\nre-render USER.md (preserving the agent's `## Context`), redirect\nback with a flash message. Container restart is not required —\nUSER.md is read by the agent on each session, not at boot.","operationId":"agent_profile_account_agent_profile_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/agent/document-storage":{"post":{"summary":"Agent Document Storage","description":"Save the per-kind storage_target overlay (private vs company).\n\nForm: `target_<kind_name>=customer|company` for each enabled kind. A\nvalue equal to the YAML's own value is stored as a no-op (we drop\nredundant overrides so the file stays minimal). Hot-reloaded by the\nprocessor — no container restart.","operationId":"agent_document_storage_account_agent_document_storage_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/agent/data-ceiling/confirm":{"get":{"summary":"Agent Data Ceiling Confirm","description":"The confirm step of a LOWERING: names the bot, says what moves (the key\nback to a cloud plan) and what stays (memory, workspace, sessions), and\ncarries the token the POST requires. Manage only.","operationId":"agent_data_ceiling_confirm_account_agent_data_ceiling_confirm_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/account/agent/data-ceiling":{"post":{"summary":"Agent Data Ceiling","description":"The bot's data ceiling (data classes, phase 2): which classes it may\nread — the line public/internal/department plus restricted and customer\nby name. MANAGE only, Origin-checked. The consequence is stated on the\npage and applied by `make sync-data-classes`: a ceiling that names\nrestricted or customer moves the bot's gateway key to the local-only\nplan (cloud models refused by the gateway) and its profiles to the\non-device model.","operationId":"agent_data_ceiling_account_agent_data_ceiling_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/agent/dashboard-access":{"post":{"summary":"Agent Dashboard Access","description":"The owner's switch: may people who hold `manage` on this agent open its\nHermes dashboard through the portal? Platform admins are unaffected.\n\nSet by the OWNER only (the org manager for a team agent; a platform\nadmin as before) — never by any manage holder, who is exactly whom the\nswitch admits. A foreign Origin is refused like every high-payoff POST.","operationId":"agent_dashboard_access_account_agent_dashboard_access_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/agent/email-policy":{"post":{"summary":"Agent Email Policy","description":"Save the agent's email reply policy (default + per-tag overrides).\n\nForm: `default_mode=<mode>` and `tag_<key>=<mode>` for each of the\nfive known tags. An empty / \"default\" tag value means \"use default\nmode\" — we omit it from the JSON so the file stays minimal.\n\nNo container restart: the send_email skill re-reads the file on\nevery reply call.","operationId":"agent_email_policy_account_agent_email_policy_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/agent/email-knowledge":{"post":{"summary":"Agent Email Knowledge","description":"Save the agent's email-knowledge config (retrieval ACL + indexer toggle).\n\nForm fields:\n  enabled                          checkbox\n  tag_work, tag_personal           checkboxes (allowlist)\n  window_days                      integer (1..3650)\n  cross_mailbox_for_company        checkbox\n\nNo container restart needed: the ACL is re-read on every search,\nand the knowledge-indexer reads the customer config on\nevery 60-second rescan.","operationId":"agent_email_knowledge_account_agent_email_knowledge_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/agent/rebuild":{"post":{"summary":"Agent Rebuild","operationId":"agent_rebuild_account_agent_rebuild_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/agent/backup":{"post":{"summary":"Agent Backup Create","description":"Create a new timestamped backup server-side, then redirect back.\n\nThe file lands in shared/backups/ and shows up in the list on the page.\nNo rate-limit: making backups is never destructive.","operationId":"agent_backup_create_account_agent_backup_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/agent/delete":{"post":{"summary":"Agent Delete","description":"Permanently destroy an agent: container + DB rows + on-disk state.\n\nRefuses the customer's primary agent (`tenant_api.delete_agent`\nenforces this) — removing the first agent would orphan the customer's\nmailbox, which needs a separate \"delete account\" flow.\n\nUX-side safety: the form requires the user to type the agent_id as\nconfirmation. Without that exact match we redirect with an error.","operationId":"agent_delete_account_agent_delete_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/agent/backup/{filename}":{"get":{"summary":"Agent Backup Download","description":"Stream an existing backup file back to the browser.","operationId":"agent_backup_download_account_agent_backup__filename__get","parameters":[{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/agent/backup/{filename}/restore":{"post":{"summary":"Agent Backup Restore","description":"Restore a previous backup over the agent's current config.\n\nFlow: validate -> snapshot the current config as `pre-restore` (so\nthe user can reverse the restore) -> overlay the selected backup\nonto /opt/data -> force-recreate the container so Hermes re-reads\neverything. The pre-restore snapshot is mandatory: without it a\nbotched restore would be unrecoverable. If the pre-restore snapshot\nfails we refuse to restore.","operationId":"agent_backup_restore_account_agent_backup__filename__restore_post","parameters":[{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/agent/backup/{filename}/delete":{"post":{"summary":"Agent Backup Delete","operationId":"agent_backup_delete_account_agent_backup__filename__delete_post","parameters":[{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/files":{"get":{"summary":"List Files","operationId":"list_files_account_files_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/files/raw/{slug}":{"get":{"summary":"Read File","operationId":"read_file_account_files_raw__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oauth/linkedin/start":{"get":{"summary":"Linkedin Start","operationId":"linkedin_start_oauth_linkedin_start_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/oauth/linkedin/callback":{"get":{"summary":"Linkedin Callback","operationId":"linkedin_callback_oauth_linkedin_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"type":"string","default":"","title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"type":"string","default":"","title":"State"}},{"name":"error","in":"query","required":false,"schema":{"type":"string","default":"","title":"Error"}},{"name":"error_description","in":"query","required":false,"schema":{"type":"string","default":"","title":"Error Description"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oauth/linkedin/disconnect":{"post":{"summary":"Linkedin Disconnect","operationId":"linkedin_disconnect_oauth_linkedin_disconnect_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/oauth/linkedin/refresh":{"post":{"summary":"Linkedin Refresh","description":"Force-refresh the access token. Useful when posting fails 401.\nRefreshes the org connection if the user is in one, else the personal.","operationId":"linkedin_refresh_oauth_linkedin_refresh_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/oauth/linkedin/status":{"get":{"summary":"Linkedin Status","description":"JSON status for the Plugins tab of /account/agent/<id>/skills.\n\n`scope` field on the response describes how the connection is owned:\n  - \"organization\": one row in organization_oauth_connections covers all\n                    members of the org. Other members see Connected but\n                    only the manager / connector can disconnect.\n  - \"user\":         legacy per-user row; the connecting user owns it.\n  - missing:        no connection.","operationId":"linkedin_status_oauth_linkedin_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/oauth/linkedin/credentials":{"get":{"summary":"Linkedin Admin Credentials Get","description":"Return current creds state. Never returns the secret value itself —\nonly whether one is set, plus the effective redirect URI and source.","operationId":"linkedin_admin_credentials_get_admin_oauth_linkedin_credentials_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Linkedin Admin Credentials Post","description":"Upsert the three values into system_settings. Empty fields are kept\nuntouched (so an admin can rotate just the secret); use a single space\nto explicitly clear (falls back to env).","operationId":"linkedin_admin_credentials_post_admin_oauth_linkedin_credentials_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_linkedin_admin_credentials_post_admin_oauth_linkedin_credentials_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/plugins":{"get":{"summary":"Plugins Page","description":"Moved: the Plugins tab of the assistant's Skills page\n(/account/agent/<id>/skills?tab=plugins, app/skills_page.py). The same\ngate first, off the loop, so this address answers as it did; then 303,\nevery other query word (flash, error, restart_busy, linkedin) kept.","operationId":"plugins_page_account_plugins_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/plugins.json":{"get":{"summary":"List Plugins","description":"Machine-readable state. Kept for anything that still fetches it.","operationId":"list_plugins_account_plugins_json_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/plugins/install":{"post":{"summary":"Install Plugin","operationId":"install_plugin_account_plugins_install_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_install_plugin_account_plugins_install_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/plugins/enable":{"post":{"summary":"Enable Plugin","description":"Add the plugin to plugins.enabled in the agent's config.yaml so it\nactually loads on next start. Idempotent — safe to click twice.","operationId":"enable_plugin_account_plugins_enable_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_enable_plugin_account_plugins_enable_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/plugins/disable":{"post":{"summary":"Disable Plugin","description":"Remove the plugin from plugins.enabled (keeps the files installed).","operationId":"disable_plugin_account_plugins_disable_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_disable_plugin_account_plugins_disable_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/plugins/uninstall":{"post":{"summary":"Uninstall Plugin","operationId":"uninstall_plugin_account_plugins_uninstall_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_uninstall_plugin_account_plugins_uninstall_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/plugins/apply":{"post":{"summary":"Apply Changes","description":"Kept for any caller other than the page (whose Apply changes now posts\nto POST /account/agent/restart): same origin first.","operationId":"apply_changes_account_plugins_apply_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/people":{"get":{"summary":"People Directory","operationId":"people_directory_account_people_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/account/people/{target_uid}":{"get":{"summary":"Profile Detail","operationId":"profile_detail_account_people__target_uid__get","parameters":[{"name":"target_uid","in":"path","required":true,"schema":{"type":"integer","title":"Target Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/people/{target_uid}/edit":{"get":{"summary":"Profile Manager Edit","description":"Manager/admin edit form for a colleague's work profile. The target\nthemself uses /account/profile instead; this route is only for the org\nmanager (or platform admin) to seed/correct a teammate's directory entry.","operationId":"profile_manager_edit_account_people__target_uid__edit_get","parameters":[{"name":"target_uid","in":"path","required":true,"schema":{"type":"integer","title":"Target Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Profile Manager Save","operationId":"profile_manager_save_account_people__target_uid__edit_post","parameters":[{"name":"target_uid","in":"path","required":true,"schema":{"type":"integer","title":"Target Uid"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_profile_manager_save_account_people__target_uid__edit_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/people/{target_uid}/memory":{"get":{"summary":"Person Memory Page","operationId":"person_memory_page_account_people__target_uid__memory_get","parameters":[{"name":"target_uid","in":"path","required":true,"schema":{"type":"integer","title":"Target Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/people/{target_uid}/memory/preview":{"post":{"summary":"Person Memory Preview","operationId":"person_memory_preview_account_people__target_uid__memory_preview_post","parameters":[{"name":"target_uid","in":"path","required":true,"schema":{"type":"integer","title":"Target Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/people/{target_uid}/memory/apply":{"post":{"summary":"Person Memory Apply","operationId":"person_memory_apply_account_people__target_uid__memory_apply_post","parameters":[{"name":"target_uid","in":"path","required":true,"schema":{"type":"integer","title":"Target Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/people/{target_uid}/bots/{agent_id}/decide":{"post":{"summary":"Person Bot Decide","operationId":"person_bot_decide_account_people__target_uid__bots__agent_id__decide_post","parameters":[{"name":"target_uid","in":"path","required":true,"schema":{"type":"integer","title":"Target Uid"}},{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/people/{target_uid}/bots/{agent_id}/export.zip":{"get":{"summary":"Person Bot Export","operationId":"person_bot_export_account_people__target_uid__bots__agent_id__export_zip_get","parameters":[{"name":"target_uid","in":"path","required":true,"schema":{"type":"integer","title":"Target Uid"}},{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/skills":{"get":{"summary":"Skills Page","description":"Moved: the store, the installed list and the platform skills are tabs of\nthe assistant's Skills page (app/skills_page.py). Same gate first, so this\naddress answers as it did (403 for an assistant the caller does not\nmanage, 404 without a customer), then 303 to the tab, the store's own\n?tab= becoming ?section=.","operationId":"skills_page_account_skills_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/skills.json":{"get":{"summary":"Skills Json","operationId":"skills_json_account_skills_json_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/skills/install":{"post":{"summary":"Skills Install","operationId":"skills_install_account_skills_install_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_skills_install_account_skills_install_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/skills/uninstall":{"post":{"summary":"Skills Uninstall","operationId":"skills_uninstall_account_skills_uninstall_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_skills_uninstall_account_skills_uninstall_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/skills/apply":{"post":{"summary":"Skills Apply","description":"Kept for any caller other than the page (whose Apply changes now posts\nto POST /account/agent/restart): same origin first.","operationId":"skills_apply_account_skills_apply_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/knowledge":{"get":{"summary":"Knowledge Page","operationId":"knowledge_page_account_knowledge_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/account/knowledge.json":{"get":{"summary":"Knowledge Json","operationId":"knowledge_json_account_knowledge_json_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/knowledge/reconcile":{"post":{"summary":"Knowledge Reconcile","operationId":"knowledge_reconcile_account_knowledge_reconcile_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/knowledge/email/backfill":{"post":{"summary":"Knowledge Email Backfill","description":"Walk every archived .eml for this customer and write the metadata\nsidecar where missing. Required after enabling email indexing for\na tenant whose archive predates the classifier wiring.","operationId":"knowledge_email_backfill_account_knowledge_email_backfill_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/knowledge/email/reconcile":{"post":{"summary":"Knowledge Email Reconcile","description":"Cheap reconcile: re-walk email tree, hash short-circuit skips\nunchanged content; tag gate fires immediately when a sidecar tag\nmoved into/out of the allowlist.","operationId":"knowledge_email_reconcile_account_knowledge_email_reconcile_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/knowledge/email/rebuild":{"post":{"summary":"Knowledge Email Rebuild","description":"Drop every email point for this customer's collections and re-walk.","operationId":"knowledge_email_rebuild_account_knowledge_email_rebuild_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/knowledge/rebuild":{"post":{"summary":"Knowledge Rebuild","description":"Drop + re-ingest the company's collection.\n\nHeavy: a 1k-file collection takes ~1-2 min. We run synchronously\nso the user gets immediate confirmation; their browser will hold\nthe request open until the indexer finishes. Cooldown protects\nagainst accidental double-clicks.","operationId":"knowledge_rebuild_account_knowledge_rebuild_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/work/routines":{"get":{"summary":"Tasks Page","operationId":"tasks_page_work_routines_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/account/tasks.json":{"get":{"summary":"Tasks Json","operationId":"tasks_json_account_tasks_json_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/tasks/pause":{"post":{"summary":"Task Pause","operationId":"task_pause_account_tasks_pause_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/tasks/resume":{"post":{"summary":"Task Resume","operationId":"task_resume_account_tasks_resume_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/tasks/create":{"post":{"summary":"Task Create","operationId":"task_create_account_tasks_create_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/tasks/edit":{"post":{"summary":"Task Edit","operationId":"task_edit_account_tasks_edit_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/tasks/test":{"post":{"summary":"Task Test","description":"Run-now for Hermes cron jobs from the portal: seed a fresh console\nchat with the job's prompt and redirect the user to that chat so they\ncan watch the agent execute it. Doesn't touch the actual cron\nschedule — the next scheduled run still fires on time.","operationId":"task_test_account_tasks_test_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/tasks/edit-ai":{"post":{"summary":"Task Edit Ai","description":"Hand off the cron edit to the agent itself: seeds a fresh console\nchat with a structured prompt that names the job and includes its\ncurrent state, then redirects to the console focused on that chat.\nThe agent picks the message up on its next poll (~300ms) and drives\nthe edit conversationally using its own cron-management tools.\n\nThe starter is just a regular console-inbox message — same path used\nby /missions/new — so we get the agent's standard pipeline (sessions,\nJSONL, web-guard, etc.) for free.\n\nHermes-only because we need to read the current job state from\njobs.json.\nthat we don't have today.","operationId":"task_edit_ai_account_tasks_edit_ai_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/tasks/backups.json":{"get":{"summary":"Task Backups","description":"List the rolling backup snapshots for one job.\nhave no portal-side backup file because their state lives in the\ncontainer — only Hermes is supported for now.","operationId":"task_backups_account_tasks_backups_json_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/tasks/restore":{"post":{"summary":"Task Restore","operationId":"task_restore_account_tasks_restore_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/tasks/delete":{"post":{"summary":"Task Delete","operationId":"task_delete_account_tasks_delete_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/work/t/{task_id}/lifecycle/{action}":{"get":{"summary":"Thread Confirm","operationId":"thread_confirm_work_t__task_id__lifecycle__action__get","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}},{"name":"action","in":"path","required":true,"schema":{"type":"string","title":"Action"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Thread Lifecycle","operationId":"thread_lifecycle_work_t__task_id__lifecycle__action__post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}},{"name":"action","in":"path","required":true,"schema":{"type":"string","title":"Action"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/work/p/{project_id}/lifecycle/{action}":{"get":{"summary":"Project Confirm","operationId":"project_confirm_work_p__project_id__lifecycle__action__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"action","in":"path","required":true,"schema":{"type":"string","title":"Action"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Project Lifecycle","operationId":"project_lifecycle_work_p__project_id__lifecycle__action__post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"action","in":"path","required":true,"schema":{"type":"string","title":"Action"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/work/g/{group_id}/lifecycle/{action}":{"get":{"summary":"Group Confirm","operationId":"group_confirm_work_g__group_id__lifecycle__action__get","parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"integer","title":"Group Id"}},{"name":"action","in":"path","required":true,"schema":{"type":"string","title":"Action"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Group Lifecycle Post","operationId":"group_lifecycle_post_work_g__group_id__lifecycle__action__post","parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"integer","title":"Group Id"}},{"name":"action","in":"path","required":true,"schema":{"type":"string","title":"Action"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/work/archived/g/{group_id}/restore":{"get":{"summary":"Group Trash Restore Confirm","operationId":"group_trash_restore_confirm_work_archived_g__group_id__restore_get","parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"integer","title":"Group Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Group Trash Restore","operationId":"group_trash_restore_work_archived_g__group_id__restore_post","parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"integer","title":"Group Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/work/archived/p/{project_id}/restore":{"get":{"summary":"Trash Restore Confirm","operationId":"trash_restore_confirm_work_archived_p__project_id__restore_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Trash Restore","operationId":"trash_restore_work_archived_p__project_id__restore_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/work/archived":{"get":{"summary":"Work Archived","operationId":"work_archived_work_archived_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/work/projects":{"get":{"summary":"Projects List","operationId":"projects_list_work_projects_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/work/projects/new":{"get":{"summary":"Project New","operationId":"project_new_work_projects_new_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"summary":"Project New Post","operationId":"project_new_post_work_projects_new_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_project_new_post_work_projects_new_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/work/p/{project_id}/edit":{"get":{"summary":"Project Edit","operationId":"project_edit_work_p__project_id__edit_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Project Edit Post","operationId":"project_edit_post_work_p__project_id__edit_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_project_edit_post_work_p__project_id__edit_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/work/p/{project_id}/status":{"post":{"summary":"Project Status Post","description":"Status ▸ in the project's ⋯ menu: the Edit form's OWN update\n(update_project — the same rights, the same validation, the same save),\nwith every other field as it is now.","operationId":"project_status_post_work_p__project_id__status_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_project_status_post_work_p__project_id__status_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/work/p/by-slug/{slug}":{"get":{"summary":"Project By Slug","operationId":"project_by_slug_work_p_by_slug__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/work/t/{task_id}":{"get":{"summary":"Thread Page","operationId":"thread_page_work_t__task_id__get","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/work/t/{task_id}/version":{"get":{"summary":"Thread Version","operationId":"thread_version_work_t__task_id__version_get","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/work/t/{task_id}/comment":{"post":{"summary":"Thread Comment","operationId":"thread_comment_work_t__task_id__comment_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_thread_comment_work_t__task_id__comment_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/work/t/{task_id}/rename":{"post":{"summary":"Thread Rename","operationId":"thread_rename_work_t__task_id__rename_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_thread_rename_work_t__task_id__rename_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/work/t/{task_id}/ask":{"post":{"summary":"Thread Ask","description":"@persona: a new task for a colleague on THIS assistant, joined to the\nthread by its mark (not a --parent link, which would hold it until the\nrest of the thread is done).","operationId":"thread_ask_work_t__task_id__ask_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_thread_ask_work_t__task_id__ask_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/work/t/{task_id}/approve":{"post":{"summary":"Thread Approve","operationId":"thread_approve_work_t__task_id__approve_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_thread_approve_work_t__task_id__approve_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/work/t/{task_id}/changes":{"post":{"summary":"Thread Changes","description":"Hermes cannot reopen finished work, so the changes become a follow-up\ntask for the same colleague, linked to the finished one and marked into\nthe thread.","operationId":"thread_changes_work_t__task_id__changes_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_thread_changes_work_t__task_id__changes_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/work/all":{"get":{"summary":"Work All","description":"All work: everything I own, was invited to, or that sits in a project I\nown or was invited to — plus (legacy) work I asked for on assistants I can\nuse, from before task_items existed. One thread each, in my organization;\nwhat is shown of it is the item rule's. (Until 2026-10-24 this was /work.)","operationId":"work_all_work_all_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/work/start":{"post":{"summary":"Start New","description":"A new task on the chosen assistant, from the box on My work; then its\nthread page with the chat in view (#chat). From a project page's\n\"+ New task\" (`project_page` = that page's id) the person comes back to\nthe project with the new task selected — the same gates decide.","operationId":"start_new_work_start_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_start_new_work_start_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/work/d/{team_id}":{"get":{"summary":"Department Room","description":"A department's room: the work of its assistants and the work filed\nunder it. Membership opens the room (its members, the organization's\nmanager, an admin); each thread in it is shown only to whoever has a role\nin it, and only as far as they see it. Someone outside the organization\nis told nothing about which departments exist (404, never 403).","operationId":"department_room_work_d__team_id__get","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"integer","title":"Team Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/work/d/{team_id}/lead":{"post":{"summary":"Department Lead","operationId":"department_lead_work_d__team_id__lead_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"integer","title":"Team Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_department_lead_work_d__team_id__lead_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/work/p/{project_id}":{"get":{"summary":"Project Page","description":"A project in the layout of My work (docs/superpowers/plans/\n2026-10-27-project-page.md): its conversations and tasks on the left,\nthe selected item's thread and chat in the middle (`?t=<task id>`, an\nitem OF this project — anything else is a 404), the details on the\nright (`?pane=details` is the phone's third screen). Who may open it is\nproject visibility; what you may DO is your role on the project (and,\nin the middle pane, your role on that thread — the thread page's rule).\nEverything shown about the project comes from project_summary (the work\nAPI's GET /projects/{id} returns the same).","operationId":"project_page_work_p__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/work/p/{project_id}/team/add":{"post":{"summary":"Project Team Add","operationId":"project_team_add_work_p__project_id__team_add_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_project_team_add_work_p__project_id__team_add_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/work/p/{project_id}/team/remove":{"post":{"summary":"Project Team Remove","operationId":"project_team_remove_work_p__project_id__team_remove_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_project_team_remove_work_p__project_id__team_remove_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/work/p/{project_id}/knowledge":{"get":{"summary":"Project Knowledge","description":"What this project's bots (its project members, project_team) can find,\nplus the items shared with the project itself (2026-11-14): the bot\ncard's list (bot_knowledge.team_card). Who may open it: who may see the\nproject (_project_view: 404 / 503), never a guest. Read-only; the reads\nrun off the event loop and never fail the page.","operationId":"project_knowledge_work_p__project_id__knowledge_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/work/p/{project_id}/people":{"get":{"summary":"Project People","description":"People… from the project's ⋯ menu: the existing invite and role UI\n(_members_panel.html), posting to the existing /work/p/<id>/members/*\nroutes with their rules (owner only; an outsider is never an owner).\nFor the project's owner only — anyone else, readers included, gets 404.","operationId":"project_people_work_p__project_id__people_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/work/p/{project_id}/people/guests-knowledge":{"post":{"summary":"Project Guests Knowledge","description":"\"Guests may use knowledge shared with this project\": the portal's\nOrigin first, the People page's own gate (404 below owner), then\nproject_memory_settings.set decides — the project's owner or the\norganization's manager (403 otherwise), with the PROJECT's organization.\nAn unticked box posts only the hidden \"0\"; a ticked one \"0\" and \"1\" —\nthe last value wins.","operationId":"project_guests_knowledge_work_p__project_id__people_guests_knowledge_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_project_guests_knowledge_work_p__project_id__people_guests_knowledge_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/work/t/{task_id}/members/invite":{"post":{"summary":"Task Member Invite","operationId":"task_member_invite_work_t__task_id__members_invite_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_task_member_invite_work_t__task_id__members_invite_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/work/t/{task_id}/members/role":{"post":{"summary":"Task Member Role","operationId":"task_member_role_work_t__task_id__members_role_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_task_member_role_work_t__task_id__members_role_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/work/t/{task_id}/members/remove":{"post":{"summary":"Task Member Remove","operationId":"task_member_remove_work_t__task_id__members_remove_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_task_member_remove_work_t__task_id__members_remove_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/work/t/{task_id}/members/withdraw":{"post":{"summary":"Task Member Withdraw","operationId":"task_member_withdraw_work_t__task_id__members_withdraw_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_task_member_withdraw_work_t__task_id__members_withdraw_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/work/p/{project_id}/members/invite":{"post":{"summary":"Project Member Invite","operationId":"project_member_invite_work_p__project_id__members_invite_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_project_member_invite_work_p__project_id__members_invite_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/work/p/{project_id}/members/role":{"post":{"summary":"Project Member Role","operationId":"project_member_role_work_p__project_id__members_role_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_project_member_role_work_p__project_id__members_role_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/work/p/{project_id}/members/remove":{"post":{"summary":"Project Member Remove","operationId":"project_member_remove_work_p__project_id__members_remove_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_project_member_remove_work_p__project_id__members_remove_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/work/p/{project_id}/members/withdraw":{"post":{"summary":"Project Member Withdraw","operationId":"project_member_withdraw_work_p__project_id__members_withdraw_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_project_member_withdraw_work_p__project_id__members_withdraw_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/settings/guests":{"post":{"summary":"Org Guests Setting","description":"May this organization's work be shared with people outside it? The\norganization's manager (or a platform admin) decides; off cuts every\noutsider's access on their next request, on reads that already fail\nclosed. An unticked box posts only the hidden \"0\"; a ticked one posts\n\"0\" and \"1\" — the last value wins.","operationId":"org_guests_setting_organization__organization_id__settings_guests_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_org_guests_setting_organization__organization_id__settings_guests_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/work/t/{task_id}/chat/history":{"get":{"summary":"Thread Chat History","operationId":"thread_chat_history_work_t__task_id__chat_history_get","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/work/t/{task_id}/chat/mentions":{"get":{"summary":"Thread Chat Mentions","description":"The \"@\" list of this thread chat: exactly who a leading @Name reaches\nhere (tc.addressable over pick_persona — the send path's own rule), for a\nwriter who is a member. An outsider names nobody (the outsider profile\nanswers): []. No new access rule — the chat's own state decides.","operationId":"thread_chat_mentions_work_t__task_id__chat_mentions_get","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/work/t/{task_id}/chat/transcribe":{"post":{"summary":"Thread Chat Transcribe","description":"The mic in the thread chat: the words come back to the box and are\nnever sent by themselves. Only for someone who may WRITE in this chat\n(the item rule on the thread's root, read anew — the socket's own\nquestion), Origin checked, rate limited, the body capped BEFORE it is\nparsed. The audio goes to mpa-whisper and is not stored.","operationId":"thread_chat_transcribe_work_t__task_id__chat_transcribe_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/work":{"get":{"summary":"My Work Shell","description":"A member's My work: the roster on the left, the chat of the persona they\nread last in the middle (or \"Start something new\" with no persona yet).\nA guest keeps their invited items, exactly as before (D9).","operationId":"my_work_shell_work_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/work/b/{persona_id}":{"get":{"summary":"Work Bot","description":"`?origin=claude`: this person's standing chat for work that came\nthrough the employee door with this bot — 404 when there is none (a page\nnever makes one), and for any other origin.","operationId":"work_bot_work_b__persona_id__get","parameters":[{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","title":"Persona Id"}},{"name":"origin","in":"query","required":false,"schema":{"type":"string","default":"","title":"Origin"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/work/b/{persona_id}/routines":{"get":{"summary":"Work Bot Routines","operationId":"work_bot_routines_work_b__persona_id__routines_get","parameters":[{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","title":"Persona Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/work/g/new":{"get":{"summary":"Work Group New","operationId":"work_group_new_work_g_new_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/work/g/{group_id}":{"get":{"summary":"Work Group","operationId":"work_group_work_g__group_id__get","parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"integer","title":"Group Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/work/g/{group_id}/knowledge":{"get":{"summary":"Work Group Knowledge","description":"What this group conversation's bots can find (2026-11-14): the bot\ncard's list for the union of its members (bot_knowledge.team_card). Who\nmay open it: who may open the group (its root's rule, 404 otherwise).\nRead-only; the reads run off the event loop and never fail the page.","operationId":"work_group_knowledge_work_g__group_id__knowledge_get","parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"integer","title":"Group Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/work/g/{group_id}/members":{"get":{"summary":"Work Group Members","operationId":"work_group_members_work_g__group_id__members_get","parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"integer","title":"Group Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/work/v1/auth/web-token":{"post":{"summary":"Web Token","description":"{token, expires_at}: a 15-minute bearer for the signed-in session. POST\nonly, the portal's own Origin, a JSON body — a cross-site form or simple\nPOST can never mint one. A guest session gets a guest token.","operationId":"web_token_api_work_v1_auth_web_token_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/work/v1/me":{"get":{"summary":"Me","operationId":"me_api_work_v1_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/work/v1/devices":{"get":{"summary":"Devices","description":"This person's signed-in devices. Never a token value or a hash.","operationId":"devices_api_work_v1_devices_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Device Mint","description":"{token, expires_at, device}: an opaque device token for the person\nwhose Keycloak ACCESS token (client android-app or desktop-app) is the bearer — its\nsignature, issuer, expiry and client verified against the realm by the\nCRM exchange's own verifier. Shown once; 201. A member only.","operationId":"device_mint_api_work_v1_devices_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/work/v1/devices/{device_id}":{"delete":{"summary":"Device Revoke","description":"Sign one of THIS person's devices out — its token answers 401 on the\nvery next request. Another person's device is 404.","operationId":"device_revoke_api_work_v1_devices__device_id__delete","parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"integer","title":"Device Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/work/v1/crm/customer-names":{"get":{"summary":"Crm Customer Names","description":"This person's CRM customer names as salted hashes (crm_customer_names;\ncontract §14). Device tokens only. The organization is the person's; the\nversion is computed for THIS person before an If-None-Match is compared,\nso a 304 never skips a check. A read that failed is 503, never [].","operationId":"crm_customer_names_api_work_v1_crm_customer_names_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/work/v1/roster":{"get":{"summary":"Roster","operationId":"roster_api_work_v1_roster_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/work/v1/bots/{persona_id}/prefs":{"post":{"summary":"Bot Prefs","operationId":"bot_prefs_api_work_v1_bots__persona_id__prefs_post","parameters":[{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","title":"Persona Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_Prefs"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/work/v1/bots/{persona_id}/avatar":{"get":{"summary":"Bot Avatar","operationId":"bot_avatar_api_work_v1_bots__persona_id__avatar_get","parameters":[{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","title":"Persona Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Bot Avatar Upload","description":"The body IS the image (any Content-Type: the bytes decide). Read up to\none byte past the limit, so a large body is refused without reading it.","operationId":"bot_avatar_upload_api_work_v1_bots__persona_id__avatar_post","parameters":[{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","title":"Persona Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Bot Avatar Clear","operationId":"bot_avatar_clear_api_work_v1_bots__persona_id__avatar_delete","parameters":[{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","title":"Persona Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/work/v1/bots/{persona_id}/avatar-spec":{"get":{"summary":"Bot Avatar Spec","operationId":"bot_avatar_spec_api_work_v1_bots__persona_id__avatar_spec_get","parameters":[{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","title":"Persona Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Bot Avatar Spec Put","operationId":"bot_avatar_spec_put_api_work_v1_bots__persona_id__avatar_spec_put","parameters":[{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","title":"Persona Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Bot Avatar Spec Clear","operationId":"bot_avatar_spec_clear_api_work_v1_bots__persona_id__avatar_spec_delete","parameters":[{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","title":"Persona Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/work/v1/bots/{persona_id}/history":{"get":{"summary":"Bot History","operationId":"bot_history_api_work_v1_bots__persona_id__history_get","parameters":[{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","title":"Persona Id"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Before"}},{"name":"origin","in":"query","required":false,"schema":{"type":"string","default":"","title":"Origin"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/work/v1/bots/{persona_id}/mentions":{"get":{"summary":"Bot Mentions","operationId":"bot_mentions_api_work_v1_bots__persona_id__mentions_get","parameters":[{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","title":"Persona Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/work/v1/bots/{persona_id}/messages":{"post":{"summary":"Bot Message","operationId":"bot_message_api_work_v1_bots__persona_id__messages_post","parameters":[{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","title":"Persona Id"}},{"name":"origin","in":"query","required":false,"schema":{"type":"string","default":"","title":"Origin"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_Text"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/work/v1/bots/{persona_id}/wake":{"get":{"summary":"Bot Wake","operationId":"bot_wake_api_work_v1_bots__persona_id__wake_get","parameters":[{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","title":"Persona Id"}},{"name":"origin","in":"query","required":false,"schema":{"type":"string","default":"","title":"Origin"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/work/v1/bots/{persona_id}/stop":{"post":{"summary":"Bot Stop","operationId":"bot_stop_api_work_v1_bots__persona_id__stop_post","parameters":[{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","title":"Persona Id"}},{"name":"origin","in":"query","required":false,"schema":{"type":"string","default":"","title":"Origin"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/work/v1/bots/{persona_id}/uploads":{"post":{"summary":"Bot Upload","description":"One file for this person's chat with this persona: the raw bytes as\nthe body, the original name in X-Upload-Name (display only). Read only\nafter the principal, scope, rate and roster passed, and cut off while it\nstreams. Returns its NAME, which a message then attaches.","operationId":"bot_upload_api_work_v1_bots__persona_id__uploads_post","parameters":[{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","title":"Persona Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/work/v1/bots/{persona_id}/captures":{"post":{"summary":"Bot Capture","description":"A capture from the phone into this person's chat with this bot: its\nfiles as the chat's attachments (chat_uploads), one message naming what\nit is, the phone's text quoted as data. 201 {capture_id, status}; the\nsame client_ref again = the FIRST capture, 200, nothing posted.","operationId":"bot_capture_api_work_v1_bots__persona_id__captures_post","parameters":[{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","title":"Persona Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/work/v1/bots/{persona_id}/compact":{"post":{"summary":"Bot Compact","operationId":"bot_compact_api_work_v1_bots__persona_id__compact_post","parameters":[{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","title":"Persona Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/work/v1/bots/{persona_id}/clear":{"post":{"summary":"Bot Clear","operationId":"bot_clear_api_work_v1_bots__persona_id__clear_post","parameters":[{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","title":"Persona Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/work/v1/bots/{persona_id}/projects":{"get":{"summary":"Bot Projects","operationId":"bot_projects_api_work_v1_bots__persona_id__projects_get","parameters":[{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","title":"Persona Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/work/v1/bots/{persona_id}/move":{"post":{"summary":"Bot Move","operationId":"bot_move_api_work_v1_bots__persona_id__move_post","parameters":[{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","title":"Persona Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_Move"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/work/v1/bots/{persona_id}/title-suggest":{"get":{"summary":"Bot Title Suggest","operationId":"bot_title_suggest_api_work_v1_bots__persona_id__title_suggest_get","parameters":[{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","title":"Persona Id"}},{"name":"message_id","in":"query","required":false,"schema":{"type":"string","default":"","title":"Message Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/work/v1/bots/{persona_id}/to-project":{"post":{"summary":"Bot To Project","operationId":"bot_to_project_api_work_v1_bots__persona_id__to_project_post","parameters":[{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","title":"Persona Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_ToProject"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/work/v1/bots/{persona_id}/tasks":{"post":{"summary":"Bot Task Create","operationId":"bot_task_create_api_work_v1_bots__persona_id__tasks_post","parameters":[{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","title":"Persona Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_NewTask"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/work/v1/projects":{"post":{"summary":"Project Create","operationId":"project_create_api_work_v1_projects_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_NewProject"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/work/v1/bots/{persona_id}/read":{"post":{"summary":"Bot Read","operationId":"bot_read_api_work_v1_bots__persona_id__read_post","parameters":[{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","title":"Persona Id"}},{"name":"origin","in":"query","required":false,"schema":{"type":"string","default":"","title":"Origin"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_Read"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/work/v1/bots/{persona_id}/composer":{"get":{"summary":"Bot Composer","operationId":"bot_composer_api_work_v1_bots__persona_id__composer_get","parameters":[{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","title":"Persona Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/work/v1/bots/{persona_id}/transcribe":{"post":{"summary":"Bot Transcribe","description":"Dictation into the composer: the audio goes to mpa-whisper on the\ninternal network and nowhere else; nothing is stored. The words come\nback to the composer and are never sent by themselves.","operationId":"bot_transcribe_api_work_v1_bots__persona_id__transcribe_post","parameters":[{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","title":"Persona Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/work/v1/bots/{persona_id}/speak":{"post":{"summary":"Bot Speak","description":"A reply read aloud (WAV, generated on this host). Stores nothing.","operationId":"bot_speak_api_work_v1_bots__persona_id__speak_post","parameters":[{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","title":"Persona Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/work/v1/bots/{persona_id}/steps":{"get":{"summary":"Bot Steps","operationId":"bot_steps_api_work_v1_bots__persona_id__steps_get","parameters":[{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","title":"Persona Id"}},{"name":"since","in":"query","required":false,"schema":{"type":"number","default":0.0,"title":"Since"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/work/v1/bots/{persona_id}/routines":{"get":{"summary":"Bot Routines","operationId":"bot_routines_api_work_v1_bots__persona_id__routines_get","parameters":[{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","title":"Persona Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/work/v1/bots/{persona_id}/routines/{job_id}/pause":{"post":{"summary":"Bot Routine Pause","operationId":"bot_routine_pause_api_work_v1_bots__persona_id__routines__job_id__pause_post","parameters":[{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","title":"Persona Id"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/work/v1/bots/{persona_id}/routines/{job_id}/resume":{"post":{"summary":"Bot Routine Resume","operationId":"bot_routine_resume_api_work_v1_bots__persona_id__routines__job_id__resume_post","parameters":[{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","title":"Persona Id"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/work/v1/groups":{"get":{"summary":"Groups","operationId":"groups_api_work_v1_groups_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Group Create","operationId":"group_create_api_work_v1_groups_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_NewGroup"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/work/v1/groups/{group_id}":{"get":{"summary":"Group","operationId":"group_api_work_v1_groups__group_id__get","parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"integer","title":"Group Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/work/v1/groups/{group_id}/members":{"post":{"summary":"Group Member Add","description":"Add one bot (`persona_id`) or several (`persona_ids`) — the group's\nowner only, all or none, each re-checked against the group's rules.","operationId":"group_member_add_api_work_v1_groups__group_id__members_post","parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"integer","title":"Group Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_Member"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/work/v1/groups/{group_id}/rename":{"post":{"summary":"Group Rename","description":"Rename a group — its owner only; 1-120 characters, need not be unique.","operationId":"group_rename_api_work_v1_groups__group_id__rename_post","parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"integer","title":"Group Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_Rename"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/work/v1/groups/{group_id}/members/{persona_id}":{"delete":{"summary":"Group Member Remove","operationId":"group_member_remove_api_work_v1_groups__group_id__members__persona_id__delete","parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"integer","title":"Group Id"}},{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","title":"Persona Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/work/v1/groups/{group_id}/lifecycle/{action}":{"post":{"summary":"Group Lifecycle","operationId":"group_lifecycle_api_work_v1_groups__group_id__lifecycle__action__post","parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"integer","title":"Group Id"}},{"name":"action","in":"path","required":true,"schema":{"type":"string","title":"Action"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/work/v1/groups/{group_id}/mentions":{"get":{"summary":"Group Mentions","description":"The group's \"@\" list: its bots and the people who can write in it\n(group_service.mentions — the send path's own rule); 404 when you are\nnot in the group, empty when you may only read.","operationId":"group_mentions_api_work_v1_groups__group_id__mentions_get","parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"integer","title":"Group Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/work/v1/groups/{group_id}/messages":{"post":{"summary":"Group Message","description":"The group chat (= its root thread's chat): the thread chat's own send,\nwith the group's members. `@all <text>` makes one task per member; a\nleading @Person is a note for that person and starts no bot.","operationId":"group_message_api_work_v1_groups__group_id__messages_post","parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"integer","title":"Group Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_GroupText"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/work/v1/groups/{group_id}/chat/history":{"get":{"summary":"Group Chat History","description":"The root thread's chat history, by the thread page's own rule.","operationId":"group_chat_history_api_work_v1_groups__group_id__chat_history_get","parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"integer","title":"Group Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/work/v1/push/config":{"get":{"summary":"Push Config","description":"`for` is the signed-in person's own value — the one `/work/push/whoami`\ngives the browser (push.for_tag of the token's subject): a push whose\n`for` differs is for somebody else and shows the neutral line.\n`self_hosted` says whether THIS token may use our own push host (a\ndevice token, and the host configured): then POST /push/endpoint.","operationId":"push_config_api_work_v1_push_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/work/v1/push/endpoint":{"post":{"summary":"Push Endpoint","description":"Our own push host (issue #893, §12): a NEW endpoint and listening\ncredential for THIS device — a topic the portal minted and a ntfy token\nthat may read that topic and nothing else. Device tokens only. Every call\nreplaces the last: the old credential is withdrawn and the device's old\nsubscription on the host ends; the app then POSTs /push/subscriptions\nwith the new endpoint. The token is shown once.","operationId":"push_endpoint_api_work_v1_push_endpoint_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/work/v1/push/subscriptions":{"get":{"summary":"Push Subscriptions","operationId":"push_subscriptions_api_work_v1_push_subscriptions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Push Subscribe","operationId":"push_subscribe_api_work_v1_push_subscriptions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_PushSub"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/work/v1/push/subscriptions/check":{"post":{"summary":"Push Check","operationId":"push_check_api_work_v1_push_subscriptions_check_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_Endpoint"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/work/v1/push/subscriptions/{sub_id}":{"delete":{"summary":"Push Unsubscribe","operationId":"push_unsubscribe_api_work_v1_push_subscriptions__sub_id__delete","parameters":[{"name":"sub_id","in":"path","required":true,"schema":{"type":"integer","title":"Sub Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/work/v1/push/unsubscribe":{"post":{"summary":"Push Unsubscribe Endpoint","operationId":"push_unsubscribe_endpoint_api_work_v1_push_unsubscribe_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_Endpoint"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/work/v1/items":{"get":{"summary":"Items","operationId":"items_api_work_v1_items_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/work/v1/threads/{task_id}":{"get":{"summary":"Thread","operationId":"thread_api_work_v1_threads__task_id__get","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/work/v1/threads/{task_id}/chat/history":{"get":{"summary":"Thread Chat History","description":"The thread page's own history rule (thread_chat_routes), unchanged.","operationId":"thread_chat_history_api_work_v1_threads__task_id__chat_history_get","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/work/v1/threads/{task_id}/comments":{"post":{"summary":"Thread Comment","operationId":"thread_comment_api_work_v1_threads__task_id__comments_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_Comment"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/work/v1/projects/{project_id}":{"get":{"summary":"Project","operationId":"project_api_work_v1_projects__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"summary":"Project Update","operationId":"project_update_api_work_v1_projects__project_id__patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_ProjectPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/work/v1/projects/{project_id}/lifecycle/{action}":{"post":{"summary":"Project Lifecycle","operationId":"project_lifecycle_api_work_v1_projects__project_id__lifecycle__action__post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"action","in":"path","required":true,"schema":{"type":"string","title":"Action"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/work/v1/projects/{project_id}/people":{"get":{"summary":"Project People","operationId":"project_people_api_work_v1_projects__project_id__people_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/work/v1/projects/{project_id}/members/invite":{"post":{"summary":"Project Member Invite","operationId":"project_member_invite_api_work_v1_projects__project_id__members_invite_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_Invite"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/work/v1/projects/{project_id}/members/role":{"post":{"summary":"Project Member Role","operationId":"project_member_role_api_work_v1_projects__project_id__members_role_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_MemberId"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/work/v1/projects/{project_id}/members/remove":{"post":{"summary":"Project Member Remove","operationId":"project_member_remove_api_work_v1_projects__project_id__members_remove_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_MemberId"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/work/v1/projects/{project_id}/members/withdraw":{"post":{"summary":"Project Member Withdraw","operationId":"project_member_withdraw_api_work_v1_projects__project_id__members_withdraw_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_InviteId"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/work/v1/projects/{project_id}/team/candidates":{"get":{"summary":"Project Team Candidates","operationId":"project_team_candidates_api_work_v1_projects__project_id__team_candidates_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/work/v1/projects/{project_id}/team/add":{"post":{"summary":"Project Team Add","operationId":"project_team_add_api_work_v1_projects__project_id__team_add_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_TeamMember"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/work/v1/projects/{project_id}/team/remove":{"post":{"summary":"Project Team Remove","operationId":"project_team_remove_api_work_v1_projects__project_id__team_remove_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_TeamMember"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/work/v1/threads/{task_id}/lifecycle/{action}":{"post":{"summary":"Thread Lifecycle","operationId":"thread_lifecycle_api_work_v1_threads__task_id__lifecycle__action__post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}},{"name":"action","in":"path","required":true,"schema":{"type":"string","title":"Action"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/work/v1/stream-ticket":{"post":{"summary":"Stream Ticket","operationId":"stream_ticket_api_work_v1_stream_ticket_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/work/v1/web-handoff":{"post":{"summary":"Web Handoff","description":"{ticket, expires_at}: 30 seconds, single use, for ONE page of\nweb_handoff.NEXT_ALLOW, bound to this DEVICE token. A web token (the\nportal's own page has its session already) and a guest are refused. The\napp opens https://<portal>/app/open#<ticket> — the fragment, never a query.","operationId":"web_handoff_api_work_v1_web_handoff_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/work/sw.js":{"get":{"summary":"Work Sw","description":"no-store, so a deploy (or the kill switch) reaches a browser at its\nnext update check; Service-Worker-Allowed lets it take scope /work.","operationId":"work_sw_work_sw_js_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/work/manifest.webmanifest":{"get":{"summary":"Work Manifest","operationId":"work_manifest_work_manifest_webmanifest_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/work/push/whoami":{"get":{"summary":"Work Push Whoami","description":"{\"for\": <hash of the signed-in member> | null} — what the worker\ncompares a push's `for` with. A member's own session only; a guest, a\nfenced or a signed-out browser gets null.","operationId":"work_push_whoami_work_push_whoami_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/.well-known/assetlinks.json":{"get":{"summary":"Assetlinks","description":"Public by design (Google's verifier and the phone fetch it with no\nsession): it names a package and certificate hashes, nothing else.","operationId":"assetlinks__well_known_assetlinks_json_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/app/callback":{"get":{"summary":"App Callback","operationId":"app_callback_app_callback_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/app/signed-out":{"get":{"summary":"App Signed Out","operationId":"app_signed_out_app_signed_out_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/app/open":{"get":{"summary":"App Open","description":"Static: reads no session and no query (a query is never a ticket).","operationId":"app_open_app_open_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"App Open Ticket","description":"{\"go\": …} or {\"confirm\": …}. The ticket IS the credential and it only\never narrows: it never signs anyone in by itself.","operationId":"app_open_ticket_app_open_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/app/open/expired":{"get":{"summary":"App Open Expired","operationId":"app_open_expired_app_open_expired_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/app/open/other":{"get":{"summary":"App Open Other","operationId":"app_open_other_app_open_other_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/app/open/confirm":{"post":{"summary":"App Open Confirm","description":"The button: end the other session exactly as /logout does on the\nportal side, end its KEYCLOAK session too (back-channel with its refresh\ntoken; else a redirect through Keycloak's end-session that comes back to\n/app/open/continue), then the ticket's person signs in (prompt=login).","operationId":"app_open_confirm_app_open_confirm_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/app/open/continue":{"get":{"summary":"App Open Continue","description":"Where Keycloak's end-session of the other person comes back to: starts\nthe ticket's person's sign-in — only for this browser's pending hand-over\nunder exactly that logout state; anything else is the expired page.","operationId":"app_open_continue_app_open_continue_get","parameters":[{"name":"state","in":"query","required":false,"schema":{"type":"string","default":"","title":"State"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/webmail":{"get":{"summary":"Webmail Redirect","operationId":"webmail_redirect_account_webmail_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin":{"get":{"summary":"Admin Dashboard","operationId":"admin_dashboard_admin_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/admin/persona-model-catalog":{"post":{"summary":"Admin Set Persona Model Catalog","description":"Platform setting: which model catalog the persona dropdown offers\n(both | internal | real). Stored in system_settings.","operationId":"admin_set_persona_model_catalog_admin_persona_model_catalog_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_admin_set_persona_model_catalog_admin_persona_model_catalog_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/organizations":{"post":{"summary":"Admin Create Organization","description":"Create an empty organization. No manager is set — assign one from\nthe org detail page (`/organization/<oid>`) afterwards. Reuses the\nsame `resolve_or_create_company` helper signup uses, so the slug\nrule and duplicate-detection stay consistent.","operationId":"admin_create_organization_admin_organizations_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_admin_create_organization_admin_organizations_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/teams":{"post":{"summary":"Admin Create Team","operationId":"admin_create_team_admin_teams_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_admin_create_team_admin_teams_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/teams/{team_id}/delete":{"post":{"summary":"Admin Delete Team","operationId":"admin_delete_team_admin_teams__team_id__delete_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"integer","title":"Team Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/teams/{team_id}/manager":{"post":{"summary":"Admin Set Team Manager","description":"Pin the team's designated manager. Also enrols them in team_members\nwith role='manager' (idempotent) so the manager UI route picks them up.","operationId":"admin_set_team_manager_admin_teams__team_id__manager_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"integer","title":"Team Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_admin_set_team_manager_admin_teams__team_id__manager_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/personas/sets/{set_id}/export":{"get":{"summary":"Export Public Set","description":"A built-in set (it is in git) or a platform set (every organization is\noffered it). Needs a portal account; an organization's own set is\nexported from its templates page, by its manager.","operationId":"export_public_set_account_personas_sets__set_id__export_get","parameters":[{"name":"set_id","in":"path","required":true,"schema":{"type":"string","title":"Set Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/persona-sets/{row_id}/export":{"get":{"summary":"Export Org Set","operationId":"export_org_set_organization__organization_id__persona_sets__row_id__export_get","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}},{"name":"row_id","in":"path","required":true,"schema":{"type":"integer","title":"Row Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/persona-sets/import":{"post":{"summary":"Import Set","operationId":"import_set_organization__organization_id__persona_sets_import_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_import_set_organization__organization_id__persona_sets_import_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/persona-sets/{row_id}/review":{"get":{"summary":"Review Set","operationId":"review_set_organization__organization_id__persona_sets__row_id__review_get","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}},{"name":"row_id","in":"path","required":true,"schema":{"type":"integer","title":"Row Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/persona-sets/{row_id}/scan":{"post":{"summary":"Rescan Set","operationId":"rescan_set_organization__organization_id__persona_sets__row_id__scan_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}},{"name":"row_id","in":"path","required":true,"schema":{"type":"integer","title":"Row Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/persona-sets/{row_id}/approve":{"post":{"summary":"Approve Set","operationId":"approve_set_organization__organization_id__persona_sets__row_id__approve_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}},{"name":"row_id","in":"path","required":true,"schema":{"type":"integer","title":"Row Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/persona-sets/draft":{"get":{"summary":"Draft Form","operationId":"draft_form_organization__organization_id__persona_sets_draft_get","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Draft Set","description":"Fetch (through the scrape-gateway) or take the text, have the model\ndraft OUR version, validate and scan it, and store it PENDING with its\nsource and credit. Nothing else happens: the model's reply is only\nparsed, and the draft is never applied by itself.","operationId":"draft_set_organization__organization_id__persona_sets_draft_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/templates/persona-sets/promote/{org_set_id}":{"get":{"summary":"Promote Review","description":"Every text of the team, editable, with the warning that each becomes\nvisible to every organization.","operationId":"promote_review_admin_templates_persona_sets_promote__org_set_id__get","parameters":[{"name":"org_set_id","in":"path","required":true,"schema":{"type":"integer","title":"Org Set Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/templates/persona-sets/promote":{"post":{"summary":"Promote Set","description":"Promote the COPY as the admin reviewed it: edited texts validated, the\nguard scan run again over every text of the copy — a fail, or a scan that\ncould not run, blocks it — then stored with who promoted it and from\nwhich organization.","operationId":"promote_set_admin_templates_persona_sets_promote_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/templates/persona-sets/{platform_id}/delete":{"post":{"summary":"Delete Platform Set","operationId":"delete_platform_set_admin_templates_persona_sets__platform_id__delete_post","parameters":[{"name":"platform_id","in":"path","required":true,"schema":{"type":"integer","title":"Platform Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/templates":{"get":{"summary":"Admin Templates","operationId":"admin_templates_admin_templates_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/admin/templates/{template_id}/edit":{"get":{"summary":"Edit Template","description":"One template's own page. Editing lived inside every row of the list,\nwhich is what made the list unreadable.","operationId":"edit_template_admin_templates__template_id__edit_get","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"integer","title":"Template Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/templates/new":{"get":{"summary":"New Template Form","description":"The same capture form an organization manager uses, aimed at the\nplatform catalog. Reusing it is deliberate: two capture forms would drift,\nand this one already refuses to offer a skill the assistant does not have.","operationId":"new_template_form_admin_templates_new_get","parameters":[{"name":"agent_id","in":"query","required":false,"schema":{"type":"string","default":"","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Template","operationId":"create_template_admin_templates_new_post","parameters":[{"name":"agent_id","in":"query","required":false,"schema":{"type":"string","default":"","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/templates/{template_id}/update":{"post":{"summary":"Update Template","operationId":"update_template_admin_templates__template_id__update_post","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"integer","title":"Template Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/templates/{template_id}/add-skill":{"post":{"summary":"Add Skill","description":"Add one store skill to a template.\n\nThe identifier is checked against the store catalog, not trusted from the\nform: `skill_store.get` must know it and `refusal_reason` must pass. Without\nthat this page would install anything an admin could type, bypassing the\ncuration every other install path honours.","operationId":"add_skill_admin_templates__template_id__add_skill_post","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"integer","title":"Template Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_add_skill_admin_templates__template_id__add_skill_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/templates/{template_id}/delete":{"post":{"summary":"Delete Template","operationId":"delete_template_admin_templates__template_id__delete_post","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"integer","title":"Template Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/templates/promote":{"post":{"summary":"Promote Org Template","description":"Copy an organization's template into the platform catalog.\n\nA copy, not a move: the organization keeps the template it built, and the\nplatform gets one it owns and can edit without reaching into someone\nelse's. Promoting twice makes two entries — visible in the list, and\ncheaper than a uniqueness rule that would have to guess what \"the same\ntemplate\" means.","operationId":"promote_org_template_admin_templates_promote_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_promote_org_template_admin_templates_promote_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/catalog":{"get":{"summary":"Organization Catalog","operationId":"organization_catalog_organization__organization_id__catalog_get","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/catalog/decide":{"post":{"summary":"Organization Catalog Decide","description":"Approve or reject one catalog item for this organization. Requests are\nNOT handled here — they post to the route that already owns them.","operationId":"organization_catalog_decide_organization__organization_id__catalog_decide_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_organization_catalog_decide_organization__organization_id__catalog_decide_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/catalog":{"get":{"summary":"Admin Catalog","description":"Every organization's queue plus the platform's own, in one list.","operationId":"admin_catalog_admin_catalog_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/admin/catalog/decide":{"post":{"summary":"Admin Catalog Decide","description":"Approve, reject, or promote to the whole platform.\n\n`promote` COPIES an organization's approval to system scope, the way an\norganization template is promoted: the organization keeps what it had.","operationId":"admin_catalog_decide_admin_catalog_decide_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_admin_catalog_decide_admin_catalog_decide_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/skills/author":{"get":{"summary":"Admin Skill Author Form","operationId":"admin_skill_author_form_admin_skills_author_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"summary":"Admin Skill Author Check","description":"Validate, compose, verify, scan. Shows everything; writes nothing.","operationId":"admin_skill_author_check_admin_skills_author_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_admin_skill_author_check_admin_skills_author_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/skills/author/download":{"post":{"summary":"Admin Skill Author Download","description":"Hand over the file — after running every check again.\n\nThe checks are re-run rather than trusted from the previous request. A\ndownload that believed a hidden field would be a scan of one document and\na handover of another, which is the whole guarantee gone.","operationId":"admin_skill_author_download_admin_skills_author_download_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_admin_skill_author_download_admin_skills_author_download_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/teams":{"get":{"summary":"Teams Landing","description":"Legacy `/teams` listing. The team list now lives on the org\ndashboard (`/organization/<oid>`) and the admin page (`/admin`).\nSend the caller wherever they actually have one.","operationId":"teams_landing_teams_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/teams/{team_id}":{"get":{"summary":"Team Detail","operationId":"team_detail_teams__team_id__get","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"integer","title":"Team Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/teams/{team_id}/edit":{"post":{"summary":"Team Edit","description":"Rename the team. Slug is intentionally NOT editable here — it's\nused in mailbox aliases (`<label>.<slug>@…`), the Nextcloud\ngroupfolder mount path, and team-owned agent ids; renaming the slug\nwould orphan all of those.","operationId":"team_edit_teams__team_id__edit_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"integer","title":"Team Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_team_edit_teams__team_id__edit_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/teams/{team_id}/manager":{"post":{"summary":"Team Set Manager","description":"Set the team's designated manager pointer (`teams.manager_user_id`).\nOnly existing team-role-managers in this team can be picked — pick\nthem via the role form first if they're currently just a member.\nupdate_team also adds a manager-role row if missing, so the new\ndesignee is guaranteed to keep manager rights.","operationId":"team_set_manager_teams__team_id__manager_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"integer","title":"Team Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_team_set_manager_teams__team_id__manager_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/teams/{team_id}/members":{"post":{"summary":"Team Add Member","operationId":"team_add_member_teams__team_id__members_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"integer","title":"Team Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_team_add_member_teams__team_id__members_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/teams/{team_id}/invites":{"post":{"summary":"Team Invite Create","description":"The department's old invite route. The portal has ONE invite route\nnow (organization.organization_invite_create; the \"Invite…\" dialog posts\nthere from here too, with team=<id>): a form still open in a tab is sent\non with 307 (method and body kept), `team` in the query, so the\ndepartment's own gate and words apply there exactly as they did here.\nThe gate is asked first, so the redirect tells nobody which organization\na department they may not change belongs to.","operationId":"team_invite_create_teams__team_id__invites_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"integer","title":"Team Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/teams/{team_id}/members/role":{"post":{"summary":"Team Change Member Role","description":"Promote a member to manager or demote a manager to member.\n\nReuses add_team_member's UPSERT — the (team_id, user_id) row already\nexists, so this just flips the role. Demoting the team's designated\nmanager_user_id also clears that pointer so it doesn't dangle as a\nmember-with-no-manager-rights.","operationId":"team_change_member_role_teams__team_id__members_role_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"integer","title":"Team Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_team_change_member_role_teams__team_id__members_role_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/teams/{team_id}/members/remove":{"post":{"summary":"Team Remove Member","operationId":"team_remove_member_teams__team_id__members_remove_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"integer","title":"Team Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_team_remove_member_teams__team_id__members_remove_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/teams/{team_id}/agents":{"post":{"summary":"Team Create Agent","description":"Provision a brand-new team-owned agent. Drives provision.create_team_agent\nend-to-end: agents row + mailbox + alias + Qdrant + LiteLLM key + container.\nErrors funnel back as redirect ?error=… so the team page renders the cause.\n\nThe form ships the template field (`template_hermes`); the select is\ndisabled in\nJS so we just pick the right one server-side.","operationId":"team_create_agent_teams__team_id__agents_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"integer","title":"Team Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_team_create_agent_teams__team_id__agents_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/teams/{team_id}/agents/{agent_id}/access":{"post":{"summary":"Team Agent Access","description":"One submit sets every member's level on one team agent. Editable by\nadmin, the org manager, or a holder of manage on THIS agent — a team\nmanager without a grant on it sees the panel read-only.","operationId":"team_agent_access_teams__team_id__agents__agent_id__access_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"integer","title":"Team Id"}},{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization":{"get":{"summary":"Organization Redirect","description":"Pick the right /organization/<oid> for the caller.\n\nPlatform admins without a tied org get redirected to /admin (every\norg is reachable from there). Otherwise: redirect to the caller's\nown organization, or 404 if they aren't in one.\n\nA member who does not manage it never had the organization page (it is\n403 for them): they go to the colleagues list, /account/people, which is\nwhat the retired /account/company showed them (\"one home\", 2026-11-23).\nThe top bar's \"Organization\" is the way there for everyone.","operationId":"organization_redirect_organization_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/organization/{organization_id}":{"get":{"summary":"Organization Dashboard","operationId":"organization_dashboard_organization__organization_id__get","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/teams":{"post":{"summary":"Organization Create Team","operationId":"organization_create_team_organization__organization_id__teams_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_organization_create_team_organization__organization_id__teams_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/teams/{team_id}/delete":{"post":{"summary":"Organization Delete Team","operationId":"organization_delete_team_organization__organization_id__teams__team_id__delete_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"integer","title":"Team Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/agents/{agent_id}/stop":{"post":{"summary":"Organization Stop Agent","operationId":"organization_stop_agent_organization__organization_id__agents__agent_id__stop_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}},{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/agents/{agent_id}/start":{"post":{"summary":"Organization Start Agent","operationId":"organization_start_agent_organization__organization_id__agents__agent_id__start_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}},{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/agents/{agent_id}/rename":{"post":{"summary":"Organization Rename Agent","operationId":"organization_rename_agent_organization__organization_id__agents__agent_id__rename_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}},{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_organization_rename_agent_organization__organization_id__agents__agent_id__rename_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/agents/{agent_id}/delete":{"post":{"summary":"Organization Delete Agent","description":"Tear down an agent end-to-end. Dispatches to delete_agent vs\ndelete_agent_for_team based on whether the row carries user_id or\nteam_id. Org membership is verified via list_agents_in_organization\nso a manager can't delete a foreign agent by guessing its id.","operationId":"organization_delete_agent_organization__organization_id__agents__agent_id__delete_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}},{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/invites":{"post":{"summary":"Organization Invite Create","description":"The portal's ONE invite route (\"one home\", 2026-11-23): the \"Invite…\"\ndialog (templates/_invite_dialog.html) posts here from the organization\npage and from a department page; /teams/<id>/invites and the retired\n/account/company/invites answer 307 here.\n\nWithout `team`: the organization's manager (or a platform admin) invites\ninto any number of this organization's departments, each with its role\nand assistant access (fields in app/invite_send.py).\n\nWith `team=<id>` (the dialog opened on a department page; in the query\nafter the department route's 307): that department's own gate, exactly\nas its route had it — whoever may change the department (admin, org\nmanager, its managers), only that department, and assistant access only\nwhere the caller may give it themselves (`may_grant`).\n\nEither way the rule lives in `invite_access.clean`, run when sent AND\nagain on accept, and the inviter goes back to `next` (a safe local path)\nor to the page the dialog belongs to.","operationId":"organization_invite_create_organization__organization_id__invites_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_organization_invite_create_organization__organization_id__invites_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/invites/{invite_id}/revoke":{"post":{"summary":"Organization Invite Revoke","operationId":"organization_invite_revoke_organization__organization_id__invites__invite_id__revoke_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}},{"name":"invite_id","in":"path","required":true,"schema":{"type":"integer","title":"Invite Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/members/{target_uid}/disable":{"post":{"summary":"Organization Member Disable","operationId":"organization_member_disable_organization__organization_id__members__target_uid__disable_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}},{"name":"target_uid","in":"path","required":true,"schema":{"type":"integer","title":"Target Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/members/{target_uid}/enable":{"post":{"summary":"Organization Member Enable","operationId":"organization_member_enable_organization__organization_id__members__target_uid__enable_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}},{"name":"target_uid","in":"path","required":true,"schema":{"type":"integer","title":"Target Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/skills":{"get":{"summary":"Organization Skills","description":"Browse the SAME curated store members see in the Store tab of /account/agent/<id>/skills, plus this\norganization's imported skills and its governance policy.\n\nIt used to read the reference agent's registry cache, which was a second,\nolder catalog: 259 rows with no category field, largely disjoint from the\nstore's. A manager browsing here saw a different product from the one their\npeople used, could not filter by category because the data had none, and\nwas offered skills the store had never heard of. One catalog, one shape,\none set of curation rules — the store — so the two pages agree.\n\nCurated rows are what a manager browses; search additionally reaches\ncommunity skills, exactly as the member store does, because a manager\nlooking for something specific should not be told it does not exist.","operationId":"organization_skills_organization__organization_id__skills_get","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/skills/import":{"post":{"summary":"Organization Skills Import","description":"Import a registry skill into the org catalog + schedule its install on\nevery org agent (in the background — the install loop is slow).","operationId":"organization_skills_import_organization__organization_id__skills_import_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_organization_skills_import_organization__organization_id__skills_import_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/skills/discard":{"post":{"summary":"Organization Skills Discard","description":"Throw away a pending catalog skill the manager decided not to roll out.\n\nDiscard DELETES, where enable/disable flip a state. A pending row has been\ndeployed to nothing, so there is nothing to keep a record of and nothing to\nunwind; leaving it behind as `disabled` would put a never-installed skill\nin the state that means \"installed, then turned off\" and hand it an Enable\nbutton. `only_status=\"pending\"` is enforced in the DELETE, so a rollout\nthat lands between the click and the statement wins and the discard\nrefuses, rather than removing a row that now has installs behind it.","operationId":"organization_skills_discard_organization__organization_id__skills_discard_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_organization_skills_discard_organization__organization_id__skills_discard_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/skills/rollout":{"post":{"summary":"Organization Skills Rollout","description":"Install a pending catalog skill on every assistant in the organization.\n\nThe second half of the import: the manager has seen what they added and\nsays deploy it. Only then does the row become `enabled` and the background\nfan-out run.","operationId":"organization_skills_rollout_organization__organization_id__skills_rollout_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_organization_skills_rollout_organization__organization_id__skills_rollout_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/skills/requests/decide":{"post":{"summary":"Organization Skill Request Decide","description":"Approve (install on the requester's agent, optionally add to the org\ncatalog) or reject a skill store request.","operationId":"organization_skill_request_decide_organization__organization_id__skills_requests_decide_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_organization_skill_request_decide_organization__organization_id__skills_requests_decide_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/skills/status":{"post":{"summary":"Organization Skills Status","description":"Enable or disable an org catalog skill. Status flip only — uninstall /\nref-counting across personas is handled by the persona-skills service later.\nThe identifier can contain '/', so it arrives as a form field (robust for\nslashes) rather than a path segment.","operationId":"organization_skills_status_organization__organization_id__skills_status_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_organization_skills_status_organization__organization_id__skills_status_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/skills/policy":{"post":{"summary":"Organization Skills Policy","description":"Set the org's skill-import governance policy (open|locked).","operationId":"organization_skills_policy_organization__organization_id__skills_policy_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_organization_skills_policy_organization__organization_id__skills_policy_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/skills/install-grant":{"post":{"summary":"Organization Skills Install Grant","description":"Let one member install skills themselves, or take that back.\n\nThe org-wide policy is one switch for everyone; this is the per-person\nexception a manager makes for the colleagues they trust. `_authorize_\norganization` already refuses anyone who is not this organization's\nmanager or a platform admin — a member must never be able to grant\nthemselves, which is exactly the bypass this feature would otherwise\nreintroduce.\n\nThe target is re-checked against the organization's own membership rather\nthan trusted from the form: user_id arrives from the browser, and a grant\nwritten for somebody else's member is at best inert and at worst a row\nnobody can explain.","operationId":"organization_skills_install_grant_organization__organization_id__skills_install_grant_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_organization_skills_install_grant_organization__organization_id__skills_install_grant_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/functions":{"get":{"summary":"Functions Index","operationId":"functions_index_account_functions_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"summary":"Function Create","operationId":"function_create_account_functions_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_function_create_account_functions_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/functions/new":{"get":{"summary":"Function New","operationId":"function_new_account_functions_new_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/account/functions/chat":{"post":{"summary":"Function Chat","operationId":"function_chat_account_functions_chat_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__functions_routes___ChatBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/functions/test":{"post":{"summary":"Function Test","operationId":"function_test_account_functions_test_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_TestBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/functions/{scope}/{owner_id}/{slug}":{"get":{"summary":"Function Detail","operationId":"function_detail_account_functions__scope___owner_id___slug__get","parameters":[{"name":"scope","in":"path","required":true,"schema":{"type":"string","title":"Scope"}},{"name":"owner_id","in":"path","required":true,"schema":{"type":"integer","title":"Owner Id"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Function Update","operationId":"function_update_account_functions__scope___owner_id___slug__post","parameters":[{"name":"scope","in":"path","required":true,"schema":{"type":"string","title":"Scope"}},{"name":"owner_id","in":"path","required":true,"schema":{"type":"integer","title":"Owner Id"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_function_update_account_functions__scope___owner_id___slug__post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/functions/{scope}/{owner_id}/{slug}/archive":{"post":{"summary":"Function Archive","operationId":"function_archive_account_functions__scope___owner_id___slug__archive_post","parameters":[{"name":"scope","in":"path","required":true,"schema":{"type":"string","title":"Scope"}},{"name":"owner_id","in":"path","required":true,"schema":{"type":"integer","title":"Owner Id"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_function_archive_account_functions__scope___owner_id___slug__archive_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/tasks/{task_id}/promote-function":{"post":{"summary":"Promote Task","operationId":"promote_task_account_tasks__task_id__promote_function_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_promote_task_account_tasks__task_id__promote_function_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/tasks/{task_id}/lift-function":{"get":{"summary":"Lift Function Form","operationId":"lift_function_form_account_tasks__task_id__lift_function_get","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Lift Function Create","operationId":"lift_function_create_account_tasks__task_id__lift_function_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/functions":{"get":{"summary":"Org Functions Redirect","operationId":"org_functions_redirect_organization__organization_id__functions_get","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/company/details":{"get":{"summary":"Company Details","operationId":"company_details_organization__organization_id__company_details_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"summary":"Company Details Save","operationId":"company_details_save_organization__organization_id__company_details_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/company/details":{"post":{"summary":"Company Details Save","operationId":"company_details_save_account_company_details_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/company/details/chat":{"post":{"summary":"Company Details Chat","description":"\"Help me fill this in\" — proposes values, never commits them.\n\nThe answer goes into the form fields for the owner to check. Nothing here\nwrites to disk: an assistant that quietly set a VAT number would produce a\nwrong invoice that nobody thinks to verify.","operationId":"company_details_chat_account_company_details_chat_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__company_routes___ChatBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/company/details/chat":{"post":{"summary":"Company Details Chat","description":"\"Help me fill this in\" — proposes values, never commits them.\n\nThe answer goes into the form fields for the owner to check. Nothing here\nwrites to disk: an assistant that quietly set a VAT number would produce a\nwrong invoice that nobody thinks to verify.","operationId":"company_details_chat_organization__organization_id__company_details_chat_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__company_routes___ChatBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/company/brand":{"get":{"summary":"Company Brand","operationId":"company_brand_organization__organization_id__company_brand_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/account/company/brand/logo":{"post":{"summary":"Company Brand Logo","description":"Store an uploaded logo.\n\nMultipart is read by hand and in bounded chunks, copying\n`signatures_routes.signatures_upload`: `await file.read()` with no limit is\na memory-exhaustion primitive behind a proxy that allows a 100 MB body.\nAuthorisation happens before a single byte is read.","operationId":"company_brand_logo_account_company_brand_logo_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/organization/{organization_id}/company/brand/logo":{"post":{"summary":"Company Brand Logo","description":"Store an uploaded logo.\n\nMultipart is read by hand and in bounded chunks, copying\n`signatures_routes.signatures_upload`: `await file.read()` with no limit is\na memory-exhaustion primitive behind a proxy that allows a 100 MB body.\nAuthorisation happens before a single byte is read.","operationId":"company_brand_logo_organization__organization_id__company_brand_logo_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/company/brand/logo/default":{"post":{"summary":"Company Brand Logo Default","description":"Make one saved logo the default. Writes it through to brand/logo.png.","operationId":"company_brand_logo_default_account_company_brand_logo_default_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/organization/{organization_id}/company/brand/logo/default":{"post":{"summary":"Company Brand Logo Default","description":"Make one saved logo the default. Writes it through to brand/logo.png.","operationId":"company_brand_logo_default_organization__organization_id__company_brand_logo_default_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/company/brand/logo/forget":{"post":{"summary":"Company Brand Logo Forget","description":"Drop one saved logo from the library.\n\nDeliberately leaves brand/logo.png alone even when the default is removed:\na letterhead silently emptying because something was tidied up is worse\nthan a stale mark the owner can replace.","operationId":"company_brand_logo_forget_account_company_brand_logo_forget_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/organization/{organization_id}/company/brand/logo/forget":{"post":{"summary":"Company Brand Logo Forget","description":"Drop one saved logo from the library.\n\nDeliberately leaves brand/logo.png alone even when the default is removed:\na letterhead silently emptying because something was tidied up is worse\nthan a stale mark the owner can replace.","operationId":"company_brand_logo_forget_organization__organization_id__company_brand_logo_forget_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/organization/{organization_id}/company/brand/logos/{asset_id}":{"get":{"summary":"Company Brand Logo Asset","description":"Serve one saved logo — the PNG, or ?original=1 for what was uploaded.\n\nThe original matters for SVG: it is vector, so it is the copy worth having\nwhen a document needs the mark at a size nobody has chosen yet.","operationId":"company_brand_logo_asset_organization__organization_id__company_brand_logos__asset_id__get","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/company/brand/logo/remove":{"post":{"summary":"Company Brand Logo Remove","operationId":"company_brand_logo_remove_account_company_brand_logo_remove_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/organization/{organization_id}/company/brand/logo/remove":{"post":{"summary":"Company Brand Logo Remove","operationId":"company_brand_logo_remove_organization__organization_id__company_brand_logo_remove_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/company/brand/colors":{"post":{"summary":"Company Brand Colors","description":"Save the palette. Only this route writes colours — a proposal derived\nfrom the logo is shown on the page and is never stored until the owner\nsubmits it here.","operationId":"company_brand_colors_account_company_brand_colors_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/organization/{organization_id}/company/brand/colors":{"post":{"summary":"Company Brand Colors","description":"Save the palette. Only this route writes colours — a proposal derived\nfrom the logo is shown on the page and is never stored until the owner\nsubmits it here.","operationId":"company_brand_colors_organization__organization_id__company_brand_colors_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/company/brand/kit":{"post":{"summary":"Company Brand Kit","description":"Read an uploaded brand kit and show what is in it. Writes nothing.\n\nThe archive is hostile input, so every limit and refusal lives in\n`brand_kit` and this route only reports the outcome. Members are staged in\na temp directory; the owner picks from the inventory and `/kit/apply`\nwrites through the same writers the individual forms use.","operationId":"company_brand_kit_account_company_brand_kit_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/organization/{organization_id}/company/brand/kit":{"post":{"summary":"Company Brand Kit","description":"Read an uploaded brand kit and show what is in it. Writes nothing.\n\nThe archive is hostile input, so every limit and refusal lives in\n`brand_kit` and this route only reports the outcome. Members are staged in\na temp directory; the owner picks from the inventory and `/kit/apply`\nwrites through the same writers the individual forms use.","operationId":"company_brand_kit_organization__organization_id__company_brand_kit_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/company/brand/kit/apply":{"post":{"summary":"Company Brand Kit Apply","description":"Apply the parts of a staged kit the owner picked.\n\nDeliberately not one \"import everything\" button: the logo is chosen from\nthe candidates and each colour role is assigned by hand, because a kit\ncarries more swatches than we have roles and only the owner knows which is\nwhich. Nothing here is new machinery — it calls `store_logo` and\n`save_colors`, the same two writers the individual forms call.","operationId":"company_brand_kit_apply_account_company_brand_kit_apply_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/organization/{organization_id}/company/brand/kit/apply":{"post":{"summary":"Company Brand Kit Apply","description":"Apply the parts of a staged kit the owner picked.\n\nDeliberately not one \"import everything\" button: the logo is chosen from\nthe candidates and each colour role is assigned by hand, because a kit\ncarries more swatches than we have roles and only the owner knows which is\nwhich. Nothing here is new machinery — it calls `store_logo` and\n`save_colors`, the same two writers the individual forms call.","operationId":"company_brand_kit_apply_organization__organization_id__company_brand_kit_apply_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/company/brand/language":{"post":{"summary":"Company Brand Language","description":"Which language documents are written in.","operationId":"company_brand_language_account_company_brand_language_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/organization/{organization_id}/company/brand/language":{"post":{"summary":"Company Brand Language","description":"Which language documents are written in.","operationId":"company_brand_language_organization__organization_id__company_brand_language_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/company/brand/letterhead":{"post":{"summary":"Company Brand Letterhead","description":"How tall the logo prints on a document.\n\nIts own route and its own form, next to the logo rather than inside the\ntypeface panel — an owner adjusting the mark is looking at the mark. The\nwriter merges, so saving a size cannot reset the typeface.","operationId":"company_brand_letterhead_account_company_brand_letterhead_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/organization/{organization_id}/company/brand/letterhead":{"post":{"summary":"Company Brand Letterhead","description":"How tall the logo prints on a document.\n\nIts own route and its own form, next to the logo rather than inside the\ntypeface panel — an owner adjusting the mark is looking at the mark. The\nwriter merges, so saving a size cannot reset the typeface.","operationId":"company_brand_letterhead_organization__organization_id__company_brand_letterhead_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/company/brand/typography":{"post":{"summary":"Company Brand Typography","description":"Save the typeface and sizes. The only route that writes them.\n\nRefuses rather than corrects. A body size silently clamped from 40pt to\n14pt is a setting the owner did not choose, handed back to them as though\nthey had — and they would only find out from a letter someone else is\nholding.","operationId":"company_brand_typography_account_company_brand_typography_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/organization/{organization_id}/company/brand/typography":{"post":{"summary":"Company Brand Typography","description":"Save the typeface and sizes. The only route that writes them.\n\nRefuses rather than corrects. A body size silently clamped from 40pt to\n14pt is a setting the owner did not choose, handed back to them as though\nthey had — and they would only find out from a letter someone else is\nholding.","operationId":"company_brand_typography_organization__organization_id__company_brand_typography_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/organization/{organization_id}/company/templates":{"get":{"summary":"Company Templates","operationId":"company_templates_organization__organization_id__company_templates_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/organization/{organization_id}/company/templates/{slug}":{"get":{"summary":"Company Template Edit","operationId":"company_template_edit_organization__organization_id__company_templates__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Company Template Save","operationId":"company_template_save_organization__organization_id__company_templates__slug__post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/company/templates/{slug}":{"post":{"summary":"Company Template Save","operationId":"company_template_save_account_company_templates__slug__post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/company/templates/{slug}/delete":{"post":{"summary":"Company Template Delete","operationId":"company_template_delete_account_company_templates__slug__delete_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/company/templates/{slug}/delete":{"post":{"summary":"Company Template Delete","operationId":"company_template_delete_organization__organization_id__company_templates__slug__delete_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/company/templates/{slug}/preview":{"post":{"summary":"Company Template Preview","description":"Render the draft against the real company facts, as JSON.\n\nTakes the body from the request rather than from disk so the owner sees\nwhat they are about to save, not what they saved last time.","operationId":"company_template_preview_account_company_templates__slug__preview_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/company/templates/{slug}/preview":{"post":{"summary":"Company Template Preview","description":"Render the draft against the real company facts, as JSON.\n\nTakes the body from the request rather than from disk so the owner sees\nwhat they are about to save, not what they saved last time.","operationId":"company_template_preview_organization__organization_id__company_templates__slug__preview_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/company/templates/{slug}/render":{"post":{"summary":"Company Template Render","description":"Produce the document and hand it straight back as a download.\n\nPOST, not GET: rendering shells out to pandoc, and a link a browser can\nprefetch is not the right shape for that.","operationId":"company_template_render_account_company_templates__slug__render_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/company/templates/{slug}/render":{"post":{"summary":"Company Template Render","description":"Produce the document and hand it straight back as a download.\n\nPOST, not GET: rendering shells out to pandoc, and a link a browser can\nprefetch is not the right shape for that.","operationId":"company_template_render_organization__organization_id__company_templates__slug__render_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/company/brand/logo.png":{"get":{"summary":"Company Brand Logo Bytes","description":"Serve the logo back for the preview on the brand page.\n\nGoes through the same `_authorize` gate as every other route here rather\nthan being mounted as a static directory: a static mount over the org tree\nwould make one tenant's logo readable by URL to anyone who guessed the id.","operationId":"company_brand_logo_bytes_organization__organization_id__company_brand_logo_png_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/company/{rest}":{"get":{"summary":"Old Company Get","description":"303 to the page's home under /organization/<id> (company_urls).","operationId":"old_company_get_account_company__rest__get","parameters":[{"name":"rest","in":"path","required":true,"schema":{"type":"string","title":"Rest"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/company":{"get":{"summary":"Old Company Get","description":"303 to the page's home under /organization/<id> (company_urls).","operationId":"old_company_get_account_company_get","parameters":[{"name":"rest","in":"query","required":false,"schema":{"type":"string","default":"","title":"Rest"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/setup":{"get":{"summary":"Company Assistant","operationId":"company_assistant_organization__organization_id__setup_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/account/company/assistant/chat":{"post":{"summary":"Company Assistant Chat","description":"Answer a question about this organisation's setup.\n\nRead-only. The probe results are gathered here and handed to the model as\nfact, rather than letting it recall or infer them — it has no way to know\nwhat this org has configured, and would guess fluently.","operationId":"company_assistant_chat_account_company_assistant_chat_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__advisor_routes___ChatBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/setup/chat":{"post":{"summary":"Company Assistant Chat","description":"Answer a question about this organisation's setup.\n\nRead-only. The probe results are gathered here and handed to the model as\nfact, rather than letting it recall or infer them — it has no way to know\nwhat this org has configured, and would guess fluently.","operationId":"company_assistant_chat_organization__organization_id__setup_chat_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__advisor_routes___ChatBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/company/assistant/lookup":{"post":{"summary":"Company Assistant Lookup","description":"Read the company's own website. Read-only — nothing is written.\n\nWhat comes back is a set of candidates with the URL they came from. The\nowner confirms them through the normal proposal path, so a lookup that\nfinds the wrong company costs a rejected card, not a rewritten profile.\n\n**The body is parsed by hand, and it has to be.** `@limiter.limit` replaces\nthis function with a wrapper defined inside slowapi, and FastAPI then reads\nthe wrapper's signature — a pydantic body parameter is reclassified as a\nrequired *query* parameter, so every real request is answered 422 before\nthe handler runs. This route shipped with `body: _LookupBody` and therefore\nnever worked in a browser; nothing failed loudly, because a 422 on a fetch\nrenders as \"the lookup is unavailable\". Every other rate-limited route in\nthis app already takes only `request` for the same reason — see\n`signatures_routes.signatures_editor_submit` and the upload route's note.","operationId":"company_assistant_lookup_account_company_assistant_lookup_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/organization/{organization_id}/setup/lookup":{"post":{"summary":"Company Assistant Lookup","description":"Read the company's own website. Read-only — nothing is written.\n\nWhat comes back is a set of candidates with the URL they came from. The\nowner confirms them through the normal proposal path, so a lookup that\nfinds the wrong company costs a rejected card, not a rewritten profile.\n\n**The body is parsed by hand, and it has to be.** `@limiter.limit` replaces\nthis function with a wrapper defined inside slowapi, and FastAPI then reads\nthe wrapper's signature — a pydantic body parameter is reclassified as a\nrequired *query* parameter, so every real request is answered 422 before\nthe handler runs. This route shipped with `body: _LookupBody` and therefore\nnever worked in a browser; nothing failed loudly, because a 422 on a fetch\nrenders as \"the lookup is unavailable\". Every other rate-limited route in\nthis app already takes only `request` for the same reason — see\n`signatures_routes.signatures_editor_submit` and the upload route's note.","operationId":"company_assistant_lookup_organization__organization_id__setup_lookup_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/company/assistant/propose":{"post":{"summary":"Company Assistant Propose","description":"Turn arguments into a confirm-card. Writes nothing.\n\nAn attachment is a proposal the owner makes rather than one the model\nmakes, but it has to arrive as the same card or it is a second way to\nchange a tenant's configuration with its own rules. So the browser sends\nwhat was picked, this validates it, and the card text comes back rendered\nfrom the CLEANED arguments — the same invariant the chat path holds, and\nthe reason none of this is composed in JavaScript.","operationId":"company_assistant_propose_account_company_assistant_propose_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_ProposeBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/setup/propose":{"post":{"summary":"Company Assistant Propose","description":"Turn arguments into a confirm-card. Writes nothing.\n\nAn attachment is a proposal the owner makes rather than one the model\nmakes, but it has to arrive as the same card or it is a second way to\nchange a tenant's configuration with its own rules. So the browser sends\nwhat was picked, this validates it, and the card text comes back rendered\nfrom the CLEANED arguments — the same invariant the chat path holds, and\nthe reason none of this is composed in JavaScript.","operationId":"company_assistant_propose_organization__organization_id__setup_propose_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_ProposeBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/company/assistant/apply":{"post":{"summary":"Company Assistant Apply","description":"Apply one proposal. The only write path in the advisor.\n\nRe-validates from scratch. The arguments arrive from a browser that got\nthem from a model, so neither link in that chain is trusted — this is the\nonly point where they can be checked with any meaning.","operationId":"company_assistant_apply_account_company_assistant_apply_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_ApplyBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/setup/apply":{"post":{"summary":"Company Assistant Apply","description":"Apply one proposal. The only write path in the advisor.\n\nRe-validates from scratch. The arguments arrive from a browser that got\nthem from a model, so neither link in that chain is trusted — this is the\nonly point where they can be checked with any meaning.","operationId":"company_assistant_apply_organization__organization_id__setup_apply_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_ApplyBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/company/assistant/dismiss":{"post":{"summary":"Company Assistant Dismiss","operationId":"company_assistant_dismiss_account_company_assistant_dismiss_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/organization/{organization_id}/setup/dismiss":{"post":{"summary":"Company Assistant Dismiss","operationId":"company_assistant_dismiss_organization__organization_id__setup_dismiss_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/company/assistant/snooze":{"post":{"summary":"Company Assistant Snooze","operationId":"company_assistant_snooze_account_company_assistant_snooze_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/organization/{organization_id}/setup/snooze":{"post":{"summary":"Company Assistant Snooze","operationId":"company_assistant_snooze_organization__organization_id__setup_snooze_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/company/assistant/reopen":{"post":{"summary":"Company Assistant Reopen","operationId":"company_assistant_reopen_account_company_assistant_reopen_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/organization/{organization_id}/setup/reopen":{"post":{"summary":"Company Assistant Reopen","operationId":"company_assistant_reopen_organization__organization_id__setup_reopen_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/company/assistant/website":{"post":{"summary":"Company Assistant Website","description":"Record that the company has no website, or take it back.\n\nIts own route rather than a value in the company profile. `website` there\nis a fact printed on letters; \"there isn't one\" is an answer to a question\nthis page asks, and storing a sentinel like \"none\" in the profile would put\nthat sentinel on a quote. Same reasoning as the reminder-email switch, and\nthe same mechanism: one row in the advisor state table.\n\nNot reachable through /dismiss — see RESERVED_ITEMS.","operationId":"company_assistant_website_account_company_assistant_website_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/organization/{organization_id}/setup/website":{"post":{"summary":"Company Assistant Website","description":"Record that the company has no website, or take it back.\n\nIts own route rather than a value in the company profile. `website` there\nis a fact printed on letters; \"there isn't one\" is an answer to a question\nthis page asks, and storing a sentinel like \"none\" in the profile would put\nthat sentinel on a quote. Same reasoning as the reminder-email switch, and\nthe same mechanism: one row in the advisor state table.\n\nNot reachable through /dismiss — see RESERVED_ITEMS.","operationId":"company_assistant_website_organization__organization_id__setup_website_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/company/assistant/emails":{"post":{"summary":"Company Assistant Emails","description":"Switch the reminder mail off, or back on.\n\nOff is the same `dismissed` row the digest already consults for pacing, so\n\"stop emailing me\" cannot be honoured by one code path and forgotten by\nanother.","operationId":"company_assistant_emails_account_company_assistant_emails_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/organization/{organization_id}/setup/emails":{"post":{"summary":"Company Assistant Emails","description":"Switch the reminder mail off, or back on.\n\nOff is the same `dismissed` row the digest already consults for pacing, so\n\"stop emailing me\" cannot be honoured by one code path and forgotten by\nanother.","operationId":"company_assistant_emails_organization__organization_id__setup_emails_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/signatures":{"get":{"summary":"Signatures Index","operationId":"signatures_index_account_signatures_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/account/signatures/new":{"get":{"summary":"Signatures New Form","description":"Retired 2026-08-01 — the three-step editor replaced this form.\n\nKept as a redirect rather than deleted outright: the path is in people's\nhistory and bookmarks, and a 404 for a link that worked yesterday is a\nworse answer than the page that now does the job.","operationId":"signatures_new_form_account_signatures_new_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/signatures/editor":{"get":{"summary":"Signatures Editor","description":"The three-step document editor — the canonical create flow.\n\nBuilt alongside the old form rather than replacing it in place, so no\nhalf-finished phase could take the working path down; `/new` was retired\nonly once this route's submit was demonstrated end-to-end against live\nDocumenso (2026-08-01) and now 308s here.\n\nThe step comes from the query string so refresh, back/forward and a shared\nlink all land in the same place — that is the point of putting it in the\nURL rather than in client state.","operationId":"signatures_editor_account_signatures_editor_get","parameters":[{"name":"step","in":"query","required":false,"schema":{"type":"string","default":"","title":"Step"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/signatures/editor/submit":{"post":{"summary":"Signatures Editor Submit","description":"Turn the browser-held draft into a request + DRAFT envelope.\n\nJSON in, JSON out — the editor stays on the page and shows the error in\nplace rather than losing a draft to a redirect.\n\nBody parsed by hand for the same reason the upload route does: `@limiter`\nreplaces this function with a wrapper defined inside slowapi, so FastAPI\nresolves annotations in slowapi's namespace and any non-builtin type\nbreaks at import. See app/signatures.py history and the upload route.","operationId":"signatures_editor_submit_account_signatures_editor_submit_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/signatures/files":{"get":{"summary":"Signatures Files","description":"PDF picker backend. Scoped read — never a free-form filesystem browse.","operationId":"signatures_files_account_signatures_files_get","parameters":[{"name":"scope","in":"query","required":true,"schema":{"type":"string","title":"Scope"}},{"name":"owner_id","in":"query","required":true,"schema":{"type":"integer","title":"Owner Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/signatures/upload":{"post":{"summary":"Signatures Upload","description":"Store a browser-uploaded PDF in a scope, and report where it landed.\n\nAnswers JSON rather than redirecting, and is called before the form is\nsubmitted, because the placement editor renders page previews server-side\nfrom a scope-relative path. The file therefore has to exist on disk\n*before* anyone can drop a signature box on it — a plain multipart submit\nwould mean placing fields blind.\n\nSame authorization as the picker: `can_edit` on the scope. The upload\nlands under a fixed directory and its name is rebuilt from scratch by\n`safe_upload_name`, so the uploader chooses the label, never the path.\n\n⚠️ The multipart body is parsed by hand rather than declared as\n`file: UploadFile = File(...)`. `@limiter.limit` replaces this function\nwith a wrapper defined inside slowapi, so the wrapper's `__globals__` is\nslowapi's module namespace — and with `from __future__ import annotations`\nevery annotation is a string FastAPI must resolve *there*. `UploadFile` is\nnot in that namespace, so declaring it crashes the whole app at import\nwith `Invalid args for response field! ... ForwardRef('UploadFile')`. This\nis the same slowapi-hides-the-signature trap that makes `BackgroundTasks`\nunusable on a limited route; `str`/`int` survive only because FastAPI\nspecial-cases builtins.","operationId":"signatures_upload_account_signatures_upload_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/signatures/templates":{"get":{"summary":"Signatures Templates","description":"Field sets saved for one scope. Backend for the editor's load dropdown.","operationId":"signatures_templates_account_signatures_templates_get","parameters":[{"name":"scope","in":"query","required":true,"schema":{"type":"string","title":"Scope"}},{"name":"owner_id","in":"query","required":true,"schema":{"type":"integer","title":"Owner Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Signatures Template Save","description":"Save the current placement set under a name, for this scope.\n\nAnswers with JSON rather than a redirect: this is called from the editor\nwithout leaving the form, and bouncing the page would throw away every\nfield the user has placed but not yet sent.","operationId":"signatures_template_save_account_signatures_templates_post","requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_signatures_template_save_account_signatures_templates_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/signatures/templates/{template_id}/delete":{"post":{"summary":"Signatures Template Delete","operationId":"signatures_template_delete_account_signatures_templates__template_id__delete_post","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/signatures/page-image":{"get":{"summary":"Signatures Page Image","description":"One rendered PDF page, for the field placement editor.\n\nScoped exactly like the picker: the caller must be able to edit the scope,\nand the path goes through the same sandbox helper. Without both, this is a\nread-any-PDF-on-the-box endpoint wearing a preview costume.","operationId":"signatures_page_image_account_signatures_page_image_get","parameters":[{"name":"scope","in":"query","required":true,"schema":{"type":"string","title":"Scope"}},{"name":"owner_id","in":"query","required":true,"schema":{"type":"integer","title":"Owner Id"}},{"name":"path","in":"query","required":true,"schema":{"type":"string","title":"Path"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"width","in":"query","required":false,"schema":{"type":"integer","default":900,"title":"Width"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/signatures/page-count":{"get":{"summary":"Signatures Page Count","operationId":"signatures_page_count_account_signatures_page_count_get","parameters":[{"name":"scope","in":"query","required":true,"schema":{"type":"string","title":"Scope"}},{"name":"owner_id","in":"query","required":true,"schema":{"type":"integer","title":"Owner Id"}},{"name":"path","in":"query","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/signatures/{request_id}":{"get":{"summary":"Signatures Detail","operationId":"signatures_detail_account_signatures__request_id__get","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/signatures/{request_id}/prepare":{"post":{"summary":"Signatures Prepare","description":"Turn a staged document into a DRAFT envelope the human can then send.\n\nThis is flow (a): an agent or the mail processor staged a document, and the\nhuman wants to sign it. The signed-in user becomes the sole signer — the\n\"send it to a counterparty\" case is /account/signatures/new instead.\n\nUntil this existed, a staged request had no action at all on its detail\npage (Send is gated on `status == 'draft' and documenso_envelope_id`, and\nprepare_envelope was only ever reachable from the create-from-scratch\nform), so flow (a) was unreachable through the UI.\n\nTakes `layout`/`preset`/`page` as form fields. #192 claimed a @limiter route could\nnot accept them — that was too broad. The /hooks/documenso failure was\nspecific to an injected `BackgroundTasks`; /account/signatures/new has been\nrate-limited *and* taking Form(...) params in production all along.","operationId":"signatures_prepare_account_signatures__request_id__prepare_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_signatures_prepare_account_signatures__request_id__prepare_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/signatures/{request_id}/send":{"post":{"summary":"Signatures Send","operationId":"signatures_send_account_signatures__request_id__send_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/signatures/{request_id}/cancel":{"post":{"summary":"Signatures Cancel","operationId":"signatures_cancel_account_signatures__request_id__cancel_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/signatures/{request_id}/remove":{"post":{"summary":"Signatures Remove","description":"Forget a dead request. Which statuses qualify is `sig.remove_request`'s\ncall, not the template's — the button is only a shortcut to it, and a stale\npage must not be able to remove something the rules now protect.","operationId":"signatures_remove_account_signatures__request_id__remove_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/signatures/{request_id}/delete":{"post":{"summary":"Signatures Delete","description":"Destroy a completed request and its signed PDF.\n\nSeparate from /remove on purpose, and gated on a typed confirmation: this\nis the only action in the editor that destroys the artefact of a finished\nsigning, and a mis-click on a dialog button is not enough intent for that.","operationId":"signatures_delete_account_signatures__request_id__delete_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/signatures/{request_id}/download":{"get":{"summary":"Signatures Download","operationId":"signatures_download_account_signatures__request_id__download_get","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/hooks/documenso":{"post":{"summary":"Documenso Webhook","operationId":"documenso_webhook_hooks_documenso_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/organization/{organization_id}/memory":{"get":{"summary":"Org Memory View","operationId":"org_memory_view_organization__organization_id__memory_get","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Org Memory Save","operationId":"org_memory_save_organization__organization_id__memory_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_org_memory_save_organization__organization_id__memory_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/persona":{"get":{"summary":"Org Persona View","operationId":"org_persona_view_organization__organization_id__persona_get","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Org Persona Save","operationId":"org_persona_save_organization__organization_id__persona_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_org_persona_save_organization__organization_id__persona_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/teams/{team_id}/memory":{"get":{"summary":"Team Memory View","operationId":"team_memory_view_teams__team_id__memory_get","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"integer","title":"Team Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Team Memory Save","operationId":"team_memory_save_teams__team_id__memory_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"integer","title":"Team Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_team_memory_save_teams__team_id__memory_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/memory/proposals":{"get":{"summary":"Proposals View","operationId":"proposals_view_organization__organization_id__memory_proposals_get","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/memory/proposals/approve":{"post":{"summary":"Proposal Approve","operationId":"proposal_approve_organization__organization_id__memory_proposals_approve_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_proposal_approve_organization__organization_id__memory_proposals_approve_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/memory/proposals/reject":{"post":{"summary":"Proposal Reject","operationId":"proposal_reject_organization__organization_id__memory_proposals_reject_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_proposal_reject_organization__organization_id__memory_proposals_reject_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/memory/notes/withdraw":{"post":{"summary":"Note Withdraw","operationId":"note_withdraw_organization__organization_id__memory_notes_withdraw_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_note_withdraw_organization__organization_id__memory_notes_withdraw_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/memory/proposals/policy":{"post":{"summary":"Policy Save","operationId":"policy_save_organization__organization_id__memory_proposals_policy_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_policy_save_organization__organization_id__memory_proposals_policy_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/memory/items":{"get":{"summary":"Items List","operationId":"items_list_organization__organization_id__memory_items_get","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/memory/search":{"get":{"summary":"Content Search","description":"Search the CONTENT of the items this session may read\n(app/knowledge_search.py: by meaning and by words, under the registry's\nrule). ?q=…; ?format=json for the same data. A search that finds only\nwhat this viewer may not read answers exactly like one that finds\nnothing: 200, the same shape, no count.","operationId":"content_search_organization__organization_id__memory_search_get","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/memory/items/export":{"get":{"summary":"Items Export","description":"The list, with the list page's filters, as a download. Declared\nbefore …/items/{item_id}, which would take \"export\" for an id.","operationId":"items_export_organization__organization_id__memory_items_export_get","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/memory/items/trash":{"get":{"summary":"Items Trash","operationId":"items_trash_organization__organization_id__memory_items_trash_get","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/memory/items/settings":{"get":{"summary":"Items Settings","operationId":"items_settings_organization__organization_id__memory_items_settings_get","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Items Settings Save","operationId":"items_settings_save_organization__organization_id__memory_items_settings_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/memory/items/{item_id}/reach":{"get":{"summary":"Item Reach","operationId":"item_reach_organization__organization_id__memory_items__item_id__reach_get","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/memory/items/{item_id}/reach/export":{"get":{"summary":"Item Reach Export","operationId":"item_reach_export_organization__organization_id__memory_items__item_id__reach_export_get","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/memory/report":{"get":{"summary":"Principal Report Page","operationId":"principal_report_page_organization__organization_id__memory_report_get","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/memory/report/export":{"get":{"summary":"Principal Report Export","operationId":"principal_report_export_organization__organization_id__memory_report_export_get","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/memory/items/settings/adopt-reach":{"post":{"summary":"Items Adopt Reach","description":"The manager's button on the settings page: without apply=1 a preview\n(nothing written); apply=1 with the preview's digest writes the entries\n— when what the bots reach changed since, a new preview instead.","operationId":"items_adopt_reach_organization__organization_id__memory_items_settings_adopt_reach_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/memory/items/{item_id}":{"get":{"summary":"Item View","operationId":"item_view_organization__organization_id__memory_items__item_id__get","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/memory/items/{item_id}/export":{"get":{"summary":"Item Export","operationId":"item_export_organization__organization_id__memory_items__item_id__export_get","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/memory/items/{item_id}/details":{"post":{"summary":"Item Details","operationId":"item_details_organization__organization_id__memory_items__item_id__details_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/memory/items/{item_id}/status":{"post":{"summary":"Item Status","operationId":"item_status_organization__organization_id__memory_items__item_id__status_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/memory/items/{item_id}/access":{"post":{"summary":"Item Access","operationId":"item_access_organization__organization_id__memory_items__item_id__access_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/memory/items/{item_id}/documents/reimport":{"post":{"summary":"Item Document Reimport","description":"\"Re-import\" of ONE store document (its path below the item: form\nfield `doc`): a `reindex` queued with its path_ref. Who manages the item\nonly (not_manager: 403, nothing queued); an item or document this\nviewer may not see, or another item's: 404.","operationId":"item_document_reimport_organization__organization_id__memory_items__item_id__documents_reimport_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/memory/items/{item_id}/flags":{"post":{"summary":"Item Flags Save","description":"The item's topics (edit) and department (manage). Who may not edit\nthe item: 403 and nothing written (a hidden item: 404); the department\nchanged by someone without manage: 403, nothing written. A typed name is\nadded to the list by the save itself (one transaction).","operationId":"item_flags_save_organization__organization_id__memory_items__item_id__flags_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/memory/items/{item_id}/documents/flags":{"post":{"summary":"Item Document Flags","description":"One document's OWN topics (form field `doc`: its path below the item):\n`edit` on the item (403 otherwise, nothing written). Taking off an\nautomatic one keeps it as removed (store.set_document_topics), so the\nintake never sets it again. A document this viewer's Documents tab does\nnot list: 404.","operationId":"item_document_flags_organization__organization_id__memory_items__item_id__documents_flags_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/memory/topics":{"get":{"summary":"Topics Page","description":"The organization's topics, each with how many items THIS viewer may\nsee carry it (a topic used only where they cannot look counts 0, like an\nunused one). Any member adds one; the organization's and the\ndepartments' managers rename, merge, archive and restore (⋯).","operationId":"topics_page_organization__organization_id__memory_topics_get","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Topics Save","description":"op=add (any member: name, kind, parent) | edit (topic, name, aliases\ncomma separated, description, parent — empty = none) | rename (topic,\nname) | merge (topic, into) | archive (topic) | restore (topic): the\nstore decides who may (not_member / not_manager) and which parent may be\nchosen (bad_parent: another organization's, or a cycle); the page only\nsays it. A changed name, alias or description clears the topic's\nembedding (store.update_topic): the indexer embeds it again.","operationId":"topics_save_organization__organization_id__memory_topics_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/memory/items/{item_id}/restore":{"post":{"summary":"Item Restore","operationId":"item_restore_organization__organization_id__memory_items__item_id__restore_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/memory/items/{item_id}/untrash":{"post":{"summary":"Item Untrash","operationId":"item_untrash_organization__organization_id__memory_items__item_id__untrash_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/alerts":{"get":{"summary":"Organization Alerts","operationId":"organization_alerts_organization__organization_id__alerts_get","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/alerts/check":{"post":{"summary":"Organization Alerts Check","operationId":"organization_alerts_check_organization__organization_id__alerts_check_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/alerts/{alert_id}":{"get":{"summary":"Organization Alert","operationId":"organization_alert_organization__organization_id__alerts__alert_id__get","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}},{"name":"alert_id","in":"path","required":true,"schema":{"type":"integer","title":"Alert Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/alerts/{alert_id}/{action}":{"post":{"summary":"Organization Alert Act","operationId":"organization_alert_act_organization__organization_id__alerts__alert_id___action__post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}},{"name":"alert_id","in":"path","required":true,"schema":{"type":"integer","title":"Alert Id"}},{"name":"action","in":"path","required":true,"schema":{"type":"string","title":"Action"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/alerts":{"get":{"summary":"Account Alerts","operationId":"account_alerts_account_alerts_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/account/alerts/{alert_id}":{"get":{"summary":"Account Alert","operationId":"account_alert_account_alerts__alert_id__get","parameters":[{"name":"alert_id","in":"path","required":true,"schema":{"type":"integer","title":"Alert Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/alerts/{alert_id}/{action}":{"post":{"summary":"Account Alert Act","operationId":"account_alert_act_account_alerts__alert_id___action__post","parameters":[{"name":"alert_id","in":"path","required":true,"schema":{"type":"integer","title":"Alert Id"}},{"name":"action","in":"path","required":true,"schema":{"type":"string","title":"Action"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/alerts":{"get":{"summary":"Admin Alerts","operationId":"admin_alerts_admin_alerts_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/admin/alerts/check":{"post":{"summary":"Admin Alerts Check","operationId":"admin_alerts_check_admin_alerts_check_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/alerts/{alert_id}":{"get":{"summary":"Admin Alert","operationId":"admin_alert_admin_alerts__alert_id__get","parameters":[{"name":"alert_id","in":"path","required":true,"schema":{"type":"integer","title":"Alert Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/alerts/{alert_id}/{action}":{"post":{"summary":"Admin Alert Act","operationId":"admin_alert_act_admin_alerts__alert_id___action__post","parameters":[{"name":"alert_id","in":"path","required":true,"schema":{"type":"integer","title":"Alert Id"}},{"name":"action","in":"path","required":true,"schema":{"type":"string","title":"Action"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/agent/{agent_id}/skills/proposals":{"get":{"summary":"Proposals View","description":"Moved: the Requests tab of /account/agent/<id>/skills. The same gate\nfirst, so this address answers as it did (404 unknown, 403 without\nmanage); then 303, flash and error kept.","operationId":"proposals_view_account_agent__agent_id__skills_proposals_get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/agent/{agent_id}/skills/proposals/decide":{"post":{"summary":"Proposals Decide","operationId":"proposals_decide_account_agent__agent_id__skills_proposals_decide_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_proposals_decide_account_agent__agent_id__skills_proposals_decide_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/skills/store/skill":{"get":{"summary":"Store Skill","operationId":"store_skill_account_skills_store_skill_get","parameters":[{"name":"identifier","in":"query","required":true,"schema":{"type":"string","title":"Identifier"}},{"name":"agent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/skills/store/install":{"post":{"summary":"Store Install","operationId":"store_install_account_skills_store_install_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_store_install_account_skills_store_install_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/skills/store/install-link":{"post":{"summary":"Store Install Link","description":"Install a skill from a pasted link.\n\nA link is the least governed thing on the platform: there is no store row\nbehind it, so no tier, no category, and no curation ever looked at it.\nThree rules follow, and they are the whole route.\n\n1. Managers only. `ctx.is_manager` is admin-or-this-organization's-manager,\n   already the gate elsewhere. A member holding an install GRANT does not\n   qualify, deliberately: a grant says \"you may choose among what we\n   offer\", never \"you may introduce something nobody has seen\".\n2. The catalog still gets the first word. A system `rejected` refuses here\n   exactly as it does in the store — otherwise pasting the banned skill's\n   own URL would be the way around the ban.\n3. It is ALWAYS recorded for review, not only when the catalog has no\n   opinion. That is the one place this deviates from `store_install`, and\n   it is the point: a link install is never silently blessed.\n\nNote what is NOT here: no `force`. `install_skill_url` takes no such\nargument, so a blocked scan verdict stays blocking.","operationId":"store_install_link_account_skills_store_install_link_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_store_install_link_account_skills_store_install_link_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/skills/store/uninstall":{"post":{"summary":"Store Uninstall","operationId":"store_uninstall_account_skills_store_uninstall_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_store_uninstall_account_skills_store_uninstall_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/agent/{agent_id}/skills":{"get":{"summary":"Skills Home","operationId":"skills_home_account_agent__agent_id__skills_get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/agent/template-follow":{"post":{"summary":"Template Follow","operationId":"template_follow_account_agent_template_follow_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_template_follow_account_agent_template_follow_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/agent/{agent_id}/template/reapply":{"post":{"summary":"Template Reapply","description":"Apply the template's CURRENT state to this agent, once, now.\n\nFollowing is a standing choice checked daily; this is a single deliberate\npush for an agent that does not follow — the template gained a skill, or\nits bundle commit moved, and someone wants it here without opting into\nevery future change.\n\nSame rules as the follow tick, deliberately: skills are queued as an\nupdate (installs what the template gained, removes what it dropped, and\nonly skills it installed itself), and the instructions are replaced only\nwhen nobody has edited them — otherwise the owner gets the diff to review.\nA re-apply is not a licence to overwrite someone's work.","operationId":"template_reapply_account_agent__agent_id__template_reapply_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/agent/{agent_id}/template/soul-review":{"get":{"summary":"Soul Review","operationId":"soul_review_account_agent__agent_id__template_soul_review_get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/agent/{agent_id}/template/soul-apply":{"post":{"summary":"Soul Apply","operationId":"soul_apply_account_agent__agent_id__template_soul_apply_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/agent/{agent_id}/save-template":{"get":{"summary":"Save Template Form","operationId":"save_template_form_account_agent__agent_id__save_template_get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Save Template","operationId":"save_template_account_agent__agent_id__save_template_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/templates":{"get":{"summary":"Org Templates","operationId":"org_templates_organization__organization_id__templates_get","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/templates/system":{"post":{"summary":"Org System Template Toggle","description":"Offer or hide one platform template for this organization.\n\nHiding removes it from the picker AND makes `is_valid` refuse it, so the\nchoice is real rather than cosmetic. Assistants already created from it\nare untouched — this is about what people may pick next.","operationId":"org_system_template_toggle_organization__organization_id__templates_system_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_org_system_template_toggle_organization__organization_id__templates_system_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/templates/{template_id}/update":{"post":{"summary":"Org Template Update","operationId":"org_template_update_organization__organization_id__templates__template_id__update_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}},{"name":"template_id","in":"path","required":true,"schema":{"type":"integer","title":"Template Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/templates/{template_id}/delete":{"post":{"summary":"Org Template Delete","operationId":"org_template_delete_organization__organization_id__templates__template_id__delete_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}},{"name":"template_id","in":"path","required":true,"schema":{"type":"integer","title":"Template Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/knowledge":{"get":{"summary":"Knowledge Home Page","operationId":"knowledge_home_page_organization__organization_id__knowledge_get","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/knowledge/items/{item_id}/check":{"post":{"summary":"Knowledge Check Now","description":"Check now for one source (store.request_reindex, C4). not_found (not\nvisible, not there, another organization: one answer) and a non-source\nare 404; the other refusals go back to the home with their words.","operationId":"knowledge_check_now_organization__organization_id__knowledge_items__item_id__check_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/knowledge/unreadable":{"get":{"summary":"Knowledge Unreadable Page","operationId":"knowledge_unreadable_page_organization__organization_id__knowledge_unreadable_get","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/graph.json":{"get":{"summary":"Vault Graph Json","operationId":"vault_graph_json_organization__organization_id__graph_json_get","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/graph":{"get":{"summary":"Vault Graph Page","operationId":"vault_graph_page_organization__organization_id__graph_get","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/folder/{owner_kind}/{owner_id}/acl":{"get":{"summary":"Acl Dashboard","operationId":"acl_dashboard_folder__owner_kind___owner_id__acl_get","parameters":[{"name":"owner_kind","in":"path","required":true,"schema":{"type":"string","title":"Owner Kind"}},{"name":"owner_id","in":"path","required":true,"schema":{"type":"integer","title":"Owner Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Acl Create","operationId":"acl_create_folder__owner_kind___owner_id__acl_post","parameters":[{"name":"owner_kind","in":"path","required":true,"schema":{"type":"string","title":"Owner Kind"}},{"name":"owner_id","in":"path","required":true,"schema":{"type":"integer","title":"Owner Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_acl_create_folder__owner_kind___owner_id__acl_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/folder/{owner_kind}/{owner_id}/knowledge/details":{"get":{"summary":"Folder Knowledge Details","description":"Per-folder knowledge details: how many files on disk under this\nsubpath, how many chunks Qdrant has for it, and which files are\nindexed vs missing.","operationId":"folder_knowledge_details_folder__owner_kind___owner_id__knowledge_details_get","parameters":[{"name":"owner_kind","in":"path","required":true,"schema":{"type":"string","title":"Owner Kind"}},{"name":"owner_id","in":"path","required":true,"schema":{"type":"integer","title":"Owner Id"}},{"name":"subpath","in":"query","required":false,"schema":{"type":"string","default":"","title":"Subpath"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/folder/{owner_kind}/{owner_id}/file":{"get":{"summary":"Folder File View","description":"Show one file's FULL content in the portal, no download required.\n\nAuthorisation is the same `_authorize` gate as the folder's other pages —\na viewer must not be a second, weaker way into the same bytes. Path\ncontainment is `safe_owner_path`, which refuses `..` and symlink escapes\nby resolving both sides.","operationId":"folder_file_view_folder__owner_kind___owner_id__file_get","parameters":[{"name":"owner_kind","in":"path","required":true,"schema":{"type":"string","title":"Owner Kind"}},{"name":"owner_id","in":"path","required":true,"schema":{"type":"integer","title":"Owner Id"}},{"name":"path","in":"query","required":false,"schema":{"type":"string","default":"","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/folder/{owner_kind}/{owner_id}/file/raw":{"get":{"summary":"Folder File Raw","description":"Serve the bytes — inline for PDFs/images, attachment when ?download=1.","operationId":"folder_file_raw_folder__owner_kind___owner_id__file_raw_get","parameters":[{"name":"owner_kind","in":"path","required":true,"schema":{"type":"string","title":"Owner Kind"}},{"name":"owner_id","in":"path","required":true,"schema":{"type":"integer","title":"Owner Id"}},{"name":"path","in":"query","required":false,"schema":{"type":"string","default":"","title":"Path"}},{"name":"download","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Download"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/folder/{owner_kind}/{owner_id}/knowledge/reindex":{"post":{"summary":"Folder Knowledge Reindex","description":"Prune orphans and pick up anything new, for every flagged root.\n\nRuns detached: the indexer walks all flagged roots, and holding the\nrequest open for that would time out the browser on a large tenant while\nthe work carried on invisibly. The page shows counts, so a refresh is the\nprogress bar.","operationId":"folder_knowledge_reindex_folder__owner_kind___owner_id__knowledge_reindex_post","parameters":[{"name":"owner_kind","in":"path","required":true,"schema":{"type":"string","title":"Owner Kind"}},{"name":"owner_id","in":"path","required":true,"schema":{"type":"integer","title":"Owner Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_folder_knowledge_reindex_folder__owner_kind___owner_id__knowledge_reindex_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/folder/{owner_kind}/{owner_id}/knowledge":{"post":{"summary":"Folder Set Knowledge","description":"Toggle the per-folder memory-ingest flag. `subpath=\"\"` flags the\nfolder root. `enabled` is \"on\" or empty (unchecked-style POST). OFF\ntakes the folder out of memory (store.set_knowledge).","operationId":"folder_set_knowledge_folder__owner_kind___owner_id__knowledge_post","parameters":[{"name":"owner_kind","in":"path","required":true,"schema":{"type":"string","title":"Owner Kind"}},{"name":"owner_id","in":"path","required":true,"schema":{"type":"integer","title":"Owner Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_folder_set_knowledge_folder__owner_kind___owner_id__knowledge_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/folder/{owner_kind}/{owner_id}/class":{"post":{"summary":"Folder Set Class","description":"Record a folder's data class (phase 1 of\ndocs/superpowers/plans/2026-10-30-data-classes.md): an organization or\ndepartment manager only, from this page only. `data_class=\"\"` clears it\nback to the default. Nothing reads it yet to decide what a bot sees.","operationId":"folder_set_class_folder__owner_kind___owner_id__class_post","parameters":[{"name":"owner_kind","in":"path","required":true,"schema":{"type":"string","title":"Owner Kind"}},{"name":"owner_id","in":"path","required":true,"schema":{"type":"integer","title":"Owner Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_folder_set_class_folder__owner_kind___owner_id__class_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/folder/{owner_kind}/{owner_id}/folders":{"post":{"summary":"Acl Create Folder","description":"Create an empty subfolder under the owner's folder so it can be\ntargeted by a subsequent grant. Personal-mount folder creation is\ndeferred — the helper returns (False, reason) and we surface that as\na flash error.","operationId":"acl_create_folder_folder__owner_kind___owner_id__folders_post","parameters":[{"name":"owner_kind","in":"path","required":true,"schema":{"type":"string","title":"Owner Kind"}},{"name":"owner_id","in":"path","required":true,"schema":{"type":"integer","title":"Owner Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_acl_create_folder_folder__owner_kind___owner_id__folders_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/folder/{owner_kind}/{owner_id}/acl/give":{"post":{"summary":"Acl Give","description":"The Give access dialog. A person, department or bot: a folder_acls\ngrant through _grant (synced), the permission's registry word turned\ninto read/write by store.TO_ACL — only the folder's own choices (R1/R2).\nA project, role, everyone or organization, or a search-only bot\n(bot:<id>:search — the dialog does not offer it): one entry added on this\nfolder's memory item through store.set_access (as the session's viewer;\nits rules); refused in words when the folder is not in memory.","operationId":"acl_give_folder__owner_kind___owner_id__acl_give_post","parameters":[{"name":"owner_kind","in":"path","required":true,"schema":{"type":"string","title":"Owner Kind"}},{"name":"owner_id","in":"path","required":true,"schema":{"type":"integer","title":"Owner Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_acl_give_folder__owner_kind___owner_id__acl_give_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/folder/{owner_kind}/{owner_id}/acl/{grant_id}/delete":{"post":{"summary":"Acl Delete","operationId":"acl_delete_folder__owner_kind___owner_id__acl__grant_id__delete_post","parameters":[{"name":"owner_kind","in":"path","required":true,"schema":{"type":"string","title":"Owner Kind"}},{"name":"owner_id","in":"path","required":true,"schema":{"type":"integer","title":"Owner Id"}},{"name":"grant_id","in":"path","required":true,"schema":{"type":"integer","title":"Grant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/folder/{owner_kind}/{owner_id}/acl/{grant_id}/ingest":{"post":{"summary":"Acl Set Ingest","operationId":"acl_set_ingest_folder__owner_kind___owner_id__acl__grant_id__ingest_post","parameters":[{"name":"owner_kind","in":"path","required":true,"schema":{"type":"string","title":"Owner Kind"}},{"name":"owner_id","in":"path","required":true,"schema":{"type":"integer","title":"Owner Id"}},{"name":"grant_id","in":"path","required":true,"schema":{"type":"integer","title":"Grant Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_acl_set_ingest_folder__owner_kind___owner_id__acl__grant_id__ingest_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/tasks/{task_id}/knowledge":{"post":{"summary":"Task Set Knowledge","description":"Bind this task to an output folder and turn indexing on or off.\n\nBoth the task and the folder are authorized independently: passing the\ntask gate does not grant the folder, because a task can be visible to\nsomeone who does not manage the scope its output would be published to.\n\nKnowledge OFF takes the folder out of memory (and closes Customers), so\nit runs ONLY on an explicit untick: the form says, in `shown_on`, the\nfolder whose box it showed ticked; OFF is called when that is this same\nfolder, it was the task's folder before this save, and the box is now\nunticked (wants_off). Binding another folder, a box never shown ticked,\nand \"Indexing state unavailable\" (no `shown_on`) call nothing.","operationId":"task_set_knowledge_account_tasks__task_id__knowledge_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_task_set_knowledge_account_tasks__task_id__knowledge_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/agent/aliases":{"post":{"summary":"Alias Create","operationId":"alias_create_account_agent_aliases_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_alias_create_account_agent_aliases_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/agent/aliases/{alias_id}/delete":{"post":{"summary":"Alias Delete","operationId":"alias_delete_account_agent_aliases__alias_id__delete_post","parameters":[{"name":"alias_id","in":"path","required":true,"schema":{"type":"integer","title":"Alias Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_alias_delete_account_agent_aliases__alias_id__delete_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/agent/aliases/{alias_id}/reassign":{"post":{"summary":"Alias Reassign","description":"Move an alias from `agent_id` to `new_agent_id`.\n\nCaller must own BOTH agents — moving an alias to someone else's\nagent would let an attacker silently retarget mail.","operationId":"alias_reassign_account_agent_aliases__alias_id__reassign_post","parameters":[{"name":"alias_id","in":"path","required":true,"schema":{"type":"integer","title":"Alias Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_alias_reassign_account_agent_aliases__alias_id__reassign_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/agent/aliases/{alias_id}/rename":{"post":{"summary":"Alias Rename","description":"Rename an alias's public address. Owner-of-agent only; kind:* refused.","operationId":"alias_rename_account_agent_aliases__alias_id__rename_post","parameters":[{"name":"alias_id","in":"path","required":true,"schema":{"type":"integer","title":"Alias Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_alias_rename_account_agent_aliases__alias_id__rename_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/agent/email/rename":{"post":{"summary":"Email Rename","operationId":"email_rename_account_agent_email_rename_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_email_rename_account_agent_email_rename_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/agent/{agent_id}/console":{"get":{"summary":"Console Page","operationId":"console_page_account_agent__agent_id__console_get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/help/console":{"get":{"summary":"Console Help Page","description":"Static help / quickstart for the agent console. Linked from the\n\"Help\" button in every console header.","operationId":"console_help_page_account_help_console_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/account/agent/{agent_id}/terminal":{"get":{"summary":"Terminal Page","operationId":"terminal_page_account_agent__agent_id__terminal_get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/agent/{agent_id}/console/api/transcribe":{"post":{"summary":"Api Transcribe","description":"Turn a dictated recording into text for the composer.\n\nThe audio goes to mpa-whisper on the internal network and no further;\nnothing is written to disk here, and the bytes are dropped as soon as the\nwords come back. Refusals name the recording; failures name the service.","operationId":"api_transcribe_account_agent__agent_id__console_api_transcribe_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_api_transcribe_account_agent__agent_id__console_api_transcribe_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/agent/{agent_id}/console/api/uploads":{"post":{"summary":"Api Upload","description":"One file for a console chat the person may write in (the same rule as\nsending: console_privacy + _may_start), stored in THAT chat's own\ndirectory (chat_uploads). The raw bytes are the body, the original name\nis X-Upload-Name; read only after the gate, and cut off while streaming.\nReturns the upload's NAME, which a chat frame then attaches.","operationId":"api_upload_account_agent__agent_id__console_api_uploads_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"chat_id","in":"query","required":false,"schema":{"type":"string","default":"","title":"Chat Id"}},{"name":"persona","in":"query","required":false,"schema":{"type":"string","default":"","title":"Persona"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/agent/{agent_id}/console/api/voices":{"get":{"summary":"Api Voices","description":"What the console may offer in its voice picker.\n\nThe catalogue is the service's, asked for here rather than copied into\nthe portal, where it would drift from the files that actually exist. An\nunreachable service answers with an empty list and the picker hides.","operationId":"api_voices_account_agent__agent_id__console_api_voices_get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/agent/{agent_id}/console/api/speak":{"post":{"summary":"Api Speak","description":"Read a reply aloud. Returns WAV audio, generated on this host.\n\nThe text comes from the browser rather than the transcript on disk: the\nreader presses play on the message in front of them, and that message is\nwhat should be spoken. It is the agent's own words either way — this\nroute stores nothing and speaks nothing back into the conversation.","operationId":"api_speak_account_agent__agent_id__console_api_speak_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_api_speak_account_agent__agent_id__console_api_speak_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/agent/{agent_id}/console/api/sessions":{"get":{"summary":"Api Sessions","operationId":"api_sessions_account_agent__agent_id__console_api_sessions_get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"persona","in":"query","required":false,"schema":{"type":"string","default":"","title":"Persona"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/agent/{agent_id}/console/api/sessions/{filename}":{"get":{"summary":"Api Session Detail","operationId":"api_session_detail_account_agent__agent_id__console_api_sessions__filename__get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}},{"name":"after","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"After"}},{"name":"persona","in":"query","required":false,"schema":{"type":"string","default":"","title":"Persona"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/agent/{agent_id}/console/api/drafts":{"get":{"summary":"Api Drafts","operationId":"api_drafts_account_agent__agent_id__console_api_drafts_get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/agent/{agent_id}/console/api/cron":{"get":{"summary":"Api Cron","operationId":"api_cron_account_agent__agent_id__console_api_cron_get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/agent/{agent_id}/console/api/cron/{job_id}/pause":{"post":{"summary":"Api Cron Pause","operationId":"api_cron_pause_account_agent__agent_id__console_api_cron__job_id__pause_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/agent/{agent_id}/console/api/cron/{job_id}/resume":{"post":{"summary":"Api Cron Resume","operationId":"api_cron_resume_account_agent__agent_id__console_api_cron__job_id__resume_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/agent/{agent_id}/console/api/cron/{job_id}/delete":{"post":{"summary":"Api Cron Delete","operationId":"api_cron_delete_account_agent__agent_id__console_api_cron__job_id__delete_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/agent/{agent_id}/console/api/files":{"get":{"summary":"Api Files","operationId":"api_files_account_agent__agent_id__console_api_files_get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/agent/{agent_id}/console/api/files/search":{"get":{"summary":"Api Files Search","operationId":"api_files_search_account_agent__agent_id__console_api_files_search_get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/agent/{agent_id}/console/api/spend":{"get":{"summary":"Api Spend","operationId":"api_spend_account_agent__agent_id__console_api_spend_get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/agent/{agent_id}/console/api/chats":{"get":{"summary":"Api Chats","operationId":"api_chats_account_agent__agent_id__console_api_chats_get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"persona","in":"query","required":false,"schema":{"type":"string","default":"","title":"Persona"}},{"name":"active","in":"query","required":false,"schema":{"type":"string","default":"","title":"Active"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/agent/{agent_id}/console/api/chats/{chat_id}/delete":{"post":{"summary":"Api Chat Delete","operationId":"api_chat_delete_account_agent__agent_id__console_api_chats__chat_id__delete_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"chat_id","in":"path","required":true,"schema":{"type":"string","title":"Chat Id"}},{"name":"persona","in":"query","required":false,"schema":{"type":"string","default":"","title":"Persona"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/agent/{agent_id}/console/api/chats/{chat_id}/title":{"post":{"summary":"Api Chat Rename","description":"Rename a chat. An empty title clears it, restoring the derived label.","operationId":"api_chat_rename_account_agent__agent_id__console_api_chats__chat_id__title_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"chat_id","in":"path","required":true,"schema":{"type":"string","title":"Chat Id"}},{"name":"persona","in":"query","required":false,"schema":{"type":"string","default":"","title":"Persona"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_api_chat_rename_account_agent__agent_id__console_api_chats__chat_id__title_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/agent/{agent_id}/console/api/drafts/{filename}":{"get":{"summary":"Api Draft Get","operationId":"api_draft_get_account_agent__agent_id__console_api_drafts__filename__get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/agent/{agent_id}/console/api/drafts/{filename}/save":{"post":{"summary":"Api Draft Save","operationId":"api_draft_save_account_agent__agent_id__console_api_drafts__filename__save_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/agent/{agent_id}/console/api/drafts/{filename}/discard":{"post":{"summary":"Api Draft Discard","operationId":"api_draft_discard_account_agent__agent_id__console_api_drafts__filename__discard_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/agent/{agent_id}/console/api/drafts/{filename}/send":{"post":{"summary":"Api Draft Send","operationId":"api_draft_send_account_agent__agent_id__console_api_drafts__filename__send_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/agent/{agent_id}/console/api/messages":{"get":{"summary":"Api Messages","description":"Reconstruct the chat transcript for one console chat_id by merging\ninbox.jsonl (outbound user messages) + outbox.jsonl (agent replies)\nchronologically. Hermes' SQLite session store is the canonical\ntranscript but reading it cross-version is fragile; the platform's\nfile pair is everything the console pipeline produced.\n\nPass ``?persona=<pid>`` to read from that persona's profile dir\n(config/profiles/<slug>/console/) rather than the agent root.","operationId":"api_messages_account_agent__agent_id__console_api_messages_get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"chat_id","in":"query","required":false,"schema":{"type":"string","default":"","title":"Chat Id"}},{"name":"persona","in":"query","required":false,"schema":{"type":"string","default":"","title":"Persona"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/agent/{agent_id}/screen":{"get":{"summary":"Screen Page","operationId":"screen_page_account_agent__agent_id__screen_get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/agent/{agent_id}/screen/status":{"get":{"summary":"Screen Status","operationId":"screen_status_account_agent__agent_id__screen_status_get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/agent/{agent_id}/screen/start":{"post":{"summary":"Screen Start","operationId":"screen_start_account_agent__agent_id__screen_start_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/agent/{agent_id}/screen/takeover":{"post":{"summary":"Screen Takeover","operationId":"screen_takeover_account_agent__agent_id__screen_takeover_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/agent/{agent_id}/screen/release":{"post":{"summary":"Screen Release","operationId":"screen_release_account_agent__agent_id__screen_release_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/agent/{agent_id}/history":{"get":{"summary":"History Page","operationId":"history_page_account_agent__agent_id__history_get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ask-first/request":{"post":{"summary":"Ask First Request","operationId":"ask_first_request_api_ask_first_request_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/ask-first/consume":{"post":{"summary":"Ask First Consume","operationId":"ask_first_consume_api_ask_first_consume_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/ask-first/result":{"post":{"summary":"Ask First Result","operationId":"ask_first_result_api_ask_first_result_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/work/ask/{request_id}":{"get":{"summary":"Ask Page","operationId":"ask_page_work_ask__request_id__get","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"integer","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/work/ask/{request_id}/approve":{"post":{"summary":"Ask Approve","operationId":"ask_approve_work_ask__request_id__approve_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"integer","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/work/ask/{request_id}/decline":{"post":{"summary":"Ask Decline","operationId":"ask_decline_work_ask__request_id__decline_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"integer","title":"Request Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_ask_decline_work_ask__request_id__decline_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/crm/upload":{"options":{"tags":["crm"],"summary":"Crm Preflight","description":"The preflight for the three routes: what the CRM may send. The route\nclass adds the origin (`_cors_headers`); from any other origin the answer\ncarries no CORS headers, so the browser refuses the real request.","operationId":"crm_preflight_api_crm_upload_options","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["crm"],"summary":"Upload Attachment","description":"Store a CRM attachment on the filesystem, under the caller's org.\nThe CRM client's access token only, and the organization must have a CRM:\nthe attachments folder is in `shared/`, which the org's bots mount.\n\n`kind=image` is a picture (an avatar, a company logo, the configuration's\nlogos): raster only, checked by content, at most MAX_IMAGE_BYTES. It lands\nin the same folder, so the signer needs no second prefix. The route does\nnot know WHICH record the picture is for: what makes a file somebody's\navatar or the organization's logo is the PostgREST write that stores its\npath, under that table's own rules.","operationId":"upload_attachment_api_crm_upload_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_attachment_api_crm_upload_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/crm/attachment-urls":{"options":{"tags":["crm"],"summary":"Crm Preflight","description":"The preflight for the three routes: what the CRM may send. The route\nclass adds the origin (`_cors_headers`); from any other origin the answer\ncarries no CORS headers, so the browser refuses the real request.","operationId":"crm_preflight_api_crm_attachment_urls_options","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["crm"],"summary":"Sign Attachment Urls","description":"Short-lived URLs for the attachment paths on the notes being rendered.\n\nThe caller proves who it is with the CRM client's Keycloak access token,\nexactly as it does to mint a database token; the organization comes from\nthe database, so a caller cannot ask for another tenant's files however it\nspells the path. Only an existing file under the organization's CRM\nattachments folder is signed (`_attachment_path`, `_is_attachment_file`);\nany other path is left out of `urls` — the note still renders, that one\nattachment shows unopenable — and the organization must have a CRM.","operationId":"sign_attachment_urls_api_crm_attachment_urls_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/crm/token":{"options":{"tags":["crm"],"summary":"Crm Preflight","description":"The preflight for the three routes: what the CRM may send. The route\nclass adds the origin (`_cors_headers`); from any other origin the answer\ncarries no CORS headers, so the browser refuses the real request.","operationId":"crm_preflight_api_crm_token_options","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["crm"],"summary":"Mint Crm Token","description":"Exchange a verified Keycloak token for a PostgREST token.","operationId":"mint_crm_token_api_crm_token_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"}}}}}}},"/api/crm/attachment/{org_id}/{rel_path}":{"get":{"tags":["crm"],"summary":"Get Attachment","description":"Serve one attachment, authorised entirely by the signature.\n\nNo session and no bearer: this URL is fetched by the browser as a\nsubresource. What makes it safe is that the signature binds the org and the\nexact path, and expires.","operationId":"get_attachment_api_crm_attachment__org_id___rel_path__get","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"integer","title":"Org Id"}},{"name":"rel_path","in":"path","required":true,"schema":{"type":"string","title":"Rel Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/crm":{"get":{"summary":"Crm Page","operationId":"crm_page_organization__organization_id__crm_get","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/crm/enable":{"post":{"summary":"Crm Enable","description":"Create this organization's CRM environment.\n\nManager-only. `_can_view_org` would let any member of the org turn on a\nsystem that then receives their colleagues' mail — enabling is a decision\nabout the company, so it takes the same gate as the other company settings.","operationId":"crm_enable_organization__organization_id__crm_enable_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/scheduling":{"get":{"summary":"Scheduling Page","operationId":"scheduling_page_organization__organization_id__scheduling_get","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/scheduling/enable":{"post":{"summary":"Scheduling Enable","description":"Turn scheduling on for this organization.\n\nManager-only. `_can_view_org` would let any member publish their colleagues'\nnames on a public booking directory — enabling is a decision about the\ncompany, so it takes the same gate as the other company settings.","operationId":"scheduling_enable_organization__organization_id__scheduling_enable_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_scheduling_enable_organization__organization_id__scheduling_enable_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/support":{"get":{"summary":"Support Page","operationId":"support_page_organization__organization_id__support_get","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/support/enable":{"post":{"summary":"Support Enable","description":"Turn the desk on for this organization. Manager-only: it seats every\ncolleague and opens a public-facing channel in the company's name.","operationId":"support_enable_organization__organization_id__support_enable_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_support_enable_organization__organization_id__support_enable_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/support/open":{"get":{"summary":"Support Open","description":"Sign the viewer into the desk. The seat is the authorisation.","operationId":"support_open_organization__organization_id__support_open_get","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/support/policy":{"post":{"summary":"Support Policy","description":"Who answers a customer first. Manager-only: it decides whether the\nassistant speaks to customers in the company's name. Read per message by\nthe triage, so it takes effect on the next delivery.","operationId":"support_policy_organization__organization_id__support_policy_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_support_policy_organization__organization_id__support_policy_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/support/responder":{"post":{"summary":"Support Responder Choice","description":"Who writes the answers: one responder for every conversation, or one\nper desk inbox with a default. Manager-only, like the policy — it decides\nwhat speaks to customers in the company's name. Every agent named must be a\nsupport agent of THIS organization and every inbox one the desk lists for\nit (`support_responder.parse_routing_form`); a forged value for another\ntenant's agent or inbox is refused here and again for every message.","operationId":"support_responder_choice_organization__organization_id__support_responder_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/support/soul-sessions":{"post":{"summary":"Support Soul Sessions","description":"Should a changed SOUL reach conversations that are already running?\n\nHermes stores a session's system prompt at its first turn, so today a\ncorrection only reaches NEW conversations. With this on, the SOUL's hash\njoins the session key and the next message after an edit starts a fresh\nsession. Manager-only, like the responder it belongs to: it decides what\nan assistant already talking to a customer is told. A checkbox posts only\nwhen ticked, so an absent field means off. Read per message.","operationId":"support_soul_sessions_organization__organization_id__support_soul_sessions_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_support_soul_sessions_organization__organization_id__support_soul_sessions_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/support/crm-autocreate":{"post":{"summary":"Support Crm Autocreate","description":"May the desk create a CRM contact for a customer it does not know?\nManager-only: it is a write into the company's CRM. A checkbox posts\nonly when ticked, so an absent field means off. Read per message.","operationId":"support_crm_autocreate_organization__organization_id__support_crm_autocreate_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_support_crm_autocreate_organization__organization_id__support_crm_autocreate_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/support/conversations":{"get":{"summary":"Support Conversations Page","operationId":"support_conversations_page_organization__organization_id__support_conversations_get","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/support/conversations/{provider}/{conversation_id}":{"get":{"summary":"Support Conversation Page","operationId":"support_conversation_page_organization__organization_id__support_conversations__provider___conversation_id__get","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}},{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}},{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/support/chat":{"get":{"summary":"Support Chat Page","operationId":"support_chat_page_organization__organization_id__support_chat_get","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/knowledge/websites":{"get":{"summary":"Knowledge Websites Page","description":"Knowledge → Websites: the website import (sites, paths, refresh, each\nsite's Customers switch and subjects). Members read it; managers change it.","operationId":"knowledge_websites_page_organization__organization_id__knowledge_websites_get","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/support/chat/folders":{"post":{"summary":"Support Chat Folders","description":"Which folders the assistant may answer customers from. Manager-only;\nthe portal's Origin first (it writes the customers fact, as the Access\ntab does).","operationId":"support_chat_folders_organization__organization_id__support_chat_folders_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/support/chat/procedure":{"post":{"summary":"Support Chat Procedure","description":"Write a procedure for one of this organization's support assistants.\n\nManager-only, and the assistant must be one of this organization's support\nagents — a typed agent id is a request, not a permission. The text is\ncomposed, verified by re-reading it and scanned by Hermes' own guard\nbefore anything is written; a scan that could not run is not a pass.","operationId":"support_chat_procedure_organization__organization_id__support_chat_procedure_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_support_chat_procedure_organization__organization_id__support_chat_procedure_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/support/chat/soul":{"post":{"summary":"Support Chat Soul","description":"The standing instructions of one of this organization's support\nassistants (its SOUL.md).\n\nManager-only, and the assistant must be one of this organization's support\nagents — a posted agent id is a request, not a permission, the same rule\nthe procedure route follows. `support_soul.write` refuses a text that\ncarries a platform block or drops a section the platform depends on, and\nwrites in place so the agent's bind mount sees it.","operationId":"support_chat_soul_organization__organization_id__support_chat_soul_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_support_chat_soul_organization__organization_id__support_chat_soul_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/support/chat/skills":{"post":{"summary":"Support Chat Skills","description":"Which installed skill each support agent follows, and when. Manager-only.\n\nEvery submitted row is checked against what is actually installed on that\nagent (`parse_form`): the form is a convenience, never the authorization.","operationId":"support_chat_skills_organization__organization_id__support_chat_skills_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/support/chat/instructions":{"post":{"summary":"Support Chat Instructions","description":"Tone and rules. Manager-only; appended after the platform rules.","operationId":"support_chat_instructions_organization__organization_id__support_chat_instructions_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_support_chat_instructions_organization__organization_id__support_chat_instructions_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/support/chat/source-links":{"post":{"summary":"Support Chat Source Links","description":"Whether replies end with the public pages they came from. Manager-only.","operationId":"support_chat_source_links_organization__organization_id__support_chat_source_links_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_support_chat_source_links_organization__organization_id__support_chat_source_links_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/support/chat/ask-question":{"post":{"summary":"Support Chat Ask Question","description":"The question above the subject menu. Manager-only.\n\nThere is no language recorded per organization, only per agent, so the\nsentence is the manager's to write rather than ours to infer. Empty keeps\nthe platform's own English default.","operationId":"support_chat_ask_question_organization__organization_id__support_chat_ask_question_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_support_chat_ask_question_organization__organization_id__support_chat_ask_question_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/support/chat/handoff-mode":{"post":{"summary":"Support Chat Handoff Mode","description":"Who decides that a colleague takes over: the assistant on its own\n(classic), or the customer, with a button. Manager-only.","operationId":"support_chat_handoff_mode_organization__organization_id__support_chat_handoff_mode_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_support_chat_handoff_mode_organization__organization_id__support_chat_handoff_mode_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/support/chat/handoff-hours":{"post":{"summary":"Support Chat Handoff Hours","description":"Opening hours and how long a waiting customer waits before the assistant\nis offered. Manager-only. Refused as a whole when any part is wrong, so a\nhalf-understood week is never stored.","operationId":"support_chat_handoff_hours_organization__organization_id__support_chat_handoff_hours_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/support/chat/after-conversation":{"post":{"summary":"Support Chat After Conversation","description":"Ask \"did this help?\" when a conversation ends, and end quiet ones.\nManager-only. The resolve time is stored here AND written to the desk,\nwhich resolves the conversations colleagues hold; the platform resolves\nthe ones the assistant holds.","operationId":"support_chat_after_conversation_organization__organization_id__support_chat_after_conversation_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_support_chat_after_conversation_organization__organization_id__support_chat_after_conversation_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/support/chat/min-score":{"post":{"summary":"Support Chat Min Score","description":"Minimum knowledge match. Manager-only.","operationId":"support_chat_min_score_organization__organization_id__support_chat_min_score_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_support_chat_min_score_organization__organization_id__support_chat_min_score_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/support/chat/sites":{"post":{"summary":"Support Chat Site Add","description":"Register a site (one host) with its first path and preview that path.\nWhen the host already has a site, the path joins it instead. Nothing is\nfetched until Confirm.","operationId":"support_chat_site_add_organization__organization_id__support_chat_sites_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_support_chat_site_add_organization__organization_id__support_chat_sites_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/support/chat/sites/{site_id}/paths":{"post":{"summary":"Support Chat Path Add","description":"Add a path to an existing site and preview it.","operationId":"support_chat_path_add_organization__organization_id__support_chat_sites__site_id__paths_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}},{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_support_chat_path_add_organization__organization_id__support_chat_sites__site_id__paths_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/support/chat/sites/{site_id}/paths/{path_id}/confirm":{"post":{"summary":"Support Chat Path Confirm","description":"Import a mapped path. Bootstraps the Website folder (flagged for\nknowledge and customer chat) the first time any path is confirmed, and\nthe site's own folder and switch (Website/<host>) the first time one of\nits paths is.","operationId":"support_chat_path_confirm_organization__organization_id__support_chat_sites__site_id__paths__path_id__confirm_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}},{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"path_id","in":"path","required":true,"schema":{"type":"integer","title":"Path Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/support/chat/sites/{site_id}/paths/{path_id}/cancel":{"post":{"summary":"Support Chat Path Cancel","description":"Discard a mapped-but-not-yet-confirmed path.","operationId":"support_chat_path_cancel_organization__organization_id__support_chat_sites__site_id__paths__path_id__cancel_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}},{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"path_id","in":"path","required":true,"schema":{"type":"integer","title":"Path Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/support/chat/sites/{site_id}/paths/{path_id}/remove":{"post":{"summary":"Support Chat Path Remove","description":"Remove one path and only the notes under its prefix.","operationId":"support_chat_path_remove_organization__organization_id__support_chat_sites__site_id__paths__path_id__remove_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}},{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"path_id","in":"path","required":true,"schema":{"type":"integer","title":"Path Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/support/chat/sites/{site_id}/refresh":{"post":{"summary":"Support Chat Site Refresh","description":"Re-import every confirmed path of the site on the next tick. Also the\nKnowledge home's Check now on a Website card (phase-2 ruling): the Origin\nfirst, then every database call in a worker thread.","operationId":"support_chat_site_refresh_organization__organization_id__support_chat_sites__site_id__refresh_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}},{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/support/chat/sites/{site_id}/edit":{"post":{"summary":"Support Chat Site Edit","description":"Change refresh cadence and page cap for a site.","operationId":"support_chat_site_edit_organization__organization_id__support_chat_sites__site_id__edit_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}},{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_support_chat_site_edit_organization__organization_id__support_chat_sites__site_id__edit_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/support/chat/sites/{site_id}/remove":{"post":{"summary":"Support Chat Site Remove","description":"Remove a site, its paths and every note it imported.","operationId":"support_chat_site_remove_organization__organization_id__support_chat_sites__site_id__remove_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}},{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/support/chat/sites/{site_id}/customers":{"post":{"summary":"Support Chat Site Customers","description":"One imported website's own customer-chat switch (its row at\nWebsite/<host_dir>): on=1 opens it to customers, absent closes it,\nthrough store.set_customers (the support bots' entries with it; a site\nthat is not public is refused, its level never changed). The portal's\nOrigin first, as the Access tab.","operationId":"support_chat_site_customers_organization__organization_id__support_chat_sites__site_id__customers_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}},{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/support/chat/sites/{site_id}/subjects":{"post":{"summary":"Support Chat Site Subjects","description":"Which subjects an imported website belongs to.","operationId":"support_chat_site_subjects_organization__organization_id__support_chat_sites__site_id__subjects_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}},{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/knowledge/x":{"get":{"summary":"Knowledge X Page","description":"Members read it (the list and the state); managers change it.","operationId":"knowledge_x_page_organization__organization_id__knowledge_x_get","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/knowledge/x/key":{"post":{"summary":"Knowledge X Key","description":"Store the bearer token and/or the consumer secret; an empty field\nkeeps what is stored.","operationId":"knowledge_x_key_organization__organization_id__knowledge_x_key_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_knowledge_x_key_organization__organization_id__knowledge_x_key_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/knowledge/x/key/remove":{"post":{"summary":"Knowledge X Key Remove","description":"Forget the key. In webhook mode X is first told to stop sending (the\ndelivery becomes a scheduled fetch) while the key still works; a fetch\norganization that still holds subscription ids is reconciled first (they\nare removed at X); X failing\ndoes not keep the key: it is removed anyway, and the page says so.","operationId":"knowledge_x_key_remove_organization__organization_id__knowledge_x_key_remove_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/knowledge/x/key/test":{"post":{"summary":"Knowledge X Key Test","description":"One user lookup at X with the stored key.","operationId":"knowledge_x_key_test_organization__organization_id__knowledge_x_key_test_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/knowledge/x/follow":{"post":{"summary":"Knowledge X Follow","operationId":"knowledge_x_follow_organization__organization_id__knowledge_x_follow_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_knowledge_x_follow_organization__organization_id__knowledge_x_follow_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/knowledge/x/unfollow":{"post":{"summary":"Knowledge X Unfollow","operationId":"knowledge_x_unfollow_organization__organization_id__knowledge_x_unfollow_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_knowledge_x_unfollow_organization__organization_id__knowledge_x_unfollow_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/knowledge/x/settings":{"post":{"summary":"Knowledge X Settings","description":"Every value is checked before anything is written; then the minutes,\nthe cap and the bots switch are saved, then — only when it changed — the\ndelivery (x_service set_delivery: X's subscriptions follow it). An\nunchanged webhook delivery is reconciled instead (the cap may have\nchanged), so saving the cap never answers needs_schedule.","operationId":"knowledge_x_settings_organization__organization_id__knowledge_x_settings_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_knowledge_x_settings_organization__organization_id__knowledge_x_settings_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/knowledge/x/fetch":{"post":{"summary":"Knowledge X Fetch","description":"Fetch one account's new posts now (counted against the cap).","operationId":"knowledge_x_fetch_organization__organization_id__knowledge_x_fetch_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_knowledge_x_fetch_organization__organization_id__knowledge_x_fetch_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/support/subjects":{"get":{"summary":"Support Subjects Page","operationId":"support_subjects_page_organization__organization_id__support_subjects_get","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Support Subjects Add","description":"Add a department, or a subject under one.\n\nA posted parent is checked against THIS organization before it is used: a\nsubject hung under another company's node would route their customers.","operationId":"support_subjects_add_organization__organization_id__support_subjects_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_support_subjects_add_organization__organization_id__support_subjects_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/support/subjects/{subject_id}/rename":{"post":{"summary":"Support Subjects Rename","operationId":"support_subjects_rename_organization__organization_id__support_subjects__subject_id__rename_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}},{"name":"subject_id","in":"path","required":true,"schema":{"type":"integer","title":"Subject Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_support_subjects_rename_organization__organization_id__support_subjects__subject_id__rename_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/support/subjects/{subject_id}/team":{"post":{"summary":"Support Subjects Team","operationId":"support_subjects_team_organization__organization_id__support_subjects__subject_id__team_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}},{"name":"subject_id","in":"path","required":true,"schema":{"type":"integer","title":"Subject Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_support_subjects_team_organization__organization_id__support_subjects__subject_id__team_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/support/subjects/{subject_id}/move":{"post":{"summary":"Support Subjects Move","operationId":"support_subjects_move_organization__organization_id__support_subjects__subject_id__move_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}},{"name":"subject_id","in":"path","required":true,"schema":{"type":"integer","title":"Subject Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_support_subjects_move_organization__organization_id__support_subjects__subject_id__move_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/support/subjects/{subject_id}/delete":{"post":{"summary":"Support Subjects Delete","operationId":"support_subjects_delete_organization__organization_id__support_subjects__subject_id__delete_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}},{"name":"subject_id","in":"path","required":true,"schema":{"type":"integer","title":"Subject Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/support-flow/tree":{"get":{"summary":"Support Flow Tree","description":"What the tree looks like now, plus the last changes and who made them —\nso the assistant can answer \"what did we change last week\" without a\nsecond call, and cannot present its own writes as the only history.","operationId":"support_flow_tree_api_support_flow_tree_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/support-flow/add":{"post":{"summary":"Support Flow Add","description":"Add a department (no parent) or a subject under one, named by slug.","operationId":"support_flow_add_api_support_flow_add_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_support_flow_add_api_support_flow_add_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/support-flow/rename":{"post":{"summary":"Support Flow Rename","operationId":"support_flow_rename_api_support_flow_rename_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_support_flow_rename_api_support_flow_rename_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/support-flow/team":{"post":{"summary":"Support Flow Team","description":"Set or clear the desk team. Clearing it means \"use the one above\",\nwhich is the tree's own rule rather than a special value.","operationId":"support_flow_team_api_support_flow_team_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_support_flow_team_api_support_flow_team_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/support-flow/move":{"post":{"summary":"Support Flow Move","operationId":"support_flow_move_api_support_flow_move_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_support_flow_move_api_support_flow_move_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/support-flow/delete":{"post":{"summary":"Support Flow Delete","description":"Delete a LEAF. A node with subjects under it is refused here.\n\nThe page allows that delete behind a confirmation naming how many go with\nit, because a person reading that sentence can weigh it. An assistant\nrelaying the same sentence cannot, and the customer mappings of a whole\nbranch are not something to lose on a misread instruction.","operationId":"support_flow_delete_api_support_flow_delete_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_support_flow_delete_api_support_flow_delete_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/hooks/support/{provider}":{"post":{"summary":"Support Webhook","operationId":"support_webhook_hooks_support__provider__post","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/hooks/x/{hook_token}":{"get":{"summary":"X Webhook Crc","operationId":"x_webhook_crc_hooks_x__hook_token__get","parameters":[{"name":"hook_token","in":"path","required":true,"schema":{"type":"string","title":"Hook Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"X Webhook","operationId":"x_webhook_hooks_x__hook_token__post","parameters":[{"name":"hook_token","in":"path","required":true,"schema":{"type":"string","title":"Hook Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/agent/{agent_id}/missions":{"get":{"summary":"Missions Page Redirect","operationId":"missions_page_redirect_account_agent__agent_id__missions_get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/agent/{agent_id}/missions/api/list":{"get":{"summary":"Missions List Redirect","operationId":"missions_list_redirect_account_agent__agent_id__missions_api_list_get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/agent/{agent_id}/allowlist":{"get":{"summary":"Allowlist Page","operationId":"allowlist_page_account_agent__agent_id__allowlist_get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/agent/{agent_id}/allowlist.json":{"get":{"summary":"Allowlist Json","operationId":"allowlist_json_account_agent__agent_id__allowlist_json_get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/agent/{agent_id}/allowlist/add":{"post":{"summary":"Allowlist Add","operationId":"allowlist_add_account_agent__agent_id__allowlist_add_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_allowlist_add_account_agent__agent_id__allowlist_add_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/agent/{agent_id}/allowlist/delete":{"post":{"summary":"Allowlist Delete","operationId":"allowlist_delete_account_agent__agent_id__allowlist_delete_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_allowlist_delete_account_agent__agent_id__allowlist_delete_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/instructions":{"get":{"summary":"Instructions Page Redirect","operationId":"instructions_page_redirect_account_instructions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/instructions/send":{"post":{"summary":"Instructions Send Redirect","operationId":"instructions_send_redirect_account_instructions_send_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/invite/{token}":{"get":{"summary":"Invite Landing","operationId":"invite_landing_invite__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Invite Accept","operationId":"invite_accept_invite__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"}}}}}}},"/join/{token}":{"get":{"summary":"Join Landing","operationId":"join_landing_join__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Join Accept","operationId":"join_accept_join__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"}}}}}}},"/join/{token}/account":{"post":{"summary":"Join Account","description":"Ask Keycloak to mail the INVITED address (never one from the form) a\nlink to set a password. At most once per 10 minutes per invitation\n(account_mail_at, claimed in the statement).","operationId":"join_account_join__token__account_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"}}}}}}},"/work/kanban/a/{agent_id}":{"get":{"summary":"Agent Kanban","operationId":"agent_kanban_work_kanban_a__agent_id__get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/work/kanban/archived":{"get":{"summary":"Account Kanban Archived","description":"List every archived (deleted) kanban task across all agents the\ncaller can dispatch to. Same access scope as\n``/work/kanban?mode=owned``. Each row links to the task detail\npage; creator/admin gets a Restore action that flips status from\n'archived' back to 'ready'.\n\nSystem / smoke-test rows are filtered out by default — opt in with\n``?show_system=1`` if you actually want to see them.","operationId":"account_kanban_archived_work_kanban_archived_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/account/tasks/{task_id}/restore-archived":{"post":{"summary":"Task Restore Archived","description":"Bring an archived task back to the 'ready' status so it shows up\non the kanban again. Permission: creator or platform admin.","operationId":"task_restore_archived_account_tasks__task_id__restore_archived_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/work/kanban":{"get":{"summary":"Account Kanban","operationId":"account_kanban_work_kanban_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/work/kanban/d/{team_id}":{"get":{"summary":"Team Kanban","operationId":"team_kanban_work_kanban_d__team_id__get","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"integer","title":"Team Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/work/kanban/o/{organization_id}":{"get":{"summary":"Org Kanban","operationId":"org_kanban_work_kanban_o__organization_id__get","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/tasks/new":{"get":{"summary":"Tasks New Form","operationId":"tasks_new_form_account_tasks_new_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"summary":"Tasks New Submit","operationId":"tasks_new_submit_account_tasks_new_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_tasks_new_submit_account_tasks_new_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/tasks/cron/parse":{"post":{"summary":"Tasks Cron Parse","operationId":"tasks_cron_parse_account_tasks_cron_parse_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_CronParseRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/tasks/{task_id}/decompose/propose":{"post":{"summary":"Tasks Decompose Propose","description":"Propose subtasks for a task. Writes nothing — returns JSON for the\nreview widget. The task is resolved server-side via ``_find_task`` (the\nsame sibling write routes use) so the agent/org and the title/body fed to\nthe proposer are authoritative, not trusted from the request. All failures\ncollapse to {\"ok\": false, ...} at HTTP 200.","operationId":"tasks_decompose_propose_account_tasks__task_id__decompose_propose_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/tasks/{task_id}/decompose/apply":{"post":{"summary":"Tasks Decompose Apply","description":"Create the reviewed subtasks as children of ``task_id``. The parent's\nagent/org are resolved server-side via ``_find_task`` (not trusted from\nthe request). Returns JSON with per-row results so the widget can report\npartial failures.","operationId":"tasks_decompose_apply_account_tasks__task_id__decompose_apply_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_DecomposeApplyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/tasks/{task_id}/start":{"post":{"summary":"Task Start","operationId":"task_start_account_tasks__task_id__start_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/tasks/{task_id}/approve":{"post":{"summary":"Task Approve","operationId":"task_approve_account_tasks__task_id__approve_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/tasks/{task_id}/reject":{"post":{"summary":"Task Reject","operationId":"task_reject_account_tasks__task_id__reject_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_task_reject_account_tasks__task_id__reject_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/tasks/{task_id}/cancel":{"post":{"summary":"Task Cancel","operationId":"task_cancel_account_tasks__task_id__cancel_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/tasks/{task_id}/workspace/{sub}":{"get":{"summary":"Task Workspace","operationId":"task_workspace_account_tasks__task_id__workspace__sub__get","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}},{"name":"sub","in":"path","required":true,"schema":{"type":"string","title":"Sub"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/tasks/{task_id}/workspace":{"get":{"summary":"Task Workspace","operationId":"task_workspace_account_tasks__task_id__workspace_get","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}},{"name":"sub","in":"query","required":false,"schema":{"type":"string","default":"","title":"Sub"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/tasks/{task_id}/debug/run-{run_id}/{sub}":{"get":{"summary":"Task Run Debug","description":"Serve a run's PRIVATE debug bundle (worker log + run metadata) from\n``data/kanban/<agent>/debug/<task_id>/run-<N>/``. Creator/admin only —\nthese raw logs are deliberately not org-shared. No ``sub`` lists the\nbundle; a ``sub`` serves a file inline (or ``?download``).","operationId":"task_run_debug_account_tasks__task_id__debug_run__run_id___sub__get","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}},{"name":"run_id","in":"path","required":true,"schema":{"type":"integer","title":"Run Id"}},{"name":"sub","in":"path","required":true,"schema":{"type":"string","title":"Sub"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/tasks/{task_id}/debug/run-{run_id}":{"get":{"summary":"Task Run Debug","description":"Serve a run's PRIVATE debug bundle (worker log + run metadata) from\n``data/kanban/<agent>/debug/<task_id>/run-<N>/``. Creator/admin only —\nthese raw logs are deliberately not org-shared. No ``sub`` lists the\nbundle; a ``sub`` serves a file inline (or ``?download``).","operationId":"task_run_debug_account_tasks__task_id__debug_run__run_id__get","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}},{"name":"run_id","in":"path","required":true,"schema":{"type":"integer","title":"Run Id"}},{"name":"sub","in":"query","required":false,"schema":{"type":"string","default":"","title":"Sub"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/tasks/{task_id}/publish":{"post":{"summary":"Task Publish","description":"Copy the task's kanban workspace into the org's shared folder so\nevery teammate (in Nextcloud) and every agent (at\n/opt/data/workspace/company) can reach it. Creator-or-admin only.","operationId":"task_publish_account_tasks__task_id__publish_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/projects":{"get":{"summary":"Projects Index","description":"Moved to /work/projects (work model, phase 2). 303, not 301: a cached\npermanent redirect would outlive a rollback of this image.","operationId":"projects_index_account_projects_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/tasks/{task_id}":{"get":{"summary":"Task Detail","description":"Unified detail page for a single task. Composes data from the\nper-org kanban SQLite (task row + run history), Postgres\n(task_cron link, project, review), and the per-agent cron\njobs.json (schedule state). Read-mostly — the only write action\nhere is unlinking the cron job (Danger zone).\n\nLinked from kanban card titles, project tree rows, and the\nRoutines view (/work/routines).","operationId":"task_detail_account_tasks__task_id__get","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/tasks/{task_id}/move-persona":{"post":{"summary":"Task Move Persona","operationId":"task_move_persona_account_tasks__task_id__move_persona_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_task_move_persona_account_tasks__task_id__move_persona_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/tasks/{task_id}/skills":{"post":{"summary":"Task Set Skills","description":"Apply a skill set to the task's persona (installs/removes skills on the\nagent and restarts it). The persona is resolved from the task's tenant;\nfalls back to the agent's default persona when no persona is set.","operationId":"task_set_skills_account_tasks__task_id__skills_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/tasks/{task_id}/unlink-cron":{"post":{"summary":"Task Unlink Cron","description":"Detach the cron job from this task and delete the cron job\nitself. The kanban card is not touched. Only the task creator or\na platform admin can do this.","operationId":"task_unlink_cron_account_tasks__task_id__unlink_cron_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/tasks/{task_id}/recurring/pause":{"post":{"summary":"Task Recurring Pause","operationId":"task_recurring_pause_account_tasks__task_id__recurring_pause_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/tasks/{task_id}/recurring/resume":{"post":{"summary":"Task Recurring Resume","operationId":"task_recurring_resume_account_tasks__task_id__recurring_resume_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/tasks/{task_id}/recurring/delete":{"post":{"summary":"Task Recurring Delete","description":"Delete the cron job entirely. Same effect as the existing\n/unlink-cron handler — both remove the cron file entry plus the\ntask_cron row; the kanban card itself stays. Kept under\n/recurring/delete for symmetry with pause/resume/edit on this\npage so the action buttons share one form prefix.","operationId":"task_recurring_delete_account_tasks__task_id__recurring_delete_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/tasks/{task_id}/recurring/edit":{"post":{"summary":"Task Recurring Edit","description":"Update the cron schedule for the linked job. Schedule changes\nare pushed into the agent's jobs.json via ``_hermes_edit_job`` and\nmirrored into ``task_cron`` so the detail page badge stays in sync.\nName/prompt edits keep going through the Routines view's (/work/routines)\nedit form — those depend on cron-row context this page doesn't\nown.","operationId":"task_recurring_edit_account_tasks__task_id__recurring_edit_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_task_recurring_edit_account_tasks__task_id__recurring_edit_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/tasks/{task_id}/edit-body":{"post":{"summary":"Task Edit Body","description":"Update the task's instructions in the per-org kanban SQLite,\nand append a kanban comment recording the previous version so the\nedit history is visible on this page (and on the Hermes kanban\nevent log). Creator-or-admin only.","operationId":"task_edit_body_account_tasks__task_id__edit_body_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_task_edit_body_account_tasks__task_id__edit_body_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/tasks/{task_id}/rerun":{"post":{"summary":"Task Rerun","description":"Re-run a previously-completed (or otherwise stalled) task. Resets\nstatus back to 'ready' and clears the worker-claim columns so the\nnext dispatcher tick re-spawns the worker. Refuses on running /\narchived tasks (use the kanban / archived view to act on those).\nPermission: creator or platform admin.","operationId":"task_rerun_account_tasks__task_id__rerun_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/tasks/{task_id}/stop":{"post":{"summary":"Task Stop","description":"Soft-stop a running (or still-queued) task and park it as 'Stopped'\n(blocked) — keeps the body + workspace so it can be re-run with ▶ Run.\nReleases the active claim (the worker exits at its next checkpoint) and\nblocks the task so the dispatcher won't re-grab it. Refuses on already\ndone / archived tasks. Permission: creator or platform admin.","operationId":"task_stop_account_tasks__task_id__stop_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/tasks/{task_id}/edit-description":{"post":{"summary":"Task Edit Description","description":"Save or regenerate the task's friendly one-line description.\n\nStored as a kanban comment with prefix\n``[task:friendly-description]`` so the kanban event log captures\nevery change, and the detail page can surface the latest one\ninline below the title. Creator-or-admin only.\n\nIf ``regenerate`` is set, the supplied description is ignored and a\nfresh one is generated from the task body via the local LiteLLM\ngateway (PII-bounded, falls back to the first line on any error).","operationId":"task_edit_description_account_tasks__task_id__edit_description_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_task_edit_description_account_tasks__task_id__edit_description_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/tasks/{task_id}/restore-body":{"post":{"summary":"Task Restore Body","description":"Restore the task body to the previous version recorded in the\nedit-log comment with timestamp ``comment_at``. The current body\nbecomes the new edit-log entry, so the restore is itself\nreversible. Creator-or-admin only.","operationId":"task_restore_body_account_tasks__task_id__restore_body_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_task_restore_body_account_tasks__task_id__restore_body_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/tasks/{task_id}/recurring/new":{"get":{"summary":"Task Recurring Form","description":"Render the tiny form for promoting an existing kanban card into a\nrecurring cron-anchored card. Path 3 of the three create flows.","operationId":"task_recurring_form_account_tasks__task_id__recurring_new_get","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/tasks/{task_id}/recurring":{"post":{"summary":"Task Recurring Submit","description":"Promote an existing kanban task into a recurring task. Mints a\nHermes cron job whose prompt carries the [cron:<id>] marker and\ninserts a task_cron row linking the two. Rejects if the task already\nhas a cron link.","operationId":"task_recurring_submit_account_tasks__task_id__recurring_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_task_recurring_submit_account_tasks__task_id__recurring_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/projects/{project_id}":{"get":{"summary":"Project Detail","description":"Tree view of every task tagged with this project. Parent/child\nlinks come from the task_project overlay. Tasks the caller can't\nsee (other orgs) don't appear; their child tasks surface in the\norphans pane at the bottom.","operationId":"project_detail_account_projects__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/rooms":{"get":{"summary":"Rooms Index","description":"The rooms index moved into My work (D6), which lists the assistants'\nrooms beside your threads.","operationId":"rooms_index_account_rooms_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/rooms/{agent_id}":{"get":{"summary":"Room Page","operationId":"room_page_account_rooms__agent_id__get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/rooms/{agent_id}/threads/{task_id}":{"get":{"summary":"Thread Page","operationId":"thread_page_account_rooms__agent_id__threads__task_id__get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/rooms/{agent_id}/threads/{task_id}/version":{"get":{"summary":"Thread Version","operationId":"thread_version_account_rooms__agent_id__threads__task_id__version_get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/handoff/targets":{"post":{"summary":"Handoff Targets","operationId":"handoff_targets_api_handoff_targets_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"}}}}}}},"/api/handoff/send":{"post":{"summary":"Handoff Send","operationId":"handoff_send_api_handoff_send_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"}}}}}}},"/account/agent/{aid}/personas/save-team":{"get":{"summary":"Save Team Review","operationId":"save_team_review_account_agent__aid__personas_save_team_get","parameters":[{"name":"aid","in":"path","required":true,"schema":{"type":"string","title":"Aid"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Save Team","operationId":"save_team_account_agent__aid__personas_save_team_post","parameters":[{"name":"aid","in":"path","required":true,"schema":{"type":"string","title":"Aid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/persona-sets/{row_id}/rename":{"post":{"summary":"Org Set Rename","operationId":"org_set_rename_organization__organization_id__persona_sets__row_id__rename_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}},{"name":"row_id","in":"path","required":true,"schema":{"type":"integer","title":"Row Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization/{organization_id}/persona-sets/{row_id}/delete":{"post":{"summary":"Org Set Delete","operationId":"org_set_delete_organization__organization_id__persona_sets__row_id__delete_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"integer","title":"Organization Id"}},{"name":"row_id","in":"path","required":true,"schema":{"type":"integer","title":"Row Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/personas/sets":{"get":{"summary":"Sets Library","operationId":"sets_library_account_personas_sets_get","parameters":[{"name":"host","in":"query","required":false,"schema":{"type":"string","default":"","title":"Host"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/personas/sets/{set_id}/review":{"get":{"summary":"Set Review","operationId":"set_review_account_personas_sets__set_id__review_get","parameters":[{"name":"set_id","in":"path","required":true,"schema":{"type":"string","title":"Set Id"}},{"name":"host","in":"query","required":false,"schema":{"type":"string","default":"","title":"Host"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/personas/sets/{set_id}/apply":{"post":{"summary":"Set Apply","operationId":"set_apply_account_personas_sets__set_id__apply_post","parameters":[{"name":"set_id","in":"path","required":true,"schema":{"type":"string","title":"Set Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/personas/sets/jobs/{token}":{"get":{"summary":"Set Job","description":"Adding a team, while it runs (the page refreshes itself) and when it is\ndone: what was created, with links. Only for the person who started it.","operationId":"set_job_account_personas_sets_jobs__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/personas/{pid}/memory":{"get":{"summary":"Persona Memory","operationId":"persona_memory_account_personas__pid__memory_get","parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"string","title":"Pid"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/personas/{pid}/memory/file":{"post":{"summary":"Persona Memory File","description":"Two steps: the first POST shows the diff and asks; only the second\n(confirmed=1, the same text and base) writes — in place, and only if the\nfile is still what the person saw.","operationId":"persona_memory_file_account_personas__pid__memory_file_post","parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"string","title":"Pid"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_persona_memory_file_account_personas__pid__memory_file_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/personas/{pid}/memory/forget":{"post":{"summary":"Persona Memory Forget","description":"One fact (point=<id>) or everything of this bot (everything=1 with\nconfirm=forget). Always this profile's sessions only (memory_view.forget).","operationId":"persona_memory_forget_account_personas__pid__memory_forget_post","parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"string","title":"Pid"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_persona_memory_forget_account_personas__pid__memory_forget_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/personas":{"get":{"summary":"Personas Index","operationId":"personas_index_account_personas_get","parameters":[{"name":"show_archived","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Show Archived"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Persona Create","operationId":"persona_create_account_personas_post","requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_persona_create_account_personas_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/personas/new":{"get":{"summary":"Persona New Form","operationId":"persona_new_form_account_personas_new_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/account/personas/{pid}/console":{"get":{"summary":"Persona Console Redirect","description":"Hop to the agent's console with a persona hint in the query.\n\nToday this lands on the existing agent-wide console — sessions are\nnot yet filtered by persona profile dir (closed-source Hermes writes\nthem under config/sessions/ for default and config/profiles/<slug>/\nsessions/ for named profiles; refactor pending). The banner on the\nconsole reads `?persona=<pid>` and tells the operator that scope.","operationId":"persona_console_redirect_account_personas__pid__console_get","parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"string","title":"Pid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/personas/{pid}/new-task":{"get":{"summary":"Persona New Task Redirect","description":"Pre-pinned task form: hop to /account/tasks/new with target+persona\nalready filled in. Validates view access on the persona first so a\nstray link can't leak personas the viewer isn't entitled to.","operationId":"persona_new_task_redirect_account_personas__pid__new_task_get","parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"string","title":"Pid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/personas/{pid}":{"get":{"summary":"Persona Detail","operationId":"persona_detail_account_personas__pid__get","parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"string","title":"Pid"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/personas/{pid}/avatar":{"get":{"summary":"Persona Avatar Studio","description":"The avatar studio on a screen of its own (it made the Actions grid's\nfourth column very long): the same studio partial and script, the same\nAPI, for whoever may edit the persona (personas.can_edit) — 403 for\nanyone else, who sees the current avatar and its download on the\npersona's page.","operationId":"persona_avatar_studio_account_personas__pid__avatar_get","parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"string","title":"Pid"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/personas/{pid}/rename":{"post":{"summary":"Persona Rename","operationId":"persona_rename_account_personas__pid__rename_post","parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"string","title":"Pid"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_persona_rename_account_personas__pid__rename_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/personas/{pid}/mode":{"post":{"summary":"Persona Set Mode","operationId":"persona_set_mode_account_personas__pid__mode_post","parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"string","title":"Pid"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_persona_set_mode_account_personas__pid__mode_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/personas/{pid}/job":{"post":{"summary":"Persona Set Job","operationId":"persona_set_job_account_personas__pid__job_post","parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"string","title":"Pid"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_persona_set_job_account_personas__pid__job_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/personas/{pid}/supervision":{"post":{"summary":"Persona Set Supervision","description":"Lift supervision, or put a persona back under it. Whoever may edit the\npersona decides — the scorecard beside the button is what they decide on.\nThe main assistant (`default`) is never supervised.","operationId":"persona_set_supervision_account_personas__pid__supervision_post","parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"string","title":"Pid"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_persona_set_supervision_account_personas__pid__supervision_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/personas/{pid}/directs":{"post":{"summary":"Persona Set Directs","description":"Reporting lines: whom this persona may hand work to. Open until\nrestricted — \"everyone\" stores NULL, so a colleague added later is\nincluded; a selection stores exactly the ticked slugs. Enforced by the\ncollab-guard plugin, not only described to the model.","operationId":"persona_set_directs_account_personas__pid__directs_post","parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"string","title":"Pid"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_persona_set_directs_account_personas__pid__directs_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/personas/{pid}/model":{"post":{"summary":"Persona Set Model","operationId":"persona_set_model_account_personas__pid__model_post","parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"string","title":"Pid"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_persona_set_model_account_personas__pid__model_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/personas/{pid}/archive":{"get":{"summary":"Persona Archive Confirm","operationId":"persona_archive_confirm_account_personas__pid__archive_get","parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"string","title":"Pid"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Persona Archive","operationId":"persona_archive_account_personas__pid__archive_post","parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"string","title":"Pid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/personas/{pid}/unarchive":{"post":{"summary":"Persona Unarchive","operationId":"persona_unarchive_account_personas__pid__unarchive_post","parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"string","title":"Pid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/personas/{pid}/routines/resume":{"post":{"summary":"Persona Resume Routines","operationId":"persona_resume_routines_account_personas__pid__routines_resume_post","parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"string","title":"Pid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/personas/{pid}/delete":{"get":{"summary":"Persona Delete Confirm","operationId":"persona_delete_confirm_account_personas__pid__delete_get","parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"string","title":"Pid"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Persona Delete","operationId":"persona_delete_account_personas__pid__delete_post","parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"string","title":"Pid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/personas/{pid}/restore-trash":{"post":{"summary":"Persona Restore Trash","operationId":"persona_restore_trash_account_personas__pid__restore_trash_post","parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"string","title":"Pid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/personas/{pid}/triggers":{"get":{"summary":"Persona Triggers","operationId":"persona_triggers_account_personas__pid__triggers_get","parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"string","title":"Pid"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Persona Triggers Create","operationId":"persona_triggers_create_account_personas__pid__triggers_post","parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"string","title":"Pid"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_persona_triggers_create_account_personas__pid__triggers_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/personas/{pid}/triggers/{trigger_id}/delete":{"post":{"summary":"Persona Triggers Delete","operationId":"persona_triggers_delete_account_personas__pid__triggers__trigger_id__delete_post","parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"string","title":"Pid"}},{"name":"trigger_id","in":"path","required":true,"schema":{"type":"integer","title":"Trigger Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/personas/{pid}/chains":{"get":{"summary":"Persona Chains","operationId":"persona_chains_account_personas__pid__chains_get","parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"string","title":"Pid"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/agent/{aid}/personas":{"get":{"summary":"Host Personas","description":"Lists personas hosted on one agent. Gated to `manage` on that agent\n(agent_access): admin, owner, org manager, or a team manager holding a\nmanage grant. Cheaper authz than per-persona checks because we resolve\nthe agent once.","operationId":"host_personas_account_agent__aid__personas_get","parameters":[{"name":"aid","in":"path","required":true,"schema":{"type":"string","title":"Aid"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/personas/{persona_id}/profile":{"get":{"summary":"View","operationId":"view_account_personas__persona_id__profile_get","parameters":[{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","title":"Persona Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Save","operationId":"save_account_personas__persona_id__profile_post","parameters":[{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","title":"Persona Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_save_account_personas__persona_id__profile_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/personas/{persona_id}/skills":{"post":{"summary":"Save Skills","operationId":"save_skills_account_personas__persona_id__skills_post","parameters":[{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","title":"Persona Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/personas/{persona_id}/profile/generate":{"post":{"summary":"Generate","description":"Turn a free-text persona brief into draft SOUL / MEMORY / USER docs.\n\nReturns JSON `{ok: true, soul, memory, instructions}` on success or\n`{ok: false, error}` on any failure (LLM unreachable, malformed\nresponse, etc.). The endpoint never writes — it's the user's job to\nreview the three textareas and submit the form when satisfied.","operationId":"generate_account_personas__persona_id__profile_generate_post","parameters":[{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","title":"Persona Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_GenerateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/healthz":{"get":{"summary":"Healthz","operationId":"healthz_healthz_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"Body_account_how_it_works_account_how_it_works_post":{"properties":{"hide":{"type":"string","title":"Hide","default":""}},"type":"object","title":"Body_account_how_it_works_account_how_it_works_post"},"Body_account_memory_save_account_memory_post":{"properties":{"content":{"type":"string","title":"Content","default":""},"reload_now":{"type":"string","title":"Reload Now","default":""}},"type":"object","title":"Body_account_memory_save_account_memory_post"},"Body_account_submit_account_post":{"properties":{"telephone":{"type":"string","title":"Telephone","default":""},"whatsapp":{"type":"string","title":"Whatsapp","default":""},"telegram":{"type":"string","title":"Telegram","default":""},"company":{"type":"string","title":"Company","default":""},"timezone":{"type":"string","title":"Timezone","default":"Europe/Amsterdam"},"language":{"type":"string","title":"Language","default":"en"},"job_title":{"type":"string","title":"Job Title","default":""},"linkedin_url":{"type":"string","title":"Linkedin Url","default":""},"skills":{"type":"string","title":"Skills","default":""},"bio":{"type":"string","title":"Bio","default":""},"home_address":{"type":"string","title":"Home Address","default":""},"emergency_contact":{"type":"string","title":"Emergency Contact","default":""},"notes_private":{"type":"string","title":"Notes Private","default":""}},"type":"object","title":"Body_account_submit_account_post"},"Body_acl_create_folder__owner_kind___owner_id__acl_post":{"properties":{"subpath":{"type":"string","title":"Subpath","default":""},"grantee":{"type":"string","title":"Grantee"},"permission":{"type":"string","title":"Permission","default":"read"},"ingest_to_knowledge":{"type":"string","title":"Ingest To Knowledge","default":""}},"type":"object","required":["grantee"],"title":"Body_acl_create_folder__owner_kind___owner_id__acl_post"},"Body_acl_create_folder_folder__owner_kind___owner_id__folders_post":{"properties":{"subpath":{"type":"string","title":"Subpath"}},"type":"object","required":["subpath"],"title":"Body_acl_create_folder_folder__owner_kind___owner_id__folders_post"},"Body_acl_give_folder__owner_kind___owner_id__acl_give_post":{"properties":{"subpath":{"type":"string","title":"Subpath","default":""},"principal":{"type":"string","title":"Principal","default":""},"permission":{"type":"string","title":"Permission","default":""},"ingest_to_knowledge":{"type":"string","title":"Ingest To Knowledge","default":""}},"type":"object","title":"Body_acl_give_folder__owner_kind___owner_id__acl_give_post"},"Body_acl_set_ingest_folder__owner_kind___owner_id__acl__grant_id__ingest_post":{"properties":{"enabled":{"type":"string","title":"Enabled","default":""}},"type":"object","title":"Body_acl_set_ingest_folder__owner_kind___owner_id__acl__grant_id__ingest_post"},"Body_add_skill_admin_templates__template_id__add_skill_post":{"properties":{"identifier":{"type":"string","title":"Identifier"}},"type":"object","required":["identifier"],"title":"Body_add_skill_admin_templates__template_id__add_skill_post"},"Body_admin_catalog_decide_admin_catalog_decide_post":{"properties":{"item_id":{"type":"integer","title":"Item Id"},"decision":{"type":"string","title":"Decision"},"note":{"type":"string","title":"Note","default":""}},"type":"object","required":["item_id","decision"],"title":"Body_admin_catalog_decide_admin_catalog_decide_post"},"Body_admin_create_organization_admin_organizations_post":{"properties":{"name":{"type":"string","title":"Name"}},"type":"object","required":["name"],"title":"Body_admin_create_organization_admin_organizations_post"},"Body_admin_create_team_admin_teams_post":{"properties":{"organization_id":{"type":"integer","title":"Organization Id"},"name":{"type":"string","title":"Name"},"manager_user_id":{"type":"integer","title":"Manager User Id","default":0}},"type":"object","required":["organization_id","name"],"title":"Body_admin_create_team_admin_teams_post"},"Body_admin_set_persona_model_catalog_admin_persona_model_catalog_post":{"properties":{"mode":{"type":"string","title":"Mode"}},"type":"object","required":["mode"],"title":"Body_admin_set_persona_model_catalog_admin_persona_model_catalog_post"},"Body_admin_set_team_manager_admin_teams__team_id__manager_post":{"properties":{"manager_user_id":{"type":"integer","title":"Manager User Id"}},"type":"object","required":["manager_user_id"],"title":"Body_admin_set_team_manager_admin_teams__team_id__manager_post"},"Body_admin_skill_author_check_admin_skills_author_post":{"properties":{"name":{"type":"string","title":"Name","default":""},"description":{"type":"string","title":"Description","default":""},"body":{"type":"string","title":"Body","default":""},"version":{"type":"string","title":"Version","default":"1.0.0"},"tags":{"type":"string","title":"Tags","default":""}},"type":"object","title":"Body_admin_skill_author_check_admin_skills_author_post"},"Body_admin_skill_author_download_admin_skills_author_download_post":{"properties":{"name":{"type":"string","title":"Name","default":""},"description":{"type":"string","title":"Description","default":""},"body":{"type":"string","title":"Body","default":""},"version":{"type":"string","title":"Version","default":"1.0.0"},"tags":{"type":"string","title":"Tags","default":""}},"type":"object","title":"Body_admin_skill_author_download_admin_skills_author_download_post"},"Body_alias_create_account_agent_aliases_post":{"properties":{"agent_id":{"type":"string","title":"Agent Id"},"source":{"type":"string","title":"Source"}},"type":"object","required":["agent_id","source"],"title":"Body_alias_create_account_agent_aliases_post"},"Body_alias_delete_account_agent_aliases__alias_id__delete_post":{"properties":{"agent_id":{"type":"string","title":"Agent Id"}},"type":"object","required":["agent_id"],"title":"Body_alias_delete_account_agent_aliases__alias_id__delete_post"},"Body_alias_reassign_account_agent_aliases__alias_id__reassign_post":{"properties":{"agent_id":{"type":"string","title":"Agent Id"},"new_agent_id":{"type":"string","title":"New Agent Id"}},"type":"object","required":["agent_id","new_agent_id"],"title":"Body_alias_reassign_account_agent_aliases__alias_id__reassign_post"},"Body_alias_rename_account_agent_aliases__alias_id__rename_post":{"properties":{"agent_id":{"type":"string","title":"Agent Id"},"new_source":{"type":"string","title":"New Source"}},"type":"object","required":["agent_id","new_source"],"title":"Body_alias_rename_account_agent_aliases__alias_id__rename_post"},"Body_allowlist_add_account_agent__agent_id__allowlist_add_post":{"properties":{"pattern":{"type":"string","title":"Pattern"}},"type":"object","required":["pattern"],"title":"Body_allowlist_add_account_agent__agent_id__allowlist_add_post"},"Body_allowlist_delete_account_agent__agent_id__allowlist_delete_post":{"properties":{"pattern":{"type":"string","title":"Pattern"}},"type":"object","required":["pattern"],"title":"Body_allowlist_delete_account_agent__agent_id__allowlist_delete_post"},"Body_api_chat_rename_account_agent__agent_id__console_api_chats__chat_id__title_post":{"properties":{"title":{"type":"string","title":"Title","default":""}},"type":"object","title":"Body_api_chat_rename_account_agent__agent_id__console_api_chats__chat_id__title_post"},"Body_api_speak_account_agent__agent_id__console_api_speak_post":{"properties":{"text":{"type":"string","title":"Text"},"language":{"type":"string","title":"Language","default":""},"voice":{"type":"string","title":"Voice","default":""},"speed":{"type":"string","title":"Speed","default":"1"}},"type":"object","required":["text"],"title":"Body_api_speak_account_agent__agent_id__console_api_speak_post"},"Body_api_transcribe_account_agent__agent_id__console_api_transcribe_post":{"properties":{"audio":{"type":"string","format":"binary","title":"Audio"},"language":{"type":"string","title":"Language","default":""}},"type":"object","required":["audio"],"title":"Body_api_transcribe_account_agent__agent_id__console_api_transcribe_post"},"Body_ask_decline_work_ask__request_id__decline_post":{"properties":{"reason":{"type":"string","title":"Reason","default":""}},"type":"object","title":"Body_ask_decline_work_ask__request_id__decline_post"},"Body_change_password_account_security_password_post":{"properties":{"current_password":{"type":"string","title":"Current Password"},"new_password":{"type":"string","title":"New Password"},"confirmation":{"type":"string","title":"Confirmation"}},"type":"object","required":["current_password","new_password","confirmation"],"title":"Body_change_password_account_security_password_post"},"Body_check_company_alias_check_company_alias_post":{"properties":{"company":{"type":"string","title":"Company","default":""}},"type":"object","title":"Body_check_company_alias_check_company_alias_post"},"Body_check_email_check_email_post":{"properties":{"first_name":{"type":"string","title":"First Name","default":""},"last_name":{"type":"string","title":"Last Name","default":""},"assistant_email":{"type":"string","title":"Assistant Email","default":""}},"type":"object","title":"Body_check_email_check_email_post"},"Body_delete_credential_account_security_credentials__cred_id__delete_post":{"properties":{"cred_type":{"type":"string","title":"Cred Type","default":""}},"type":"object","title":"Body_delete_credential_account_security_credentials__cred_id__delete_post"},"Body_department_lead_work_d__team_id__lead_post":{"properties":{"persona_id":{"type":"string","title":"Persona Id","default":""}},"type":"object","title":"Body_department_lead_work_d__team_id__lead_post"},"Body_disable_plugin_account_plugins_disable_post":{"properties":{"name":{"type":"string","title":"Name"}},"type":"object","required":["name"],"title":"Body_disable_plugin_account_plugins_disable_post"},"Body_email_rename_account_agent_email_rename_post":{"properties":{"agent_id":{"type":"string","title":"Agent Id"},"new_email":{"type":"string","title":"New Email"}},"type":"object","required":["agent_id","new_email"],"title":"Body_email_rename_account_agent_email_rename_post"},"Body_enable_plugin_account_plugins_enable_post":{"properties":{"name":{"type":"string","title":"Name"}},"type":"object","required":["name"],"title":"Body_enable_plugin_account_plugins_enable_post"},"Body_folder_knowledge_reindex_folder__owner_kind___owner_id__knowledge_reindex_post":{"properties":{"subpath":{"type":"string","title":"Subpath","default":""}},"type":"object","title":"Body_folder_knowledge_reindex_folder__owner_kind___owner_id__knowledge_reindex_post"},"Body_folder_set_class_folder__owner_kind___owner_id__class_post":{"properties":{"subpath":{"type":"string","title":"Subpath","default":""},"data_class":{"type":"string","title":"Data Class","default":""}},"type":"object","title":"Body_folder_set_class_folder__owner_kind___owner_id__class_post"},"Body_folder_set_knowledge_folder__owner_kind___owner_id__knowledge_post":{"properties":{"subpath":{"type":"string","title":"Subpath","default":""},"enabled":{"type":"string","title":"Enabled","default":""}},"type":"object","title":"Body_folder_set_knowledge_folder__owner_kind___owner_id__knowledge_post"},"Body_function_archive_account_functions__scope___owner_id___slug__archive_post":{"properties":{"archived":{"type":"string","title":"Archived","default":"1"}},"type":"object","title":"Body_function_archive_account_functions__scope___owner_id___slug__archive_post"},"Body_function_create_account_functions_post":{"properties":{"parent_scope":{"type":"string","title":"Parent Scope"},"parent_id":{"type":"integer","title":"Parent Id"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug","default":""},"description":{"type":"string","title":"Description","default":""},"entrypoint":{"type":"string","title":"Entrypoint","default":"run.sh"},"args":{"type":"string","title":"Args","default":""},"entry_content":{"type":"string","title":"Entry Content","default":""}},"type":"object","required":["parent_scope","parent_id","name"],"title":"Body_function_create_account_functions_post"},"Body_function_update_account_functions__scope___owner_id___slug__post":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description","default":""},"entrypoint":{"type":"string","title":"Entrypoint","default":"run.sh"},"args":{"type":"string","title":"Args","default":""},"entry_content":{"type":"string","title":"Entry Content","default":""}},"type":"object","required":["name"],"title":"Body_function_update_account_functions__scope___owner_id___slug__post"},"Body_import_set_organization__organization_id__persona_sets_import_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_import_set_organization__organization_id__persona_sets_import_post"},"Body_install_plugin_account_plugins_install_post":{"properties":{"catalog_slug":{"type":"string","title":"Catalog Slug","default":""},"name":{"type":"string","title":"Name","default":""},"git_url":{"type":"string","title":"Git Url","default":""},"ref":{"type":"string","title":"Ref","default":""}},"type":"object","title":"Body_install_plugin_account_plugins_install_post"},"Body_knowledge_x_fetch_organization__organization_id__knowledge_x_fetch_post":{"properties":{"username":{"type":"string","title":"Username","default":""}},"type":"object","title":"Body_knowledge_x_fetch_organization__organization_id__knowledge_x_fetch_post"},"Body_knowledge_x_follow_organization__organization_id__knowledge_x_follow_post":{"properties":{"username":{"type":"string","title":"Username","default":""},"topic":{"type":"string","title":"Topic","default":""}},"type":"object","title":"Body_knowledge_x_follow_organization__organization_id__knowledge_x_follow_post"},"Body_knowledge_x_key_organization__organization_id__knowledge_x_key_post":{"properties":{"token":{"type":"string","title":"Token","default":""},"secret":{"type":"string","title":"Secret","default":""}},"type":"object","title":"Body_knowledge_x_key_organization__organization_id__knowledge_x_key_post"},"Body_knowledge_x_settings_organization__organization_id__knowledge_x_settings_post":{"properties":{"delivery":{"type":"string","title":"Delivery","default":""},"fetch_minutes":{"type":"string","title":"Fetch Minutes","default":""},"daily_cap":{"type":"string","title":"Daily Cap","default":""},"bots_may_change":{"type":"string","title":"Bots May Change","default":""}},"type":"object","title":"Body_knowledge_x_settings_organization__organization_id__knowledge_x_settings_post"},"Body_knowledge_x_unfollow_organization__organization_id__knowledge_x_unfollow_post":{"properties":{"username":{"type":"string","title":"Username","default":""}},"type":"object","title":"Body_knowledge_x_unfollow_organization__organization_id__knowledge_x_unfollow_post"},"Body_linkedin_admin_credentials_post_admin_oauth_linkedin_credentials_post":{"properties":{"client_id":{"type":"string","title":"Client Id","default":""},"client_secret":{"type":"string","title":"Client Secret","default":""},"redirect_uri":{"type":"string","title":"Redirect Uri","default":""}},"type":"object","title":"Body_linkedin_admin_credentials_post_admin_oauth_linkedin_credentials_post"},"Body_note_withdraw_organization__organization_id__memory_notes_withdraw_post":{"properties":{"note":{"type":"string","title":"Note"}},"type":"object","required":["note"],"title":"Body_note_withdraw_organization__organization_id__memory_notes_withdraw_post"},"Body_org_enable_organization__organization_id__claude_enable_post":{"properties":{"agree":{"type":"string","title":"Agree","default":""},"consent_sha256":{"type":"string","title":"Consent Sha256","default":""}},"type":"object","title":"Body_org_enable_organization__organization_id__claude_enable_post"},"Body_org_guests_setting_organization__organization_id__settings_guests_post":{"properties":{"allowed":{"items":{"type":"string"},"type":"array","title":"Allowed","default":[]}},"type":"object","title":"Body_org_guests_setting_organization__organization_id__settings_guests_post"},"Body_org_memory_save_organization__organization_id__memory_post":{"properties":{"content":{"type":"string","title":"Content","default":""},"reload_now":{"type":"string","title":"Reload Now","default":""}},"type":"object","title":"Body_org_memory_save_organization__organization_id__memory_post"},"Body_org_persona_save_organization__organization_id__persona_post":{"properties":{"content":{"type":"string","title":"Content","default":""},"reload_now":{"type":"string","title":"Reload Now","default":""}},"type":"object","title":"Body_org_persona_save_organization__organization_id__persona_post"},"Body_org_system_template_toggle_organization__organization_id__templates_system_post":{"properties":{"template_id":{"type":"string","title":"Template Id"},"hidden":{"type":"string","title":"Hidden","default":"0"}},"type":"object","required":["template_id"],"title":"Body_org_system_template_toggle_organization__organization_id__templates_system_post"},"Body_organization_catalog_decide_organization__organization_id__catalog_decide_post":{"properties":{"item_id":{"type":"integer","title":"Item Id"},"decision":{"type":"string","title":"Decision"},"note":{"type":"string","title":"Note","default":""}},"type":"object","required":["item_id","decision"],"title":"Body_organization_catalog_decide_organization__organization_id__catalog_decide_post"},"Body_organization_create_team_organization__organization_id__teams_post":{"properties":{"name":{"type":"string","title":"Name"},"manager_user_id":{"type":"integer","title":"Manager User Id","default":0}},"type":"object","required":["name"],"title":"Body_organization_create_team_organization__organization_id__teams_post"},"Body_organization_invite_create_organization__organization_id__invites_post":{"properties":{"email":{"type":"string","title":"Email"}},"type":"object","required":["email"],"title":"Body_organization_invite_create_organization__organization_id__invites_post"},"Body_organization_rename_agent_organization__organization_id__agents__agent_id__rename_post":{"properties":{"new_name":{"type":"string","title":"New Name"}},"type":"object","required":["new_name"],"title":"Body_organization_rename_agent_organization__organization_id__agents__agent_id__rename_post"},"Body_organization_skill_request_decide_organization__organization_id__skills_requests_decide_post":{"properties":{"request_id":{"type":"integer","title":"Request Id"},"decision":{"type":"string","title":"Decision"},"add_to_catalog":{"type":"string","title":"Add To Catalog","default":""},"note":{"type":"string","title":"Note","default":""}},"type":"object","required":["request_id","decision"],"title":"Body_organization_skill_request_decide_organization__organization_id__skills_requests_decide_post"},"Body_organization_skills_discard_organization__organization_id__skills_discard_post":{"properties":{"skill_identifier":{"type":"string","title":"Skill Identifier"}},"type":"object","required":["skill_identifier"],"title":"Body_organization_skills_discard_organization__organization_id__skills_discard_post"},"Body_organization_skills_import_organization__organization_id__skills_import_post":{"properties":{"identifier":{"type":"string","title":"Identifier"},"name":{"type":"string","title":"Name","default":""}},"type":"object","required":["identifier"],"title":"Body_organization_skills_import_organization__organization_id__skills_import_post"},"Body_organization_skills_install_grant_organization__organization_id__skills_install_grant_post":{"properties":{"user_id":{"type":"integer","title":"User Id"},"action":{"type":"string","title":"Action","default":"grant"}},"type":"object","required":["user_id"],"title":"Body_organization_skills_install_grant_organization__organization_id__skills_install_grant_post"},"Body_organization_skills_policy_organization__organization_id__skills_policy_post":{"properties":{"skill_import_policy":{"type":"string","title":"Skill Import Policy"}},"type":"object","required":["skill_import_policy"],"title":"Body_organization_skills_policy_organization__organization_id__skills_policy_post"},"Body_organization_skills_rollout_organization__organization_id__skills_rollout_post":{"properties":{"skill_identifier":{"type":"string","title":"Skill Identifier"}},"type":"object","required":["skill_identifier"],"title":"Body_organization_skills_rollout_organization__organization_id__skills_rollout_post"},"Body_organization_skills_status_organization__organization_id__skills_status_post":{"properties":{"skill_identifier":{"type":"string","title":"Skill Identifier"},"new_status":{"type":"string","title":"New Status"}},"type":"object","required":["skill_identifier","new_status"],"title":"Body_organization_skills_status_organization__organization_id__skills_status_post"},"Body_passkey_later_account_passkey_offer_later_post":{"properties":{"next":{"type":"string","title":"Next","default":"/account"}},"type":"object","title":"Body_passkey_later_account_passkey_offer_later_post"},"Body_persona_create_account_personas_post":{"properties":{"name":{"type":"string","title":"Name"},"agent_host_id":{"type":"string","title":"Agent Host Id"},"parent_scope":{"type":"string","title":"Parent Scope"},"parent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Id"},"runtime_mode":{"type":"string","title":"Runtime Mode","default":"lazy"},"model":{"type":"string","title":"Model","default":""},"brief":{"type":"string","title":"Brief","default":""}},"type":"object","required":["name","agent_host_id","parent_scope"],"title":"Body_persona_create_account_personas_post"},"Body_persona_memory_file_account_personas__pid__memory_file_post":{"properties":{"name":{"type":"string","title":"Name"},"text":{"type":"string","title":"Text","default":""},"base":{"type":"string","title":"Base"},"confirmed":{"type":"string","title":"Confirmed","default":""}},"type":"object","required":["name","base"],"title":"Body_persona_memory_file_account_personas__pid__memory_file_post"},"Body_persona_memory_forget_account_personas__pid__memory_forget_post":{"properties":{"point":{"type":"string","title":"Point","default":""},"everything":{"type":"string","title":"Everything","default":""},"confirm":{"type":"string","title":"Confirm","default":""}},"type":"object","title":"Body_persona_memory_forget_account_personas__pid__memory_forget_post"},"Body_persona_rename_account_personas__pid__rename_post":{"properties":{"name":{"type":"string","title":"Name"}},"type":"object","required":["name"],"title":"Body_persona_rename_account_personas__pid__rename_post"},"Body_persona_set_directs_account_personas__pid__directs_post":{"properties":{"mode":{"type":"string","title":"Mode","default":"open"},"directs":{"items":{"type":"string"},"type":"array","title":"Directs","default":[]}},"type":"object","title":"Body_persona_set_directs_account_personas__pid__directs_post"},"Body_persona_set_job_account_personas__pid__job_post":{"properties":{"job_owns":{"type":"string","title":"Job Owns","default":""},"job_decides":{"type":"string","title":"Job Decides","default":""},"job_asks_first":{"type":"string","title":"Job Asks First","default":""},"job_reports_to":{"type":"string","title":"Job Reports To","default":""}},"type":"object","title":"Body_persona_set_job_account_personas__pid__job_post"},"Body_persona_set_mode_account_personas__pid__mode_post":{"properties":{"runtime_mode":{"type":"string","title":"Runtime Mode"}},"type":"object","required":["runtime_mode"],"title":"Body_persona_set_mode_account_personas__pid__mode_post"},"Body_persona_set_model_account_personas__pid__model_post":{"properties":{"model":{"type":"string","title":"Model","default":""}},"type":"object","title":"Body_persona_set_model_account_personas__pid__model_post"},"Body_persona_set_supervision_account_personas__pid__supervision_post":{"properties":{"supervised":{"type":"string","title":"Supervised"}},"type":"object","required":["supervised"],"title":"Body_persona_set_supervision_account_personas__pid__supervision_post"},"Body_persona_triggers_create_account_personas__pid__triggers_post":{"properties":{"source_task_id":{"type":"string","title":"Source Task Id"},"target_persona_id":{"type":"string","title":"Target Persona Id"},"on_outcome":{"type":"string","title":"On Outcome","default":"completed"},"prompt_template":{"type":"string","title":"Prompt Template"},"max_chain_depth":{"type":"integer","title":"Max Chain Depth","default":4}},"type":"object","required":["source_task_id","target_persona_id","prompt_template"],"title":"Body_persona_triggers_create_account_personas__pid__triggers_post"},"Body_policy_save_organization__organization_id__memory_proposals_policy_post":{"properties":{"memory_policy":{"type":"string","title":"Memory Policy"}},"type":"object","required":["memory_policy"],"title":"Body_policy_save_organization__organization_id__memory_proposals_policy_post"},"Body_profile_manager_save_account_people__target_uid__edit_post":{"properties":{"job_title":{"type":"string","title":"Job Title","default":""},"linkedin_url":{"type":"string","title":"Linkedin Url","default":""},"skills":{"type":"string","title":"Skills","default":""},"bio":{"type":"string","title":"Bio","default":""},"home_address":{"type":"string","title":"Home Address","default":""},"emergency_contact":{"type":"string","title":"Emergency Contact","default":""},"notes_private":{"type":"string","title":"Notes Private","default":""}},"type":"object","title":"Body_profile_manager_save_account_people__target_uid__edit_post"},"Body_project_edit_post_work_p__project_id__edit_post":{"properties":{"name":{"type":"string","title":"Name","default":""},"goal":{"type":"string","title":"Goal","default":""},"team_id":{"type":"string","title":"Team Id","default":""},"due_on":{"type":"string","title":"Due On","default":""},"status_":{"type":"string","title":"Status","default":"active"},"owner_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner User Id"}},"type":"object","title":"Body_project_edit_post_work_p__project_id__edit_post"},"Body_project_guests_knowledge_work_p__project_id__people_guests_knowledge_post":{"properties":{"guests_use_knowledge":{"items":{"type":"string"},"type":"array","title":"Guests Use Knowledge","default":[]}},"type":"object","title":"Body_project_guests_knowledge_work_p__project_id__people_guests_knowledge_post"},"Body_project_member_invite_work_p__project_id__members_invite_post":{"properties":{"email":{"type":"string","title":"Email","default":""},"role":{"type":"string","title":"Role","default":"viewer"}},"type":"object","title":"Body_project_member_invite_work_p__project_id__members_invite_post"},"Body_project_member_remove_work_p__project_id__members_remove_post":{"properties":{"member_id":{"type":"integer","title":"Member Id"}},"type":"object","required":["member_id"],"title":"Body_project_member_remove_work_p__project_id__members_remove_post"},"Body_project_member_role_work_p__project_id__members_role_post":{"properties":{"member_id":{"type":"integer","title":"Member Id"},"role":{"type":"string","title":"Role"}},"type":"object","required":["member_id","role"],"title":"Body_project_member_role_work_p__project_id__members_role_post"},"Body_project_member_withdraw_work_p__project_id__members_withdraw_post":{"properties":{"invite_id":{"type":"integer","title":"Invite Id"}},"type":"object","required":["invite_id"],"title":"Body_project_member_withdraw_work_p__project_id__members_withdraw_post"},"Body_project_new_post_work_projects_new_post":{"properties":{"name":{"type":"string","title":"Name","default":""},"goal":{"type":"string","title":"Goal","default":""},"team_id":{"type":"string","title":"Team Id","default":""},"due_on":{"type":"string","title":"Due On","default":""},"status_":{"type":"string","title":"Status","default":"active"}},"type":"object","title":"Body_project_new_post_work_projects_new_post"},"Body_project_status_post_work_p__project_id__status_post":{"properties":{"status_":{"type":"string","title":"Status","default":""}},"type":"object","title":"Body_project_status_post_work_p__project_id__status_post"},"Body_project_team_add_work_p__project_id__team_add_post":{"properties":{"persona_id":{"type":"string","title":"Persona Id","default":""}},"type":"object","title":"Body_project_team_add_work_p__project_id__team_add_post"},"Body_project_team_remove_work_p__project_id__team_remove_post":{"properties":{"persona_id":{"type":"string","title":"Persona Id","default":""}},"type":"object","title":"Body_project_team_remove_work_p__project_id__team_remove_post"},"Body_promote_org_template_admin_templates_promote_post":{"properties":{"org_template_id":{"type":"integer","title":"Org Template Id"}},"type":"object","required":["org_template_id"],"title":"Body_promote_org_template_admin_templates_promote_post"},"Body_promote_task_account_tasks__task_id__promote_function_post":{"properties":{"scope":{"type":"string","title":"Scope","default":"user"},"owner_id":{"type":"string","title":"Owner Id","default":""},"slug":{"type":"string","title":"Slug","default":""},"name":{"type":"string","title":"Name","default":""},"description":{"type":"string","title":"Description","default":""},"entrypoint":{"type":"string","title":"Entrypoint","default":""},"args":{"type":"string","title":"Args","default":""}},"type":"object","title":"Body_promote_task_account_tasks__task_id__promote_function_post"},"Body_proposal_approve_organization__organization_id__memory_proposals_approve_post":{"properties":{"filename":{"type":"string","title":"Filename"}},"type":"object","required":["filename"],"title":"Body_proposal_approve_organization__organization_id__memory_proposals_approve_post"},"Body_proposal_reject_organization__organization_id__memory_proposals_reject_post":{"properties":{"filename":{"type":"string","title":"Filename"},"reason":{"type":"string","title":"Reason","default":""}},"type":"object","required":["filename"],"title":"Body_proposal_reject_organization__organization_id__memory_proposals_reject_post"},"Body_proposals_decide_account_agent__agent_id__skills_proposals_decide_post":{"properties":{"profile":{"type":"string","title":"Profile"},"pid":{"type":"string","title":"Pid"},"decision":{"type":"string","title":"Decision"}},"type":"object","required":["profile","pid","decision"],"title":"Body_proposals_decide_account_agent__agent_id__skills_proposals_decide_post"},"Body_save_account_agent__agent_id__claude__persona_id__post":{"properties":{"enabled":{"type":"string","title":"Enabled","default":""},"mail":{"type":"string","title":"Mail","default":""},"messages":{"type":"string","title":"Messages","default":""},"publish":{"type":"string","title":"Publish","default":""},"files":{"type":"string","title":"Files","default":""}},"type":"object","title":"Body_save_account_agent__agent_id__claude__persona_id__post"},"Body_save_account_personas__persona_id__profile_post":{"properties":{"soul":{"type":"string","title":"Soul","default":""},"memory":{"type":"string","title":"Memory","default":""},"instructions":{"type":"string","title":"Instructions","default":""},"model":{"type":"string","title":"Model","default":""}},"type":"object","title":"Body_save_account_personas__persona_id__profile_post"},"Body_scheduling_enable_organization__organization_id__scheduling_enable_post":{"properties":{"provider":{"type":"string","title":"Provider"}},"type":"object","required":["provider"],"title":"Body_scheduling_enable_organization__organization_id__scheduling_enable_post"},"Body_signatures_prepare_account_signatures__request_id__prepare_post":{"properties":{"layout":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Layout"},"preset":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preset"},"page":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Page"},"placements":{"type":"string","title":"Placements","default":""}},"type":"object","title":"Body_signatures_prepare_account_signatures__request_id__prepare_post"},"Body_signatures_template_save_account_signatures_templates_post":{"properties":{"scope":{"type":"string","title":"Scope"},"owner_id":{"type":"integer","title":"Owner Id"},"name":{"type":"string","title":"Name"},"placements":{"type":"string","title":"Placements","default":""},"description":{"type":"string","title":"Description","default":""}},"type":"object","required":["scope","owner_id","name"],"title":"Body_signatures_template_save_account_signatures_templates_post"},"Body_signup_submit_signup_post":{"properties":{"first_name":{"type":"string","title":"First Name"},"last_name":{"type":"string","title":"Last Name"},"company":{"type":"string","title":"Company","default":""},"assistant_email":{"type":"string","title":"Assistant Email","default":""},"personal_email":{"type":"string","title":"Personal Email"},"telephone":{"type":"string","title":"Telephone","default":""},"date_of_birth":{"type":"string","title":"Date Of Birth","default":""},"whatsapp":{"type":"string","title":"Whatsapp","default":""},"password":{"type":"string","title":"Password"},"password_confirm":{"type":"string","title":"Password Confirm"},"timezone":{"type":"string","title":"Timezone","default":""},"language":{"type":"string","title":"Language","default":""},"agent_backend":{"type":"string","title":"Agent Backend","default":"hermes"},"invite_token":{"type":"string","title":"Invite Token","default":""},"accept_terms":{"type":"string","title":"Accept Terms","default":""}},"type":"object","required":["first_name","last_name","personal_email","password","password_confirm"],"title":"Body_signup_submit_signup_post"},"Body_skills_install_account_skills_install_post":{"properties":{"name":{"type":"string","title":"Name"}},"type":"object","required":["name"],"title":"Body_skills_install_account_skills_install_post"},"Body_skills_uninstall_account_skills_uninstall_post":{"properties":{"name":{"type":"string","title":"Name"}},"type":"object","required":["name"],"title":"Body_skills_uninstall_account_skills_uninstall_post"},"Body_start_new_work_start_post":{"properties":{"agent_id":{"type":"string","title":"Agent Id","default":""},"text":{"type":"string","title":"Text","default":""},"project":{"type":"string","title":"Project","default":""},"project_page":{"type":"string","title":"Project Page","default":""}},"type":"object","title":"Body_start_new_work_start_post"},"Body_store_install_account_skills_store_install_post":{"properties":{"identifier":{"type":"string","title":"Identifier"},"agent_id":{"type":"string","title":"Agent Id"},"reason":{"type":"string","title":"Reason","default":""}},"type":"object","required":["identifier","agent_id"],"title":"Body_store_install_account_skills_store_install_post"},"Body_store_install_link_account_skills_store_install_link_post":{"properties":{"url":{"type":"string","title":"Url"},"agent_id":{"type":"string","title":"Agent Id"}},"type":"object","required":["url","agent_id"],"title":"Body_store_install_link_account_skills_store_install_link_post"},"Body_store_uninstall_account_skills_store_uninstall_post":{"properties":{"identifier":{"type":"string","title":"Identifier"},"agent_id":{"type":"string","title":"Agent Id"},"next_page":{"type":"string","title":"Next Page","default":"skill"}},"type":"object","required":["identifier","agent_id"],"title":"Body_store_uninstall_account_skills_store_uninstall_post"},"Body_support_chat_after_conversation_organization__organization_id__support_chat_after_conversation_post":{"properties":{"feedback_enabled":{"type":"string","title":"Feedback Enabled","default":""},"resolve_minutes":{"type":"string","title":"Resolve Minutes","default":""}},"type":"object","title":"Body_support_chat_after_conversation_organization__organization_id__support_chat_after_conversation_post"},"Body_support_chat_ask_question_organization__organization_id__support_chat_ask_question_post":{"properties":{"ask_question":{"type":"string","title":"Ask Question","default":""}},"type":"object","title":"Body_support_chat_ask_question_organization__organization_id__support_chat_ask_question_post"},"Body_support_chat_handoff_mode_organization__organization_id__support_chat_handoff_mode_post":{"properties":{"customer_choice":{"type":"string","title":"Customer Choice","default":""}},"type":"object","title":"Body_support_chat_handoff_mode_organization__organization_id__support_chat_handoff_mode_post"},"Body_support_chat_instructions_organization__organization_id__support_chat_instructions_post":{"properties":{"instructions":{"type":"string","title":"Instructions","default":""}},"type":"object","title":"Body_support_chat_instructions_organization__organization_id__support_chat_instructions_post"},"Body_support_chat_min_score_organization__organization_id__support_chat_min_score_post":{"properties":{"min_score":{"type":"string","title":"Min Score","default":""}},"type":"object","title":"Body_support_chat_min_score_organization__organization_id__support_chat_min_score_post"},"Body_support_chat_path_add_organization__organization_id__support_chat_sites__site_id__paths_post":{"properties":{"start_url":{"type":"string","title":"Start Url","default":""},"path_prefix":{"type":"string","title":"Path Prefix","default":""}},"type":"object","title":"Body_support_chat_path_add_organization__organization_id__support_chat_sites__site_id__paths_post"},"Body_support_chat_procedure_organization__organization_id__support_chat_procedure_post":{"properties":{"agent_id":{"type":"string","title":"Agent Id","default":""},"name":{"type":"string","title":"Name","default":""},"description":{"type":"string","title":"Description","default":""},"body":{"type":"string","title":"Body","default":""}},"type":"object","title":"Body_support_chat_procedure_organization__organization_id__support_chat_procedure_post"},"Body_support_chat_site_add_organization__organization_id__support_chat_sites_post":{"properties":{"start_url":{"type":"string","title":"Start Url","default":""},"path_prefix":{"type":"string","title":"Path Prefix","default":""},"refresh":{"type":"string","title":"Refresh","default":"weekly"},"page_cap":{"type":"string","title":"Page Cap","default":""}},"type":"object","title":"Body_support_chat_site_add_organization__organization_id__support_chat_sites_post"},"Body_support_chat_site_edit_organization__organization_id__support_chat_sites__site_id__edit_post":{"properties":{"refresh":{"type":"string","title":"Refresh","default":"weekly"},"page_cap":{"type":"string","title":"Page Cap","default":""}},"type":"object","title":"Body_support_chat_site_edit_organization__organization_id__support_chat_sites__site_id__edit_post"},"Body_support_chat_soul_organization__organization_id__support_chat_soul_post":{"properties":{"agent_id":{"type":"string","title":"Agent Id"},"text":{"type":"string","title":"Text","default":""}},"type":"object","required":["agent_id"],"title":"Body_support_chat_soul_organization__organization_id__support_chat_soul_post"},"Body_support_chat_source_links_organization__organization_id__support_chat_source_links_post":{"properties":{"source_links":{"type":"string","title":"Source Links","default":""}},"type":"object","title":"Body_support_chat_source_links_organization__organization_id__support_chat_source_links_post"},"Body_support_crm_autocreate_organization__organization_id__support_crm_autocreate_post":{"properties":{"autocreate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Autocreate"}},"type":"object","title":"Body_support_crm_autocreate_organization__organization_id__support_crm_autocreate_post"},"Body_support_enable_organization__organization_id__support_enable_post":{"properties":{"provider":{"type":"string","title":"Provider"}},"type":"object","required":["provider"],"title":"Body_support_enable_organization__organization_id__support_enable_post"},"Body_support_flow_add_api_support_flow_add_post":{"properties":{"name":{"type":"string","title":"Name","default":""},"parent":{"type":"string","title":"Parent","default":""}},"type":"object","title":"Body_support_flow_add_api_support_flow_add_post"},"Body_support_flow_delete_api_support_flow_delete_post":{"properties":{"subject":{"type":"string","title":"Subject","default":""}},"type":"object","title":"Body_support_flow_delete_api_support_flow_delete_post"},"Body_support_flow_move_api_support_flow_move_post":{"properties":{"subject":{"type":"string","title":"Subject","default":""},"direction":{"type":"string","title":"Direction","default":""}},"type":"object","title":"Body_support_flow_move_api_support_flow_move_post"},"Body_support_flow_rename_api_support_flow_rename_post":{"properties":{"subject":{"type":"string","title":"Subject","default":""},"name":{"type":"string","title":"Name","default":""}},"type":"object","title":"Body_support_flow_rename_api_support_flow_rename_post"},"Body_support_flow_team_api_support_flow_team_post":{"properties":{"subject":{"type":"string","title":"Subject","default":""},"team":{"type":"string","title":"Team","default":""}},"type":"object","title":"Body_support_flow_team_api_support_flow_team_post"},"Body_support_policy_organization__organization_id__support_policy_post":{"properties":{"policy":{"type":"string","title":"Policy"}},"type":"object","required":["policy"],"title":"Body_support_policy_organization__organization_id__support_policy_post"},"Body_support_soul_sessions_organization__organization_id__support_soul_sessions_post":{"properties":{"soul_sessions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Soul Sessions"}},"type":"object","title":"Body_support_soul_sessions_organization__organization_id__support_soul_sessions_post"},"Body_support_subjects_add_organization__organization_id__support_subjects_post":{"properties":{"name":{"type":"string","title":"Name","default":""},"parent_id":{"type":"string","title":"Parent Id","default":""}},"type":"object","title":"Body_support_subjects_add_organization__organization_id__support_subjects_post"},"Body_support_subjects_move_organization__organization_id__support_subjects__subject_id__move_post":{"properties":{"direction":{"type":"string","title":"Direction","default":""}},"type":"object","title":"Body_support_subjects_move_organization__organization_id__support_subjects__subject_id__move_post"},"Body_support_subjects_rename_organization__organization_id__support_subjects__subject_id__rename_post":{"properties":{"name":{"type":"string","title":"Name","default":""}},"type":"object","title":"Body_support_subjects_rename_organization__organization_id__support_subjects__subject_id__rename_post"},"Body_support_subjects_team_organization__organization_id__support_subjects__subject_id__team_post":{"properties":{"team":{"type":"string","title":"Team","default":""}},"type":"object","title":"Body_support_subjects_team_organization__organization_id__support_subjects__subject_id__team_post"},"Body_task_edit_body_account_tasks__task_id__edit_body_post":{"properties":{"body":{"type":"string","title":"Body","default":""},"title":{"type":"string","title":"Title","default":""},"description":{"type":"string","title":"Description","default":""}},"type":"object","title":"Body_task_edit_body_account_tasks__task_id__edit_body_post"},"Body_task_edit_description_account_tasks__task_id__edit_description_post":{"properties":{"description":{"type":"string","title":"Description","default":""},"regenerate":{"type":"string","title":"Regenerate","default":""}},"type":"object","title":"Body_task_edit_description_account_tasks__task_id__edit_description_post"},"Body_task_member_invite_work_t__task_id__members_invite_post":{"properties":{"email":{"type":"string","title":"Email","default":""},"role":{"type":"string","title":"Role","default":"viewer"}},"type":"object","title":"Body_task_member_invite_work_t__task_id__members_invite_post"},"Body_task_member_remove_work_t__task_id__members_remove_post":{"properties":{"member_id":{"type":"integer","title":"Member Id"}},"type":"object","required":["member_id"],"title":"Body_task_member_remove_work_t__task_id__members_remove_post"},"Body_task_member_role_work_t__task_id__members_role_post":{"properties":{"member_id":{"type":"integer","title":"Member Id"},"role":{"type":"string","title":"Role"}},"type":"object","required":["member_id","role"],"title":"Body_task_member_role_work_t__task_id__members_role_post"},"Body_task_member_withdraw_work_t__task_id__members_withdraw_post":{"properties":{"invite_id":{"type":"integer","title":"Invite Id"}},"type":"object","required":["invite_id"],"title":"Body_task_member_withdraw_work_t__task_id__members_withdraw_post"},"Body_task_move_persona_account_tasks__task_id__move_persona_post":{"properties":{"target_persona_id":{"type":"string","title":"Target Persona Id"}},"type":"object","required":["target_persona_id"],"title":"Body_task_move_persona_account_tasks__task_id__move_persona_post"},"Body_task_recurring_edit_account_tasks__task_id__recurring_edit_post":{"properties":{"schedule":{"type":"string","title":"Schedule","default":""},"schedule_display":{"type":"string","title":"Schedule Display","default":""}},"type":"object","title":"Body_task_recurring_edit_account_tasks__task_id__recurring_edit_post"},"Body_task_recurring_submit_account_tasks__task_id__recurring_post":{"properties":{"schedule":{"type":"string","title":"Schedule"},"schedule_display":{"type":"string","title":"Schedule Display","default":""}},"type":"object","required":["schedule"],"title":"Body_task_recurring_submit_account_tasks__task_id__recurring_post"},"Body_task_reject_account_tasks__task_id__reject_post":{"properties":{"comment":{"type":"string","title":"Comment","default":""}},"type":"object","title":"Body_task_reject_account_tasks__task_id__reject_post"},"Body_task_restore_body_account_tasks__task_id__restore_body_post":{"properties":{"comment_at":{"type":"integer","title":"Comment At"}},"type":"object","required":["comment_at"],"title":"Body_task_restore_body_account_tasks__task_id__restore_body_post"},"Body_task_set_knowledge_account_tasks__task_id__knowledge_post":{"properties":{"folder":{"type":"string","title":"Folder","default":""},"enabled":{"type":"string","title":"Enabled","default":""},"shown_on":{"type":"string","title":"Shown On","default":""}},"type":"object","title":"Body_task_set_knowledge_account_tasks__task_id__knowledge_post"},"Body_tasks_new_submit_account_tasks_new_post":{"properties":{"target_agent_id":{"type":"string","title":"Target Agent Id"},"title":{"type":"string","title":"Title"},"body":{"type":"string","title":"Body","default":""},"mode":{"type":"string","title":"Mode","default":"now"},"due_at":{"type":"string","title":"Due At","default":""},"project_id":{"type":"string","title":"Project Id","default":""},"parent_task_id":{"type":"string","title":"Parent Task Id","default":""},"schedule":{"type":"string","title":"Schedule","default":""},"schedule_display":{"type":"string","title":"Schedule Display","default":""},"target_persona_id":{"type":"string","title":"Target Persona Id","default":""},"target_team_id":{"type":"string","title":"Target Team Id","default":""}},"type":"object","required":["target_agent_id","title"],"title":"Body_tasks_new_submit_account_tasks_new_post"},"Body_team_add_member_teams__team_id__members_post":{"properties":{"user_id":{"type":"integer","title":"User Id"},"role":{"type":"string","title":"Role","default":"member"}},"type":"object","required":["user_id"],"title":"Body_team_add_member_teams__team_id__members_post"},"Body_team_change_member_role_teams__team_id__members_role_post":{"properties":{"user_id":{"type":"integer","title":"User Id"},"role":{"type":"string","title":"Role"}},"type":"object","required":["user_id","role"],"title":"Body_team_change_member_role_teams__team_id__members_role_post"},"Body_team_create_agent_teams__team_id__agents_post":{"properties":{"label":{"type":"string","title":"Label"},"backend":{"type":"string","title":"Backend","default":"hermes"},"template_hermes":{"type":"string","title":"Template Hermes","default":"default"}},"type":"object","required":["label"],"title":"Body_team_create_agent_teams__team_id__agents_post"},"Body_team_edit_teams__team_id__edit_post":{"properties":{"name":{"type":"string","title":"Name"}},"type":"object","required":["name"],"title":"Body_team_edit_teams__team_id__edit_post"},"Body_team_memory_save_teams__team_id__memory_post":{"properties":{"content":{"type":"string","title":"Content","default":""},"reload_now":{"type":"string","title":"Reload Now","default":""}},"type":"object","title":"Body_team_memory_save_teams__team_id__memory_post"},"Body_team_remove_member_teams__team_id__members_remove_post":{"properties":{"user_id":{"type":"integer","title":"User Id"}},"type":"object","required":["user_id"],"title":"Body_team_remove_member_teams__team_id__members_remove_post"},"Body_team_set_manager_teams__team_id__manager_post":{"properties":{"manager_user_id":{"type":"integer","title":"Manager User Id"}},"type":"object","required":["manager_user_id"],"title":"Body_team_set_manager_teams__team_id__manager_post"},"Body_template_follow_account_agent_template_follow_post":{"properties":{"agent_id":{"type":"string","title":"Agent Id"},"follow":{"type":"string","title":"Follow","default":"0"}},"type":"object","required":["agent_id"],"title":"Body_template_follow_account_agent_template_follow_post"},"Body_thread_approve_work_t__task_id__approve_post":{"properties":{"target":{"type":"string","title":"Target"},"reason":{"type":"string","title":"Reason","default":""},"project":{"type":"string","title":"Project","default":""}},"type":"object","required":["target"],"title":"Body_thread_approve_work_t__task_id__approve_post"},"Body_thread_ask_work_t__task_id__ask_post":{"properties":{"persona_id":{"type":"string","title":"Persona Id"},"text":{"type":"string","title":"Text","default":""},"project":{"type":"string","title":"Project","default":""}},"type":"object","required":["persona_id"],"title":"Body_thread_ask_work_t__task_id__ask_post"},"Body_thread_changes_work_t__task_id__changes_post":{"properties":{"target":{"type":"string","title":"Target"},"text":{"type":"string","title":"Text","default":""},"project":{"type":"string","title":"Project","default":""}},"type":"object","required":["target"],"title":"Body_thread_changes_work_t__task_id__changes_post"},"Body_thread_comment_work_t__task_id__comment_post":{"properties":{"target":{"type":"string","title":"Target"},"text":{"type":"string","title":"Text","default":""},"project":{"type":"string","title":"Project","default":""}},"type":"object","required":["target"],"title":"Body_thread_comment_work_t__task_id__comment_post"},"Body_thread_rename_work_t__task_id__rename_post":{"properties":{"title":{"type":"string","title":"Title","default":""},"project":{"type":"string","title":"Project","default":""}},"type":"object","title":"Body_thread_rename_work_t__task_id__rename_post"},"Body_toggle_account_claude_toggle_post":{"properties":{"on":{"type":"string","title":"On"}},"type":"object","required":["on"],"title":"Body_toggle_account_claude_toggle_post"},"Body_uninstall_plugin_account_plugins_uninstall_post":{"properties":{"name":{"type":"string","title":"Name"}},"type":"object","required":["name"],"title":"Body_uninstall_plugin_account_plugins_uninstall_post"},"Body_upload_attachment_api_crm_upload_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"},"kind":{"type":"string","title":"Kind","default":""}},"type":"object","required":["file"],"title":"Body_upload_attachment_api_crm_upload_post"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"_ApplyBody":{"properties":{"action":{"type":"string","title":"Action"},"args":{"additionalProperties":true,"type":"object","title":"Args","default":{}}},"type":"object","required":["action"],"title":"_ApplyBody"},"_Comment":{"properties":{"task_id":{"type":"string","title":"Task Id","default":""},"text":{"type":"string","title":"Text","default":""}},"type":"object","title":"_Comment"},"_CronParseRequest":{"properties":{"text":{"type":"string","maxLength":200,"title":"Text"}},"type":"object","required":["text"],"title":"_CronParseRequest"},"_DecomposeApplyRequest":{"properties":{"project":{"type":"string","maxLength":48,"title":"Project","default":""},"subtasks":{"items":{"$ref":"#/components/schemas/_DecomposeSubtask"},"type":"array","maxItems":8,"title":"Subtasks"}},"type":"object","title":"_DecomposeApplyRequest"},"_DecomposeSubtask":{"properties":{"title":{"type":"string","maxLength":200,"title":"Title"},"body":{"type":"string","maxLength":8000,"title":"Body","default":""},"assignee":{"type":"string","maxLength":64,"title":"Assignee","default":""},"runs_after":{"type":"boolean","title":"Runs After","default":false}},"type":"object","required":["title"],"title":"_DecomposeSubtask"},"_Endpoint":{"properties":{"endpoint":{"type":"string","title":"Endpoint","default":""}},"type":"object","title":"_Endpoint"},"_GenerateRequest":{"properties":{"brief":{"type":"string","maxLength":4000,"title":"Brief"}},"type":"object","required":["brief"],"title":"_GenerateRequest"},"_GroupText":{"properties":{"text":{"type":"string","title":"Text","default":""},"mention_id":{"type":"string","title":"Mention Id","default":""}},"type":"object","title":"_GroupText"},"_Invite":{"properties":{"email":{"type":"string","title":"Email","default":""},"role":{"type":"string","title":"Role","default":"viewer"}},"type":"object","title":"_Invite"},"_InviteId":{"properties":{"invite_id":{"type":"integer","title":"Invite Id","default":0}},"type":"object","title":"_InviteId"},"_Member":{"properties":{"persona_id":{"type":"string","title":"Persona Id","default":""},"persona_ids":{"items":{"type":"string"},"type":"array","title":"Persona Ids","default":[]}},"type":"object","title":"_Member"},"_MemberId":{"properties":{"member_id":{"type":"integer","title":"Member Id","default":0},"role":{"type":"string","title":"Role","default":""}},"type":"object","title":"_MemberId"},"_Move":{"properties":{"project_id":{"type":"integer","title":"Project Id","default":0},"new_project":{"type":"string","title":"New Project","default":""},"title":{"type":"string","title":"Title","default":""}},"type":"object","title":"_Move"},"_NewGroup":{"properties":{"name":{"type":"string","title":"Name","default":""},"agent_id":{"type":"string","title":"Agent Id","default":""},"persona_ids":{"items":{"type":"string"},"type":"array","title":"Persona Ids","default":[]},"root_task_id":{"type":"string","title":"Root Task Id","default":""},"project":{"type":"string","title":"Project","default":""}},"type":"object","title":"_NewGroup"},"_NewProject":{"properties":{"name":{"type":"string","title":"Name","default":""},"goal":{"type":"string","title":"Goal","default":""},"department":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Department"},"due_on":{"type":"string","title":"Due On","default":""}},"type":"object","title":"_NewProject"},"_NewTask":{"properties":{"title":{"type":"string","title":"Title","default":""},"brief":{"type":"string","title":"Brief","default":""},"schedule":{"type":"string","title":"Schedule","default":""},"schedule_display":{"type":"string","title":"Schedule Display","default":""},"project_id":{"type":"integer","title":"Project Id","default":0}},"type":"object","title":"_NewTask"},"_Prefs":{"properties":{"hidden":{"type":"boolean","title":"Hidden","default":false},"section":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Section"}},"type":"object","title":"_Prefs"},"_ProjectPatch":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"due_on":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Due On"},"department_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Department Id"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},"type":"object","title":"_ProjectPatch"},"_ProposeBody":{"properties":{"action":{"type":"string","title":"Action"},"args":{"additionalProperties":true,"type":"object","title":"Args","default":{}}},"type":"object","required":["action"],"title":"_ProposeBody"},"_PushSub":{"properties":{"endpoint":{"type":"string","title":"Endpoint","default":""},"keys":{"additionalProperties":true,"type":"object","title":"Keys","default":{}},"kinds":{"items":{"type":"string"},"type":"array","title":"Kinds","default":[]},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"}},"type":"object","title":"_PushSub"},"_Read":{"properties":{"ts":{"type":"number","title":"Ts","default":0.0}},"type":"object","title":"_Read"},"_Rename":{"properties":{"name":{"type":"string","title":"Name","default":""}},"type":"object","title":"_Rename"},"_TeamMember":{"properties":{"persona_id":{"type":"string","title":"Persona Id","default":""}},"type":"object","title":"_TeamMember"},"_TestBody":{"properties":{"scope":{"type":"string","title":"Scope"},"owner_id":{"type":"integer","title":"Owner Id"},"draft":{"additionalProperties":true,"type":"object","title":"Draft","default":{}},"agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Id"},"test_args":{"type":"string","title":"Test Args","default":""}},"type":"object","required":["scope","owner_id"],"title":"_TestBody"},"_Text":{"properties":{"text":{"type":"string","title":"Text","default":""},"attachments":{"items":{},"type":"array","title":"Attachments","default":[]},"mention_persona_id":{"type":"string","title":"Mention Persona Id","default":""},"reply_to_message_id":{"type":"string","title":"Reply To Message Id","default":""}},"type":"object","title":"_Text"},"_ToProject":{"properties":{"message_id":{"type":"string","title":"Message Id","default":""},"project_id":{"type":"integer","title":"Project Id","default":0},"new_project":{"type":"string","title":"New Project","default":""},"work":{"type":"boolean","title":"Work","default":false},"scope":{"type":"string","title":"Scope","default":"exchange"}},"type":"object","title":"_ToProject"},"app__advisor_routes___ChatBody":{"properties":{"messages":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Messages","default":[]}},"type":"object","title":"_ChatBody"},"app__company_routes___ChatBody":{"properties":{"messages":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Messages","default":[]},"current":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Current"}},"type":"object","title":"_ChatBody"},"app__functions_routes___ChatBody":{"properties":{"scope":{"type":"string","title":"Scope"},"owner_id":{"type":"integer","title":"Owner Id"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"},"messages":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Messages","default":[]},"current":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Current"}},"type":"object","required":["scope","owner_id"],"title":"_ChatBody"}}}}