{"openapi":"3.1.0","info":{"title":"Seaglass API","description":"MCP server, admin API, and synthesis worker for Seaglass.","version":"0.9.1"},"paths":{"/health":{"get":{"summary":"Health","description":"Liveness probe — returns ok and the environment name.","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Health Health Get"}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/version":{"get":{"summary":"Version","description":"Return the latest client version and a surface-agnostic upgrade hint.","operationId":"version_version_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Version Version Get"}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/waitlist":{"post":{"tags":["waitlist"],"summary":"Join","description":"Join the waitlist. Always 200 for a well-formed email, new or repeat.\n\nA repeat join never says \"already on the list\": it changes nothing, fires\nno event and no ad conversion, and gets an unstored decoy token in the same\nshape (ADR-2026-10-03-a-repeat-waitlist-join-changes-nothing-and-gets-a-decoy-token).\n\nWhile the ad door is open, a join from one of our ads is answered with a\n``signup_code`` the signup page redeems to create the account at once\n(ADR-2026-11-11-an-env-flag-auto-invites-ad-joiners,\nADR-2026-11-13-an-ad-door-joiner-creates-their-account-at-once-and-confirms-their-email-after).\n``ad_invite`` says the door admitted this attribution and network, never\nwhether the address is new; the code is a decoy for an address the door\nmay not hand one for.","operationId":"join_v1_waitlist_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WaitlistJoinRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_WaitlistJoinResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/waitlist/survey":{"get":{"tags":["waitlist"],"summary":"Survey Definition","description":"The intake-survey definition the public form renders from.","operationId":"survey_definition_v1_waitlist_survey_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_WaitlistSurveyQuestion__"}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/waitlist/answers":{"post":{"tags":["waitlist"],"summary":"Submit Answers","description":"Store survey answers for the entry behind ``survey_token``.\n\nA bad question or option key is one generic 400; a token that resolves to\nnothing (a repeat join's decoy) is an accepted no-op, so the endpoint\nconfirms nothing about who is on the list.\n\n``complete=False`` is the form's as-you-go progress save\n(ADR-2026-08-06-waitlist-survey-answers-persist-per-question): the answers persist,\nthe row is not stamped surveyed, and the analytics event names progress\nrather than completion.","operationId":"submit_answers_v1_waitlist_answers_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WaitlistAnswersRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_NoneType_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/waitlist/validate-code":{"post":{"tags":["waitlist"],"summary":"Validate Code","description":"Check an invite code; when valid, set the OAuth round-trip cookie.\n\nA live code also returns the address it was mailed to, which the signup\nform shows locked: the code admits only that address, and whoever holds a\n24-byte code sent to that inbox already has it\n(ADR-2026-11-03-a-waitlist-invite-is-locked-to-its-email-and-proves-the-inbox).\nThe ad door's direct code returns the address the visitor typed, locked the\nsame way, and ``direct``, since its signup confirms that address by mail\n(ADR-2026-11-13-an-ad-door-joiner-creates-their-account-at-once-and-confirms-their-email-after).\nA miss returns validity only. The cookie carries the raw code so the OAuth\ncallback (a top-level provider redirect the signup page can't attach a\npayload to) can redeem it at new-user creation.","operationId":"validate_code_v1_waitlist_validate_code_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateCodeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_ValidateCodeResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/enterprise-inquiries":{"post":{"tags":["enterprise"],"summary":"Submit Inquiry","description":"Send one Enterprise inquiry to the Seaglass team. Answers nothing but success.","operationId":"submit_inquiry_v1_enterprise_inquiries_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnterpriseInquiryRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_NoneType_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/invitations/{token}/preview":{"get":{"tags":["invitations"],"summary":"Preview Invitation","description":"Signed-out preview of a live invitation: who invited you, to what, as what.\n\nNo session needed. A token that is unknown, accepted, declined, revoked or\nexpired is the same 404, and a miss is counted in its own tighter bucket.","operationId":"preview_invitation_v1_invitations__token__preview_get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_InvitationPreview_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/invitations/{token}":{"get":{"tags":["invitations"],"summary":"Get Invitation","description":"Preview an invitation by its token (who invited you, what you'll get).","operationId":"get_invitation_v1_invitations__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_InboundInvitationItem_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/invitations/{token}/accept":{"post":{"tags":["invitations"],"summary":"Accept Invitation","description":"Accept an invitation: a seat materializes the member, teams, and grants; a\nlibrary makes the caller a guest of it, with no seat; a page is shared with\nthe caller.","operationId":"accept_invitation_v1_invitations__token__accept_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_AcceptInvitationResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/invitations/{token}/decline":{"post":{"tags":["invitations"],"summary":"Decline Invitation","description":"Decline an invitation; with ``block``, also stop every further invitation\nfrom its account to this address. The sender is never told.","operationId":"decline_invitation_v1_invitations__token__decline_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DeclineInvitationRequest"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_DeclineInvitationResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/friend-invites/{token}/block":{"post":{"tags":["invitations"],"summary":"Block Friend Invites","description":"Stop further invites from the member who sent this one. The same empty\nsuccess for any token: the page never says whether it was real. Works with\nthe launch flag off too, so a mail already sent can always be stopped.","operationId":"block_friend_invites_v1_friend_invites__token__block_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_NoneType_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/library-templates":{"get":{"tags":["library-templates"],"summary":"Search Templates","description":"Templates matching the query and filters, name matches first.\n\n``shelf=popular`` is Search's empty state; ``shelf=examples`` is the Start\nscreen's example pool, in order; ``shelf=suggestions`` is the account\noverview's new-library tile pool, in order. A ``fit=personal`` query (About you's)\nthat matches nothing off a shelf may carry a ``suggestion``: a template\nunder the same filters whose name is a near miss, or the query's spelling\ncorrected.","operationId":"search_templates_v1_library_templates_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Q"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}},{"name":"fit","in":"query","required":false,"schema":{"anyOf":[{"enum":["personal","team"],"type":"string"},{"type":"null"}],"title":"Fit"}},{"name":"shelf","in":"query","required":false,"schema":{"anyOf":[{"enum":["popular","examples","suggestions"],"type":"string"},{"type":"null"}],"title":"Shelf"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_LibraryTemplateSearchOut_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/library-templates/profile-tabs":{"get":{"tags":["library-templates"],"summary":"Profile Tabs","description":"The About you step's tabs, each with the templates it shows before a search\n(ADR-2026-10-02-the-about-you-step-picks-from-the-template-catalog).","operationId":"profile_tabs_v1_library_templates_profile_tabs_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_LibraryTemplateProfileTabsOut_"}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/library-templates/{template_id}":{"get":{"tags":["library-templates"],"summary":"Get Template","description":"One template with every collection's full filing description.","operationId":"get_template_v1_library_templates__template_id__get","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_LibraryTemplateDetailOut_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/connect/install-assets":{"get":{"tags":["connect"],"summary":"Install Assets","description":"Connector URL plus the client-specific deep links for the install hub.","operationId":"install_assets_v1_connect_install_assets_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_InstallAssets_"}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/.well-known/oauth-protected-resource":{"get":{"tags":["oauth"],"summary":"Protected Resource Metadata","operationId":"protected_resource_metadata__well_known_oauth_protected_resource_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProtectedResourceMetadata"}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/.well-known/oauth-protected-resource/mcp":{"get":{"tags":["oauth"],"summary":"Protected Resource Metadata Mcp","description":"Path-suffixed variant for clients that probe ``/{mcp-path}`` (RFC 9728).","operationId":"protected_resource_metadata_mcp__well_known_oauth_protected_resource_mcp_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProtectedResourceMetadata"}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/.well-known/oauth-authorization-server":{"get":{"tags":["oauth"],"summary":"Authorization Server Metadata","operationId":"authorization_server_metadata__well_known_oauth_authorization_server_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorizationServerMetadata"}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/oauth/register":{"post":{"tags":["oauth"],"summary":"Register","operationId":"register_oauth_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthClientRegisterRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientRegistrationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/OAuthErrorBody"},{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/oauth/authorize":{"get":{"tags":["oauth"],"summary":"Authorize","description":"Validate the request, then bounce to the web consent page.\n\nClient/redirect errors are shown directly (never bounced to an unvalidated\nURI), and so is a metadata document that cannot be fetched or is invalid;\nother errors redirect back to the client with an ``error`` param.","operationId":"authorize_oauth_authorize_get","responses":{"302":{"description":"Successful Response"},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/OAuthErrorBody"},{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}},"parameters":[{"in":"query","name":"client_id","required":true,"schema":{"type":"string","minLength":1}},{"in":"query","name":"redirect_uri","required":true,"schema":{"type":"string","minLength":1}},{"in":"query","name":"response_type","required":true,"schema":{"type":"string","enum":["code"]}},{"in":"query","name":"code_challenge","required":true,"schema":{"type":"string","minLength":1}},{"in":"query","name":"code_challenge_method","required":true,"schema":{"type":"string","enum":["S256"]}},{"in":"query","name":"state","required":false,"schema":{"type":"string"}},{"in":"query","name":"scope","required":false,"schema":{"type":"string"}},{"in":"query","name":"resource","required":false,"schema":{"type":"array","items":{"type":"string"}}}]}},"/v1/oauth/authorize":{"get":{"tags":["oauth"],"summary":"Authorize Context","description":"Consent-screen context for the web page (admin session).\n\nAny signed-in user, whatever their personal account's status: the consent\nlinks the agent to the accounts picked from ``GET /v1/me/connect/accounts``,\nnever to the personal account by default, so a suspended personal account\nrefuses only itself (ADR-2026-10-09-an-agent-mirrors-its-users-live-access-narrowed-by-restrictions,\namended 2026-10-28).\n\nRe-validates the authorize request and returns the requesting client's\ndisplay metadata, with the scope approval would grant (the request's, within\nwhat the client registered), so the page names exactly that. Returns only\ndisplay data, never a secret; the accounts to pick from come from\n``GET /v1/me/connect/accounts``. ``client_id`` is the registration's own\nkey, which those reads take, even when the client presented a\nmetadata-document URL; that URL's host is ``client_id_host``.","operationId":"authorize_context_v1_oauth_authorize_get","parameters":[{"name":"client_id","in":"query","required":false,"schema":{"type":"string","default":"","title":"Client Id"}},{"name":"redirect_uri","in":"query","required":false,"schema":{"type":"string","default":"","title":"Redirect Uri"}},{"name":"code_challenge","in":"query","required":false,"schema":{"type":"string","default":"","title":"Code Challenge"}},{"name":"code_challenge_method","in":"query","required":false,"schema":{"type":"string","default":"S256","title":"Code Challenge Method"}},{"name":"scope","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scope"}},{"name":"resource","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resource"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentContext"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthErrorBody"}}},"description":"Bad Request"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/OAuthErrorBody"},{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}},"post":{"tags":["oauth"],"summary":"Authorize Decision","description":"Consent decision from the web page (admin session). Both decisions are\nvalidated first, so an unknown client, unregistered ``redirect_uri`` or a\nresource this server does not serve is a 400 the page shows and never a\nredirect (RFC 6749 §4.1.2.1). Approve mints\nthe code, holding the picked accounts; a pick the user can't make (none,\none they lost, or a set an account's policy forbids) is a 400 too.","operationId":"authorize_decision_v1_oauth_authorize_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorizeApproveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentRedirect"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthErrorBody"}}},"description":"Bad Request"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/OAuthErrorBody"},{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/oauth/token":{"post":{"tags":["oauth"],"summary":"Token","operationId":"token_oauth_token_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenResponse"}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/OAuthErrorBody"},{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/oauth/revoke":{"post":{"tags":["oauth"],"summary":"Revoke","description":"RFC 7009: always 200, whether or not the token existed.","operationId":"revoke_oauth_revoke_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevokeResponse"}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/OAuthErrorBody"},{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/oauth/userinfo":{"get":{"tags":["oauth"],"summary":"Userinfo","description":"OIDC UserInfo (GET): the token's ``sub``, and its email claims with ``email``.","operationId":"userinfo_oauth_userinfo_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserInfoResponse"}}}},"401":{"description":"No access token, or one not valid here.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthErrorBody"}}}},"403":{"description":"The token was not granted `openid`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthErrorBody"}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/OAuthErrorBody"},{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}},"post":{"tags":["oauth"],"summary":"Userinfo Post","description":"OIDC UserInfo (POST), which OIDC Core 5.3.1 also requires.","operationId":"userinfo_post_oauth_userinfo_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserInfoResponse"}}}},"401":{"description":"No access token, or one not valid here.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthErrorBody"}}}},"403":{"description":"The token was not granted `openid`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthErrorBody"}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/OAuthErrorBody"},{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/.well-known/openai-apps-challenge":{"get":{"summary":"Openai Apps Challenge","description":"The domain-verification token OpenAI issued, as plain text.","operationId":"openai_apps_challenge__well_known_openai_apps_challenge_get","responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/.well-known/security.txt":{"get":{"summary":"Security Txt File","description":"Where and how to report a security vulnerability in Seaglass (RFC 9116).","operationId":"security_txt_file__well_known_security_txt_get","responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/webhooks/resend":{"post":{"tags":["webhooks"],"summary":"Resend Webhook","operationId":"resend_webhook_v1_webhooks_resend_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_ResendWebhookResponse_"}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/webhooks/render":{"post":{"tags":["webhooks"],"summary":"Render Webhook","operationId":"render_webhook_v1_webhooks_render_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_RenderWebhookResponse_"}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/webhooks/stripe":{"post":{"tags":["webhooks"],"summary":"Stripe Webhook","operationId":"stripe_webhook_v1_webhooks_stripe_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_StripeWebhookResponse_"}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/auth/login":{"post":{"tags":["auth"],"summary":"Login","description":"Verify email + password, issue the session cookie. Throttled on failed attempts.","operationId":"login_v1_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_LoginResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/auth/logout":{"post":{"tags":["auth"],"summary":"Logout","description":"Revoke the current session and clear the cookie. Idempotent.","operationId":"logout_v1_auth_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_LogoutResponse_"}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/auth/accept-terms":{"post":{"tags":["auth"],"summary":"Accept Terms","description":"Record the signed-in caller's acceptance of the current Terms.\n\nThe web interstitial for a user whose stamp is missing or stale\n(ADR-2026-09-21-legal-documents-live-in-shared-and-consent-is-stamped-at-registration).\nCookie session only: the agent surface is not where a person reads and\nagrees. Idempotent for a user already on the current version.","operationId":"accept_terms_v1_auth_accept_terms_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptTermsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_AcceptTermsResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/auth/signup-config":{"get":{"tags":["auth"],"summary":"Signup Config","description":"The signup page's one public call: the signup mode plus OAuth buttons.","operationId":"signup_config_v1_auth_signup_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_SignupConfigResponse_"}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/auth/register":{"post":{"tags":["auth"],"summary":"Register","description":"Create a user and sign them in (sets the session cookie); with a typed\nhandle, also claim it, creating their personal account.\n\nSignup posture (ADR-2026-07-09-waitlist-gated-signup-and-code-defined-intake-survey): ``closed`` is a fail-closed\n404 (the surface's existence is never confirmed to a caller who can't use\nit); ``waitlist`` requires a valid invite code, redeemed inside this same\ntransaction so a failure anywhere in registration never burns the code;\n``open`` redeems a code best-effort if one happens to be present (keeps\nfunnel stats honest across mode flips) but never requires one.\n\nA cohort ``signup_tag`` (ADR-2026-08-27-signup-tags-are-a-url-carried-cohort-stamp)\nis stamped on the new user when the payload carries one; otherwise the\ninvite's own waitlist row supplies it, which is what makes a tagged link\nsurvive the days and the invite email between the click and this call.\n\nA live member invitation (``invitation_token``) passes the gate in every\nmode, ``closed`` included, for its invited email only, and is accepted in\nthis same transaction\n(ADR-2026-09-22-a-live-member-invitation-satisfies-the-signup-gate-for-its-email).\nA dead token is treated as no token.\n\nWith billing on, a claim made here queues the new personal account's no-card\ntrial, and the outbox is drained for it after the response\n(ADR-2026-11-05-every-new-personal-account-starts-a-30-day-individual-pro-trial-with-no-card-and-pauses-without-one).","operationId":"register_v1_auth_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRegisterRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_RegisterResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/auth/forgot-password":{"post":{"tags":["auth"],"summary":"Forgot Password","description":"Always 200. Sends a reset link only when the email maps to a real user.","operationId":"forgot_password_v1_auth_forgot_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForgotPasswordRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_ForgotPasswordResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/auth/reset-password":{"post":{"tags":["auth"],"summary":"Reset Password","description":"Redeem the reset token, set the new password, confirm the address and sign in.\n\nEvery other browser is signed out, and approvals that have not minted a\ntoken yet are spent. Agent credentials are left live and counted: the page\nlists them, and the person revokes all or some.","operationId":"reset_password_v1_auth_reset_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPasswordRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_ResetPasswordResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/auth/verify-email":{"post":{"tags":["auth"],"summary":"Verify Email","description":"Redeem a confirm link: stamp ``email_verified_at`` and issue the session cookie.\n\nThe link reached the inbox, so it signs that browser in as a magic link does\n(ADR-2026-11-21-the-confirm-email-link-signs-in-and-a-reset-is-the-remedy-for-a-squat).\nOther sign-ins are left alone: the person's own phone is usually one.\n\nA bad/stale token returns ``verified: false`` rather than an error — the\npage shows a calm \"link expired, resend\" state, never a stack trace. Failed\nredemptions are throttled per network, as ``/magic``'s are, since a live\ntoken now mints a session. The no-card trial does not wait for this: it\nstarts with the account\n(ADR-2026-11-15-every-new-personal-account-starts-its-trial-at-signup-confirmed-or-not).","operationId":"verify_email_v1_auth_verify_email_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenRedeemRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_VerifyEmailResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/auth/verify-email/send":{"post":{"tags":["auth"],"summary":"Send Verification Email","description":"Mail the signed-in person a fresh link to verify their email.\n\nAlready verified: nothing is sent, and ``email_verified`` says why. A send\nthat did not go out (a suppressed address, a provider failure) is\n``sent: false`` with ``not_sent_reason``; the tracking row is kept. Every\nattempt counts against the mail-sending limit, keyed on the user, so a\nrefusal is a 429 with ``Retry-After``.","operationId":"send_verification_email_v1_auth_verify_email_send_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_VerificationEmailSendResponse_"}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/auth/magic":{"post":{"tags":["auth"],"summary":"Magic Login","description":"Redeem a magic-login token and issue the session cookie (ADR-2026-06-13-magic-link-login-in-the-handoff-email).\n\nThe link reached the inbox, so it signs that browser in, whatever account it\nnames (ADR-2026-11-29-the-magic-link-signs-in-on-the-inbox-alone).\nThe page's own call as it loads sends ``on_load``: a live link then answers\n``continue_required`` and stays unused unless this browser is already signed\nin to its account, and the page posts again when the person presses Continue\n(ADR-2026-11-24-a-magic-link-waits-for-a-click-unless-the-browser-is-already-signed-in-to-its-account).\nA page opened on a phone sends ``on_phone``: the link is only checked, and a\nlive one answers ``phone_held``, kept for the computer\n(ADR-2026-11-29-a-sign-in-link-opened-on-a-phone-is-kept-for-the-computer).","operationId":"magic_login_v1_auth_magic_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MagicLinkRedeemRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_MagicLoginResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/auth/magic/resend":{"post":{"tags":["auth"],"summary":"Resend Magic Link","description":"Mail a new hand-off link to the owner of one that no longer works.\n\nSigned out, like ``/magic``: the spent link is the proof. The mail goes only\nto the owner's own address, under the hand-off's cooldown and daily cap, and\nevery attempt counts against a per-IP mail limit\n(ADR-2026-11-12-the-hand-off-sign-in-link-lasts-a-day-and-a-resend-voids-the-last).","operationId":"resend_magic_link_v1_auth_magic_resend_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MagicLinkResendRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_MagicLinkResendResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/auth/confirm-email-change":{"post":{"tags":["auth"],"summary":"Confirm Email Change","description":"Make the link's address the account's email. 400 for a dead link, 409 if it was taken.\n\nThe new inbox alone does not move the account: whoever asked may have typed a\nstranger's address. From a browser not signed in to the account, the link\nanswers ``password_required`` until the account's password comes with it; an\naccount with no password answers ``sign_in_required``, since only a browser\nsigned in to it can prove it\n(ADR-2026-11-14-confirming-a-password-accounts-address-needs-its-password-or-a-reset).","operationId":"confirm_email_change_v1_auth_confirm_email_change_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailChangeLinkRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_ConfirmEmailChangeResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/auth/providers":{"get":{"tags":["auth"],"summary":"List Providers","description":"The enabled social-login providers (empty when none configured).","operationId":"list_providers_v1_auth_providers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_str__"}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/auth/oauth/{provider}/start":{"get":{"tags":["auth"],"summary":"Start","description":"Redirect to the provider's consent screen with a CSRF state cookie.\n\nA validated ``next`` (a rooted in-app path) is stashed in a short-lived cookie\nso the callback lands the user where they were headed, the same destination\npassword login honors; an unsafe or external ``next`` is dropped, not obeyed.\n\n``tag`` is the cohort marker the signup page carried over from its own URL\n(ADR-2026-08-27-signup-tags-are-a-url-carried-cohort-stamp), stashed the same\nway and read by the callback only when it creates a new user. A malformed\ntag is dropped here rather than travelling, so nothing downstream re-checks.\n\n``terms`` is the Terms version the signup page's consent checkbox accepted\n(ADR-2026-09-21-legal-documents-live-in-shared-and-consent-is-stamped-at-registration),\nstashed the same way and stamped on the user only when the callback creates\none. Any value other than the current version is treated as no consent.\n\n``invitation`` is a member-invitation token from the invite page, stashed\nthe same way; the callback decides whether it is live and matches.\n\nThe first-touch attribution (``utm_*``, ``referrer_domain``,\n``landing_path``, ``reddit_click``) is normalised and stashed the same way,\nand recorded only for a user the callback creates\n(ADR-2026-12-01-every-signup-keeps-its-first-touch-attribution-in-one-row).","operationId":"start_v1_auth_oauth__provider__start_get","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}},{"name":"next","in":"query","required":false,"schema":{"type":"string","default":"","title":"Next"}},{"name":"tag","in":"query","required":false,"schema":{"type":"string","default":"","title":"Tag"}},{"name":"terms","in":"query","required":false,"schema":{"type":"string","default":"","title":"Terms"}},{"name":"invitation","in":"query","required":false,"schema":{"type":"string","maxLength":255,"default":"","title":"Invitation"}},{"name":"utm_source","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Utm Source"}},{"name":"utm_medium","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Utm Medium"}},{"name":"utm_campaign","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Utm Campaign"}},{"name":"referrer_domain","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":253},{"type":"null"}],"title":"Referrer Domain"}},{"name":"landing_path","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Landing Path"}},{"name":"reddit_click","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Reddit Click"}}],"responses":{"307":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/auth/oauth/{provider}/callback":{"get":{"tags":["auth"],"summary":"Callback","description":"Exchange the code, sign the user in, and land them in the app. A first\nsign-in creates only the user: the wizard's username step creates their\npersonal account.","operationId":"callback_v1_auth_oauth__provider__callback_get","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}},{"name":"code","in":"query","required":false,"schema":{"type":"string","default":"","title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"type":"string","default":"","title":"State"}}],"responses":{"303":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/auth/device/start":{"post":{"tags":["device-auth"],"summary":"Start Device Link","description":"Issue a pairing code pair. The CLI keeps the device_code and starts polling.\n\nPublic and row-writing, so every start counts against the client IP, under\nthe generous credential limit\n(ADR-2026-09-17-auth-rate-limiting-is-a-db-counted-window-recorded-outside-the-request-transaction).","operationId":"start_device_link_v1_auth_device_start_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceStartRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_DeviceStartResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/auth/device/poll":{"post":{"tags":["device-auth"],"summary":"Poll Device Link","description":"Poll for the result. Returns the raw token ONCE on the approved poll.","operationId":"poll_device_link_v1_auth_device_poll_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DevicePollRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_DevicePollResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/auth/device/lookup":{"get":{"tags":["device-auth"],"summary":"Lookup Device Link","description":"Look up a pending link for display on /auth/device.","operationId":"lookup_device_link_v1_auth_device_lookup_get","parameters":[{"name":"user_code","in":"query","required":false,"schema":{"type":"string","default":"","title":"User Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_DeviceLookupResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/auth/device/approve":{"post":{"tags":["device-auth"],"summary":"Approve Device Link","description":"Approve a pending link, holding the picked accounts. Token is minted on\nthe CLI's next poll. A pick the approver can't make (an account they don't\nreach, or a set an account's policy forbids) is a 409 saying why.","operationId":"approve_device_link_v1_auth_device_approve_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceApproveRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_DeviceApproveResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/auth/device/deny":{"post":{"tags":["device-auth"],"summary":"Deny Device Link","description":"Deny a pending link. Idempotent: already-denied rows are returned as-is.","operationId":"deny_device_link_v1_auth_device_deny_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceDenyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_DeviceDenyResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/auth/redeem":{"post":{"tags":["handoff-auth"],"summary":"Redeem Handoff Code","description":"Exchange a single-use handoff code for a bearer token (shown ONCE).\n\nThrottled like the device poll: keyed on the client IP, since the code is\nthe guess, and only an ``unknown`` result counts\n(ADR-2026-09-17-auth-rate-limiting-is-a-db-counted-window-recorded-outside-the-request-transaction).","operationId":"redeem_handoff_code_v1_auth_redeem_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HandoffRedeemRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_HandoffRedeemResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/me":{"get":{"tags":["me"],"summary":"Me","description":"The caller plus their member accounts — no server-side active account.\n\nLists every account the user holds an active member seat in\n(:func:`account_service.list_member_accounts`); for an agent's bearer, only\nthose the agent is linked to, so a client never picks an account the agent\ncannot reach. The public handle is the\nuser's personal-account handle (ADR-2026-06-18-handle-is-an-account-attribute-users-have-no-handle); onboarding progress is read off the\npersonal-account seat (the canonical onboarding seat from signup, ADR-2026-06-12-member-onboarding-state-table).\nThere is intentionally **no ``active_account``** — that is client state in the\nresource-addressed API (ADR-2026-06-23-http-api-is-resource-addressed-and-plane-structured).","operationId":"me_v1_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_MeIdentity_"}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}},"patch":{"tags":["me"],"summary":"Update Me","description":"Set the user's own settings (**cookie-only**); an omitted field is left as it is.\n\nThe install defaults are written to the personal-account profile row, the\nmember rung every agent of the user's follows unless the agent sets its own\nvalue; the analytics choice is written on the user.","operationId":"update_me_v1_me_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateMeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_MeIdentity_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/me/password":{"post":{"tags":["me"],"summary":"Change Password","description":"Set a new password; every other browser is signed out, this one gets a new session.\n\nWith ``sign_out_agents``, every token of every agent the caller owns is\nrevoked too, so each agent signs in again.","operationId":"change_password_v1_me_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePasswordRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_ChangePasswordResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/me/password/set-link":{"post":{"tags":["me"],"summary":"Send Set Password Link","description":"Mail a person with no password a link to set one, and say whether it went out.\n\nThe signed-in twin of ``forgot-password``, which answers the same whatever\nhappens so it never reveals an account; here the caller is known, so the\nanswer can be honest. 409 for a person who has a password (they change it)\nor whose address no mail reaches. Every attempt counts against the mail\nlimit, keyed on the caller.","operationId":"send_set_password_link_v1_me_password_set_link_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_SetPasswordLinkResponse_"}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/me/email":{"post":{"tags":["me"],"summary":"Request Email Change","description":"Mail the new address a link that makes it the caller's email.\n\nEvery attempt counts against the mail limit, keyed on the caller: each one\nmails an address they typed. The email stays as it is until the link is\nopened.","operationId":"request_email_change_v1_me_email_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailChangeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_EmailChangeResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/me/sign-ins":{"get":{"tags":["me"],"summary":"List Sign Ins","description":"List the caller's active sign-ins, flagging the one making this request.","operationId":"list_sign_ins_v1_me_sign_ins_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_SignInListResponse_"}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}},"delete":{"tags":["me"],"summary":"Revoke All Sign Ins","description":"Revoke every active sign-in for the caller (\"sign out everywhere\").","operationId":"revoke_all_sign_ins_v1_me_sign_ins_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_RevokeSignInsResponse_"}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/me/sign-ins/{sign_in_id}":{"delete":{"tags":["me"],"summary":"Revoke Sign In","description":"Revoke one of the caller's own sign-ins. 404 if it isn't theirs.","operationId":"revoke_sign_in_v1_me_sign_ins__sign_in_id__delete","parameters":[{"name":"sign_in_id","in":"path","required":true,"schema":{"type":"string","title":"Sign In Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_LogoutResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/onboarding":{"get":{"tags":["onboarding"],"summary":"Get Onboarding","description":"The caller's onboarding progress (lazily initialized, ADR-2026-06-12-member-onboarding-state-table).","operationId":"get_onboarding_v1_onboarding_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_OnboardingState_"}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/onboarding/steps/{step}/complete":{"post":{"tags":["onboarding"],"summary":"Complete Step","description":"Complete a web-authored step. Server-detected steps reject web claims.\n\nAbout you sends its answer and 2 to 10 picks, catalog templates and typed\npicks together (a 422 otherwise); the completion that settles it builds a\nlibrary per pick, the template ones before it returns and the typed ones in\nqueued jobs, and a repeat is a no-op\n(ADR-2026-11-24-about-you-picks-build-the-first-run-libraries). The\ncapture-style step sends its choice, stored as the member's preferences.\nBefore the username is claimed every step is refused: the username step is\ncompleted by claiming it.","operationId":"complete_step_v1_onboarding_steps__step__complete_post","parameters":[{"name":"step","in":"path","required":true,"schema":{"type":"string","title":"Step"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StepCompleteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_OnboardingState_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/onboarding/steps/{step}/skip":{"post":{"tags":["onboarding"],"summary":"Skip Step","description":"Skip a skippable step; refused until the username is claimed.","operationId":"skip_step_v1_onboarding_steps__step__skip_post","parameters":[{"name":"step","in":"path","required":true,"schema":{"type":"string","title":"Step"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_OnboardingState_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/onboarding/handoff-email":{"post":{"tags":["onboarding"],"summary":"Send Handoff Email","description":"Email the caller a finish-on-your-computer link (cooldown-limited).","operationId":"send_handoff_email_v1_onboarding_handoff_email_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HandoffEmailRequest"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_HandoffEmailResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/onboarding/connect-picks":{"post":{"tags":["onboarding"],"summary":"Save Connect Picks","description":"Keep the clients the phone picked and email their setup (cooldown-limited).\n\nPosting again replaces the picks and resends, which is the phone's Send it\nagain. A send inside the cooldown keeps the picks and answers ``sent=False``.","operationId":"save_connect_picks_v1_onboarding_connect_picks_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectPicksRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_ConnectPicksResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/me/invitations":{"get":{"tags":["me"],"summary":"List My Invitations","description":"My pending, unexpired invitations across accounts (matched by email).","operationId":"list_my_invitations_v1_me_invitations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_InboundInvitationItem__"}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/me/invitation-blocks":{"get":{"tags":["invitations"],"summary":"List My Invitation Blocks","description":"The accounts the caller blocked when declining an invitation, newest first.\n\nOnly once the caller's email is verified: until then ``email_verified`` is\nfalse and no block is listed, since a block is keyed on the address\n(ADR-2026-10-08-managing-invitation-blocks-needs-a-verified-email).","operationId":"list_my_invitation_blocks_v1_me_invitation_blocks_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_InvitationBlocksResponse_"}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/me/invitation-blocks/{block_id}":{"delete":{"tags":["invitations"],"summary":"Unblock Invitations","description":"Lift a block, so the account may invite the caller again. Nothing it\ndeclined comes back; it has to send a new invitation. An unverified email\nis a 403, whatever the id names.","operationId":"unblock_invitations_v1_me_invitation_blocks__block_id__delete","parameters":[{"name":"block_id","in":"path","required":true,"schema":{"type":"string","title":"Block Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_UnblockInvitationsResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/me/invite":{"get":{"tags":["me"],"summary":"Get My Invite","description":"The caller's referral code, whether their email is verified, and whether\nSeaglass mails friend invites at all.\n\nA deliberate exception to a pure read: the first call mints the code when\nthe person has none (one carried from a redeemed waitlist row is returned\nas is). Every later call returns the same code, so the write is idempotent\nand invisible to the caller.","operationId":"get_my_invite_v1_me_invite_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_MyInviteResponse_"}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/me/invite/sends":{"post":{"tags":["me"],"summary":"Send Friend Invites","description":"Have Seaglass mail up to five friends, once each, from the caller.\n\nThe answer is the count taken, whatever happened to each address, and the\nmail goes out after it. Only the caller's own conditions refuse: the\nlaunch flag (404), no live personal account or a complaint (403), an\nunverified email (403), a bad address list (422), or a daily, total or\nglobal cap (429).","operationId":"send_friend_invites_v1_me_invite_sends_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendFriendInvitesRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_SendFriendInvitesResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/me/shared-libraries":{"get":{"tags":["me"],"summary":"Shared With Me","description":"Libraries in other accounts shared with the caller, as their guest.","operationId":"shared_with_me_v1_me_shared_libraries_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_SharedLibraryItem__"}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/me/shared-libraries/{library_id}":{"delete":{"tags":["me"],"summary":"Leave Shared Library","description":"The guest removes their own access. Nothing they wrote is deleted.","operationId":"leave_shared_library_v1_me_shared_libraries__library_id__delete","parameters":[{"name":"library_id","in":"path","required":true,"schema":{"type":"string","title":"Library Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_LeaveSharedLibraryResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/me/shares":{"get":{"tags":["me"],"summary":"List My Shares","description":"The libraries and pages shared with the caller by handle that wait for their\nanswer, newest first. ``status=pending`` is the one listing; the accepted\nlibraries are ``/v1/me/shared-libraries``.","operationId":"list_my_shares_v1_me_shares_get","parameters":[{"name":"status","in":"query","required":true,"schema":{"const":"pending","type":"string","title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_OfferedShareItem__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/me/shares/{grant_id}/accept":{"post":{"tags":["me"],"summary":"Accept Share","description":"Accept a share: it reaches the caller from now on, and each of their agents\nis connected to the sharing account. An agent the account's policy keeps out\nis listed with the reason. Accepting again changes nothing.","operationId":"accept_share_v1_me_shares__grant_id__accept_post","parameters":[{"name":"grant_id","in":"path","required":true,"schema":{"type":"string","title":"Grant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_AcceptShareResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/me/shares/{grant_id}/decline":{"post":{"tags":["me"],"summary":"Decline Share","description":"Decline a pending share: it is revoked, and the sharer sees it gone. An\naccepted library is left from ``/v1/me/shared-libraries`` instead.","operationId":"decline_share_v1_me_shares__grant_id__decline_post","parameters":[{"name":"grant_id","in":"path","required":true,"schema":{"type":"string","title":"Grant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_DeclineShareResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/me/handles/{handle}":{"get":{"tags":["me"],"summary":"Current Handle","description":"The current handle of the account ``handle`` names, current or vacated,\nwhen the caller holds a seat there or a library or page in it is shared\nwith them; the uniform 404 otherwise.","operationId":"current_handle_v1_me_handles__handle__get","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_CurrentHandleResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/me/agents":{"get":{"tags":["me"],"summary":"List My Agents","description":"The caller's agents, most recently used first, each with the accounts it is linked to.","operationId":"list_my_agents_v1_me_agents_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_MeAgentSummary__"}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/me/agents/{agent_id}":{"get":{"tags":["me"],"summary":"Get My Agent","description":"One of the caller's agents: its links and settings there, its restrictions\nand its install settings.","operationId":"get_my_agent_v1_me_agents__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":{"$ref":"#/components/schemas/Envelope_MeAgentDetail_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}},"patch":{"tags":["me"],"summary":"Update My Agent","description":"Rename the agent, or set its install settings (``inherit`` follows the\ncaller's own default).","operationId":"update_my_agent_v1_me_agents__agent_id__patch","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateMeAgentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_MeAgentDetail_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}},"delete":{"tags":["me"],"summary":"Delete My Agent","description":"Delete the agent with its tokens, links and restrictions. What it wrote\nstays; the pages its open chats owe are handed to the server first.","operationId":"delete_my_agent_v1_me_agents__agent_id__delete","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_DeleteAgentResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/me/agents/{agent_id}/links":{"post":{"tags":["me"],"summary":"Add My Agent Link","description":"Link the agent to another account where the caller holds a seat or an\naccepted share. Refused (409, saying why) when that account, or one the\nagent is already linked to, doesn't allow agents connected elsewhere.","operationId":"add_my_agent_link_v1_me_agents__agent_id__links_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddAgentLinkRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_MeAgentDetail_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/me/agents/{agent_id}/links/{account_id}":{"patch":{"tags":["me"],"summary":"Update My Agent Link","description":"Set the agent's settings in one linked account: its synthesis override\n(honoured only while the caller holds a seat there), its preferences\n(``null`` inherits the caller's own), its instructions, and its walls:\n``walled`` and ``session_lock``.","operationId":"update_my_agent_link_v1_me_agents__agent_id__links__account_id__patch","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAgentLinkRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_MeAgentDetail_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}},"delete":{"tags":["me"],"summary":"Unlink My Agent","description":"Unlink the agent from an account, with its restrictions there. The pages\nits open chats owe in that account are handed to the server, since the agent\ncan no longer write them.","operationId":"unlink_my_agent_v1_me_agents__agent_id__links__account_id__delete","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_UnlinkAgentResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/me/agents/{agent_id}/restrictions":{"put":{"tags":["me"],"summary":"Set My Agent Restriction","description":"Narrow the agent on one library, or one page, to ``read`` or ``none``. The\nobject must be one the caller reaches through the agent's links.","operationId":"set_my_agent_restriction_v1_me_agents__agent_id__restrictions_put","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetRestrictionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_MeAgentDetail_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}},"delete":{"tags":["me"],"summary":"Clear My Agent Restriction","description":"Lift the agent's restriction on one library or one page (``?library_id=``\nor ``?page_id=``, exactly one). Works after the caller lost access to the object, so a\nleftover restriction can always be removed.","operationId":"clear_my_agent_restriction_v1_me_agents__agent_id__restrictions_delete","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"library_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Library Id"}},{"name":"page_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_ClearRestrictionResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/me/agents/{agent_id}/tokens":{"get":{"tags":["me"],"summary":"List My Agent Tokens","description":"The agent's live tokens, newest first. A secret is never shown again.","operationId":"list_my_agent_tokens_v1_me_agents__agent_id__tokens_get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_AgentTokenItem__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/me/agents/{agent_id}/tokens/{token_id}/revoke":{"post":{"tags":["me"],"summary":"Revoke My Agent Token","description":"Revoke one of the agent's tokens, and the CLI tokens it minted.","operationId":"revoke_my_agent_token_v1_me_agents__agent_id__tokens__token_id__revoke_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"token_id","in":"path","required":true,"schema":{"type":"string","title":"Token Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_RevokeAgentTokenResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/me/agent-credentials":{"get":{"tags":["me"],"summary":"List Agent Credentials","description":"Every credential an agent of the caller's could still call with, newest first.","operationId":"list_agent_credentials_v1_me_agent_credentials_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_AgentCredentialItem__"}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/me/agent-credentials/revoke":{"post":{"tags":["me"],"summary":"Revoke All Agent Credentials","description":"Revoke every credential of every agent the caller owns.\n\nAlso spends an OAuth code or CLI device link approved but not yet claimed,\nso nothing in flight mints a fresh one.","operationId":"revoke_all_agent_credentials_v1_me_agent_credentials_revoke_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_RevokeAllAgentCredentialsResponse_"}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/me/connect/accounts":{"get":{"tags":["me.connect"],"summary":"List Connect Accounts","description":"The accounts a connecting agent can be linked to, by handle. A new agent\nhas no links, so only each account's own policy decides; with\n``oauth_client_id``, the caller's agent a sign-in through that registration\nreconnects when it chooses nothing is judged with its links, and with ``agent_id`` the caller's agent the sign-in\nreplaces is; the accounts it is linked to come back ``linked``. An\n``agent_id`` that is not the caller's is a 404.","operationId":"list_connect_accounts_v1_me_connect_accounts_get","parameters":[{"name":"oauth_client_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Oauth Client Id"}},{"name":"agent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_ConnectAccountCandidate__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/me/connect/replaceable":{"get":{"tags":["me.connect"],"summary":"List Replaceable Agents","description":"What a sign-in of ``client_kind`` can be. When ``oauth_client_id`` names\na dynamic registration that has the caller's agent, it is that agent, with\nnothing to choose. On a published client (a metadata document) where the\ncaller has agents, it may reconnect one of them (``reconnectable``),\nreplace one of their agents of its kind elsewhere, or add a new one.\nOtherwise, the caller's agents it may replace, most recently active first:\nthose of its kind on its transport (never on this registration), or on a\ndevice link (``device``) the Claude Code and Seaglass CLI family; none for\n``other``. Either way, every name the caller's agents use.","operationId":"list_replaceable_agents_v1_me_connect_replaceable_get","parameters":[{"name":"client_kind","in":"query","required":true,"schema":{"enum":["claude-code","claude-desktop","openclaw","codex","cursor","gemini-cli","antigravity","chatgpt","gemini","muse","hermes","perplexity","other","seaglass-cli","seaglass-system"],"type":"string","title":"Client Kind"}},{"name":"device","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Device"}},{"name":"oauth_client_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Oauth Client Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_SignInChoices_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/me/connect/agents":{"get":{"tags":["me.connect"],"summary":"List Connect Agents","description":"The caller's agents, oldest first, each with whether it is linked to the\naccount already and, if not, why it couldn't be.","operationId":"list_connect_agents_v1_me_connect_agents_get","parameters":[{"name":"account_handle","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"title":"Account Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_ConnectAgentCandidate__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}},"post":{"tags":["me.connect"],"summary":"Connect Agents","description":"Link the ticked agents to the account; one the policy refuses is skipped\nand named with the reason.","operationId":"connect_agents_v1_me_connect_agents_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectAgentsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_ConnectAgentsResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/me/sessions":{"get":{"tags":["me"],"summary":"List Transcripts","description":"List the caller's transcripts, newest first.","operationId":"list_transcripts_v1_me_sessions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_TranscriptListItem__"}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/me/sessions/search":{"get":{"tags":["me"],"summary":"Search Transcripts","description":"Deep, line-level search across the caller's transcripts (config-gated).","operationId":"search_transcripts_v1_me_sessions_search_get","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","title":"Q"}},{"name":"session_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"after","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"After"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Before"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_TranscriptSearchHit__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/me/sessions/{session_id}/transcript":{"get":{"tags":["me"],"summary":"Transcript Content","description":"Paged content for one of the caller's transcripts.","operationId":"transcript_content_v1_me_sessions__session_id__transcript_get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"line_offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Line Offset"}},{"name":"line_limit","in":"query","required":false,"schema":{"type":"integer","default":500,"title":"Line Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_TranscriptContent_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/me/sessions/{session_id}":{"delete":{"tags":["me"],"summary":"Delete Transcript","description":"Per-transcript erasure from the web (\"forget this session\", ADR-2026-06-11-history-redaction-erasure-beats-retention).","operationId":"delete_transcript_v1_me_sessions__session_id__delete","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_DeleteTranscriptResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/me/billing":{"get":{"tags":["me"],"summary":"List Billed Accounts","description":"Every account the caller owns that is billed, or owes its first checkout.","operationId":"list_billed_accounts_v1_me_billing_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_BilledAccount__"}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/me/feedback":{"post":{"tags":["me"],"summary":"File My Feedback","description":"File a report from the web form (stamps ``source_type='web'``).","operationId":"file_my_feedback_v1_me_feedback_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateFeedbackRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_FeedbackDetail_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts":{"get":{"tags":["accounts"],"summary":"List My Accounts","description":"Every account the signed-in user holds an active member seat in.","operationId":"list_my_accounts_v1_accounts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_AccountSummary__"}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}},"post":{"tags":["accounts"],"summary":"Create Organization","description":"Create an organization account owned by the signed-in user, who must\nhave claimed a username first: the onboarding gate holds anyone without one\non the wizard, and the API refuses the same way.","operationId":"create_organization_v1_accounts_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOrgRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_OrgDetail_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/handle-available":{"get":{"tags":["accounts"],"summary":"Check Handle","description":"Live availability check for the create-org handle field (ui-design §6.2).","operationId":"check_handle_v1_accounts_handle_available_get","parameters":[{"name":"handle","in":"query","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_HandleCheckResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/handle":{"patch":{"tags":["accounts"],"summary":"Set Handle","description":"Set the caller's username.\n\nThe first time, this claims it and creates their personal account and\ndefault library (ADR-2026-11-12-a-personal-account-is-created-when-its-owner-confirms-a-username);\nafter that it renames, redirecting old links and reserving the old handle\n(ADR-2026-06-12-handle-renames-redirect-and-reserve).","operationId":"set_handle_v1_accounts_handle_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenameHandleRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_RenameHandleResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/pages/{page_id}/context-map":{"get":{"tags":["tenant.map"],"summary":"Page Context Map","description":"The current page's context map, filtered to what the viewer may read.\n\nThe page id is account-scoped by the path ``{handle}`` (ADR-2026-06-23-http-api-is-resource-addressed-and-plane-structured): a page\noutside the path account — or deleted/unknown — is the uniform fail-closed 404,\nexactly as the other ``/{handle}/pages/{page_id}/…`` sub-resources resolve. The\nread gate over the call's scope then collapses an unreadable page to the same\n404, so the boundary never confirms a page the caller can't see. The scope, not\nthe member's principal: an agent's token reads only inside its library caps\n(ADR-2026-10-02-agent-tokens-never-administer-the-account-and-their-transcript-and-page-audit-reads-honour-library-caps).","operationId":"page_context_map_v1_accounts__handle__pages__page_id__context_map_get","parameters":[{"name":"page_id","in":"path","required":true,"schema":{"type":"string","title":"Page Id"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}},{"name":"dims","in":"query","required":false,"schema":{"type":"integer","maximum":3,"minimum":2,"default":3,"title":"Dims"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_ContextMapResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/library-brainstorm/roles":{"post":{"tags":["library-brainstorm"],"summary":"Brainstorm Roles","description":"Question 2's role options, from answer 1.","operationId":"brainstorm_roles_v1_accounts__handle__library_brainstorm_roles_post","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrainstormRolesRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_BrainstormRolesOut_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/library-brainstorm/draft":{"post":{"tags":["library-brainstorm"],"summary":"Brainstorm Draft","description":"The first draft, from all four answers.","operationId":"brainstorm_draft_v1_accounts__handle__library_brainstorm_draft_post","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrainstormDraftRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_BrainstormDraftOut_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/library-brainstorm/revise":{"post":{"tags":["library-brainstorm"],"summary":"Brainstorm Revise","description":"The whole draft revised for one change request, with a one-line summary.","operationId":"brainstorm_revise_v1_accounts__handle__library_brainstorm_revise_post","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrainstormReviseRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_BrainstormDraftOut_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/library-brainstorm/expand":{"post":{"tags":["library-brainstorm"],"summary":"Brainstorm Expand","description":"The full library for Make it yours: descriptions and onboarding prompts.","operationId":"brainstorm_expand_v1_accounts__handle__library_brainstorm_expand_post","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrainstormExpandRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_BrainstormExpandOut_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/library-suggestions":{"get":{"tags":["library-suggestions"],"summary":"List Waiting Suggestions","description":"The caller's own open suggestions in the account: the libraries\nsuggested and not created, and each library's open list of changes. Behind\nthe same gates as a suggestion's page, each a 404; another owner or admin\nof the account is listed nothing of the caller's.","operationId":"list_waiting_suggestions_v1_accounts__handle__library_suggestions_get","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_WaitingSuggestionsOut_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/library-suggestions/{suggestion_id}":{"get":{"tags":["library-suggestions"],"summary":"Get Library Suggestion","description":"The suggested library as the person last left it.","operationId":"get_library_suggestion_v1_accounts__handle__library_suggestions__suggestion_id__get","parameters":[{"name":"suggestion_id","in":"path","required":true,"schema":{"type":"string","title":"Suggestion Id"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_LibrarySuggestionOut_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}},"patch":{"tags":["library-suggestions"],"summary":"Save Library Suggestion Draft","description":"Store the person's edits: the whole library and its collection list,\nmade from the read ``base_version`` names. 409 once the suggestion is no\nlonger open, or when its draft was rewritten since that read.","operationId":"save_library_suggestion_draft_v1_accounts__handle__library_suggestions__suggestion_id__patch","parameters":[{"name":"suggestion_id","in":"path","required":true,"schema":{"type":"string","title":"Suggestion Id"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveLibraryDraftRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_LibrarySuggestionOut_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/library-suggestions/{suggestion_id}/revise":{"post":{"tags":["library-suggestions"],"summary":"Revise Library Suggestion","description":"\"Change something\": Seaglass applies the person's request to the whole\nsuggested library. Nothing is created. 409 once the suggestion is no longer\nopen, or when it was edited while the request ran.","operationId":"revise_library_suggestion_v1_accounts__handle__library_suggestions__suggestion_id__revise_post","parameters":[{"name":"suggestion_id","in":"path","required":true,"schema":{"type":"string","title":"Suggestion Id"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviseSuggestionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_ReviseSuggestionResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/library-suggestions/{suggestion_id}/template-collections":{"post":{"tags":["library-suggestions"],"summary":"Add Template Collection","description":"\"+ Add\": copy one collection of a template shown beside the suggestion\ninto it, by value. 409 once the suggestion is no longer open.","operationId":"add_template_collection_v1_accounts__handle__library_suggestions__suggestion_id__template_collections_post","parameters":[{"name":"suggestion_id","in":"path","required":true,"schema":{"type":"string","title":"Suggestion Id"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddTemplateCollectionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_LibrarySuggestionOut_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/library-suggestions/{suggestion_id}/apply":{"post":{"tags":["library-suggestions"],"summary":"Apply Library Suggestion","description":"Create the library as edited. 409 once the suggestion is no longer open.","operationId":"apply_library_suggestion_v1_accounts__handle__library_suggestions__suggestion_id__apply_post","parameters":[{"name":"suggestion_id","in":"path","required":true,"schema":{"type":"string","title":"Suggestion Id"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_ApplySuggestionResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/library-suggestions/{suggestion_id}/dismiss":{"post":{"tags":["library-suggestions"],"summary":"Dismiss Library Suggestion","description":"Dismiss the suggestion. 409 once it is no longer open.","operationId":"dismiss_library_suggestion_v1_accounts__handle__library_suggestions__suggestion_id__dismiss_post","parameters":[{"name":"suggestion_id","in":"path","required":true,"schema":{"type":"string","title":"Suggestion Id"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_LibrarySuggestionOut_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/pages/{page_id}/visibility":{"patch":{"tags":["tenant.pages"],"summary":"Set Page Visibility","description":"Set a page's visibility (private / members / public), ADR-2026-05-28-url-and-addressing-scheme.\n\nChanging who can open a page is sharing it, so it takes ``share`` on the\npage's library as well as ``write`` on the page, as the sub-pages toggle does\n(ADR-2026-11-12-changing-a-pages-visibility-takes-share); while the page's\nsub-pages follow it, the value applies to its whole living subtree. Cookie-only\n(``CookieTenantCtx``): a bearer agent's bounded authority is not the user's\nadmin authority (ADR-2026-05-13-profile-management-is-web-ui-only / F-017). A page the caller cannot share — or one\noutside the path account — is the uniform fail-closed 404, never a 403.","operationId":"set_page_visibility_v1_accounts__handle__pages__page_id__visibility_patch","parameters":[{"name":"page_id","in":"path","required":true,"schema":{"type":"string","title":"Page Id"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetVisibilityRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_VisibilityResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/pages/{page_id}/move":{"post":{"tags":["tenant.pages"],"summary":"Move Account Page","description":"Rename or move a page to a new typed slug, optionally retitling (ADR-2026-06-10-page-slugs-are-mutable-redirecting-addresses).\n\nThe service enforces\nthe library-write gate (a page-share write grant covers content, not\naddresses); a refusal reads as the same fail-closed 404 as a miss. Cookie-only\n(ADR-2026-05-13-profile-management-is-web-ui-only / F-017). Scope is the caller's resolved tenant scope (B4), never the\npath account.","operationId":"move_account_page_v1_accounts__handle__pages__page_id__move_post","parameters":[{"name":"page_id","in":"path","required":true,"schema":{"type":"string","title":"Page Id"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MovePageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_MovePageResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/pages/{page_id}/subpages-follow":{"patch":{"tags":["tenant.pages"],"summary":"Set Page Subpages Follow","description":"Set whether a page's sub-pages follow its visibility and shares.\n\nIt changes both, so it takes both rights: ``share`` on the page's library and\n``write`` on the page. Ticking copies the page's visibility to its sub-pages and\nextends its shares to them; unticking only narrows\n(ADR-2026-11-12-a-page-records-whether-its-sub-pages-follow-it). Cookie-only, and\na page the caller may not change is the uniform 404.","operationId":"set_page_subpages_follow_v1_accounts__handle__pages__page_id__subpages_follow_patch","parameters":[{"name":"page_id","in":"path","required":true,"schema":{"type":"string","title":"Page Id"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetSubpagesFollowRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_SubpagesFollowResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/pages/{page_id}/shares":{"get":{"tags":["tenant.pages"],"summary":"List Page Shares","description":"List the live page-shares on a page (the addressed twin of admin GET /shares).\n\nManaging shares is a cookie-only management action (ADR-2026-05-13-profile-management-is-web-ui-only / F-017).","operationId":"list_page_shares_v1_accounts__handle__pages__page_id__shares_get","parameters":[{"name":"page_id","in":"path","required":true,"schema":{"type":"string","title":"Page Id"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_ShareItem__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}},"put":{"tags":["tenant.pages"],"summary":"Set Page Share","description":"Create or update the share for a (user|team) on this page (twin of admin PUT).\n\nA new share to a person outside the account is pending until they accept it;\nthey are emailed to say it is waiting.","operationId":"set_page_share_v1_accounts__handle__pages__page_id__shares_put","parameters":[{"name":"page_id","in":"path","required":true,"schema":{"type":"string","title":"Page Id"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetShareRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_ShareItem_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/pages/{page_id}/shares/{share_id}":{"delete":{"tags":["tenant.pages"],"summary":"Revoke Page Share","description":"Revoke one share by id (the addressed twin of admin DELETE /shares/{id}).","operationId":"revoke_page_share_v1_accounts__handle__pages__page_id__shares__share_id__delete","parameters":[{"name":"page_id","in":"path","required":true,"schema":{"type":"string","title":"Page Id"}},{"name":"share_id","in":"path","required":true,"schema":{"type":"string","title":"Share Id"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_RevokeShareResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/pages/{page_id}/invitations":{"get":{"tags":["tenant.pages"],"summary":"List Page Invitations","description":"The page's pending invitations by email, oldest first, for whoever may\nshare it. Cookie-only: it carries the addresses the sharer typed.","operationId":"list_page_invitations_v1_accounts__handle__pages__page_id__invitations_get","parameters":[{"name":"page_id","in":"path","required":true,"schema":{"type":"string","title":"Page Id"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_PageInvitationItem__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}},"post":{"tags":["tenant.pages"],"summary":"Invite To Page","description":"Invite an email address to read the page\n(ADR-2026-11-12-a-page-can-be-shared-with-an-email-address).\n\nIt always sends an invitation, whether or not the address has an account,\nso the answer never says who is registered. Accepting it shares the page\nwith whoever signs in with that address.","operationId":"invite_to_page_v1_accounts__handle__pages__page_id__invitations_post","parameters":[{"name":"page_id","in":"path","required":true,"schema":{"type":"string","title":"Page Id"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitePageRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_PageInvitationItem_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/pages/{page_id}/invitations/{invitation_id}":{"delete":{"tags":["tenant.pages"],"summary":"Revoke Page Invitation","description":"Revoke a pending invitation to the page; its link stops working.","operationId":"revoke_page_invitation_v1_accounts__handle__pages__page_id__invitations__invitation_id__delete","parameters":[{"name":"page_id","in":"path","required":true,"schema":{"type":"string","title":"Page Id"}},{"name":"invitation_id","in":"path","required":true,"schema":{"type":"string","title":"Invitation Id"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_RevokeInvitationResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/pages/{page_id}/access":{"get":{"tags":["tenant.pages"],"summary":"Page Access Audit","description":"Who can reach this page — library grants, direct shares, and public state.\n\nThis is a read, so it stays bearer-ok (``TenantCtx``); the ``share`` grant gate\nover the call's scope still applies, so a caller who cannot manage the page's\nsharing, an agent whose library caps exclude the page's library, or a page\noutside the path account is the uniform fail-closed 404.","operationId":"page_access_audit_v1_accounts__handle__pages__page_id__access_get","parameters":[{"name":"page_id","in":"path","required":true,"schema":{"type":"string","title":"Page Id"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_PageAccessAudit_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/pages":{"get":{"tags":["tenant.pages"],"summary":"List Account Pages","description":"Account-wide page fan-out across the caller's readable libraries (member-only).\n\nThe cross-library view (ADR-2026-06-23-http-api-is-resource-addressed-and-plane-structured \"one read surface\"): a member's readable\npages anywhere in the account, scoped by ``readable_scope_clause`` over the\nprincipal's resolved scope — **not** the path account (B4). There is no public\ntier here (an anonymous caller is denied the uniform 404 by\n:data:`~app.services.tenancy.TenantCtx`), so the cross-library list is\nmember-only by construction. The ``type`` filter is a slug-prefix match\n(ADR-2026-05-19-wiki-page-identity-is-immutable-typed-slug-path).\n\nThe owning-account handle and library slug per row let a client build the\ncorrect ``/v1/accounts/{handle}/libraries/{slug}/pages/{slug}`` link even for a\npage in a shared library owned by another account.","operationId":"list_account_pages_v1_accounts__handle__pages_get","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_PageSummary__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/profile":{"get":{"tags":["tenant.profile"],"summary":"Get Member Profile","description":"The caller's profile in the addressed account (cookie OR bearer).\n\nResolves to ``ctx.member`` — the caller's seat in the *path* account, proven by\n:data:`~app.services.tenancy.SeatTenantCtx` (a non-member, an agent linked\nthere through its user's shares alone, or an unknown account is the uniform\n404 before this runs). ``user_id`` on the response is the member's global user.","operationId":"get_member_profile_v1_accounts__handle__profile_get","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_UserProfileResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}},"patch":{"tags":["tenant.profile"],"summary":"Patch Member Profile","description":"Update the caller's member-level profile (**cookie-only**).\n\n:data:`~app.services.tenancy.CookieTenantCtx` makes a bearer caller impossible\nhere — it is denied the uniform 404 before the body is read (ADR-2026-05-13-profile-management-is-web-ui-only / F-017),\nso an agent token can never mutate profile state through the addressed surface.","operationId":"patch_member_profile_v1_accounts__handle__profile_patch","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProfileRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_UserProfileResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/agents":{"get":{"tags":["tenant.profile"],"summary":"List Linked Agents","description":"The agents linked to the account, most recently used first (cookie OR bearer).\n\nIt takes a seat there: an agent linked through its user's shares alone is the\nuniform 404. An owner or admin sees every one; anyone else sees their own. A row names the\nagent and its kind, never the other accounts it is linked to; its last use\nshows only on the viewer's own agents.","operationId":"list_linked_agents_v1_accounts__handle__agents_get","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_AgentSummary__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/agents/{agent_id}":{"get":{"tags":["tenant.profile"],"summary":"Get My Agent In Account","description":"One of the caller's own agents in this account: its identity and activity, its link to this account with its settings and library access here (null when the agent is not linked to this account), and its restrictions on this account's libraries and pages. Cookie-only. Another user's agent, an unknown agent, or an account the caller holds no seat in is a 404. Changes go through the /v1/me/agents/{agent_id}/... routes: link or unlink the account, set its settings here, and set or lift restrictions.","operationId":"get_my_agent_in_account_v1_accounts__handle__agents__agent_id__get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_AccountAgentDetail_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/public-profile":{"get":{"tags":["tenant.public_profile"],"summary":"Read Public Profile","description":"The account's public pages, most read first, and what its owner wrote for strangers.\n\nOnly public pages in live libraries, for every caller.","operationId":"read_public_profile_v1_accounts__handle__public_profile_get","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_PublicProfile_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}},"patch":{"tags":["tenant.public_profile"],"summary":"Update Public Profile","description":"Set the bio and location strangers read. An owner or admin of the account only.\n\nAnswers the profile as a stranger now sees it.","operationId":"update_public_profile_v1_accounts__handle__public_profile_patch","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePublicProfileRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_PublicProfile_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/sources/providers":{"get":{"tags":["tenant.sources"],"summary":"List Available Providers","operationId":"list_available_providers_v1_accounts__handle__sources_providers_get","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_ProvidersResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/sources/connections":{"get":{"tags":["tenant.sources"],"summary":"List Connections","operationId":"list_connections_v1_accounts__handle__sources_connections_get","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_ConnectionsResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/sources/connections/manual":{"post":{"tags":["tenant.sources"],"summary":"Connect Manual","operationId":"connect_manual_v1_accounts__handle__sources_connections_manual_post","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_ConnectionView_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/sources/connections/{connection_id}/disconnect":{"post":{"tags":["tenant.sources"],"summary":"Disconnect","operationId":"disconnect_v1_accounts__handle__sources_connections__connection_id__disconnect_post","parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","title":"Connection Id"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_ConnectionView_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/sources/{provider}/start":{"get":{"tags":["tenant.sources"],"summary":"Start","description":"Redirect to provider consent; carry account + a CSRF nonce in the state cookie.\n\nThe account is the *path's* (``ctx.account``), packed into the state cookie so\nthe flat callback — which cannot carry ``{handle}`` — lands the connection in\nthe right account (see ``app.routers.agent.source_oauth``).","operationId":"start_v1_accounts__handle__sources__provider__start_get","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"307":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/sources/connections/{connection_id}/picker-token":{"get":{"tags":["tenant.sources"],"summary":"Picker Token","description":"Mint a short-lived provider access token for the browser Picker (ADR-2026-06-23-source-connectors-web-connected-human-picked-agent-imports-from-shelf).","operationId":"picker_token_v1_accounts__handle__sources_connections__connection_id__picker_token_get","parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","title":"Connection Id"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_PickerTokenResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/sources/connections/{connection_id}/pick":{"post":{"tags":["tenant.sources"],"summary":"Pick","description":"Register files the human picked as candidates on the shelf (ADR-2026-06-23-source-connectors-web-connected-human-picked-agent-imports-from-shelf).","operationId":"pick_v1_accounts__handle__sources_connections__connection_id__pick_post","parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","title":"Connection Id"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PickRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_ImportsResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/sources/connections/{connection_id}/documents":{"get":{"tags":["tenant.sources"],"summary":"List Source Documents","operationId":"list_source_documents_v1_accounts__handle__sources_connections__connection_id__documents_get","parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","title":"Connection Id"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_ImportsResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/source-documents/{source_document_id}/sync-enabled":{"post":{"tags":["tenant.sources"],"summary":"Set Sync Enabled","operationId":"set_sync_enabled_v1_accounts__handle__source_documents__source_document_id__sync_enabled_post","parameters":[{"name":"source_document_id","in":"path","required":true,"schema":{"type":"string","title":"Source Document Id"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncEnabledRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_ImportView_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/members":{"get":{"tags":["tenant.members"],"summary":"List Members","description":"The addressed account's roster (owner first). Org-manage-gated.","operationId":"list_members_v1_accounts__handle__members_get","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_MemberListItem__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/members/{account_membership_id}":{"get":{"tags":["tenant.members"],"summary":"Get Member","operationId":"get_member_v1_accounts__handle__members__account_membership_id__get","parameters":[{"name":"account_membership_id","in":"path","required":true,"schema":{"type":"string","title":"Account Membership Id"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_MemberDetail_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}},"patch":{"tags":["tenant.members"],"summary":"Update Member","description":"Change a member's role (admin↔member) and/or status (active/suspended).","operationId":"update_member_v1_accounts__handle__members__account_membership_id__patch","parameters":[{"name":"account_membership_id","in":"path","required":true,"schema":{"type":"string","title":"Account Membership Id"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateMemberRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_MemberDetail_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}},"delete":{"tags":["tenant.members"],"summary":"Remove Member","description":"Offboard a member: removes the seat, team memberships, and direct grants.","operationId":"remove_member_v1_accounts__handle__members__account_membership_id__delete","parameters":[{"name":"account_membership_id","in":"path","required":true,"schema":{"type":"string","title":"Account Membership Id"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_RemoveMemberResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/teams":{"get":{"tags":["tenant.teams"],"summary":"List Teams","description":"The account's teams by name and size, for any seat in an organization: the\nshare dialog offers them (ADR-2026-11-12-library-readers-see-who-reads-their-library-and-seats-see-team-names).\nA team's members, and every change to a team, stay manager-only.","operationId":"list_teams_v1_accounts__handle__teams_get","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_TeamListItem__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}},"post":{"tags":["tenant.teams"],"summary":"Create Team","operationId":"create_team_v1_accounts__handle__teams_post","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTeamRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_TeamDetail_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/teams/{team_id}":{"get":{"tags":["tenant.teams"],"summary":"Get Team","operationId":"get_team_v1_accounts__handle__teams__team_id__get","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","title":"Team Id"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_TeamDetail_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}},"patch":{"tags":["tenant.teams"],"summary":"Update Team","operationId":"update_team_v1_accounts__handle__teams__team_id__patch","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","title":"Team Id"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTeamRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_TeamDetail_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}},"delete":{"tags":["tenant.teams"],"summary":"Delete Team","operationId":"delete_team_v1_accounts__handle__teams__team_id__delete","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","title":"Team Id"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_DeleteResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/teams/{team_id}/members":{"post":{"tags":["tenant.teams"],"summary":"Add Team Member","description":"Add an account member to a team (idempotent).","operationId":"add_team_member_v1_accounts__handle__teams__team_id__members_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","title":"Team Id"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamMemberRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_TeamDetail_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/teams/{team_id}/members/{account_membership_id}":{"delete":{"tags":["tenant.teams"],"summary":"Remove Team Member","description":"Remove a member from a team (no-op if not present).","operationId":"remove_team_member_v1_accounts__handle__teams__team_id__members__account_membership_id__delete","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","title":"Team Id"}},{"name":"account_membership_id","in":"path","required":true,"schema":{"type":"string","title":"Account Membership Id"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_TeamDetail_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/invitations":{"get":{"tags":["tenant.invitations"],"summary":"List Invitations","operationId":"list_invitations_v1_accounts__handle__invitations_get","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}},{"name":"status_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status Filter"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_InvitationListItem__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}},"post":{"tags":["tenant.invitations"],"summary":"Create Invitation","description":"Invite someone by email with an initial role, teams, and library grants.","operationId":"create_invitation_v1_accounts__handle__invitations_post","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateInvitationRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_CreateInvitationResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/invitations/seat-price":{"get":{"tags":["tenant.invitations"],"summary":"Seat Price","description":"What a seat an invitation adds costs; null while credit billing is off.\nOnly an organization's owners and admins invite, so only they read it.","operationId":"seat_price_v1_accounts__handle__invitations_seat_price_get","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_Union_SeatPrice__NoneType__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/invitations/{invitation_id}":{"delete":{"tags":["tenant.invitations"],"summary":"Revoke Invitation","operationId":"revoke_invitation_v1_accounts__handle__invitations__invitation_id__delete","parameters":[{"name":"invitation_id","in":"path","required":true,"schema":{"type":"string","title":"Invitation Id"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_RevokeInvitationResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/search":{"get":{"tags":["tenant.reads"],"summary":"Account Search","description":"Pages (an exact title/alias tier, then a fused tail) and memories matching ``q``.\n\nThe ranking is ``context_service.account_search``; the account is the path's\nvia ``TenantCtx``. An optional ``?library=`` narrows the readable scope to a\nsingle library in the addressed account; a library the caller cannot read\n(or that doesn't resolve) yields an empty result, never a leak. An optional\n``?type=`` narrows to one collection (the slug's type segment, e.g.\n``topics``): pages under that prefix, and the memories filed to them.","operationId":"account_search_v1_accounts__handle__search_get","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}},{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":20,"title":"Limit"}},{"name":"library","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Library"}},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_SearchResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}":{"get":{"tags":["tenant.reads"],"summary":"Account Home","description":"Counts (with a ``days``-window delta), a 30-day memory pulse, recent pages and memories.\n\nThe account is the path's via ``TenantCtx``, and every count and list is\nscope-gated through ``readable_scope_clause``; a bearer's scope is kept to\nthe path account there, so the overview never counts its other links. An\noptional ``?library=`` scopes it to one library the caller can read in the\naccount, and ``?type=`` (which needs ``library``) to one collection there:\nits pages and the memories filed to them. Either naming nothing readable is\na 404 (ADR-2026-11-25-every-overview-leads-with-a-state-panel-scoped-to-what-it-shows).","operationId":"account_home_v1_accounts__handle__get","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":90,"minimum":1,"default":7,"title":"Days"}},{"name":"library","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Library"}},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_HomeResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/nav":{"get":{"tags":["tenant.reads"],"summary":"Read Account Nav","description":"Every library the caller reads here, with its collections and live pages.\n\nEach library lists the collections and pages its own\n``…/libraries/{slug}/collections`` and ``…/libraries/{slug}/pages`` reads list\nfor the same caller. Pages carry no activity dates: the nav does not show\nthem, so they are not computed.","operationId":"read_account_nav_v1_accounts__handle__nav_get","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_AccountNav_"}}}},"304":{"description":"The nav the caller's ``If-None-Match`` names is current."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/nav/changes":{"get":{"tags":["tenant.reads"],"summary":"Read Account Nav Changes","description":"A version of everything the nav shows, and the pages changed after ``since``.\n\nThe browser asks this on focus and on a slow timer, and re-reads the nav or\nits open page only when the answer says they changed.","operationId":"read_account_nav_changes_v1_accounts__handle__nav_changes_get","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Since"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_NavChanges_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/break-glass":{"get":{"tags":["tenant.break-glass"],"summary":"List Log","description":"The append-only break-glass audit log for the path account (ADR-2026-05-28-authorization-teams-and-relationship-based-access).","operationId":"list_log_v1_accounts__handle__break_glass_get","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_BreakGlassLogItem__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}},"post":{"tags":["tenant.break-glass"],"summary":"Break Glass","description":"Break the glass on a member-private library (optionally one page) in the path account.\n\nLogs the access (append-only), records who is notified, and returns the\ncontent ONCE. ``permissions.check`` still denies the actor — so this content\nnever reaches an agent surface.","operationId":"break_glass_v1_accounts__handle__break_glass_post","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BreakGlassRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_BreakGlassContent_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/transfer-ownership":{"post":{"tags":["tenant.transfer"],"summary":"Transfer Ownership","description":"Move the path organization's ownership to an existing admin member (ADR-2026-05-29-library-ownership-transfer-and-break-glass-read-path).\n\nOwner-only, organizations only; the new owner must currently be an admin.","operationId":"transfer_ownership_v1_accounts__handle__transfer_ownership_post","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransferOwnershipRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_TransferOwnershipResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/billing":{"get":{"tags":["tenant.billing"],"summary":"Get Billing","description":"The account's plan and status, its card and invoices as Stripe reports\nthem, its extra credit (the packs on sale, what is left, and auto top-up),\nand for an organization its seats and any card step a transfer left.","operationId":"get_billing_v1_accounts__handle__billing_get","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_AccountBilling_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/billing/checkout":{"post":{"tags":["tenant.billing"],"summary":"Start Checkout","description":"Open the account's Stripe Checkout, or resume the one still open.\n\nRefused (409) until credit billing is switched on. Idempotent: calling again\nwhile a session is open returns that session.","operationId":"start_checkout_v1_accounts__handle__billing_checkout_post","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutStartRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_CheckoutStartResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/billing/portal":{"post":{"tags":["tenant.billing"],"summary":"Open Portal","description":"A Stripe Customer Portal session for the account's card, invoices and plan,\nor (``purpose: cancel``) opened on the subscription's cancellation. A\ncancel never counts against the billing-action limit, so no limit ever\nstands between an owner and cancelling\n(ADR-2026-11-05-paid-plans-meet-californias-automatic-renewal-law-in-the-app).","operationId":"open_portal_v1_accounts__handle__billing_portal_post","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PortalRequest"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_PortalResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/billing/card-confirmation":{"post":{"tags":["tenant.billing"],"summary":"Confirm Card","description":"After an ownership transfer: keep the card on file, or confirm it was\nreplaced on Stripe (Stripe must show a new card). 409 when there is nothing\nto confirm, the card was removed (keep), or no new card is on file yet.","operationId":"confirm_card_v1_accounts__handle__billing_card_confirmation_post","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CardConfirmationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_AccountBilling_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/billing/topups":{"post":{"tags":["tenant.billing"],"summary":"Buy Topup","description":"Open Stripe Checkout for one pack of extra credit, or resume the one still\nopen for that pack. The credit arrives with Stripe's payment webhook, never\nwith the return from Checkout.","operationId":"buy_topup_v1_accounts__handle__billing_topups_post","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TopupCheckoutRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_CheckoutStartResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/billing/auto-topup":{"put":{"tags":["tenant.billing"],"summary":"Set Auto Topup","description":"Turn auto top-up on with the owner's pack, threshold and monthly limit,\nor off. Off by default, with no value preset. Only turning it on (or\nchanging its values) counts against the billing-action limit: turning\ncharges off always works.","operationId":"set_auto_topup_v1_accounts__handle__billing_auto_topup_put","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoTopupRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_AutoTopup_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/billing/card":{"post":{"tags":["tenant.billing"],"summary":"Add Card","description":"Open Stripe Checkout in setup mode to add a card to a free trial with no\ncard, or to a plan paused when its trial ended, or resume the one still\nopen; the press is recorded as the owner's consent. 409 with billing off or\nin any other state. During a trial nothing is charged until it ends; once\npaused, the first month is charged when the card is saved\n(ADR-2026-11-05-every-new-personal-account-starts-a-30-day-individual-pro-trial-with-no-card-and-pauses-without-one).","operationId":"add_card_v1_accounts__handle__billing_card_post","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_CheckoutStartResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/billing/trial":{"post":{"tags":["tenant.billing"],"summary":"Start Trial","description":"Start the account's free trial again: for an account created before\nbilling was switched on, or one whose trial Stripe never made. 409 when no\ntrial is owed. The worker's outbox sweep makes the trial within seconds,\nwhile the page shows it starting; on the request's own session, since the\ncookie's activity refresh holds this session's write lock.","operationId":"start_trial_v1_accounts__handle__billing_trial_post","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_AccountBilling_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/billing/cancel":{"post":{"tags":["tenant.billing"],"summary":"Cancel Without Card","description":"End a plan with no card on file through the API, never the Customer\nPortal: a free trial at its end, a paused plan now. Never counts against\nthe billing-action limit\n(ADR-2026-11-05-paid-plans-meet-californias-automatic-renewal-law-in-the-app).\n409 for any other plan, which cancels on the portal. Answers the ended\nplan, as Stripe returned it and it is now stored.","operationId":"cancel_without_card_v1_accounts__handle__billing_cancel_post","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_AccountBilling_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/policy":{"get":{"tags":["tenant.policy"],"summary":"Get Policy","description":"The account's policy. Owner or admin of an organization only.","operationId":"get_policy_v1_accounts__handle__policy_get","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_AccountPolicy_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}},"patch":{"tags":["tenant.policy"],"summary":"Update Policy","description":"Allow or forbid agents that are also linked to other accounts. Owner or\nadmin of an organization only.\n\nForbidding removes no link: each person whose agent is linked here and\nelsewhere is emailed, and their agent's page asks them to unlink it from one\nside. The response never says whether anyone was.","operationId":"update_policy_v1_accounts__handle__policy_patch","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAccountPolicyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_AccountPolicy_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/usage":{"get":{"tags":["tenant.usage"],"summary":"Get Usage","description":"Where the account stands on usage: whether the server is writing pages,\neach live credit grant as a percent of itself, and any top-up balance.","operationId":"get_usage_v1_accounts__handle__usage_get","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_AccountUsage_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/libraries/{library_slug}/pages":{"get":{"tags":["tenant.pages"],"summary":"List Library Pages","description":"List the readable pages in one addressed library (optionally one type).\n\nOptional auth, mirroring ``pages.list_pages``: an anonymous viewer sees only\npublic pages, a member sees what they may read. Visibility is decided in the\nquery — the pre-resolved scope clause OR the public-read axis — so it matches\n``permissions.check(read)`` row-for-row without re-running the resolver per\npage. The account/library boundary (and any transfer 301) is already enforced\nby :data:`~app.services.tenancy.OptionalResolvedLibraryCtx`; an unknown account or\nlibrary never reaches here (uniform 404). The ``type`` filter is a slug-prefix\nmatch (ADR-2026-05-19-wiki-page-identity-is-immutable-typed-slug-path).\n\n``retired`` (ADR-2026-09-18-pages-retire-when-their-evidence-drains) splits the\ntwo states: the default (``false``) lists only **live** pages, so retired\npages leave every collection and its count; ``true`` lists only the retired\nones, each carrying its reason and note — the data behind the sidebar's\n\"Retired\" bucket.","operationId":"list_library_pages_v1_accounts__handle__libraries__library_slug__pages_get","parameters":[{"name":"library_slug","in":"path","required":true,"schema":{"type":"string","title":"Library Slug"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"}},{"name":"retired","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Retired"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_PageSummary__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}},"post":{"tags":["tenant.pages"],"summary":"Create Library Page","description":"Create a page in the addressed library (authenticated, WRITE-gated).\n\nThe library is the URL's, already resolved and read-authorized by\n:data:`~app.services.tenancy.ResolvedLibraryCtx` (anonymous / non-member / unreadable\ncollapsed to the uniform 404 there). The one extra check is WRITE on *that*\nlibrary against the **already-resolved** ``lib_ctx.scope.writable_library_ids``\n— *not* a fresh :func:`permissions.check`, which would re-resolve the member's\nfull grants and miss the agent's restrictions. Consuming the context scope is\nwhat makes a bearer agent with a ``read`` restriction on the library\n(ADR-2026-10-09-an-agent-mirrors-its-users-live-access-narrowed-by-restrictions,\nbaked into ``lib_ctx.scope`` by ``agent_scope``) — and a reader-only member —\nfail closed with the same uniform 404, never a 403. This is the same axis\n``page_edit_service`` gates the edit path on.\n\nCreation itself mirrors the MCP ``create_page`` handler: the three shapes\n(full ``slug`` / ``parent``+``title`` / ``type``+``title``) dispatch inside\n:func:`page_service.create_page`. Provenance (agent/session) is not carried on\nthis addressed surface — recorded-not-required (ADR-2026-05-13-agent-authored-wiki-and-cost-routing #6); the MCP path\nremains the provenance-rich one. A bad shape / unknown type / slug collision is\na 400.","operationId":"create_library_page_v1_accounts__handle__libraries__library_slug__pages_post","parameters":[{"name":"library_slug","in":"path","required":true,"schema":{"type":"string","title":"Library Slug"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePageRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_CreatePageResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/libraries/{library_slug}/pages/{slug}":{"get":{"tags":["tenant.pages"],"summary":"Read Library Page","description":"Resolve and render one page by its canonical address.\n\n``slug`` is the typed page slug path (``people/dan``,\n``projects/seaglass/competitors``) captured by the ``:path`` matcher. The\naccount/library boundary is already proven by the library context; the\nper-page ``permissions.check(read)`` (and any page-level redirect flag) runs\ninside :func:`addressing.resolve_page_address`, so a denied or missing page is\nthe same uniform 404. The evidence layer (source trail, writer roster) is\ngated on member-reader inside :func:`page_view_service.build_page_view`.\n\nThe library is resolved but not authorized here: the page is gated on its own\nover the call's scope (``PageReadGate.for_scope``), the rule the MCP read path\nfollows. A library grant, a live page-share or the public axis reaches it, so a\nteammate holding a page share, a signed-in caller with no seat in the account,\nand an agent inside its restrictions all read the same pages they reach over MCP\n(ADR-2026-10-06-the-addressed-page-routes-gate-on-the-page-not-its-library).","operationId":"read_library_page_v1_accounts__handle__libraries__library_slug__pages__slug__get","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}},{"name":"library_slug","in":"path","required":true,"schema":{"type":"string","title":"Library Slug"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_PageView_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}},"patch":{"tags":["tenant.pages"],"summary":"Edit Library Page Section","description":"Edit one section of an addressed page with optimistic concurrency (ADR-2026-05-13-agent-authored-wiki-and-cost-routing).\n\nThe page must live in the *addressed* library — the slug is resolved within\n``lib_ctx.library`` only (:func:`page_path_service.get_by_slug`), so the URL's\nlibrary segment is load-bearing and a slug that lives in a *different* readable\nlibrary cannot be edited through this address (uniform 404 on a miss). The\nresolved page id is then handed to :func:`page_edit_service.edit_section`,\nwhich re-applies the WRITE gate (``scope.writable_library_ids`` /\n``writable_page_ids``) and the ``base_version`` compare-and-swap:\n\n* a caller who cannot write (reader-only member, or a bearer agent narrowed\n  out of write) → :class:`PageWriteForbiddenError`, surfaced as the uniform\n  **404** (never a 403);\n* a stale ``base_version`` → :class:`PageVersionConflictError` → **409**,\n  exactly as the MCP edit path rejects it (the current version + excerpt ride\n  along in the error detail);\n* an unknown section → **404**.\n\nThe library is resolved, not authorized: a caller without a grant on it (a\nteammate or a signed-in caller with no seat, holding a ``can_write`` share)\npasses the same write gate the MCP edit does\n(ADR-2026-10-06-the-addressed-page-routes-gate-on-the-page-not-its-library).","operationId":"edit_library_page_section_v1_accounts__handle__libraries__library_slug__pages__slug__patch","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"library_slug","in":"path","required":true,"schema":{"type":"string","title":"Library Slug"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditSectionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_EditSectionResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/libraries/{library_slug}/pages/{slug}/section-rewrite":{"post":{"tags":["tenant.pages"],"summary":"Rewrite Library Page Section","description":"Intent edit: describe a change, an LLM rewrites that one section (ADR-2026-06-26-intent-based-section-editing-in-the-web-wiki).\n\nThe web \"describe the change\" surface. Resolution, the WRITE gate, and the\n``base_version`` compare-and-swap are identical to the sibling ``PATCH`` edit —\nthe rewrite just produces the new section body via a server-side LLM call\n(server-mode, billed to the page's owning account; no agent to route to) before\ncommitting it as an ``intent_edit``. Same fail-closed mapping: unwritable /\nunknown page → **404**, stale ``base_version`` → **409**, unknown section →\n**404**; a malformed LLM response is a **502** (upstream).","operationId":"rewrite_library_page_section_v1_accounts__handle__libraries__library_slug__pages__slug__section_rewrite_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"library_slug","in":"path","required":true,"schema":{"type":"string","title":"Library Slug"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SectionRewriteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_SectionRewriteResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/libraries/{library_slug}/pages/{slug}/page-rewrite":{"post":{"tags":["tenant.pages"],"summary":"Rewrite Library Page","description":"Whole-page intent edit: one instruction resynthesizes every section (ADR-2026-06-30-whole-page-edit-page-scope-correction).\n\nThe page-scope sibling of ``section-rewrite``. Same resolution, WRITE gate, and\n``base_version`` compare-and-swap; the instruction is applied across the whole\npage — extract-and-judge once, then one resynthesis per section — and committed\nas a single atomic ``page_intent_edit`` version (server-mode, billed to the\npage's owning account). Same fail-closed mapping: unwritable / unknown page →\n**404**, stale ``base_version`` → **409**; a malformed/failed LLM call is a\n**502** and, being atomic, leaves the page untouched.","operationId":"rewrite_library_page_v1_accounts__handle__libraries__library_slug__pages__slug__page_rewrite_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"library_slug","in":"path","required":true,"schema":{"type":"string","title":"Library Slug"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageRewriteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_PageRewriteResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/libraries/{library_slug}/pages/{slug}/reads":{"post":{"tags":["tenant.pages"],"summary":"Count Page Read","description":"Count a web read of a page: public for a reader with no seat, team for a member.\n\nCounts once per reader per page per day; answers nothing but success.","operationId":"count_page_read_v1_accounts__handle__libraries__library_slug__pages__slug__reads_post","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}},{"name":"library_slug","in":"path","required":true,"schema":{"type":"string","title":"Library Slug"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_NoneType_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/libraries/{library_slug}/public-reach":{"get":{"tags":["tenant.pages"],"summary":"Library Public Reach","description":"How much the library's public pages are read, for its members.\n\nThe public page count, public reads over the last 7 days and ever, and the\nthree most read public pages. A caller with no seat in the library gets the\nlibrary context's uniform 404.","operationId":"library_public_reach_v1_accounts__handle__libraries__library_slug__public_reach_get","parameters":[{"name":"library_slug","in":"path","required":true,"schema":{"type":"string","title":"Library Slug"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_LibraryPublicReach_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/libraries/{library_slug}/transfer/preview":{"get":{"tags":["tenant.transfer"],"summary":"Preview Library Transfer","description":"What moving the library to the target would do to its guests, pending\ninvitations and outside page shares, before the move. Refuses as the move would.","operationId":"preview_library_transfer_v1_accounts__handle__libraries__library_slug__transfer_preview_get","parameters":[{"name":"library_slug","in":"path","required":true,"schema":{"type":"string","title":"Library Slug"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}},{"name":"target_account_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"title":"Target Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_TransferLibraryPreview_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/libraries/{library_slug}/transfer":{"post":{"tags":["tenant.transfer"],"summary":"Transfer Library","description":"Move a library out of the path (source) account to a target the caller manages (ADR-2026-05-29-library-ownership-transfer-and-break-glass-read-path).","operationId":"transfer_library_v1_accounts__handle__libraries__library_slug__transfer_post","parameters":[{"name":"library_slug","in":"path","required":true,"schema":{"type":"string","title":"Library Slug"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransferLibraryRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_TransferLibraryResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/libraries/{library_slug}/memories":{"get":{"tags":["tenant.storage"],"summary":"List Library Memories","description":"List the memories in one addressed library (newest first).\n\nFiltered and paginated (with a ``meta.total`` count and one batched\npage-link fetch); the *scope* is the URL's library — resolved and read-authorized by\n:data:`~app.services.tenancy.GuestOkLibraryCtx` (anonymous / non-member / unreadable /\nun-surfaced collapsed to the uniform 404 there) — **not** the session. A guest\nreads it at the share tier: no redacted rows, no writer, and filtering by\nwriter (``agent_id``, ``session_id``) is refused, since a match would name one.\nA guest's ``primary_page_id`` filter must name a page they can read, else the\nuniform 404: a count over a private page's memories would confirm it exists.","operationId":"list_library_memories_v1_accounts__handle__libraries__library_slug__memories_get","parameters":[{"name":"library_slug","in":"path","required":true,"schema":{"type":"string","title":"Library Slug"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}},{"name":"agent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Id"}},{"name":"session_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"primary_page_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Page Id"}},{"name":"source_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Type"}},{"name":"flagged","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Flagged"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":100000,"minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_MemoryListItem__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/libraries/{library_slug}/memories/{memory_id}":{"get":{"tags":["tenant.storage"],"summary":"Read Library Memory","description":"Read one memory by id within the addressed library.\n\nThe memory must live in the *addressed* library — the query is scoped to\n``lib_ctx.library`` only, so the URL's library segment is load-bearing and a\nmemory in a *different* readable library cannot be read through this address\n(uniform 404 on a miss). A guest reads it as the list gives it to them, and a\nredacted memory is a miss for them.","operationId":"read_library_memory_v1_accounts__handle__libraries__library_slug__memories__memory_id__get","parameters":[{"name":"memory_id","in":"path","required":true,"schema":{"type":"string","title":"Memory Id"}},{"name":"library_slug","in":"path","required":true,"schema":{"type":"string","title":"Library Slug"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_MemoryListItem_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/libraries/{library_slug}/memories/{memory_id}/update":{"post":{"tags":["tenant.storage"],"summary":"Update Library Memory","description":"Apply a lifecycle action to a memory in the addressed library\n(WRITE-gated mutation).\n\nSame body and the same :func:`retirement_service.retire` call as the MCP\n`update_memory` tool, so the two surfaces share one mechanism (ADR-2026-07-02-unified-retirement-lifecycle).\nThe memory must live in the *addressed* library —\nthe lookup is scoped to ``lib_ctx.library`` only, so the URL's library segment is\nload-bearing and a memory in a *different* readable library (or another account)\nis the uniform 404, never a mutation applied through the wrong door.\n\nThe write gate mirrors the addressed page writes in\n:mod:`app.routers.libraries.pages`: this is a mutation, so the caller must hold WRITE\non *that* library against the **already-resolved** ``lib_ctx.scope.writable_library_ids``\n— consuming the context scope (rather than a fresh ``permissions.check``) is what\nmakes a bearer agent access-narrowed out of write (ADR-2026-06-23-one-account-model-kind-is-policy-and-rendering) and a reader-only\nmember fail closed with the same uniform 404, never a 403. ``retirement_service``\nthen re-proves WRITE on the target itself over the same scope before mutating,\nand refuses a redaction with a 403 unless the caller stored the memory or holds\nDELETE on the library (ADR-2026-09-30-redacting-anothers-memory-or-document-takes-delete).","operationId":"update_library_memory_v1_accounts__handle__libraries__library_slug__memories__memory_id__update_post","parameters":[{"name":"memory_id","in":"path","required":true,"schema":{"type":"string","title":"Memory Id"}},{"name":"library_slug","in":"path","required":true,"schema":{"type":"string","title":"Library Slug"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateMemoryRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_UpdateMemoryResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/libraries/{library_slug}/documents":{"get":{"tags":["tenant.storage"],"summary":"List Library Documents","description":"List the documents in one addressed library (newest first).\n\nSame gating as the memories list\n(:data:`~app.services.tenancy.GuestOkLibraryCtx`), and the same share tier for\na guest: no redacted rows, no writer. Each row carries its extracted-memory\ncount (memories whose ``source_document_id`` is the document), computed in one\nGROUP BY rather than a count query per document.","operationId":"list_library_documents_v1_accounts__handle__libraries__library_slug__documents_get","parameters":[{"name":"library_slug","in":"path","required":true,"schema":{"type":"string","title":"Library Slug"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_DocumentListItem__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/libraries/{library_slug}/documents/{document_id}":{"get":{"tags":["tenant.storage"],"summary":"Read Library Document","description":"Read one document by id within the addressed library.\n\nThe document must live in the *addressed* library (the URL's library is\nauthoritative — a document in a different readable library is a uniform 404).\nThe detail carries the document body plus its extracted-memory ids. A guest\ngets no writer, and a redacted document is a miss for them.","operationId":"read_library_document_v1_accounts__handle__libraries__library_slug__documents__document_id__get","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"library_slug","in":"path","required":true,"schema":{"type":"string","title":"Library Slug"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_DocumentDetail_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/libraries":{"get":{"tags":["tenant.libraries"],"summary":"List Libraries","description":"Living libraries the caller can read or manage in the addressed account.\n\nAccount-scoped via :data:`~app.services.tenancy.TenantCtx` (anonymous /\nnon-member of the addressed account collapsed to the uniform 404 there).\nBounded by the caller's resolved scope (readable OR manage), ordered by slug —\na read, so it is not manage-gated.","operationId":"list_libraries_v1_accounts__handle__libraries_get","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_LibraryListItem__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}},"post":{"tags":["tenant.libraries"],"summary":"Create Library","description":"Create a shared library (manage only) and self-grant the creator full access.\n\nCreates the caller's collections (the edited defaults + any custom, one\nuniform shape) in the same request transaction.","operationId":"create_library_v1_accounts__handle__libraries_post","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateLibraryRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_LibraryDetail_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/libraries/{library_slug}":{"get":{"tags":["tenant.libraries"],"summary":"Get Library","description":"A single addressed library (read; resolved + read-authorized by ``ResolvedLibraryCtx``).","operationId":"get_library_v1_accounts__handle__libraries__library_slug__get","parameters":[{"name":"library_slug","in":"path","required":true,"schema":{"type":"string","title":"Library Slug"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_LibraryDetail_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}},"patch":{"tags":["tenant.libraries"],"summary":"Update Library","description":"Rename and/or relabel the addressed library (manage only).\n\nThe default library's slug, name and subtitle are system-managed: changing\none is a 400 (resending its current value is allowed).","operationId":"update_library_v1_accounts__handle__libraries__library_slug__patch","parameters":[{"name":"library_slug","in":"path","required":true,"schema":{"type":"string","title":"Library Slug"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateLibraryRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_LibraryDetail_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}},"delete":{"tags":["tenant.libraries"],"summary":"Delete Library","description":"Soft-delete the addressed library (manage only). The default cannot be deleted (400).","operationId":"delete_library_v1_accounts__handle__libraries__library_slug__delete","parameters":[{"name":"library_slug","in":"path","required":true,"schema":{"type":"string","title":"Library Slug"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_DeleteLibraryResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/libraries/{library_slug}/archive":{"post":{"tags":["tenant.libraries"],"summary":"Archive Library","description":"Archive the addressed library (manage only). The default cannot be archived (400).\n\nA reversible put-away (ADR-2026-07-07-library-archive-is-a-reversible-put-away-state): the library and its content leave\nevery access surface, but the rows survive for a future restore. Resolves the\nstill-live library through ``ResolvedLibraryCtx`` before archiving; a second\ncall 404s, since an archived library falls out of the read gate.","operationId":"archive_library_v1_accounts__handle__libraries__library_slug__archive_post","parameters":[{"name":"library_slug","in":"path","required":true,"schema":{"type":"string","title":"Library Slug"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_ArchiveLibraryResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/libraries/{library_slug}/access":{"get":{"tags":["tenant.libraries"],"summary":"List Grants","description":"The addressed library's access grants (manage only).","operationId":"list_grants_v1_accounts__handle__libraries__library_slug__access_get","parameters":[{"name":"library_slug","in":"path","required":true,"schema":{"type":"string","title":"Library Slug"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_GrantItem__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}},"put":{"tags":["tenant.libraries"],"summary":"Set Grant","description":"Create or update the grant for a (team|member) — preset or explicit actions (manage only).","operationId":"set_grant_v1_accounts__handle__libraries__library_slug__access_put","parameters":[{"name":"library_slug","in":"path","required":true,"schema":{"type":"string","title":"Library Slug"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetGrantRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_GrantItem_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/libraries/{library_slug}/readers":{"get":{"tags":["tenant.libraries"],"summary":"List Readers","description":"Who reads the addressed library, for anyone who reads it: names and edit\nrights only (ADR-2026-11-12-library-readers-see-who-reads-their-library-and-seats-see-team-names).\n\nThe resolved library context already 404s a caller who cannot read it.","operationId":"list_readers_v1_accounts__handle__libraries__library_slug__readers_get","parameters":[{"name":"library_slug","in":"path","required":true,"schema":{"type":"string","title":"Library Slug"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_LibraryReaders_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/libraries/{library_slug}/access/{grant_id}":{"delete":{"tags":["tenant.libraries"],"summary":"Revoke Grant","description":"Revoke a grant on the addressed library (manage only).","operationId":"revoke_grant_v1_accounts__handle__libraries__library_slug__access__grant_id__delete","parameters":[{"name":"grant_id","in":"path","required":true,"schema":{"type":"string","title":"Grant Id"}},{"name":"library_slug","in":"path","required":true,"schema":{"type":"string","title":"Library Slug"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_RevokeGrantResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/libraries/{library_slug}/collections":{"get":{"tags":["tenant.libraries"],"summary":"List Page Types","description":"The addressed library's page types, in nav order (read; library is read-authorized).","operationId":"list_page_types_v1_accounts__handle__libraries__library_slug__collections_get","parameters":[{"name":"library_slug","in":"path","required":true,"schema":{"type":"string","title":"Library Slug"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_PageTypeSummary__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}},"post":{"tags":["tenant.libraries"],"summary":"Create Page Type","description":"Define a new page type in the addressed library (manage only).","operationId":"create_page_type_v1_accounts__handle__libraries__library_slug__collections_post","parameters":[{"name":"library_slug","in":"path","required":true,"schema":{"type":"string","title":"Library Slug"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePageTypeRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_PageTypeSummary_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/libraries/{library_slug}/collections/{type_slug}/prompts":{"get":{"tags":["tenant.libraries"],"summary":"List Collection Prompts","description":"A collection's onboarding prompts, in display order (members only).\n\nADR-2026-09-23-collection-onboarding-prompts-are-stored-per-collection: the\nfirst read seeds the defaults, so this read can write. The library context\n404s anonymous and non-member callers; an unknown or deleted collection is\na 404 too.","operationId":"list_collection_prompts_v1_accounts__handle__libraries__library_slug__collections__type_slug__prompts_get","parameters":[{"name":"type_slug","in":"path","required":true,"schema":{"type":"string","title":"Type Slug"}},{"name":"library_slug","in":"path","required":true,"schema":{"type":"string","title":"Library Slug"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_CollectionPromptItem__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/libraries/{library_slug}/onboarding-prompts":{"get":{"tags":["tenant.libraries"],"summary":"List Library Onboarding Prompts","description":"The library's template or Brainstorm prompts, in collection order (members only).\n\nEmpty for a library made any other way: its collections show their default\nprompts on their own index instead.","operationId":"list_library_onboarding_prompts_v1_accounts__handle__libraries__library_slug__onboarding_prompts_get","parameters":[{"name":"library_slug","in":"path","required":true,"schema":{"type":"string","title":"Library Slug"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_LibraryOnboardingPromptItem__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/libraries/{library_slug}/collections/{type_slug}":{"patch":{"tags":["tenant.libraries"],"summary":"Update Page Type","description":"Relabel / re-describe / re-glyph a page type (manage only).\n\nThe slug is immutable identity (ADR-2026-05-30-library-defined-page-types); only the display fields change.","operationId":"update_page_type_v1_accounts__handle__libraries__library_slug__collections__type_slug__patch","parameters":[{"name":"type_slug","in":"path","required":true,"schema":{"type":"string","title":"Type Slug"}},{"name":"library_slug","in":"path","required":true,"schema":{"type":"string","title":"Library Slug"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePageTypeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_PageTypeSummary_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}},"delete":{"tags":["tenant.libraries"],"summary":"Delete Page Type","description":"Soft-delete a page type (manage only).\n\nExisting pages of the type keep resolving (type is derived from the page slug,\nADR-2026-05-30-library-defined-page-types); only new-page creation and the index label are affected.","operationId":"delete_page_type_v1_accounts__handle__libraries__library_slug__collections__type_slug__delete","parameters":[{"name":"type_slug","in":"path","required":true,"schema":{"type":"string","title":"Type Slug"}},{"name":"library_slug","in":"path","required":true,"schema":{"type":"string","title":"Library Slug"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_DeleteLibraryResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/libraries/{library_slug}/sharing":{"get":{"tags":["tenant.libraries"],"summary":"Get Library Sharing","description":"How many of the library's pages are public, and whether new ones will be.","operationId":"get_library_sharing_v1_accounts__handle__libraries__library_slug__sharing_get","parameters":[{"name":"library_slug","in":"path","required":true,"schema":{"type":"string","title":"Library Slug"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_ScopeSharingState_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}},"patch":{"tags":["tenant.libraries"],"summary":"Set Library Sharing","description":"Share every page in the library with Library members or the public.","operationId":"set_library_sharing_v1_accounts__handle__libraries__library_slug__sharing_patch","parameters":[{"name":"library_slug","in":"path","required":true,"schema":{"type":"string","title":"Library Slug"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetScopeSharingRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_ScopeSharingResult_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/libraries/{library_slug}/collections/{type_slug}/sharing":{"get":{"tags":["tenant.libraries"],"summary":"Get Collection Sharing","description":"How many of the collection's pages are public, and whether new ones will be.","operationId":"get_collection_sharing_v1_accounts__handle__libraries__library_slug__collections__type_slug__sharing_get","parameters":[{"name":"type_slug","in":"path","required":true,"schema":{"type":"string","title":"Type Slug"}},{"name":"library_slug","in":"path","required":true,"schema":{"type":"string","title":"Library Slug"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_ScopeSharingState_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}},"patch":{"tags":["tenant.libraries"],"summary":"Set Collection Sharing","description":"Share every page in the collection with Library members or the public.\n\nLibrary members is a 409 while the library makes new pages public.","operationId":"set_collection_sharing_v1_accounts__handle__libraries__library_slug__collections__type_slug__sharing_patch","parameters":[{"name":"type_slug","in":"path","required":true,"schema":{"type":"string","title":"Type Slug"}},{"name":"library_slug","in":"path","required":true,"schema":{"type":"string","title":"Library Slug"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetScopeSharingRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_ScopeSharingResult_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/libraries/{library_slug}/guests":{"get":{"tags":["tenant.library_guests"],"summary":"List Guests","description":"The library's guests and the policy bounding them (``share`` holders only).","operationId":"list_guests_v1_accounts__handle__libraries__library_slug__guests_get","parameters":[{"name":"library_slug","in":"path","required":true,"schema":{"type":"string","title":"Library Slug"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_GuestList_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}},"post":{"tags":["tenant.library_guests"],"summary":"Add Guest","description":"Share the library with a person outside the account, by handle, as a Viewer\nor a Collaborator. Sharing again with another role changes it. A new share is\npending until the person accepts it; they are emailed to say it is waiting.","operationId":"add_guest_v1_accounts__handle__libraries__library_slug__guests_post","parameters":[{"name":"library_slug","in":"path","required":true,"schema":{"type":"string","title":"Library Slug"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddGuestRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_GuestItem_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/libraries/{library_slug}/guests/invitations":{"post":{"tags":["tenant.library_guests"],"summary":"Invite Guest","description":"Invite a person outside the account to the library by email, as a Viewer or\na Collaborator. Accepting makes them a guest; it gives them no seat.","operationId":"invite_guest_v1_accounts__handle__libraries__library_slug__guests_invitations_post","parameters":[{"name":"library_slug","in":"path","required":true,"schema":{"type":"string","title":"Library Slug"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteGuestRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_GuestInvitationItem_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/libraries/{library_slug}/guests/invitations/{invitation_id}":{"delete":{"tags":["tenant.library_guests"],"summary":"Revoke Guest Invitation","description":"Revoke a pending invitation to the library; its link stops working.","operationId":"revoke_guest_invitation_v1_accounts__handle__libraries__library_slug__guests_invitations__invitation_id__delete","parameters":[{"name":"invitation_id","in":"path","required":true,"schema":{"type":"string","title":"Invitation Id"}},{"name":"library_slug","in":"path","required":true,"schema":{"type":"string","title":"Library Slug"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_RevokeInvitationResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/libraries/{library_slug}/guests/{grant_id}":{"delete":{"tags":["tenant.library_guests"],"summary":"Remove Guest","description":"Stop sharing the library with a guest. The grant row stays as the record.","operationId":"remove_guest_v1_accounts__handle__libraries__library_slug__guests__grant_id__delete","parameters":[{"name":"grant_id","in":"path","required":true,"schema":{"type":"string","title":"Grant Id"}},{"name":"library_slug","in":"path","required":true,"schema":{"type":"string","title":"Library Slug"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_RevokeGuestResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/libraries/{library_slug}/map":{"get":{"tags":["tenant.map"],"summary":"Library Map","description":"The addressed library's spatial memory map, filtered to what the viewer may read.\n\nThe library is the URL's, already resolved and read-authorized by\n:data:`~app.services.tenancy.ResolvedLibraryCtx` (every miss is the uniform 404 there,\na transferred library 301s). The projection geometry is fit over all points\nregardless.","operationId":"library_map_v1_accounts__handle__libraries__library_slug__map_get","parameters":[{"name":"library_slug","in":"path","required":true,"schema":{"type":"string","title":"Library Slug"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}},{"name":"dims","in":"query","required":false,"schema":{"type":"integer","maximum":3,"minimum":2,"default":2,"title":"Dims"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_MapResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/libraries/{library_slug}/suggestions/{suggestion_id}":{"get":{"tags":["library-suggestions"],"summary":"Get Collection Changes Suggestion","description":"The changes still to make, beside each collection as it is now.","operationId":"get_collection_changes_suggestion_v1_accounts__handle__libraries__library_slug__suggestions__suggestion_id__get","parameters":[{"name":"suggestion_id","in":"path","required":true,"schema":{"type":"string","title":"Suggestion Id"}},{"name":"library_slug","in":"path","required":true,"schema":{"type":"string","title":"Library Slug"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_LibrarySuggestionOut_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}},"patch":{"tags":["library-suggestions"],"summary":"Save Collection Changes Draft","description":"Store the person's edits to the listed changes, by key: their text, and\nwhether each is skipped. 409 once the suggestion is no longer open.","operationId":"save_collection_changes_draft_v1_accounts__handle__libraries__library_slug__suggestions__suggestion_id__patch","parameters":[{"name":"suggestion_id","in":"path","required":true,"schema":{"type":"string","title":"Suggestion Id"}},{"name":"library_slug","in":"path","required":true,"schema":{"type":"string","title":"Library Slug"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveChangesDraftRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_LibrarySuggestionOut_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/libraries/{library_slug}/suggestions/{suggestion_id}/revise":{"post":{"tags":["library-suggestions"],"summary":"Revise Collection Changes Suggestion","description":"\"Change something\": Seaglass applies the person's request to the whole\nlist of changes. The library is not touched. 409 once the suggestion is no\nlonger open, or when it was edited while the request ran.","operationId":"revise_collection_changes_suggestion_v1_accounts__handle__libraries__library_slug__suggestions__suggestion_id__revise_post","parameters":[{"name":"suggestion_id","in":"path","required":true,"schema":{"type":"string","title":"Suggestion Id"}},{"name":"library_slug","in":"path","required":true,"schema":{"type":"string","title":"Library Slug"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviseSuggestionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_ReviseSuggestionResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/libraries/{library_slug}/suggestions/{suggestion_id}/apply":{"post":{"tags":["library-suggestions"],"summary":"Apply Collection Changes Suggestion","description":"Make every change not skipped, all or none. 409 once the suggestion is\nno longer open, or when nothing is left to save.","operationId":"apply_collection_changes_suggestion_v1_accounts__handle__libraries__library_slug__suggestions__suggestion_id__apply_post","parameters":[{"name":"suggestion_id","in":"path","required":true,"schema":{"type":"string","title":"Suggestion Id"}},{"name":"library_slug","in":"path","required":true,"schema":{"type":"string","title":"Library Slug"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_ApplySuggestionResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/accounts/{handle}/libraries/{library_slug}/suggestions/{suggestion_id}/dismiss":{"post":{"tags":["library-suggestions"],"summary":"Dismiss Collection Changes Suggestion","description":"Dismiss the list. 409 once it is no longer open.","operationId":"dismiss_collection_changes_suggestion_v1_accounts__handle__libraries__library_slug__suggestions__suggestion_id__dismiss_post","parameters":[{"name":"suggestion_id","in":"path","required":true,"schema":{"type":"string","title":"Suggestion Id"}},{"name":"library_slug","in":"path","required":true,"schema":{"type":"string","title":"Library Slug"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_LibrarySuggestionOut_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/sessions/transcript/append":{"post":{"tags":["transcripts"],"summary":"Append Transcript","description":"Append complete JSONL lines at the server-confirmed byte offset.","operationId":"append_transcript_v1_sessions_transcript_append_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranscriptAppendRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranscriptAppendResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranscriptAppendConflict"}}}},"413":{"description":"Content Too Large","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/TranscriptAppendTooLarge"},{"$ref":"#/components/schemas/ErrorEnvelope"}],"title":"Response 413 Append Transcript V1 Sessions Transcript Append Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/sessions/transcript/reset":{"post":{"tags":["transcripts"],"summary":"Reset Transcript","description":"Empty the caller's transcript after its file was rewritten, so the client\ncan send it again from offset 0. Absent → reset=false. Refused, like an\nappend, while capture is off for the install: nothing could be resent.","operationId":"reset_transcript_v1_sessions_transcript_reset_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranscriptResetRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranscriptResetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/sessions/transcript/finalize":{"post":{"tags":["transcripts"],"summary":"Finalize Transcript","description":"Mark the caller's transcript final. Idempotent; absent → finalized=false.","operationId":"finalize_transcript_v1_sessions_transcript_finalize_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranscriptFinalizeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranscriptFinalizeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/sessions/transcript/config":{"get":{"tags":["transcripts"],"summary":"Transcript Config","description":"Effective capture setting for the calling agent (ADR-2026-06-12-incremental-transcript-upload-via-plugin-hooks):\nthe agent row over its user's personal-account profile.\n\nThe SessionStart hook reads this once and writes\n``SEAGLASS_TRANSCRIPT_CAPTURE`` into the session env; the upload hooks\nno-op unless it's ``on``.","operationId":"transcript_config_v1_sessions_transcript_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranscriptConfigResponse"}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/voice/token":{"post":{"tags":["voice"],"summary":"Mint Voice Token","description":"A short-lived Deepgram token, or the disabled sentinel.","operationId":"mint_voice_token_v1_voice_token_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_VoiceTokenResponse_"}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/documents/upload":{"post":{"tags":["documents"],"summary":"Upload Document","description":"Accept a multipart document upload and persist via `document_service`.\n\nReturns `{document_id, primary_page_id, extraction_queued, deduplicated,\n...}` on success. 409 on page-resolution ambiguity (the caller is expected\nto clarify and retry, same as the MCP tool path).","operationId":"upload_document_v1_documents_upload_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_document_v1_documents_upload_post"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentUploadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/sources/{provider}/callback":{"get":{"tags":["sources"],"summary":"Callback","description":"Exchange the code, store the encrypted connection, land back on the account's sources page.\n\nThe account travels in the state cookie set by the addressed ``start``; the\n``nonce`` half binds the provider's echoed ``state`` to this dance, and the\nmember is re-derived from the authenticated session user against that account\n— so the connection can only land in an account the caller already belongs to.","operationId":"callback_v1_sources__provider__callback_get","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}},{"name":"code","in":"query","required":false,"schema":{"type":"string","default":"","title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"type":"string","default":"","title":"State"}}],"responses":{"303":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/sources/connections/{connection_id}/import":{"post":{"tags":["sources"],"summary":"Import Document","operationId":"import_document_v1_sources_connections__connection_id__import_post","parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","title":"Connection Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_ImportView_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/sources/connections/{connection_id}/import-manual":{"post":{"tags":["sources"],"summary":"Import Manual Document","operationId":"import_manual_document_v1_sources_connections__connection_id__import_manual_post","parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","title":"Connection Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportManualRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_ImportView_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/source-documents/{source_document_id}/resync":{"post":{"tags":["sources"],"summary":"Resync Document","operationId":"resync_document_v1_source_documents__source_document_id__resync_post","parameters":[{"name":"source_document_id","in":"path","required":true,"schema":{"type":"string","title":"Source Document Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_ResyncResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/sessions/end":{"post":{"tags":["sessions"],"summary":"End Session Endpoint","description":"Close the open session for the caller matching ``client_session_id``.\n\nIdempotent: returns ``{ended: false}`` when nothing matched (already\nclosed, never existed, or belonged to another agent).","operationId":"end_session_endpoint_v1_sessions_end_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EndSessionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EndSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/overview":{"get":{"tags":["system"],"summary":"Overview","description":"Whole-platform health snapshot — counts, queue health, worker, cost, growth.","operationId":"overview_v1_system_overview_get","parameters":[{"name":"usage_days","in":"query","required":false,"schema":{"type":"integer","maximum":90,"minimum":1,"default":7,"title":"Usage Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_OverviewSnapshot_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/system":{"get":{"tags":["system"],"summary":"System","description":"Read-only deployment configuration: env, models, worker, feature flags.","operationId":"system_v1_system_system_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_SystemInfo_"}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/prompts":{"get":{"tags":["system"],"summary":"Prompt Map","description":"Every prompt surface at once — the map page, and the source for each section.","operationId":"prompt_map_v1_system_prompts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_PromptMap_"}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/prompts/synthesis":{"get":{"tags":["system"],"summary":"Synthesis Prompts","description":"The server-side synthesis prompts on their own, for the section page.","operationId":"synthesis_prompts_v1_system_prompts_synthesis_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_SynthesisPromptView__"}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/prompts/synthesis/{job}/sample":{"get":{"tags":["system"],"summary":"Synthesis Sample","description":"One job's user prompt rendered from synthetic fixtures.\n\n``job`` selects the prompt, never a page: there is no id to pass, so this\ncannot be pointed at tenant data.","operationId":"synthesis_sample_v1_system_prompts_synthesis__job__sample_get","parameters":[{"name":"job","in":"path","required":true,"schema":{"type":"string","title":"Job"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_SampleRender_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/prompt-performance":{"get":{"tags":["system"],"summary":"Prompt Performance","description":"Every server-side prompt's calls over the trailing ``days``, by version.","operationId":"prompt_performance_v1_system_prompt_performance_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":7,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_PromptPerformance_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/library-templates":{"get":{"tags":["system"],"summary":"Get Catalog","operationId":"get_catalog_v1_system_library_templates_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_CatalogOverview_"}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/library-templates/{template_id}":{"get":{"tags":["system"],"summary":"Get Template","operationId":"get_template_v1_system_library_templates__template_id__get","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_TemplateDetailOut_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/brainstorm-runs":{"get":{"tags":["system-brainstorm-runs"],"summary":"List Runs","description":"Runs, newest first. Metadata only: opening one is the audited read.","operationId":"list_runs_v1_system_brainstorm_runs_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":100000,"minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_OpsBrainstormRunListItem__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/brainstorm-runs/{run_id}":{"get":{"tags":["system-brainstorm-runs"],"summary":"Get Run","description":"One run in full. Writes the audit row before returning any of its text.","operationId":"get_run_v1_system_brainstorm_runs__run_id__get","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_OpsBrainstormRunDetail_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/users/signup-tags":{"get":{"tags":["system-users"],"summary":"List Signup Tags","description":"Every cohort tag in use, with its signup count, biggest first.\n\nThe whole point of a free-form tag\n(ADR-2026-08-27-signup-tags-are-a-url-carried-cohort-stamp) is that using a\nnew one costs nothing; the cost is that a typo silently becomes its own\ncohort. This rollup is the mitigation — and it is what an operator reads to\nanswer \"how many people came in through the founding link\".","operationId":"list_signup_tags_v1_system_users_signup_tags_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_OpsSignupTagCount__"}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/users":{"get":{"tags":["system-users"],"summary":"List Users","operationId":"list_users_v1_system_users_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":100000,"minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_OpsUserListItem__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/users/{user_id}":{"get":{"tags":["system-users"],"summary":"Get User","operationId":"get_user_v1_system_users__user_id__get","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_OpsUserDetail_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}},"patch":{"tags":["system-users"],"summary":"Set Superuser","operationId":"set_superuser_v1_system_users__user_id__patch","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetSuperuserRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_OpsUserDetail_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/users/{user_id}/reset-password":{"post":{"tags":["system-users"],"summary":"Reset Password","operationId":"reset_password_v1_system_users__user_id__reset_password_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_OpsResetPasswordResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/users/{user_id}/revoke-sessions":{"post":{"tags":["system-users"],"summary":"Revoke Sessions","operationId":"revoke_sessions_v1_system_users__user_id__revoke_sessions_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_RevokeSessionsResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/users/{user_id}/email":{"post":{"tags":["system-users"],"summary":"Send Email","description":"Email the user a subject and plain-text body the operator wrote; audited\n(ADR-2026-11-12-an-operator-may-email-any-user-a-plain-text-message-from-the-console).\n\n``status`` reports the tracked send: ``suppressed`` when earlier mail to the\naddress bounced or was marked spam, ``failed`` when the provider refused it.","operationId":"send_email_v1_system_users__user_id__email_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendUserEmailRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_SendUserEmailResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/people/new":{"get":{"tags":["system-people"],"summary":"New Users","operationId":"new_users_v1_system_people_new_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":30,"minimum":1,"default":14,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_OpsNewUsers_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/people/active":{"get":{"tags":["system-people"],"summary":"Active Users","operationId":"active_users_v1_system_people_active_get","parameters":[{"name":"near","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Near"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":100000,"minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_OpsActiveUsers_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/people/agent-days":{"get":{"tags":["system-people"],"summary":"Agent Days","operationId":"agent_days_v1_system_people_agent_days_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_OpsAgentDay__"}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/agents":{"get":{"tags":["system-agents"],"summary":"List Agents","description":"Every user's agent, most recently active first.","operationId":"list_agents_v1_system_agents_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Q"}},{"name":"client_kind","in":"query","required":false,"schema":{"anyOf":[{"enum":["claude-code","claude-desktop","openclaw","codex","cursor","gemini-cli","antigravity","chatgpt","gemini","muse","hermes","perplexity","other","seaglass-cli","seaglass-system"],"type":"string"},{"type":"null"}],"title":"Client Kind"}},{"name":"activity","in":"query","required":false,"schema":{"anyOf":[{"enum":["24h","7d","30d","idle","never"],"type":"string"},{"type":"null"}],"title":"Activity"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":100000,"minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_OpsAgentListItem__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/agents/summary":{"get":{"tags":["system-agents"],"summary":"Agent Summary","description":"The platform-wide rollup the page's header strip shows.","operationId":"agent_summary_v1_system_agents_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_OpsAgentSummary_"}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/agents/{agent_id}":{"get":{"tags":["system-agents"],"summary":"Get Agent","description":"One agent: its links, restrictions as counts, live tokens and recent chats.","operationId":"get_agent_v1_system_agents__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":{"$ref":"#/components/schemas/Envelope_OpsAgentDetail_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/accounts":{"get":{"tags":["system-accounts"],"summary":"List Accounts","operationId":"list_accounts_v1_system_accounts_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"}},{"name":"plan","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan"}},{"name":"comped","in":"query","required":false,"schema":{"type":"boolean","description":"Only accounts with a comp set.","default":false,"title":"Comped"},"description":"Only accounts with a comp set."},{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":100000,"minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_OpsAccountListItem__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/accounts/{account_id}":{"get":{"tags":["system-accounts"],"summary":"Get Account","operationId":"get_account_v1_system_accounts__account_id__get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_OpsAccountDetail_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}},"patch":{"tags":["system-accounts"],"summary":"Update Account","operationId":"update_account_v1_system_accounts__account_id__patch","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAccountRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_OpsAccountDetail_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/accounts/{account_id}/credit-grants":{"post":{"tags":["system-accounts"],"summary":"Issue Credit Grant","description":"Grant usage credit to an account by hand (audited), and resume its parked work.","operationId":"issue_credit_grant_v1_system_accounts__account_id__credit_grants_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssueCreditGrantRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_OpsAccountDetail_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/accounts/{account_id}/comp":{"put":{"tags":["system-accounts"],"summary":"Set Comp","description":"Comp a personal account, or change its comp's reason or end date (audited).\nIt gets Individual Pro's included credit each calendar month no Stripe month\ncovers, starting now when that is due; nothing is charged.","operationId":"set_comp_v1_system_accounts__account_id__comp_put","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetAccountCompRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_OpsAccountDetail_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/accounts/{account_id}/comp/clear":{"post":{"tags":["system-accounts"],"summary":"Clear Comp","description":"End an account's comp now (audited): this month's comp credit ends with\nit, and the account is whatever its Stripe state says.","operationId":"clear_comp_v1_system_accounts__account_id__comp_clear_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClearAccountCompRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_OpsAccountDetail_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/accounts/{account_id}/credit-grants/{grant_id}/withdraw":{"post":{"tags":["system-accounts"],"summary":"Withdraw Credit Grant","description":"Take a top-up grant back (audited), for a refund made in Stripe by hand.\nWhat it gave becomes overdraft; nothing here calls Stripe.","operationId":"withdraw_credit_grant_v1_system_accounts__account_id__credit_grants__grant_id__withdraw_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"grant_id","in":"path","required":true,"schema":{"type":"string","title":"Grant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WithdrawCreditGrantRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_OpsAccountDetail_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/accounts/{account_id}/credit-refund":{"post":{"tags":["system-accounts"],"summary":"Refund Unspent Credit","description":"Refund a suspended account's unspent bought credit through Stripe\n(audited), when Seaglass closes the account or stops offering the Service.\nRefused (400), recording nothing, unless the account is suspended, has\ncredit to refund and at least one refund goes through; a top-up whose\nrefund did not go through stays live and is named in ``failures``.","operationId":"refund_unspent_credit_v1_system_accounts__account_id__credit_refund_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefundUnspentCreditRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_OpsCreditRefundResult_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/accounts/{account_id}/billing/resync":{"post":{"tags":["system-accounts"],"summary":"Resync Billing","description":"Re-read the account's subscription from Stripe (audited): for an event\nthat never arrived. The read runs after the response; reload to see it.","operationId":"resync_billing_v1_system_accounts__account_id__billing_resync_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResyncBillingRequest"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_OpsBillingResync_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/accounts/{account_id}/billing/test-clock-trial":{"post":{"tags":["system-accounts"],"summary":"Test Clock Trial","description":"Recreate a personal account's no-card trial on a new Stripe test clock\n(audited), for the billing test cycle. Refused (409) in Stripe live mode,\nin production, with billing off, or for an organization.","operationId":"test_clock_trial_v1_system_accounts__account_id__billing_test_clock_trial_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_OpsTestClockTrial_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/libraries":{"get":{"tags":["system-libraries"],"summary":"List Libraries","operationId":"list_libraries_v1_system_libraries_get","parameters":[{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"}},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"}},{"name":"include_deleted","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Deleted"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":100000,"minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_OpsLibraryListItem__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/libraries/structure":{"get":{"tags":["system-libraries"],"summary":"Library Structure Summary","description":"How live libraries are built, summed across every account: origins,\ncollection counts, unused collections, unfiled memories, and how template\ncollections fared. Names no library\n(ADR-2026-11-11-the-ops-console-shows-how-a-library-is-built-and-a-library-records-its-origin).","operationId":"library_structure_summary_v1_system_libraries_structure_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_OpsLibraryStructureSummary_"}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/libraries/{library_id}":{"get":{"tags":["system-libraries"],"summary":"Get Library Structure","description":"One library's structure: its collections by name with counts and their\nchanges from the template, and its page tree's shape. Never a description,\nprompt or page title. A deleted library still reads, as the list shows it.","operationId":"get_library_structure_v1_system_libraries__library_id__get","parameters":[{"name":"library_id","in":"path","required":true,"schema":{"type":"string","title":"Library Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_OpsLibraryStructure_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/libraries/{library_id}/reads":{"get":{"tags":["system-libraries"],"summary":"Get Library Reads","description":"A library's page reads per UTC day and per page over the last 30 days,\nsplit into public, team and agent. Counts only: never who read, never a\npage title\n(ADR-2026-11-18-page-reads-are-counted-per-day-in-three-channels-public-team-and-agent).","operationId":"get_library_reads_v1_system_libraries__library_id__reads_get","parameters":[{"name":"library_id","in":"path","required":true,"schema":{"type":"string","title":"Library Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_OpsLibraryReads_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/libraries/{library_id}/rebuild-embeddings":{"post":{"tags":["system-libraries"],"summary":"Rebuild Embeddings","description":"Queue a fresh embedding-set build for one library (ADR-2026-06-12-embeddings-are-platform-infrastructure-versioned-vector-sets).\n\nMetadata-plane mutation: it touches derived vectors only, never content.\nThe build runs on the worker (no LLM key needed) and atomically swaps the\nactive set; the library map refreshes with it (ADR-2026-06-12-library-map-projection-sets). Audited like\nevery operator mutation (ADR-2026-05-31-platform-operations-console-and-superuser-role).","operationId":"rebuild_embeddings_v1_system_libraries__library_id__rebuild_embeddings_post","parameters":[{"name":"library_id","in":"path","required":true,"schema":{"type":"string","title":"Library Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_JobActionResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/jobs":{"get":{"tags":["system-jobs"],"summary":"List Jobs","operationId":"list_jobs_v1_system_jobs_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":100000,"minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_OpsJobListItem__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/jobs/retry-failed":{"post":{"tags":["system-jobs"],"summary":"Retry Failed","description":"Re-queue every failed job in one shot.","operationId":"retry_failed_v1_system_jobs_retry_failed_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_RetryFailedResponse_"}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/jobs/health":{"get":{"tags":["system-jobs"],"summary":"Queue Health","description":"The queue at a glance: state counts and ages, 24h throughput by kind, the\npage-synthesis mix by reason and outcome, and per-kind timings.","operationId":"queue_health_v1_system_jobs_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_QueueHealthResponse_"}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/jobs/{job_id}":{"get":{"tags":["system-jobs"],"summary":"Get Job","operationId":"get_job_v1_system_jobs__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_OpsJobDetail_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/jobs/{job_id}/retry":{"post":{"tags":["system-jobs"],"summary":"Retry Job","operationId":"retry_job_v1_system_jobs__job_id__retry_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_JobActionResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/page-quality":{"get":{"tags":["system-page-quality"],"summary":"Page Quality Report","operationId":"page_quality_report_v1_system_page_quality_get","parameters":[{"name":"library_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Library Id"}},{"name":"collection","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"collection slug, e.g. projects","title":"Collection"},"description":"collection slug, e.g. projects"},{"name":"weeks","in":"query","required":false,"schema":{"type":"integer","maximum":52,"minimum":1,"default":12,"title":"Weeks"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_PageQualityReport_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/page-quality/pages":{"get":{"tags":["system-page-quality"],"summary":"Page Quality Pages","operationId":"page_quality_pages_v1_system_page_quality_pages_get","parameters":[{"name":"library_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Library Id"}},{"name":"collection","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Collection"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":200,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_PageQualityPages_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/synthesis-health":{"get":{"tags":["system-synthesis-health"],"summary":"Health Summary","operationId":"health_summary_v1_system_synthesis_health_get","parameters":[{"name":"library_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Library Id"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_SynthesisHealthSummary_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/synthesis-health/input-size":{"get":{"tags":["system-synthesis-health"],"summary":"Input Size","description":"How close page-synthesis prompts run to the input budget, estimated for\nevery page and as recorded by recent runs.","operationId":"input_size_v1_system_synthesis_health_input_size_get","parameters":[{"name":"library_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Library Id"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":90,"minimum":1,"default":7,"title":"Days"}},{"name":"largest","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Largest"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_InputSizeReport_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/synthesis-health/pages":{"get":{"tags":["system-synthesis-health"],"summary":"List Pages","description":"Pages in a bucket (every bucket when none is named), worst first, then\nthe longest flagged.","operationId":"list_pages_v1_system_synthesis_health_pages_get","parameters":[{"name":"library_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Library Id"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"}},{"name":"bucket","in":"query","required":false,"schema":{"anyOf":[{"enum":["broken","behind","low_quality"],"type":"string"},{"type":"null"}],"title":"Bucket"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":100000,"minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_SynthesisHealthPage__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/synthesis-health/pages/{page_id}/recover":{"post":{"tags":["system-synthesis-health"],"summary":"Recover Page","operationId":"recover_page_v1_system_synthesis_health_pages__page_id__recover_post","parameters":[{"name":"page_id","in":"path","required":true,"schema":{"type":"string","title":"Page Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_RecoverPageResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/synthesis-health/recover":{"post":{"tags":["system-synthesis-health"],"summary":"Recover Batch","operationId":"recover_batch_v1_system_synthesis_health_recover_post","parameters":[{"name":"library_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Library Id"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_RecoverBatchResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/traces":{"get":{"tags":["system-traces"],"summary":"List Traces","operationId":"list_traces_v1_system_traces_get","parameters":[{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"}},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Name"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":100000,"minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_OpsTraceListItem__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/traces/health":{"get":{"tags":["system-traces"],"summary":"Trace Health","description":"Totals, hourly activity and spend, spend by model, and per-operation cost\nand latency over the last 24 hours, for the health panel on /admin/traces.","operationId":"trace_health_v1_system_traces_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_TraceHealthResponse_"}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/traces/{trace_id}":{"get":{"tags":["system-traces"],"summary":"Get Trace","operationId":"get_trace_v1_system_traces__trace_id__get","parameters":[{"name":"trace_id","in":"path","required":true,"schema":{"type":"string","title":"Trace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_OpsTraceDetail_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/feedback":{"get":{"tags":["system-feedback"],"summary":"List Feedback","operationId":"list_feedback_v1_system_feedback_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"}},{"name":"severity","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Severity"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":100000,"minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_OpsFeedbackListItem__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/feedback/export":{"get":{"tags":["system-feedback"],"summary":"Export Feedback","description":"Every matching row in full, unpaginated: the console's copy-as-JSON export.","operationId":"export_feedback_v1_system_feedback_export_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_OpsFeedbackDetail__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/feedback/{feedback_id}":{"get":{"tags":["system-feedback"],"summary":"Get Feedback","operationId":"get_feedback_v1_system_feedback__feedback_id__get","parameters":[{"name":"feedback_id","in":"path","required":true,"schema":{"type":"string","title":"Feedback Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_OpsFeedbackDetail_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}},"patch":{"tags":["system-feedback"],"summary":"Update Feedback","operationId":"update_feedback_v1_system_feedback__feedback_id__patch","parameters":[{"name":"feedback_id","in":"path","required":true,"schema":{"type":"string","title":"Feedback Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateFeedbackRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_OpsFeedbackDetail_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/email/summary":{"get":{"tags":["system-email"],"summary":"Summary","description":"Delivery counts, rates and breakdowns over the last 7, 30 or 90 days.","operationId":"summary_v1_system_email_summary_get","parameters":[{"name":"window","in":"query","required":false,"schema":{"enum":["7d","30d","90d"],"type":"string","default":"7d","title":"Window"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_OpsEmailSummary_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/email/sends/search":{"post":{"tags":["system-email"],"summary":"Search Sends","description":"Sends matching the filters, newest first. A read, sent as a POST so an\naddress is never in a URL.","operationId":"search_sends_v1_system_email_sends_search_post","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":100000,"minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Per Page"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpsEmailSendSearch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_OpsEmailSend__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/email/sends/{send_id}":{"get":{"tags":["system-email"],"summary":"Get Send","description":"One send with its provider event timeline.","operationId":"get_send_v1_system_email_sends__send_id__get","parameters":[{"name":"send_id","in":"path","required":true,"schema":{"type":"string","title":"Send Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_OpsEmailSendDetail_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/email/suppressions":{"get":{"tags":["system-email"],"summary":"List Suppressions","description":"The suppression wall, newest first; lifted rows only when asked.","operationId":"list_suppressions_v1_system_email_suppressions_get","parameters":[{"name":"include_lifted","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Lifted"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":100000,"minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_OpsEmailSuppression__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/email/suppressions/{suppression_id}/lift":{"post":{"tags":["system-email"],"summary":"Lift Suppression","description":"Lift a bounce suppression, with a reason the audit log keeps. A\ncomplaint is refused (409), as is a row already lifted.","operationId":"lift_suppression_v1_system_email_suppressions__suppression_id__lift_post","parameters":[{"name":"suppression_id","in":"path","required":true,"schema":{"type":"string","title":"Suppression Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpsEmailSuppressionLift"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_OpsEmailSuppression_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/enterprise-inquiries":{"get":{"tags":["system-enterprise-inquiries"],"summary":"List Inquiries","description":"Every inquiry, newest first.","operationId":"list_inquiries_v1_system_enterprise_inquiries_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":100000,"minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_OpsEnterpriseInquiry__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/enterprise-inquiries/{inquiry_id}/handled":{"post":{"tags":["system-enterprise-inquiries"],"summary":"Mark Handled","description":"Stamp the inquiry handled. Marking a handled one again keeps the first stamp.","operationId":"mark_handled_v1_system_enterprise_inquiries__inquiry_id__handled_post","parameters":[{"name":"inquiry_id","in":"path","required":true,"schema":{"type":"string","title":"Inquiry Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_OpsEnterpriseInquiry_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/finance/monthly":{"get":{"tags":["system-finance"],"summary":"Monthly Report","description":"Deferred revenue, acquisition cost and gross margin for one calendar\nmonth (UTC). Subscription revenue is read from Stripe's paid invoices; 503\nwhen Stripe cannot be reached.","operationId":"monthly_report_v1_system_finance_monthly_get","parameters":[{"name":"month","in":"query","required":true,"schema":{"type":"string","pattern":"^20\\d{2}-(0[1-9]|1[0-2])$","description":"A calendar month in UTC, YYYY-MM, from 2000-01 to 2099-12.","title":"Month"},"description":"A calendar month in UTC, YYYY-MM, from 2000-01 to 2099-12."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_OpsFinanceReport_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/audit/actions":{"get":{"tags":["system-audit"],"summary":"List Actions","operationId":"list_actions_v1_system_audit_actions_get","parameters":[{"name":"action","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action"}},{"name":"actor_user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor User Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":100000,"minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_OpsAuditListItem__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/audit/break-glass":{"get":{"tags":["system-audit"],"summary":"List Break Glass","operationId":"list_break_glass_v1_system_audit_break_glass_get","parameters":[{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"}},{"name":"all_tenants","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"All Tenants"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":100000,"minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_BreakGlassListItem__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/settings/libraries":{"get":{"tags":["system-settings"],"summary":"List Library Settings","operationId":"list_library_settings_v1_system_settings_libraries_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":100000,"minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_OpsLibrarySettings__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/settings/libraries/{library_id}":{"patch":{"tags":["system-settings"],"summary":"Update Library Settings","operationId":"update_library_settings_v1_system_settings_libraries__library_id__patch","parameters":[{"name":"library_id","in":"path","required":true,"schema":{"type":"string","title":"Library Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateLibrarySettingsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_OpsLibrarySettings_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/waitlist":{"get":{"tags":["system-waitlist"],"summary":"List Waitlist","description":"Paged waitlist entries, survey answers and referrals included per row.\n\n``sort=referrals`` puts the rows that brought the most surveyed friends\nfirst (ADR-2026-11-03-waitlist-referrals-are-attribution-on-the-waitlist-row).\n``referred_by=member`` keeps the joins a member referred\n(ADR-2026-11-03-an-account-holders-referral-code-is-their-own-and-their-friends-still-join-the-waitlist).","operationId":"list_waitlist_v1_system_waitlist_get","parameters":[{"name":"status_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status Filter"}},{"name":"utm_source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Utm Source"}},{"name":"surveyed","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Surveyed"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"referred_by","in":"query","required":false,"schema":{"anyOf":[{"const":"member","type":"string"},{"type":"null"}],"title":"Referred By"}},{"name":"sort","in":"query","required":false,"schema":{"enum":["newest","referrals"],"type":"string","default":"newest","title":"Sort"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":100000,"minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_WaitlistSignupOut__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/waitlist/referrers":{"get":{"tags":["system-waitlist"],"summary":"List Referrers","description":"Every referrer, member or waitlister, with at least one join: how many\nfriends joined through them, finished the survey, and now have an account.\nMost joins first. Operator-only counts\n(ADR-2026-11-03-an-account-holders-referral-code-is-their-own-and-their-friends-still-join-the-waitlist).","operationId":"list_referrers_v1_system_waitlist_referrers_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":100000,"minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_WaitlistReferrerSummaryOut__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/waitlist/stats":{"get":{"tags":["system-waitlist"],"summary":"Stats","description":"Funnel counts for the admin header.","operationId":"stats_v1_system_waitlist_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_WaitlistStatsResponse_"}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/waitlist/{signup_id}/invite-draft":{"get":{"tags":["system-waitlist"],"summary":"Invite Draft","description":"The invite template this entry would be sent, for the editor to load\n(ADR-2026-11-09-the-waitlist-invite-is-one-founder-template-an-operator-may-edit-per-send).\nThe variant follows whether the address is owed the free month.","operationId":"invite_draft_v1_system_waitlist__signup_id__invite_draft_get","parameters":[{"name":"signup_id","in":"path","required":true,"schema":{"type":"string","title":"Signup Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_InviteDraftOut_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/waitlist/{signup_id}/invite-preview":{"post":{"tags":["system-waitlist"],"summary":"Invite Preview","description":"Render an edit as it would land, without minting a code or sending.\n\nThe signup link is a stand-in and the expiry is what a code minted now would\ncarry. An edit the invite could not send is a 400 naming what to fix, the\nsame check the send makes.","operationId":"invite_preview_v1_system_waitlist__signup_id__invite_preview_post","parameters":[{"name":"signup_id","in":"path","required":true,"schema":{"type":"string","title":"Signup Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteEdit"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_InvitePreviewOut_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/waitlist/invite":{"post":{"tags":["system-waitlist"],"summary":"Invite","description":"Mint + send invites for the given entries (single and batch alike).\n\nPer-row outcomes: a suppressed or provider-failed send is surfaced, not\nhidden (the code stays minted either way — the operator can re-invite,\nwhich rotates it). A row that can't be invited (redeemed/revoked/unknown)\nreports ``error`` and the batch continues.","operationId":"invite_v1_system_waitlist_invite_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchInviteRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_BatchInviteResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/waitlist/{signup_id}/revoke":{"post":{"tags":["system-waitlist"],"summary":"Revoke","description":"Revoke an entry (clears any live code); audited.","operationId":"revoke_v1_system_waitlist__signup_id__revoke_post","parameters":[{"name":"signup_id","in":"path","required":true,"schema":{"type":"string","title":"Signup Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_WaitlistSignupOut_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/ads/stats":{"get":{"tags":["system-ads"],"summary":"Stats","description":"Per-campaign signup funnel for the studio gallery + hub.","operationId":"stats_v1_system_ads_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_AdsFunnelStats_"}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/accounts/{account_id}/settings":{"get":{"tags":["system-account-settings"],"summary":"Get Settings Endpoint","operationId":"get_settings_endpoint_v1_system_accounts__account_id__settings_get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_SettingsResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}},"patch":{"tags":["system-account-settings"],"summary":"Patch Settings","operationId":"patch_settings_v1_system_accounts__account_id__settings_patch","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateLibrarySettingsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_SettingsResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/accounts/{account_id}/synthesis-jobs":{"get":{"tags":["system-account-synthesis-jobs"],"summary":"List Jobs","operationId":"list_jobs_v1_system_accounts__account_id__synthesis_jobs_get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":100000,"minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_JobListItem__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/accounts/{account_id}/synthesis-jobs/{job_id}":{"get":{"tags":["system-account-synthesis-jobs"],"summary":"Get Job","operationId":"get_job_v1_system_accounts__account_id__synthesis_jobs__job_id__get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_JobDetail_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/accounts/{account_id}/synthesis-jobs/{job_id}/retry":{"post":{"tags":["system-account-synthesis-jobs"],"summary":"Retry Job","description":"Reset a failed/completed job to queued + due-now so the worker re-runs it (audited).","operationId":"retry_job_v1_system_accounts__account_id__synthesis_jobs__job_id__retry_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_JobActionResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/accounts/{account_id}/traces/usage/summary":{"get":{"tags":["system-account-traces"],"summary":"Usage Summary","description":"The account's server LLM calls, tokens and cost over the trailing `days`.\n\nRead from the spend ledger, by UTC day, job kind, model and payer, so a\nworker job's calls count as much as a tool call's. Tokens cover only calls\nrecorded since the ledger kept them (`calls_without_tokens` says how many\ndo not).","operationId":"usage_summary_v1_system_accounts__account_id__traces_usage_summary_get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":90,"minimum":1,"default":7,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_UsageReport_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/accounts/{account_id}/reconsolidation":{"get":{"tags":["system-account-reconsolidation"],"summary":"List Reconsolidations","operationId":"list_reconsolidations_v1_system_accounts__account_id__reconsolidation_get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":100000,"minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_ReconsolidationListItem__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/accounts/{account_id}/reconsolidation/{recon_id}":{"get":{"tags":["system-account-reconsolidation"],"summary":"Get Reconsolidation","operationId":"get_reconsolidation_v1_system_accounts__account_id__reconsolidation__recon_id__get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"recon_id","in":"path","required":true,"schema":{"type":"string","title":"Recon Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_ReconsolidationDetail_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/accounts/{account_id}/sessions":{"get":{"tags":["system-account-sessions"],"summary":"List Sessions","operationId":"list_sessions_v1_system_accounts__account_id__sessions_get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"agent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":100000,"minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_SessionListItem__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/accounts/{account_id}/sessions/{session_id}":{"get":{"tags":["system-account-sessions"],"summary":"Get Session","operationId":"get_session_v1_system_accounts__account_id__sessions__session_id__get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_SessionDetail_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/users/{user_id}/activity":{"get":{"tags":["system-activity"],"summary":"User Activity","operationId":"user_activity_v1_system_users__user_id__activity_get","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":90,"minimum":1,"default":30,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_OpsActivity_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/accounts/{account_id}/activity":{"get":{"tags":["system-activity"],"summary":"Account Activity","operationId":"account_activity_v1_system_accounts__account_id__activity_get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":90,"minimum":1,"default":30,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_OpsActivity_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HTTPValidationError"},{"$ref":"#/components/schemas/ErrorEnvelope"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/v1/system/attention":{"get":{"tags":["system-activity"],"summary":"Attention","operationId":"attention_v1_system_attention_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_OpsAttention_"}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"$ref":"#/components/schemas/DetailError"}]}}}}}}},"/mcp":{"get":{"tags":["mcp"],"summary":"Mcp Listen Stream","description":"No server-initiated stream: `405`.","operationId":"mcp_listen_stream_mcp_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["mcp"],"summary":"Mcp Post","description":"Handle one MCP JSON-RPC request over Streamable HTTP.","operationId":"mcp_post_mcp_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"delete":{"tags":["mcp"],"summary":"Mcp Terminate","description":"Terminate the caller's own session.","operationId":"mcp_terminate_mcp_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"AcceptInvitationResponse":{"properties":{"kind":{"type":"string","enum":["seat","library","page"],"title":"Kind"},"account_id":{"type":"string","title":"Account Id"},"account_membership_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Membership Id"},"grant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Grant Id"},"library":{"anyOf":[{"$ref":"#/components/schemas/InvitationLibrary"},{"type":"null"}]},"page":{"anyOf":[{"$ref":"#/components/schemas/InvitationPage"},{"type":"null"}]},"status":{"type":"string","enum":["pending","accepted","declined","revoked"],"title":"Status"},"connected_agents":{"items":{"$ref":"#/components/schemas/ConnectedAgent"},"type":"array","title":"Connected Agents"},"agents_not_connected":{"items":{"$ref":"#/components/schemas/AgentNotConnected"},"type":"array","title":"Agents Not Connected"}},"type":"object","required":["kind","account_id","status","connected_agents","agents_not_connected"],"title":"AcceptInvitationResponse","description":"What accepting gave the user.\n\nA seat invitation: ``account_membership_id`` is the new (or existing) seat. A library\ninvitation: ``grant_id`` is the guest grant; when the user already held a\nseat in the account, ``grant_id`` is null and ``account_membership_id`` is that seat,\nsince a member reaches the library as a member. A page invitation:\n``grant_id`` is the page share, and ``account_membership_id`` is the\ncaller's seat when they hold one in the page's account."},"AcceptShareResponse":{"properties":{"grant_id":{"type":"string","title":"Grant Id"},"object_kind":{"type":"string","enum":["library","page"],"title":"Object Kind"},"account_handle":{"type":"string","title":"Account Handle"},"library_slug":{"type":"string","title":"Library Slug"},"page_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Slug"},"connected_agents":{"items":{"$ref":"#/components/schemas/ConnectedAgent"},"type":"array","title":"Connected Agents"},"agents_not_connected":{"items":{"$ref":"#/components/schemas/AgentNotConnected"},"type":"array","title":"Agents Not Connected"}},"type":"object","required":["grant_id","object_kind","account_handle","library_slug","connected_agents","agents_not_connected"],"title":"AcceptShareResponse"},"AcceptTermsRequest":{"properties":{"accepted_terms":{"type":"boolean","title":"Accepted Terms","default":false}},"type":"object","title":"AcceptTermsRequest","description":"The signed-in acceptance interstitial's one checkbox."},"AcceptTermsResponse":{"properties":{"terms_version":{"type":"string","title":"Terms Version"},"privacy_version":{"type":"string","title":"Privacy Version"}},"type":"object","required":["terms_version","privacy_version"],"title":"AcceptTermsResponse"},"AccountAgentDetail":{"properties":{"agent_id":{"type":"string","title":"Agent Id"},"display_name":{"type":"string","title":"Display Name"},"client_kind":{"type":"string","enum":["claude-code","claude-desktop","openclaw","codex","cursor","gemini-cli","antigravity","chatgpt","gemini","muse","hermes","perplexity","other","seaglass-cli","seaglass-system"],"title":"Client Kind"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"last_used_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Used At"},"session_count":{"type":"integer","title":"Session Count","default":0},"last_activity_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Activity At"},"plugin_installed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Plugin Installed"},"plugin_reported_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Plugin Reported At"},"link":{"anyOf":[{"$ref":"#/components/schemas/AgentLinkDetail"},{"type":"null"}]},"restrictions":{"items":{"$ref":"#/components/schemas/AgentRestrictionItem"},"type":"array","title":"Restrictions"}},"type":"object","required":["agent_id","display_name","client_kind","created_at","restrictions"],"title":"AccountAgentDetail","description":"One of the caller's agents in one account, everything its page there reads.\n\n``link`` is the agent's link to this account with its settings here, or\n``null`` when the agent is not linked to it. ``restrictions`` are the\nagent's restrictions on this account's libraries and pages only. The\nwrites are the ``/v1/me/agents/{agent_id}/…`` routes."},"AccountBilling":{"properties":{"account_id":{"type":"string","title":"Account Id"},"handle":{"type":"string","title":"Handle"},"kind":{"type":"string","enum":["personal","organization"],"title":"Kind"},"plan":{"type":"string","title":"Plan"},"billing_status":{"anyOf":[{"type":"string","enum":["pending_payment","incomplete","incomplete_expired","trialing","active","past_due","unpaid","paused","canceled"]},{"type":"null"}],"title":"Billing Status"},"period_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Period End"},"checkout_available":{"type":"boolean","title":"Checkout Available"},"portal_available":{"type":"boolean","title":"Portal Available"},"cancel_available":{"type":"boolean","title":"Cancel Available"},"cancel_at_period_end":{"type":"boolean","title":"Cancel At Period End"},"card":{"anyOf":[{"$ref":"#/components/schemas/BillingCard"},{"type":"null"}]},"invoices":{"items":{"$ref":"#/components/schemas/BillingInvoice"},"type":"array","title":"Invoices"},"stripe_unavailable":{"type":"boolean","title":"Stripe Unavailable"},"topup_packs_usd":{"items":{"type":"integer"},"type":"array","title":"Topup Packs Usd"},"extra_credit_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Extra Credit Usd"},"auto_topup":{"$ref":"#/components/schemas/AutoTopup"},"auto_topup_available":{"type":"boolean","title":"Auto Topup Available"},"team_seats":{"anyOf":[{"$ref":"#/components/schemas/TeamSeats"},{"type":"null"}]},"card_confirmation":{"$ref":"#/components/schemas/CardConfirmation"},"card_on_file":{"type":"boolean","title":"Card On File"},"trial_ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Trial Ends At"},"trial_starting":{"type":"boolean","title":"Trial Starting"},"trial_available":{"type":"boolean","title":"Trial Available"},"add_card_available":{"type":"boolean","title":"Add Card Available"},"cancel_without_card":{"type":"boolean","title":"Cancel Without Card"},"resume_declined":{"type":"boolean","title":"Resume Declined"},"comped":{"type":"boolean","title":"Comped","default":false},"comp_ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Comp Ends At"}},"type":"object","required":["account_id","handle","kind","plan","billing_status","period_end","checkout_available","portal_available","cancel_available","cancel_at_period_end","card","invoices","stripe_unavailable","topup_packs_usd","extra_credit_usd","auto_topup","auto_topup_available","team_seats","card_confirmation","card_on_file","trial_ends_at","trial_starting","trial_available","add_card_available","cancel_without_card","resume_declined"],"title":"AccountBilling","description":"GET /v1/accounts/{handle}/billing: owner only."},"AccountNav":{"properties":{"libraries":{"items":{"$ref":"#/components/schemas/NavLibrary"},"type":"array","title":"Libraries"}},"type":"object","required":["libraries"],"title":"AccountNav","description":"Every library the caller reads in the addressed account, in slug order.\n\nA library the caller can only manage, or one archived, is absent."},"AccountPolicy":{"properties":{"allow_multi_account_agents":{"type":"boolean","title":"Allow Multi Account Agents"}},"type":"object","required":["allow_multi_account_agents"],"title":"AccountPolicy","description":"The account's policy. ``allow_multi_account_agents`` is whether its\nmembers' agents may also be linked to other accounts (allowed by default)."},"AccountSummary":{"properties":{"id":{"type":"string","title":"Id"},"handle":{"type":"string","title":"Handle"},"display_name":{"type":"string","title":"Display Name"},"kind":{"type":"string","enum":["personal","organization"],"title":"Kind"},"account_role":{"type":"string","enum":["owner","admin","member"],"title":"Account Role"},"status":{"type":"string","enum":["active","suspended"],"title":"Status"}},"type":"object","required":["id","handle","display_name","kind","account_role","status"],"title":"AccountSummary"},"AccountUsage":{"properties":{"mode":{"type":"string","enum":["beta","credit"],"title":"Mode"},"status":{"type":"string","enum":["running","low","paused"],"title":"Status"},"paused_window":{"anyOf":[{"type":"string","enum":["daily","period"]},{"type":"null"}],"title":"Paused Window"},"paused_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Paused Until"},"paused_reason":{"anyOf":[{"type":"string","enum":["trial_ended","trial_starting","no_plan"]},{"type":"null"}],"title":"Paused Reason"},"trial_ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Trial Ends At"},"comp_ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Comp Ends At"},"lines":{"items":{"$ref":"#/components/schemas/UsageLine"},"type":"array","title":"Lines"},"extra_credit_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Extra Credit Usd"},"extra_credit_total_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Extra Credit Total Usd"},"topups":{"items":{"$ref":"#/components/schemas/UsageTopup"},"type":"array","title":"Topups"},"overdrawn":{"type":"boolean","title":"Overdrawn","default":false}},"type":"object","required":["mode","status"],"title":"AccountUsage","description":"What the usage view shows. Members and the owner read it; no amount\nhere is the size of an allowance."},"AddAgentLinkRequest":{"properties":{"account_handle":{"type":"string","title":"Account Handle"}},"additionalProperties":false,"type":"object","required":["account_handle"],"title":"AddAgentLinkRequest","description":"Link the agent to one more account, by handle."},"AddGuestRequest":{"properties":{"user":{"type":"string","maxLength":255,"minLength":1,"title":"User"},"role":{"type":"string","enum":["viewer","collaborator"],"title":"Role","default":"viewer"}},"type":"object","required":["user"],"title":"AddGuestRequest"},"AddTemplateCollectionRequest":{"properties":{"template_id":{"type":"string","maxLength":80,"minLength":1,"title":"Template Id"},"collection":{"type":"string","maxLength":80,"minLength":1,"title":"Collection"}},"type":"object","required":["template_id","collection"],"title":"AddTemplateCollectionRequest","description":"One collection of a template shown beside the suggestion, by slug."},"AdsCampaignFunnel":{"properties":{"campaign":{"type":"string","title":"Campaign"},"signups":{"type":"integer","title":"Signups"},"surveyed":{"type":"integer","title":"Surveyed"},"invited":{"type":"integer","title":"Invited"},"redeemed":{"type":"integer","title":"Redeemed"},"accounts":{"type":"integer","title":"Accounts"}},"type":"object","required":["campaign","signups","surveyed","invited","redeemed","accounts"],"title":"AdsCampaignFunnel","description":"One campaign's funnel counts, keyed by ``utm_campaign``.\n\n``campaign`` is the display name: the stored ``utm_campaign`` or ``\"(none)\"``\nfor rows with no campaign. ``signups`` counts every waitlist join and every\nsignup that redeemed no waitlist row; ``surveyed``, ``invited`` and\n``redeemed`` are the waitlist legs; ``accounts`` counts the people who now\nhave an account, by either door. Each is a cumulative leg (rows that\nreached that stage), not a mutually exclusive status bucket."},"AdsFunnelStats":{"properties":{"campaigns":{"items":{"$ref":"#/components/schemas/AdsCampaignFunnel"},"type":"array","title":"Campaigns"},"pageviews_available":{"type":"boolean","title":"Pageviews Available","default":false},"generated_at":{"type":"string","format":"date-time","title":"Generated At"}},"type":"object","required":["campaigns","generated_at"],"title":"AdsFunnelStats","description":"The studio funnel payload — one row per campaign, newest-signal first."},"AgentCredentialItem":{"properties":{"id":{"type":"string","title":"Id"},"agent_id":{"type":"string","title":"Agent Id"},"agent_name":{"type":"string","title":"Agent Name"},"kind":{"type":"string","enum":["static","oauth"],"title":"Kind"},"cli_handoff":{"type":"boolean","title":"Cli Handoff"},"label":{"type":"string","title":"Label"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"last_used_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Used At"}},"type":"object","required":["id","agent_id","agent_name","kind","cli_handoff","label","created_at"],"title":"AgentCredentialItem","description":"One live credential of one of the caller's agents; never its secret.\n\n``kind`` is ``oauth`` for a connector's OAuth grant (an access token with\nits refresh token) and ``static`` for a token minted by sign-in or by the\nCLI; ``cli_handoff`` marks one the CLI minted over a connector's channel."},"AgentLinkDetail":{"properties":{"account_id":{"type":"string","title":"Account Id"},"account_handle":{"type":"string","title":"Account Handle"},"account_display_name":{"type":"string","title":"Account Display Name"},"account_kind":{"type":"string","enum":["personal","organization"],"title":"Account Kind"},"account_status":{"type":"string","enum":["active","suspended"],"title":"Account Status"},"linked_at":{"type":"string","format":"date-time","title":"Linked At"},"is_member":{"type":"boolean","title":"Is Member"},"walled":{"type":"boolean","title":"Walled"},"session_lock":{"type":"boolean","title":"Session Lock"},"synthesis_mode_override":{"anyOf":[{"type":"string","enum":["agent","server"]},{"type":"null"}],"title":"Synthesis Mode Override"},"effective_mode":{"type":"string","enum":["agent","server"],"title":"Effective Mode"},"inherited_mode":{"type":"string","enum":["agent","server"],"title":"Inherited Mode"},"preferences":{"$ref":"#/components/schemas/PreferencesBlock"},"effective_preferences":{"$ref":"#/components/schemas/EffectivePreferences"},"inherited_preferences":{"$ref":"#/components/schemas/EffectivePreferences"},"instructions":{"type":"string","title":"Instructions"},"libraries":{"items":{"$ref":"#/components/schemas/AgentLinkLibrary"},"type":"array","title":"Libraries"}},"type":"object","required":["account_id","account_handle","account_display_name","account_kind","account_status","linked_at","is_member","walled","session_lock","effective_mode","inherited_mode","preferences","effective_preferences","inherited_preferences","instructions","libraries"],"title":"AgentLinkDetail","description":"A linked account with the agent's settings there.\n\n``is_member`` is whether the caller holds an active seat in the account: the\nsynthesis override is honoured only then, and ``effective_mode`` says what\nthe agent's writes there route to. ``walled`` (W1): a search that names no\naccount skips this one. ``session_lock`` (W2): a chat that reads or writes\nhere is refused every other account from then on.\n\n``inherited_mode`` and ``inherited_preferences`` are what Inherit falls back\nto: the same resolution with this link's own override left out.\n\n``libraries`` are the live libraries the caller reads there, the rows the\nagent's page narrows."},"AgentLinkLibrary":{"properties":{"id":{"type":"string","title":"Id"},"slug":{"type":"string","title":"Slug"},"display_name":{"type":"string","title":"Display Name"},"is_default":{"type":"boolean","title":"Is Default"},"restriction":{"anyOf":[{"type":"string","enum":["read","none"]},{"type":"null"}],"title":"Restriction"}},"type":"object","required":["id","slug","display_name","is_default"],"title":"AgentLinkLibrary","description":"A live library the caller reads in a linked account, through a seat or an\naccepted guest share (never one they only manage), with the agent's\nrestriction on it: ``null`` is Full, the agent mirrors the caller there."},"AgentLinkSummary":{"properties":{"account_id":{"type":"string","title":"Account Id"},"account_handle":{"type":"string","title":"Account Handle"},"account_display_name":{"type":"string","title":"Account Display Name"},"account_kind":{"type":"string","enum":["personal","organization"],"title":"Account Kind"},"account_status":{"type":"string","enum":["active","suspended"],"title":"Account Status"},"linked_at":{"type":"string","format":"date-time","title":"Linked At"}},"type":"object","required":["account_id","account_handle","account_display_name","account_kind","account_status","linked_at"],"title":"AgentLinkSummary","description":"One account an agent is linked to, as the agents list shows it.\n\nA link to a suspended account is listed only to a user who holds a seat\nthere, marked by ``account_status``, so they can see why the agent reaches\nnothing in it and unlink it. ``linked_at`` is when the link was made."},"AgentNotConnected":{"properties":{"id":{"type":"string","title":"Id"},"display_name":{"type":"string","title":"Display Name"},"message":{"type":"string","title":"Message"}},"type":"object","required":["id","display_name","message"],"title":"AgentNotConnected","description":"One of the caller's agents the account's policy kept out, and why."},"AgentRestrictionItem":{"properties":{"id":{"type":"string","title":"Id"},"object_kind":{"type":"string","enum":["library","page"],"title":"Object Kind"},"access":{"type":"string","enum":["read","none"],"title":"Access"},"library_id":{"type":"string","title":"Library Id"},"library_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Library Slug"},"library_display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Library Display Name"},"account_id":{"type":"string","title":"Account Id"},"account_handle":{"type":"string","title":"Account Handle"},"page_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Id"},"page_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Title"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","object_kind","access","library_id","account_id","account_handle","created_at"],"title":"AgentRestrictionItem","description":"A library or page narrowed for the agent, to reading or to nothing.\n\nA restriction outlives the access it narrows, and can sit on a library the\ncaller never read (a migrated ``none`` on another member's private\nlibrary), so what names its object is shown only while the caller reads it:\n``library_slug`` and ``library_display_name`` while they read the library\n(or, on a page restriction, the page), ``page_title`` while they read the\npage. ``library_id`` and ``page_id`` stay, so the row can still be lifted.\nA restriction in a suspended account is inert and not listed."},"AgentSummary":{"properties":{"agent_id":{"type":"string","title":"Agent Id"},"display_name":{"type":"string","title":"Display Name"},"client_kind":{"type":"string","enum":["claude-code","claude-desktop","openclaw","codex","cursor","gemini-cli","antigravity","chatgpt","gemini","muse","hermes","perplexity","other","seaglass-cli","seaglass-system"],"title":"Client Kind"},"last_used_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Used At"},"is_own":{"type":"boolean","title":"Is Own"}},"type":"object","required":["agent_id","display_name","client_kind","is_own"],"title":"AgentSummary","description":"An agent linked to an account, as the account sees it: its name and kind,\nnever the other accounts it is linked to. ``is_own`` marks the viewer's own\nagent, whose pages the viewer can open (``/accounts/{handle}/agents/{id}`` in\nthis account, ``/me/agents/{id}`` for the agent itself); ``last_used_at``\nis set only on it, since an agent's last call may have been elsewhere."},"AgentTokenItem":{"properties":{"id":{"type":"string","title":"Id"},"label":{"type":"string","title":"Label"},"kind":{"type":"string","enum":["static","oauth"],"title":"Kind"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"last_used_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Used At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"}},"type":"object","required":["id","label","kind","created_at"],"title":"AgentTokenItem","description":"One of the agent's live tokens. The secret is never shown again."},"AppendTooLarge":{"properties":{"error":{"type":"string","const":"append_too_large","title":"Error"},"max_transcript_append_bytes":{"type":"integer","title":"Max Transcript Append Bytes"}},"type":"object","required":["error","max_transcript_append_bytes"],"title":"AppendTooLarge"},"ApplySuggestionResponse":{"properties":{"library":{"$ref":"#/components/schemas/SuggestionLibraryRef"}},"type":"object","required":["library"],"title":"ApplySuggestionResponse"},"ArchiveLibraryResponse":{"properties":{"id":{"type":"string","title":"Id"},"archived_at":{"type":"string","format":"date-time","title":"Archived At"}},"type":"object","required":["id","archived_at"],"title":"ArchiveLibraryResponse","description":"The result of archiving a library (ADR-2026-07-07-library-archive-is-a-reversible-put-away-state)."},"AuthorizationServerMetadata":{"properties":{"issuer":{"type":"string","title":"Issuer"},"authorization_endpoint":{"type":"string","title":"Authorization Endpoint"},"token_endpoint":{"type":"string","title":"Token Endpoint"},"registration_endpoint":{"type":"string","title":"Registration Endpoint"},"revocation_endpoint":{"type":"string","title":"Revocation Endpoint"},"response_types_supported":{"items":{"type":"string"},"type":"array","title":"Response Types Supported"},"grant_types_supported":{"items":{"type":"string"},"type":"array","title":"Grant Types Supported"},"code_challenge_methods_supported":{"items":{"type":"string"},"type":"array","title":"Code Challenge Methods Supported"},"token_endpoint_auth_methods_supported":{"items":{"type":"string"},"type":"array","title":"Token Endpoint Auth Methods Supported"},"token_endpoint_auth_signing_alg_values_supported":{"items":{"type":"string"},"type":"array","title":"Token Endpoint Auth Signing Alg Values Supported"},"scopes_supported":{"items":{"type":"string"},"type":"array","title":"Scopes Supported"},"client_id_metadata_document_supported":{"type":"boolean","title":"Client Id Metadata Document Supported"},"authorization_response_iss_parameter_supported":{"type":"boolean","title":"Authorization Response Iss Parameter Supported"},"userinfo_endpoint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Userinfo Endpoint"}},"type":"object","required":["issuer","authorization_endpoint","token_endpoint","registration_endpoint","revocation_endpoint","response_types_supported","grant_types_supported","code_challenge_methods_supported","token_endpoint_auth_methods_supported","token_endpoint_auth_signing_alg_values_supported","scopes_supported","client_id_metadata_document_supported","authorization_response_iss_parameter_supported"],"title":"AuthorizationServerMetadata","description":"RFC 8414: what an OAuth client discovers about this authorization server."},"AuthorizeApproveRequest":{"properties":{"client_id":{"type":"string","title":"Client Id"},"redirect_uri":{"type":"string","title":"Redirect Uri"},"code_challenge":{"type":"string","title":"Code Challenge"},"code_challenge_method":{"type":"string","title":"Code Challenge Method","default":"S256"},"scope":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scope"},"resource":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resource"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"approve":{"type":"boolean","title":"Approve","default":true},"account_ids":{"items":{"type":"string","maxLength":40},"type":"array","maxItems":200,"title":"Account Ids"},"replaces_agent_id":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Replaces Agent Id"},"reconnects_agent_id":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Reconnects Agent Id"},"agent_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Agent Name"}},"type":"object","required":["client_id","redirect_uri","code_challenge"],"title":"AuthorizeApproveRequest","description":"The web consent POST — the validated authorize params + the decision."},"AutoTopup":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"pack_usd":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pack Usd"},"threshold_usd":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Threshold Usd"},"monthly_limit_usd":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Monthly Limit Usd"},"off_reason":{"anyOf":[{"type":"string","enum":["declined","requires_action","no_card","refunded"]},{"type":"null"}],"title":"Off Reason"},"charged_this_month_cents":{"type":"integer","title":"Charged This Month Cents"},"consent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Consent At"},"consent_current":{"type":"boolean","title":"Consent Current"},"consent_version":{"type":"string","title":"Consent Version"}},"type":"object","required":["enabled","pack_usd","threshold_usd","monthly_limit_usd","off_reason","charged_this_month_cents","consent_at","consent_current","consent_version"],"title":"AutoTopup","description":"The account's auto top-up setting. Whole dollars; no value is preset."},"AutoTopupRequest":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"consent":{"type":"boolean","title":"Consent","default":false},"consent_version":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Consent Version"},"pack_usd":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Pack Usd"},"threshold_usd":{"anyOf":[{"type":"integer","maximum":100000.0,"minimum":1.0},{"type":"null"}],"title":"Threshold Usd"},"monthly_limit_usd":{"anyOf":[{"type":"integer","maximum":100000.0,"minimum":1.0},{"type":"null"}],"title":"Monthly Limit Usd"}},"type":"object","required":["enabled"],"title":"AutoTopupRequest","description":"PUT /v1/accounts/{handle}/billing/auto-topup.\n\nTurning it on takes all three values and the owner's consent; turning it\noff keeps the stored ones."},"BatchInviteRequest":{"properties":{"signup_ids":{"items":{"type":"string"},"type":"array","maxItems":200,"minItems":1,"title":"Signup Ids"},"edit":{"anyOf":[{"$ref":"#/components/schemas/InviteEdit"},{"type":"null"}]}},"type":"object","required":["signup_ids"],"title":"BatchInviteRequest"},"BatchInviteResponse":{"properties":{"results":{"items":{"$ref":"#/components/schemas/InviteResult"},"type":"array","title":"Results"}},"type":"object","required":["results"],"title":"BatchInviteResponse"},"BilledAccount":{"properties":{"id":{"type":"string","title":"Id"},"handle":{"type":"string","title":"Handle"},"display_name":{"type":"string","title":"Display Name"},"kind":{"type":"string","enum":["personal","organization"],"title":"Kind"},"plan":{"type":"string","title":"Plan"},"billing_status":{"type":"string","enum":["pending_payment","incomplete","incomplete_expired","trialing","active","past_due","unpaid","paused","canceled"],"title":"Billing Status"},"period_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Period End"},"cancel_available":{"type":"boolean","title":"Cancel Available"}},"type":"object","required":["id","handle","display_name","kind","plan","billing_status","period_end","cancel_available"],"title":"BilledAccount","description":"One account the caller pays for (GET /v1/me/billing)."},"BillingCard":{"properties":{"brand":{"type":"string","title":"Brand"},"last4":{"type":"string","title":"Last4"}},"type":"object","required":["brand","last4"],"title":"BillingCard"},"BillingInvoice":{"properties":{"kind":{"type":"string","enum":["invoice","receipt"],"title":"Kind","default":"invoice"},"id":{"type":"string","title":"Id"},"number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Number"},"status":{"anyOf":[{"type":"string","enum":["draft","open","paid","uncollectible","void"]},{"type":"null"}],"title":"Status"},"amount_due":{"type":"integer","title":"Amount Due"},"amount_paid":{"type":"integer","title":"Amount Paid"},"currency":{"type":"string","title":"Currency"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"hosted_invoice_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hosted Invoice Url"}},"type":"object","required":["id","number","status","amount_due","amount_paid","currency","created_at","hosted_invoice_url"],"title":"BillingInvoice","description":"One row of the billing history: a Stripe invoice (a subscription month,\nor a top-up pack), or the receipt of an auto top-up, which has no invoice\n(ADR-2026-11-04-a-top-up-shows-in-billing-history-as-its-invoice-or-receipt)."},"Body_upload_document_v1_documents_upload_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File","description":"Document body (raw bytes)."},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title","description":"Title; defaults to filename stem."},"library":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Library","description":"Slug, 'handle/slug' or id of the library the document belongs in. Left out, it lands in the only library the token can write to, and is refused with the list when there are several."},"primary_page":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Page"},"primary_page_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Page Type"},"content_type":{"type":"string","title":"Content Type","default":"text/markdown"},"source_kind":{"type":"string","enum":["user_upload","web_page","conversation_extract","derived","paste"],"title":"Source Kind","description":"source_origin.kind","default":"user_upload"},"source_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Ref","description":"source_origin.ref"},"source_retrieved_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Retrieved At","description":"source_origin.retrieved_at: ISO-8601, when a web page was fetched."},"event_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Time"},"source_authored_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Authored At","description":"ISO-8601: when the underlying source was authored."},"source_modified_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Modified At","description":"ISO-8601: when the source was last modified (CLI auto-fills from mtime)."},"links":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Links","description":"JSON object: people/projects/topics → names"},"capture_context":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Capture Context","description":"What the conversation was about when this was stored; written as an annotation memory linked to the document and fed into extraction."},"extract":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Extract","description":"true: extract facts from the document; false: store it verbatim. Unset follows the account's synthesis mode."}},"type":"object","required":["file"],"title":"Body_upload_document_v1_documents_upload_post"},"BrainstormAnswersIn":{"properties":{"holds":{"type":"string","maxLength":1000,"minLength":1,"title":"Holds"},"roles":{"items":{"type":"string","maxLength":200,"minLength":1},"type":"array","maxItems":6,"minItems":1,"title":"Roles"},"audience":{"type":"string","enum":["personal","team"],"title":"Audience"},"remember":{"type":"string","maxLength":1000,"minLength":1,"title":"Remember"}},"type":"object","required":["holds","roles","audience","remember"],"title":"BrainstormAnswersIn"},"BrainstormCollectionOut":{"properties":{"slug":{"type":"string","title":"Slug"},"label":{"type":"string","title":"Label"},"subtitle":{"type":"string","title":"Subtitle"},"description":{"type":"string","title":"Description"}},"type":"object","required":["slug","label","subtitle","description"],"title":"BrainstormCollectionOut"},"BrainstormDraft":{"properties":{"name":{"type":"string","maxLength":120,"title":"Name"},"subtitle":{"type":"string","maxLength":120,"title":"Subtitle"},"description":{"type":"string","maxLength":600,"title":"Description"},"collections":{"items":{"$ref":"#/components/schemas/BrainstormDraftCollection"},"type":"array","maxItems":10,"title":"Collections"}},"type":"object","required":["name","subtitle","description","collections"],"title":"BrainstormDraft"},"BrainstormDraftCollection":{"properties":{"label":{"type":"string","maxLength":120,"title":"Label"},"slug":{"type":"string","maxLength":64,"title":"Slug"},"summary":{"type":"string","maxLength":400,"title":"Summary"}},"type":"object","required":["label","slug","summary"],"title":"BrainstormDraftCollection"},"BrainstormDraftOut":{"properties":{"run_id":{"type":"string","title":"Run Id"},"draft":{"$ref":"#/components/schemas/BrainstormDraft"},"change_summary":{"type":"string","title":"Change Summary"}},"type":"object","required":["run_id","draft","change_summary"],"title":"BrainstormDraftOut"},"BrainstormDraftRequest":{"properties":{"run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Id"},"answers":{"$ref":"#/components/schemas/BrainstormAnswersIn"}},"type":"object","required":["answers"],"title":"BrainstormDraftRequest"},"BrainstormExpandOut":{"properties":{"run_id":{"type":"string","title":"Run Id"},"library":{"$ref":"#/components/schemas/BrainstormLibraryOut"}},"type":"object","required":["run_id","library"],"title":"BrainstormExpandOut"},"BrainstormExpandRequest":{"properties":{"run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Id"},"answers":{"$ref":"#/components/schemas/BrainstormAnswersIn"},"draft":{"$ref":"#/components/schemas/BrainstormDraft"}},"type":"object","required":["answers","draft"],"title":"BrainstormExpandRequest"},"BrainstormLibraryOut":{"properties":{"name":{"type":"string","title":"Name"},"subtitle":{"type":"string","title":"Subtitle"},"description":{"type":"string","title":"Description"},"collections":{"items":{"$ref":"#/components/schemas/BrainstormCollectionOut"},"type":"array","title":"Collections"},"onboarding_prompts":{"items":{"$ref":"#/components/schemas/BrainstormPromptOut"},"type":"array","title":"Onboarding Prompts"}},"type":"object","required":["name","subtitle","description","collections","onboarding_prompts"],"title":"BrainstormLibraryOut"},"BrainstormPromptOut":{"properties":{"collection":{"type":"string","title":"Collection"},"text":{"type":"string","title":"Text"}},"type":"object","required":["collection","text"],"title":"BrainstormPromptOut"},"BrainstormReviseRequest":{"properties":{"run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Id"},"answers":{"$ref":"#/components/schemas/BrainstormAnswersIn"},"draft":{"$ref":"#/components/schemas/BrainstormDraft"},"change":{"type":"string","maxLength":1000,"minLength":1,"title":"Change"}},"type":"object","required":["answers","draft","change"],"title":"BrainstormReviseRequest"},"BrainstormRolesOut":{"properties":{"run_id":{"type":"string","title":"Run Id"},"options":{"items":{"type":"string"},"type":"array","title":"Options"}},"type":"object","required":["run_id","options"],"title":"BrainstormRolesOut"},"BrainstormRolesRequest":{"properties":{"run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Id"},"holds":{"type":"string","maxLength":1000,"minLength":1,"title":"Holds"}},"type":"object","required":["holds"],"title":"BrainstormRolesRequest"},"BreakGlassContent":{"properties":{"log_id":{"type":"string","title":"Log Id"},"library_id":{"type":"string","title":"Library Id"},"page":{"anyOf":[{"$ref":"#/components/schemas/BreakGlassPageSummary"},{"type":"null"}]},"notified_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notified Email"},"synthesis_markdown":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Synthesis Markdown"},"source_memories":{"items":{"$ref":"#/components/schemas/BreakGlassMemorySource"},"type":"array","title":"Source Memories","default":[]},"source_documents":{"items":{"$ref":"#/components/schemas/BreakGlassDocumentSource"},"type":"array","title":"Source Documents","default":[]},"pages":{"items":{"$ref":"#/components/schemas/BreakGlassPageSummary"},"type":"array","title":"Pages","default":[]}},"type":"object","required":["log_id","library_id"],"title":"BreakGlassContent","description":"The content released by a break-glass read (returned ONCE; never to agents).\n\n``notified_email`` is the member who will be notified; ``log_id`` is the\nappend-only audit row this read created."},"BreakGlassDocumentSource":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","title","created_at"],"title":"BreakGlassDocumentSource"},"BreakGlassListItem":{"properties":{"id":{"type":"string","title":"Id"},"account_id":{"type":"string","title":"Account Id"},"account_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Handle"},"actor_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor User Id"},"actor_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor Handle"},"library_id":{"type":"string","title":"Library Id"},"page_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Id"},"reason":{"type":"string","title":"Reason"},"accessed_at":{"type":"string","format":"date-time","title":"Accessed At"}},"type":"object","required":["id","account_id","library_id","reason","accessed_at"],"title":"BreakGlassListItem"},"BreakGlassLogItem":{"properties":{"id":{"type":"string","title":"Id"},"actor_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor User Id"},"actor_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor Handle"},"library_id":{"type":"string","title":"Library Id"},"library_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Library Slug"},"page_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Id"},"page_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Slug"},"reason":{"type":"string","title":"Reason"},"accessed_at":{"type":"string","format":"date-time","title":"Accessed At"}},"type":"object","required":["id","library_id","reason","accessed_at"],"title":"BreakGlassLogItem","description":"An append-only break-glass audit entry (admin-visible)."},"BreakGlassMemorySource":{"properties":{"id":{"type":"string","title":"Id"},"content":{"type":"string","title":"Content"},"source_type":{"type":"string","enum":["primary","annotation","extracted"],"title":"Source Type"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","content","source_type","created_at"],"title":"BreakGlassMemorySource"},"BreakGlassPageSummary":{"properties":{"id":{"type":"string","title":"Id"},"slug":{"type":"string","title":"Slug"},"title":{"type":"string","title":"Title"},"type":{"type":"string","title":"Type"}},"type":"object","required":["id","slug","title","type"],"title":"BreakGlassPageSummary"},"BreakGlassRequest":{"properties":{"library_id":{"type":"string","maxLength":40,"minLength":1,"title":"Library Id"},"page_id":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Page Id"},"reason":{"type":"string","maxLength":2000,"minLength":1,"title":"Reason"}},"type":"object","required":["library_id","reason"],"title":"BreakGlassRequest","description":"Owner/admin break-glass into a member-private library (optionally one page)."},"CapExceeded":{"properties":{"error":{"type":"string","const":"cap_exceeded","title":"Error"},"max_transcript_bytes":{"type":"integer","title":"Max Transcript Bytes"}},"type":"object","required":["error","max_transcript_bytes"],"title":"CapExceeded"},"CardConfirmation":{"properties":{"required":{"type":"boolean","title":"Required"},"card_detached":{"type":"boolean","title":"Card Detached"},"confirmed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Confirmed At"},"confirmed_by_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Confirmed By Email"}},"type":"object","required":["required","card_detached","confirmed_at","confirmed_by_email"],"title":"CardConfirmation","description":"The card step an ownership transfer leaves the new owner, and its last outcome."},"CardConfirmationRequest":{"properties":{"choice":{"type":"string","enum":["keep","replaced"],"title":"Choice"}},"type":"object","required":["choice"],"title":"CardConfirmationRequest","description":"POST /v1/accounts/{handle}/billing/card-confirmation."},"CatalogOverview":{"properties":{"version":{"type":"integer","title":"Version"},"totals":{"$ref":"#/components/schemas/CatalogTotals"},"categories":{"items":{"$ref":"#/components/schemas/TemplateCategoryOut"},"type":"array","title":"Categories"},"start_examples":{"items":{"type":"string"},"type":"array","title":"Start Examples"},"templates":{"items":{"$ref":"#/components/schemas/TemplateSummaryOut"},"type":"array","title":"Templates"}},"type":"object","required":["version","totals","categories","start_examples","templates"],"title":"CatalogOverview"},"CatalogTotals":{"properties":{"templates":{"type":"integer","title":"Templates"},"collections":{"type":"integer","title":"Collections"},"popular":{"type":"integer","title":"Popular"}},"type":"object","required":["templates","collections","popular"],"title":"CatalogTotals"},"ChangeIn":{"properties":{"key":{"type":"string","title":"Key"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtitle"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"skipped":{"type":"boolean","title":"Skipped","default":false}},"type":"object","required":["key"],"title":"ChangeIn"},"ChangeOut":{"properties":{"key":{"type":"string","title":"Key"},"action":{"type":"string","enum":["add","change","remove"],"title":"Action"},"collection":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Collection"},"current":{"anyOf":[{"$ref":"#/components/schemas/CurrentCollectionOut"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtitle"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"skipped":{"type":"boolean","title":"Skipped"}},"type":"object","required":["key","action","collection","current","name","subtitle","description","skipped"],"title":"ChangeOut"},"ChangePasswordRequest":{"properties":{"current_password":{"type":"string","maxLength":255,"minLength":1,"title":"Current Password"},"new_password":{"type":"string","maxLength":255,"minLength":1,"title":"New Password"},"sign_out_agents":{"type":"boolean","title":"Sign Out Agents","default":false}},"type":"object","required":["current_password","new_password"],"title":"ChangePasswordRequest"},"ChangePasswordResponse":{"properties":{"revoked_sign_ins":{"type":"integer","title":"Revoked Sign Ins"},"revoked_agent_tokens":{"type":"integer","title":"Revoked Agent Tokens"}},"type":"object","required":["revoked_sign_ins","revoked_agent_tokens"],"title":"ChangePasswordResponse"},"CheckoutStartRequest":{"properties":{"plan":{"type":"string","enum":["pro","team"],"title":"Plan","default":"pro"},"test_clock":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^clock_[A-Za-z0-9]+$"},{"type":"null"}],"title":"Test Clock"}},"type":"object","title":"CheckoutStartRequest","description":"POST /v1/accounts/{handle}/billing/checkout."},"CheckoutStartResponse":{"properties":{"url":{"type":"string","title":"Url"},"reused":{"type":"boolean","title":"Reused"}},"type":"object","required":["url","reused"],"title":"CheckoutStartResponse"},"ClearAccountCompRequest":{"properties":{"reason":{"type":"string","maxLength":500,"minLength":1,"title":"Reason"}},"type":"object","required":["reason"],"title":"ClearAccountCompRequest","description":"An operator ending an account's comp now."},"ClearRestrictionResponse":{"properties":{"agent_id":{"type":"string","title":"Agent Id"},"cleared":{"type":"boolean","title":"Cleared"}},"type":"object","required":["agent_id","cleared"],"title":"ClearRestrictionResponse"},"ClientRegistrationResponse":{"properties":{"client_id":{"type":"string","title":"Client Id"},"client_id_issued_at":{"type":"integer","title":"Client Id Issued At"},"redirect_uris":{"items":{"type":"string"},"type":"array","title":"Redirect Uris"},"client_name":{"type":"string","title":"Client Name"},"scope":{"type":"string","title":"Scope"},"token_endpoint_auth_method":{"type":"string","const":"none","title":"Token Endpoint Auth Method"},"grant_types":{"items":{"type":"string"},"type":"array","title":"Grant Types"},"response_types":{"items":{"type":"string"},"type":"array","title":"Response Types"}},"type":"object","required":["client_id","client_id_issued_at","redirect_uris","client_name","scope","token_endpoint_auth_method","grant_types","response_types"],"title":"ClientRegistrationResponse","description":"RFC 7591 §3.2.1: the registered client. A public client, so no secret."},"CollectionPromptItem":{"properties":{"id":{"type":"string","title":"Id"},"host":{"type":"string","enum":["claude-code","any"],"title":"Host"},"text":{"type":"string","title":"Text"}},"type":"object","required":["id","host","text"],"title":"CollectionPromptItem","description":"One copyable onboarding prompt on a collection index\n(ADR-2026-09-23-collection-onboarding-prompts-are-stored-per-collection).\n\n``host`` is where to paste it; the web renders the matching lead line."},"ConfigCheckOut":{"properties":{"name":{"type":"string","title":"Name"},"level":{"type":"string","enum":["required","recommended"],"title":"Level"},"is_set":{"type":"boolean","title":"Is Set"}},"type":"object","required":["name","level","is_set"],"title":"ConfigCheckOut","description":"A deployed-environment setting's name and whether it is set; never its value."},"ConfirmEmailChangeResponse":{"properties":{"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"password_required":{"type":"boolean","title":"Password Required","default":false},"sign_in_required":{"type":"boolean","title":"Sign In Required","default":false},"new_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"New Email"}},"type":"object","title":"ConfirmEmailChangeResponse"},"ConnectAccountCandidate":{"properties":{"id":{"type":"string","title":"Id"},"handle":{"type":"string","title":"Handle"},"display_name":{"type":"string","title":"Display Name"},"kind":{"type":"string","enum":["personal","organization"],"title":"Kind"},"linked":{"type":"boolean","title":"Linked"},"refusal":{"anyOf":[{"$ref":"#/components/schemas/LinkRefusal"},{"type":"null"}]},"exclusive":{"type":"boolean","title":"Exclusive"},"starts_unticked":{"type":"boolean","title":"Starts Unticked","default":false}},"type":"object","required":["id","handle","display_name","kind","linked","exclusive"],"title":"ConnectAccountCandidate","description":"An account a connecting agent can be linked to: one the user holds a\nseat in or an accepted share on."},"ConnectAgentCandidate":{"properties":{"id":{"type":"string","title":"Id"},"display_name":{"type":"string","title":"Display Name"},"client_kind":{"type":"string","enum":["claude-code","claude-desktop","openclaw","codex","cursor","gemini-cli","antigravity","chatgpt","gemini","muse","hermes","perplexity","other","seaglass-cli","seaglass-system"],"title":"Client Kind"},"linked":{"type":"boolean","title":"Linked"},"refusal":{"anyOf":[{"$ref":"#/components/schemas/LinkRefusal"},{"type":"null"}]}},"type":"object","required":["id","display_name","client_kind","linked"],"title":"ConnectAgentCandidate","description":"One of the user's agents, for \"Connect your agents?\" on an account."},"ConnectAgentsRequest":{"properties":{"account_handle":{"type":"string","maxLength":64,"minLength":1,"title":"Account Handle"},"agent_ids":{"items":{"type":"string","maxLength":40},"type":"array","maxItems":200,"minItems":1,"title":"Agent Ids"}},"type":"object","required":["account_handle","agent_ids"],"title":"ConnectAgentsRequest"},"ConnectAgentsResponse":{"properties":{"connected_agents":{"items":{"$ref":"#/components/schemas/ConnectedAgent"},"type":"array","title":"Connected Agents"},"agents_not_connected":{"items":{"$ref":"#/components/schemas/AgentNotConnected"},"type":"array","title":"Agents Not Connected"}},"type":"object","required":["connected_agents","agents_not_connected"],"title":"ConnectAgentsResponse"},"ConnectPicksRequest":{"properties":{"client_kinds":{"items":{"type":"string","maxLength":40},"type":"array","maxItems":16,"minItems":1,"title":"Client Kinds"}},"type":"object","required":["client_kinds"],"title":"ConnectPicksRequest","description":"POST /v1/onboarding/connect-picks: the clients the phone picked, in pick order."},"ConnectPicksResponse":{"properties":{"client_kinds":{"items":{"type":"string"},"type":"array","title":"Client Kinds"},"sent":{"type":"boolean","title":"Sent"},"retry_after_seconds":{"type":"integer","title":"Retry After Seconds","default":0},"email":{"type":"string","title":"Email"}},"type":"object","required":["client_kinds","sent","email"],"title":"ConnectPicksResponse","description":"Outcome of POST /v1/onboarding/connect-picks.\n\nThe picks are always kept. ``sent=False`` means the setup email is inside\nthe hand-off cooldown: it goes out on a post after ``retry_after_seconds``.\nAfter a send, ``retry_after_seconds`` is the cooldown it started."},"ConnectedAgent":{"properties":{"id":{"type":"string","title":"Id"},"display_name":{"type":"string","title":"Display Name"}},"type":"object","required":["id","display_name"],"title":"ConnectedAgent","description":"One of the caller's agents that now reaches the account."},"ConnectionView":{"properties":{"connection_id":{"type":"string","title":"Connection Id"},"provider":{"type":"string","title":"Provider"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"status":{"type":"string","enum":["active","paused","revoked","error"],"title":"Status"}},"type":"object","required":["connection_id","provider","label","status"],"title":"ConnectionView","description":"The wire shape of a connection (no credentials — metadata only)."},"ConnectionsResponse":{"properties":{"connections":{"items":{"$ref":"#/components/schemas/ConnectionView"},"type":"array","title":"Connections"}},"type":"object","required":["connections"],"title":"ConnectionsResponse"},"ConsentContext":{"properties":{"client_id":{"type":"string","title":"Client Id"},"client_name":{"type":"string","title":"Client Name"},"client_kind":{"type":"string","enum":["claude-code","claude-desktop","openclaw","codex","cursor","gemini-cli","antigravity","chatgpt","gemini","muse","hermes","perplexity","other","seaglass-cli","seaglass-system"],"title":"Client Kind"},"scope":{"type":"string","title":"Scope"},"redirect_host":{"type":"string","title":"Redirect Host"},"client_id_host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id Host"},"loopback_only":{"type":"boolean","title":"Loopback Only"}},"type":"object","required":["client_id","client_name","client_kind","scope","redirect_host","client_id_host","loopback_only"],"title":"ConsentContext","description":"``GET /v1/oauth/authorize``: what the consent page names. Display data\nonly, never a secret."},"ConsentRedirect":{"properties":{"redirect_to":{"type":"string","title":"Redirect To"}},"type":"object","required":["redirect_to"],"title":"ConsentRedirect","description":"``POST /v1/oauth/authorize``: where the browser goes next, carrying the\ncode (approved) or ``error=access_denied`` (denied)."},"ContextMapEdge":{"properties":{"source":{"type":"string","title":"Source"},"target":{"type":"string","title":"Target"},"kind":{"type":"string","enum":["link","near"],"title":"Kind"}},"type":"object","required":["source","target","kind"],"title":"ContextMapEdge"},"ContextMapResponse":{"properties":{"page_id":{"type":"string","title":"Page Id"},"handle":{"type":"string","title":"Handle"},"library_slug":{"type":"string","title":"Library Slug"},"dims":{"type":"integer","title":"Dims"},"vector_set_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vector Set Id"},"center":{"anyOf":[{"$ref":"#/components/schemas/MapPoint"},{"type":"null"}]},"points":{"items":{"$ref":"#/components/schemas/MapPoint"},"type":"array","title":"Points"},"edges":{"items":{"$ref":"#/components/schemas/ContextMapEdge"},"type":"array","title":"Edges"}},"type":"object","required":["page_id","handle","library_slug","dims","vector_set_id","center","points","edges"],"title":"ContextMapResponse"},"CoreValueItem":{"properties":{"lemma":{"type":"string","title":"Lemma"},"name":{"type":"string","title":"Name"},"gloss":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gloss"},"default_gloss":{"type":"string","title":"Default Gloss","default":""},"effective_gloss":{"type":"string","title":"Effective Gloss","default":""}},"type":"object","required":["lemma","name"],"title":"CoreValueItem","description":"One held value (ADR-2026-06-11-values-first-class-profile-object): the catalog lemma plus the resolved texts.\n\n``gloss`` is the user's own description (null = \"uses the default\");\n``effective_gloss`` is what prompts carry; ``name``/``default_gloss``\ncome from the frozen catalog so the UI never needs a second lookup."},"CoreValuePatchItem":{"properties":{"lemma":{"type":"string","title":"Lemma"},"gloss":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gloss"}},"additionalProperties":false,"type":"object","required":["lemma"],"title":"CoreValuePatchItem"},"CostByDay":{"properties":{"day":{"type":"string","title":"Day"},"cost_usd":{"type":"number","title":"Cost Usd"},"calls":{"type":"integer","title":"Calls"}},"type":"object","required":["day","cost_usd","calls"],"title":"CostByDay"},"CreateFeedbackRequest":{"properties":{"kind":{"type":"string","enum":["bug","feature","other"],"title":"Kind"},"body":{"type":"string","title":"Body"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"severity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Severity"},"component":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Component"},"context":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Context"},"account":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account"}},"type":"object","required":["kind","body"],"title":"CreateFeedbackRequest"},"CreateInvitationRequest":{"properties":{"email":{"type":"string","maxLength":255,"minLength":3,"title":"Email"},"account_role":{"type":"string","enum":["admin","member"],"title":"Account Role","default":"member"},"team_ids":{"items":{"type":"string"},"type":"array","title":"Team Ids"},"grants":{"items":{"$ref":"#/components/schemas/GrantSpecInput"},"type":"array","title":"Grants"}},"type":"object","required":["email"],"title":"CreateInvitationRequest"},"CreateInvitationResponse":{"properties":{"id":{"type":"string","title":"Id"},"email":{"type":"string","title":"Email"},"account_role":{"type":"string","enum":["owner","admin","member"],"title":"Account Role"},"status":{"type":"string","enum":["pending","accepted","declined","revoked"],"title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"}},"type":"object","required":["id","email","account_role","status","created_at"],"title":"CreateInvitationResponse","description":"The created invitation. Deliberately carries no token: the invite email\nis the token's only carrier, which is what lets registering through it\nmark the address verified\n(ADR-2026-09-22-a-live-member-invitation-satisfies-the-signup-gate-for-its-email)."},"CreateLibraryRequest":{"properties":{"slug":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Slug"},"display_name":{"type":"string","maxLength":255,"title":"Display Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtitle"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"},"page_types":{"anyOf":[{"items":{"$ref":"#/components/schemas/PageTypeInput"},"type":"array"},{"type":"null"}],"title":"Page Types"},"onboarding_prompts":{"items":{"$ref":"#/components/schemas/OnboardingPromptInput"},"type":"array","maxItems":12,"title":"Onboarding Prompts"},"prompt_source":{"type":"string","enum":["template","brainstorm"],"title":"Prompt Source","default":"template"},"template_id":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Template Id"},"brainstorm_run_id":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Brainstorm Run Id"}},"type":"object","required":["display_name"],"title":"CreateLibraryRequest"},"CreateOrgRequest":{"properties":{"handle":{"type":"string","maxLength":255,"minLength":1,"title":"Handle"},"display_name":{"type":"string","maxLength":255,"minLength":1,"title":"Display Name"}},"type":"object","required":["handle","display_name"],"title":"CreateOrgRequest"},"CreatePageRequest":{"properties":{"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"},"parent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"identity_hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Identity Hint"}},"type":"object","title":"CreatePageRequest","description":"Create a page through the addressed route (ADR-2026-06-23-http-api-is-resource-addressed-and-plane-structured).\n\nMirrors the three creation shapes ``page_service.create_page`` accepts\n(full ``slug`` / ``parent``+``title`` / ``type``+``title``); the library\nis the addressed one (URL segment), never a body field."},"CreatePageResponse":{"properties":{"id":{"type":"string","title":"Id"},"slug":{"type":"string","title":"Slug"},"title":{"type":"string","title":"Title"},"type":{"type":"string","title":"Type"},"identity_hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Identity Hint"},"parent_page_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Page Id"}},"type":"object","required":["id","slug","title","type"],"title":"CreatePageResponse"},"CreatePageTypeRequest":{"properties":{"slug":{"type":"string","maxLength":64,"title":"Slug"},"label":{"type":"string","maxLength":120,"title":"Label"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"icon":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Icon"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"},"subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtitle"}},"type":"object","required":["slug","label"],"title":"CreatePageTypeRequest","description":"Define a new page type in a library."},"CreateTeamRequest":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"}},"type":"object","required":["name"],"title":"CreateTeamRequest"},"CreatedPageRef":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"slug":{"type":"string","title":"Slug"},"type":{"type":"string","title":"Type"},"flagged_new":{"type":"boolean","title":"Flagged New","default":false}},"type":"object","required":["id","title","slug","type"],"title":"CreatedPageRef","description":"A page the upload created because the name it gave matched none."},"CurrentCollectionOut":{"properties":{"label":{"type":"string","title":"Label"},"subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtitle"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"page_count":{"type":"integer","title":"Page Count"}},"type":"object","required":["label","subtitle","description","page_count"],"title":"CurrentCollectionOut","description":"The collection a change targets, as it is now."},"CurrentHandleResponse":{"properties":{"handle":{"type":"string","title":"Handle"}},"type":"object","required":["handle"],"title":"CurrentHandleResponse","description":"``GET /v1/me/handles/{handle}``: where a handle the caller reaches lives now."},"DeclineInvitationRequest":{"properties":{"block":{"type":"boolean","title":"Block","default":false}},"type":"object","title":"DeclineInvitationRequest"},"DeclineInvitationResponse":{"properties":{"id":{"type":"string","title":"Id"},"status":{"type":"string","enum":["pending","accepted","declined","revoked"],"title":"Status"},"blocked":{"type":"boolean","title":"Blocked","default":false}},"type":"object","required":["id","status"],"title":"DeclineInvitationResponse"},"DeclineShareResponse":{"properties":{"grant_id":{"type":"string","title":"Grant Id"},"declined":{"type":"boolean","title":"Declined"}},"type":"object","required":["grant_id","declined"],"title":"DeclineShareResponse"},"DeleteAgentResponse":{"properties":{"agent_id":{"type":"string","title":"Agent Id"},"deleted":{"type":"boolean","title":"Deleted"}},"type":"object","required":["agent_id","deleted"],"title":"DeleteAgentResponse"},"DeleteLibraryResponse":{"properties":{"id":{"type":"string","title":"Id"},"revoked":{"type":"boolean","title":"Revoked"}},"type":"object","required":["id","revoked"],"title":"DeleteLibraryResponse"},"DeleteResponse":{"properties":{"id":{"type":"string","title":"Id"},"revoked":{"type":"boolean","title":"Revoked"}},"type":"object","required":["id","revoked"],"title":"DeleteResponse"},"DeleteTranscriptResponse":{"properties":{"session_id":{"type":"string","title":"Session Id"},"revoked":{"type":"boolean","title":"Revoked"}},"type":"object","required":["session_id","revoked"],"title":"DeleteTranscriptResponse"},"DeviceApproveRequest":{"properties":{"user_code":{"type":"string","maxLength":32,"minLength":1,"title":"User Code"},"display_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Display Name"},"account_ids":{"items":{"type":"string","maxLength":40},"type":"array","maxItems":200,"minItems":1,"title":"Account Ids"},"replaces_agent_id":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Replaces Agent Id"}},"type":"object","required":["user_code","account_ids"],"title":"DeviceApproveRequest"},"DeviceApproveResponse":{"properties":{"user_code":{"type":"string","title":"User Code"},"status":{"type":"string","enum":["pending","approved","denied","expired"],"title":"Status"},"agent_display_name":{"type":"string","title":"Agent Display Name"},"client_kind":{"type":"string","enum":["claude-code","claude-desktop","openclaw","codex","cursor","gemini-cli","antigravity","chatgpt","gemini","muse","hermes","perplexity","other","seaglass-cli","seaglass-system"],"title":"Client Kind"}},"type":"object","required":["user_code","status","agent_display_name","client_kind"],"title":"DeviceApproveResponse"},"DeviceDenyRequest":{"properties":{"user_code":{"type":"string","maxLength":32,"minLength":1,"title":"User Code"}},"type":"object","required":["user_code"],"title":"DeviceDenyRequest"},"DeviceDenyResponse":{"properties":{"user_code":{"type":"string","title":"User Code"},"status":{"type":"string","enum":["pending","approved","denied","expired"],"title":"Status"}},"type":"object","required":["user_code","status"],"title":"DeviceDenyResponse"},"DeviceLookupResponse":{"properties":{"user_code":{"type":"string","title":"User Code"},"client_kind":{"type":"string","enum":["claude-code","claude-desktop","openclaw","codex","cursor","gemini-cli","antigravity","chatgpt","gemini","muse","hermes","perplexity","other","seaglass-cli","seaglass-system"],"title":"Client Kind"},"client_name":{"type":"string","title":"Client Name"},"status":{"type":"string","enum":["pending","approved","denied","expired"],"title":"Status"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"approved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Approved At"},"denied_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Denied At"},"consumed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Consumed At"}},"type":"object","required":["user_code","client_kind","client_name","status","expires_at"],"title":"DeviceLookupResponse","description":"Shape rendered on /auth/device for the admin UI to confirm a request."},"DevicePollRequest":{"properties":{"device_code":{"type":"string","maxLength":128,"minLength":1,"title":"Device Code"}},"type":"object","required":["device_code"],"title":"DevicePollRequest"},"DevicePollResponse":{"properties":{"status":{"type":"string","enum":["pending","approved","denied","expired","unknown"],"title":"Status"},"raw_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Raw Token"},"agent_display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Display Name"},"client_kind":{"anyOf":[{"type":"string","enum":["claude-code","claude-desktop","openclaw","codex","cursor","gemini-cli","antigravity","chatgpt","gemini","muse","hermes","perplexity","other","seaglass-cli","seaglass-system"]},{"type":"null"}],"title":"Client Kind"},"interval":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Interval"}},"type":"object","required":["status"],"title":"DevicePollResponse"},"DeviceStartRequest":{"properties":{"client_kind":{"type":"string","maxLength":40,"title":"Client Kind","default":"seaglass-cli"},"client_name":{"type":"string","maxLength":255,"title":"Client Name","default":""}},"type":"object","title":"DeviceStartRequest","description":"The CLI tells us what it is so the user can sanity-check before approving."},"DeviceStartResponse":{"properties":{"device_code":{"type":"string","title":"Device Code"},"user_code":{"type":"string","title":"User Code"},"verification_uri":{"type":"string","title":"Verification Uri"},"verification_uri_complete":{"type":"string","title":"Verification Uri Complete"},"expires_in":{"type":"integer","title":"Expires In"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"interval":{"type":"integer","title":"Interval"}},"type":"object","required":["device_code","user_code","verification_uri","verification_uri_complete","expires_in","expires_at","interval"],"title":"DeviceStartResponse"},"DisposableEmailNotice":{"properties":{"closes_at":{"type":"string","format":"date-time","title":"Closes At"},"closed":{"type":"boolean","title":"Closed"},"trial_owed":{"type":"boolean","title":"Trial Owed"}},"type":"object","required":["closes_at","closed","trial_owed"],"title":"DisposableEmailNotice","description":"The caller signed up with a disposable address\n(ADR-2026-11-16-a-disposable-email-account-signs-up-with-one-email-a-small-trial-and-thirty-days)."},"DocumentDetail":{"properties":{"id":{"type":"string","title":"Id"},"primary_page_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Page Id"},"agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Id"},"session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"},"title":{"type":"string","title":"Title"},"content_type":{"type":"string","title":"Content Type"},"extraction_status":{"type":"string","enum":["pending","running","completed"],"title":"Extraction Status"},"extracted_memory_count":{"type":"integer","title":"Extracted Memory Count","default":0},"retired_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Retired At"},"retired_reason":{"anyOf":[{"type":"string","enum":["superseded","retracted"]},{"type":"null"}],"title":"Retired Reason"},"retired_by_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Retired By Id"},"retired_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Retired Note"},"redacted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Redacted At"},"extracted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Extracted At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"source_origin":{"$ref":"#/components/schemas/SourceOrigin","default":{}},"content":{"type":"string","title":"Content"},"extracted_memory_ids":{"items":{"type":"string"},"type":"array","title":"Extracted Memory Ids","default":[]}},"type":"object","required":["id","title","content_type","extraction_status","created_at","content"],"title":"DocumentDetail"},"DocumentExcerpt":{"properties":{"passages_included":{"type":"integer","title":"Passages Included"},"passages_total":{"type":"integer","title":"Passages Total"}},"type":"object","required":["passages_included","passages_total"],"title":"DocumentExcerpt","description":"How much of a document the page's last synthesis read, when not all of it\n(ADR-2026-09-28-llm-jobs-have-a-token-input-budget-extraction-windows-and-synthesis-excerpts)."},"DocumentListItem":{"properties":{"id":{"type":"string","title":"Id"},"primary_page_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Page Id"},"agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Id"},"session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"},"title":{"type":"string","title":"Title"},"content_type":{"type":"string","title":"Content Type"},"extraction_status":{"type":"string","enum":["pending","running","completed"],"title":"Extraction Status"},"extracted_memory_count":{"type":"integer","title":"Extracted Memory Count","default":0},"retired_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Retired At"},"retired_reason":{"anyOf":[{"type":"string","enum":["superseded","retracted"]},{"type":"null"}],"title":"Retired Reason"},"retired_by_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Retired By Id"},"retired_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Retired Note"},"redacted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Redacted At"},"extracted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Extracted At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"source_origin":{"$ref":"#/components/schemas/SourceOrigin","default":{}}},"type":"object","required":["id","title","content_type","extraction_status","created_at"],"title":"DocumentListItem"},"DocumentSource":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"agent_display_name":{"type":"string","title":"Agent Display Name","default":""},"agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"source_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Url"},"retrieved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Retrieved At"},"annotations":{"items":{"$ref":"#/components/schemas/SourceAnnotation"},"type":"array","title":"Annotations","default":[]},"excerpt":{"anyOf":[{"$ref":"#/components/schemas/DocumentExcerpt"},{"type":"null"}]},"relation":{"type":"string","title":"Relation","default":"primary"},"filed_on_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filed On Slug"},"filed_on_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filed On Title"},"retired_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Retired At"},"retired_reason":{"anyOf":[{"type":"string","enum":["superseded","retracted"]},{"type":"null"}],"title":"Retired Reason"},"retired_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Retired Note"}},"type":"object","required":["id","title","created_at"],"title":"DocumentSource"},"DocumentUploadResponse":{"properties":{"document_id":{"type":"string","title":"Document Id"},"primary_page_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Page Id"},"extraction_queued":{"type":"boolean","title":"Extraction Queued"},"resolved_refs":{"items":{"$ref":"#/components/schemas/ResolvedPageRef"},"type":"array","title":"Resolved Refs"},"created_pages":{"items":{"$ref":"#/components/schemas/CreatedPageRef"},"type":"array","title":"Created Pages"},"deduplicated":{"type":"boolean","title":"Deduplicated"},"library":{"type":"string","title":"Library"},"annotation_memory_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Annotation Memory Id"}},"type":"object","required":["document_id","primary_page_id","extraction_queued","resolved_refs","created_pages","deduplicated","library"],"title":"DocumentUploadResponse","description":"Mirrors `store_document`'s result (the fields the REST upload returns)."},"DraftCollectionIn":{"properties":{"key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key"},"name":{"type":"string","title":"Name"},"subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtitle"},"description":{"type":"string","title":"Description","default":""}},"type":"object","required":["name"],"title":"DraftCollectionIn"},"DraftCollectionOut":{"properties":{"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtitle"},"description":{"type":"string","title":"Description"},"from_template":{"type":"boolean","title":"From Template","default":false}},"type":"object","required":["key","name","subtitle","description"],"title":"DraftCollectionOut"},"EditSectionRequest":{"properties":{"section":{"type":"string","title":"Section"},"content":{"type":"string","title":"Content"},"base_version":{"type":"integer","title":"Base Version"},"edit_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Edit Summary"},"evidence_memory_ids":{"items":{"type":"string"},"type":"array","title":"Evidence Memory Ids","default":[]},"evidence_document_ids":{"items":{"type":"string"},"type":"array","title":"Evidence Document Ids","default":[]}},"type":"object","required":["section","content","base_version"],"title":"EditSectionRequest","description":"Replace one ``## Heading`` block with optimistic concurrency (ADR-2026-05-13-agent-authored-wiki-and-cost-routing).\n\n``section`` is the heading text (or a stable ``sect_…`` id); ``base_version``\nis the optimistic token — a stale value is rejected with a 409, mirroring the\nMCP ``edit_section`` tool."},"EditSectionResponse":{"properties":{"page_id":{"type":"string","title":"Page Id"},"synthesis_page_id":{"type":"string","title":"Synthesis Page Id"},"version":{"type":"integer","title":"Version"},"edit_id":{"type":"string","title":"Edit Id"},"edit_kind":{"type":"string","enum":["worker_synthesis","agent_edit","human_admin","revert","move","intent_edit","page_intent_edit","worker_patch"],"title":"Edit Kind"},"unresolved_links":{"items":{"type":"string"},"type":"array","title":"Unresolved Links","default":[]},"cross_links":{"items":{"type":"string"},"type":"array","title":"Cross Links","default":[]},"no_op":{"type":"boolean","title":"No Op","default":false}},"type":"object","required":["page_id","synthesis_page_id","version","edit_id","edit_kind"],"title":"EditSectionResponse"},"EffectivePreferences":{"properties":{"capture":{"type":"string","title":"Capture"},"recall":{"type":"string","title":"Recall"},"approval":{"type":"string","title":"Approval"},"disclosure":{"type":"string","title":"Disclosure"}},"type":"object","required":["capture","recall","approval","disclosure"],"title":"EffectivePreferences"},"EffortRouting":{"properties":{"default":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default"},"extraction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Extraction"},"synthesis":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Synthesis"},"reconsolidation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reconsolidation"},"section_rewrite":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Section Rewrite"}},"type":"object","required":["default","extraction","synthesis","reconsolidation","section_rewrite"],"title":"EffortRouting","description":"Per-slot effort overrides in effect; None keeps each job's declared effort\n(ADR-2026-09-28-effort-can-be-set-per-model-slot-and-follows-the-slots-model).\nTitle and profile have no override."},"EffortShare":{"properties":{"effort":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Effort"},"calls":{"type":"integer","title":"Calls"}},"type":"object","required":["calls"],"title":"EffortShare","description":"How many of a prompt's calls in the window ran at one effort."},"EmailChangeLinkRequest":{"properties":{"token":{"type":"string","maxLength":512,"minLength":1,"title":"Token"},"password":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Password"}},"type":"object","required":["token"],"title":"EmailChangeLinkRequest","description":"An email-change link, with the account's password when the page asked for it.\n\nThe password is needed only from a browser not signed in to the account: the\nnew address is one no inbox has proved the account's\n(ADR-2026-11-14-confirming-a-password-accounts-address-needs-its-password-or-a-reset)."},"EmailChangeRequest":{"properties":{"new_email":{"type":"string","maxLength":255,"minLength":1,"title":"New Email"},"current_password":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Current Password"}},"type":"object","required":["new_email"],"title":"EmailChangeRequest"},"EmailChangeResponse":{"properties":{"sent":{"type":"boolean","title":"Sent"},"not_sent_reason":{"anyOf":[{"type":"string","enum":["suppressed","failed"]},{"type":"null"}],"title":"Not Sent Reason"}},"type":"object","required":["sent"],"title":"EmailChangeResponse","description":"Whether the confirm link went to the new address.\n\n``sent`` is true only when the mail provider took it. Otherwise\n``not_sent_reason`` names why: ``suppressed`` (earlier mail to that address\nbounced or was marked as spam) or ``failed`` (the provider refused it, or\nthe outcome could not be recorded). The email does not change until the\nlink is opened."},"EndSessionRequest":{"properties":{"client_session_id":{"type":"string","title":"Client Session Id"}},"type":"object","required":["client_session_id"],"title":"EndSessionRequest"},"EndSessionResponse":{"properties":{"ended":{"type":"boolean","title":"Ended"}},"type":"object","required":["ended"],"title":"EndSessionResponse"},"EnterpriseInquiryRequest":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"email":{"type":"string","maxLength":255,"minLength":3,"title":"Email"},"company":{"type":"string","maxLength":200,"minLength":1,"title":"Company"},"team_size":{"type":"string","enum":["1-10","11-50","51-200","201+"],"title":"Team Size"},"needs":{"items":{"type":"string","enum":["sso","scim","audit_log_export","data_retention","security_review","dpa","invoiced_contract","volume_pricing","data_residency","uptime_sla","other"]},"type":"array","maxItems":11,"title":"Needs"},"message":{"type":"string","maxLength":5000,"minLength":1,"title":"Message"},"posthog_distinct_id":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Posthog Distinct Id"}},"additionalProperties":false,"type":"object","required":["name","email","company","team_size","message"],"title":"EnterpriseInquiryRequest","description":"One submission of the public form."},"Envelope_AcceptInvitationResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/AcceptInvitationResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[AcceptInvitationResponse]"},"Envelope_AcceptShareResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/AcceptShareResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[AcceptShareResponse]"},"Envelope_AcceptTermsResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/AcceptTermsResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[AcceptTermsResponse]"},"Envelope_AccountAgentDetail_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/AccountAgentDetail"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[AccountAgentDetail]"},"Envelope_AccountBilling_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/AccountBilling"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[AccountBilling]"},"Envelope_AccountNav_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/AccountNav"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[AccountNav]"},"Envelope_AccountPolicy_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/AccountPolicy"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[AccountPolicy]"},"Envelope_AccountUsage_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/AccountUsage"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[AccountUsage]"},"Envelope_AdsFunnelStats_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/AdsFunnelStats"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[AdsFunnelStats]"},"Envelope_ApplySuggestionResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/ApplySuggestionResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[ApplySuggestionResponse]"},"Envelope_ArchiveLibraryResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/ArchiveLibraryResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[ArchiveLibraryResponse]"},"Envelope_AutoTopup_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/AutoTopup"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[AutoTopup]"},"Envelope_BatchInviteResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/BatchInviteResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[BatchInviteResponse]"},"Envelope_BrainstormDraftOut_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/BrainstormDraftOut"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[BrainstormDraftOut]"},"Envelope_BrainstormExpandOut_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/BrainstormExpandOut"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[BrainstormExpandOut]"},"Envelope_BrainstormRolesOut_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/BrainstormRolesOut"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[BrainstormRolesOut]"},"Envelope_BreakGlassContent_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/BreakGlassContent"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[BreakGlassContent]"},"Envelope_CatalogOverview_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/CatalogOverview"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[CatalogOverview]"},"Envelope_ChangePasswordResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/ChangePasswordResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[ChangePasswordResponse]"},"Envelope_CheckoutStartResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/CheckoutStartResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[CheckoutStartResponse]"},"Envelope_ClearRestrictionResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/ClearRestrictionResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[ClearRestrictionResponse]"},"Envelope_ConfirmEmailChangeResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/ConfirmEmailChangeResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[ConfirmEmailChangeResponse]"},"Envelope_ConnectAgentsResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/ConnectAgentsResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[ConnectAgentsResponse]"},"Envelope_ConnectPicksResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/ConnectPicksResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[ConnectPicksResponse]"},"Envelope_ConnectionView_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/ConnectionView"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[ConnectionView]"},"Envelope_ConnectionsResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/ConnectionsResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[ConnectionsResponse]"},"Envelope_ContextMapResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/ContextMapResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[ContextMapResponse]"},"Envelope_CreateInvitationResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/CreateInvitationResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[CreateInvitationResponse]"},"Envelope_CreatePageResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/CreatePageResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[CreatePageResponse]"},"Envelope_CurrentHandleResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/CurrentHandleResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[CurrentHandleResponse]"},"Envelope_DeclineInvitationResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/DeclineInvitationResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[DeclineInvitationResponse]"},"Envelope_DeclineShareResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/DeclineShareResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[DeclineShareResponse]"},"Envelope_DeleteAgentResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/DeleteAgentResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[DeleteAgentResponse]"},"Envelope_DeleteLibraryResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/DeleteLibraryResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[DeleteLibraryResponse]"},"Envelope_DeleteResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/DeleteResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[DeleteResponse]"},"Envelope_DeleteTranscriptResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/DeleteTranscriptResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[DeleteTranscriptResponse]"},"Envelope_DeviceApproveResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/DeviceApproveResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[DeviceApproveResponse]"},"Envelope_DeviceDenyResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/DeviceDenyResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[DeviceDenyResponse]"},"Envelope_DeviceLookupResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/DeviceLookupResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[DeviceLookupResponse]"},"Envelope_DevicePollResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/DevicePollResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[DevicePollResponse]"},"Envelope_DeviceStartResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/DeviceStartResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[DeviceStartResponse]"},"Envelope_DocumentDetail_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/DocumentDetail"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[DocumentDetail]"},"Envelope_EditSectionResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/EditSectionResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[EditSectionResponse]"},"Envelope_EmailChangeResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/EmailChangeResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[EmailChangeResponse]"},"Envelope_FeedbackDetail_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/FeedbackDetail"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[FeedbackDetail]"},"Envelope_ForgotPasswordResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/ForgotPasswordResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[ForgotPasswordResponse]"},"Envelope_GrantItem_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/GrantItem"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[GrantItem]"},"Envelope_GuestInvitationItem_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/GuestInvitationItem"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[GuestInvitationItem]"},"Envelope_GuestItem_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/GuestItem"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[GuestItem]"},"Envelope_GuestList_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/GuestList"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[GuestList]"},"Envelope_HandleCheckResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/HandleCheckResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[HandleCheckResponse]"},"Envelope_HandoffEmailResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/HandoffEmailResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[HandoffEmailResponse]"},"Envelope_HandoffRedeemResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/HandoffRedeemResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[HandoffRedeemResponse]"},"Envelope_HomeResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/HomeResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[HomeResponse]"},"Envelope_ImportView_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/ImportView"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[ImportView]"},"Envelope_ImportsResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/ImportsResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[ImportsResponse]"},"Envelope_InboundInvitationItem_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/InboundInvitationItem"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[InboundInvitationItem]"},"Envelope_InputSizeReport_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/InputSizeReport"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[InputSizeReport]"},"Envelope_InstallAssets_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/InstallAssets"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[InstallAssets]"},"Envelope_InvitationBlocksResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/InvitationBlocksResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[InvitationBlocksResponse]"},"Envelope_InvitationPreview_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/InvitationPreview"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[InvitationPreview]"},"Envelope_InviteDraftOut_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/InviteDraftOut"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[InviteDraftOut]"},"Envelope_InvitePreviewOut_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/InvitePreviewOut"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[InvitePreviewOut]"},"Envelope_JobActionResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/JobActionResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[JobActionResponse]"},"Envelope_JobDetail_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/JobDetail"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[JobDetail]"},"Envelope_LeaveSharedLibraryResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/LeaveSharedLibraryResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[LeaveSharedLibraryResponse]"},"Envelope_LibraryDetail_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/LibraryDetail"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[LibraryDetail]"},"Envelope_LibraryPublicReach_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/LibraryPublicReach"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[LibraryPublicReach]"},"Envelope_LibraryReaders_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/LibraryReaders"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[LibraryReaders]"},"Envelope_LibrarySuggestionOut_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/LibrarySuggestionOut"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[LibrarySuggestionOut]"},"Envelope_LibraryTemplateDetailOut_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/LibraryTemplateDetailOut"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[LibraryTemplateDetailOut]"},"Envelope_LibraryTemplateProfileTabsOut_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/LibraryTemplateProfileTabsOut"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[LibraryTemplateProfileTabsOut]"},"Envelope_LibraryTemplateSearchOut_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/LibraryTemplateSearchOut"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[LibraryTemplateSearchOut]"},"Envelope_LoginResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/LoginResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[LoginResponse]"},"Envelope_LogoutResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/LogoutResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[LogoutResponse]"},"Envelope_MagicLinkResendResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/MagicLinkResendResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[MagicLinkResendResponse]"},"Envelope_MagicLoginResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/MagicLoginResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[MagicLoginResponse]"},"Envelope_MapResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/MapResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[MapResponse]"},"Envelope_MeAgentDetail_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/MeAgentDetail"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[MeAgentDetail]"},"Envelope_MeIdentity_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/MeIdentity"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[MeIdentity]"},"Envelope_MemberDetail_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/MemberDetail"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[MemberDetail]"},"Envelope_MemoryListItem_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/MemoryListItem"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[MemoryListItem]"},"Envelope_MovePageResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/MovePageResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[MovePageResponse]"},"Envelope_MyInviteResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/MyInviteResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[MyInviteResponse]"},"Envelope_NavChanges_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/NavChanges"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[NavChanges]"},"Envelope_NoneType_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"type":"null","title":"Data"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[NoneType]"},"Envelope_OnboardingState_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/OnboardingState"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[OnboardingState]"},"Envelope_OpsAccountDetail_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/OpsAccountDetail"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[OpsAccountDetail]"},"Envelope_OpsActiveUsers_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/OpsActiveUsers"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[OpsActiveUsers]"},"Envelope_OpsActivity_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/OpsActivity"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[OpsActivity]"},"Envelope_OpsAgentDetail_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/OpsAgentDetail"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[OpsAgentDetail]"},"Envelope_OpsAgentSummary_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/OpsAgentSummary"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[OpsAgentSummary]"},"Envelope_OpsAttention_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/OpsAttention"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[OpsAttention]"},"Envelope_OpsBillingResync_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/OpsBillingResync"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[OpsBillingResync]"},"Envelope_OpsBrainstormRunDetail_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/OpsBrainstormRunDetail"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[OpsBrainstormRunDetail]"},"Envelope_OpsCreditRefundResult_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/OpsCreditRefundResult"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[OpsCreditRefundResult]"},"Envelope_OpsEmailSendDetail_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/OpsEmailSendDetail"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[OpsEmailSendDetail]"},"Envelope_OpsEmailSummary_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/OpsEmailSummary"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[OpsEmailSummary]"},"Envelope_OpsEmailSuppression_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/OpsEmailSuppression"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[OpsEmailSuppression]"},"Envelope_OpsEnterpriseInquiry_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/OpsEnterpriseInquiry"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[OpsEnterpriseInquiry]"},"Envelope_OpsFeedbackDetail_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/OpsFeedbackDetail"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[OpsFeedbackDetail]"},"Envelope_OpsFinanceReport_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/OpsFinanceReport"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[OpsFinanceReport]"},"Envelope_OpsJobDetail_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/OpsJobDetail"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[OpsJobDetail]"},"Envelope_OpsLibraryReads_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/OpsLibraryReads"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[OpsLibraryReads]"},"Envelope_OpsLibrarySettings_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/OpsLibrarySettings"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[OpsLibrarySettings]"},"Envelope_OpsLibraryStructureSummary_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/OpsLibraryStructureSummary"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[OpsLibraryStructureSummary]"},"Envelope_OpsLibraryStructure_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/OpsLibraryStructure"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[OpsLibraryStructure]"},"Envelope_OpsNewUsers_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/OpsNewUsers"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[OpsNewUsers]"},"Envelope_OpsResetPasswordResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/OpsResetPasswordResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[OpsResetPasswordResponse]"},"Envelope_OpsTestClockTrial_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/OpsTestClockTrial"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[OpsTestClockTrial]"},"Envelope_OpsTraceDetail_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/OpsTraceDetail"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[OpsTraceDetail]"},"Envelope_OpsUserDetail_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/OpsUserDetail"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[OpsUserDetail]"},"Envelope_OrgDetail_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/OrgDetail"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[OrgDetail]"},"Envelope_OverviewSnapshot_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/OverviewSnapshot"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[OverviewSnapshot]"},"Envelope_PageAccessAudit_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/PageAccessAudit"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[PageAccessAudit]"},"Envelope_PageInvitationItem_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/PageInvitationItem"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[PageInvitationItem]"},"Envelope_PageQualityPages_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/PageQualityPages"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[PageQualityPages]"},"Envelope_PageQualityReport_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/PageQualityReport"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[PageQualityReport]"},"Envelope_PageRewriteResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/PageRewriteResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[PageRewriteResponse]"},"Envelope_PageTypeSummary_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/PageTypeSummary"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[PageTypeSummary]"},"Envelope_PageView_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/PageView"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[PageView]"},"Envelope_PickerTokenResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/PickerTokenResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[PickerTokenResponse]"},"Envelope_PortalResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/PortalResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[PortalResponse]"},"Envelope_PromptMap_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/PromptMap"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[PromptMap]"},"Envelope_PromptPerformance_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/PromptPerformance"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[PromptPerformance]"},"Envelope_ProvidersResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/ProvidersResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[ProvidersResponse]"},"Envelope_PublicProfile_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/PublicProfile"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[PublicProfile]"},"Envelope_QueueHealthResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/QueueHealthResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[QueueHealthResponse]"},"Envelope_ReconsolidationDetail_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/ReconsolidationDetail"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[ReconsolidationDetail]"},"Envelope_RecoverBatchResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/RecoverBatchResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[RecoverBatchResponse]"},"Envelope_RecoverPageResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/RecoverPageResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[RecoverPageResponse]"},"Envelope_RegisterResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/RegisterResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[RegisterResponse]"},"Envelope_RemoveMemberResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/RemoveMemberResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[RemoveMemberResponse]"},"Envelope_RenameHandleResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/RenameHandleResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[RenameHandleResponse]"},"Envelope_RenderWebhookResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/RenderWebhookResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[RenderWebhookResponse]"},"Envelope_ResendWebhookResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/ResendWebhookResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[ResendWebhookResponse]"},"Envelope_ResetPasswordResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/ResetPasswordResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[ResetPasswordResponse]"},"Envelope_ResyncResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/ResyncResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[ResyncResponse]"},"Envelope_RetryFailedResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/RetryFailedResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[RetryFailedResponse]"},"Envelope_ReviseSuggestionResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/ReviseSuggestionResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[ReviseSuggestionResponse]"},"Envelope_RevokeAgentTokenResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/RevokeAgentTokenResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[RevokeAgentTokenResponse]"},"Envelope_RevokeAllAgentCredentialsResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/RevokeAllAgentCredentialsResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[RevokeAllAgentCredentialsResponse]"},"Envelope_RevokeGrantResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/RevokeGrantResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[RevokeGrantResponse]"},"Envelope_RevokeGuestResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/RevokeGuestResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[RevokeGuestResponse]"},"Envelope_RevokeInvitationResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/RevokeInvitationResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[RevokeInvitationResponse]"},"Envelope_RevokeSessionsResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/RevokeSessionsResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[RevokeSessionsResponse]"},"Envelope_RevokeShareResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/RevokeShareResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[RevokeShareResponse]"},"Envelope_RevokeSignInsResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/RevokeSignInsResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[RevokeSignInsResponse]"},"Envelope_SampleRender_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/SampleRender"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[SampleRender]"},"Envelope_ScopeSharingResult_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/ScopeSharingResult"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[ScopeSharingResult]"},"Envelope_ScopeSharingState_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/ScopeSharingState"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[ScopeSharingState]"},"Envelope_SearchResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/SearchResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[SearchResponse]"},"Envelope_SectionRewriteResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/SectionRewriteResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[SectionRewriteResponse]"},"Envelope_SendFriendInvitesResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/SendFriendInvitesResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[SendFriendInvitesResponse]"},"Envelope_SendUserEmailResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/SendUserEmailResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[SendUserEmailResponse]"},"Envelope_SessionDetail_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/SessionDetail"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[SessionDetail]"},"Envelope_SetPasswordLinkResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/SetPasswordLinkResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[SetPasswordLinkResponse]"},"Envelope_SettingsResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/SettingsResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[SettingsResponse]"},"Envelope_ShareItem_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/ShareItem"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[ShareItem]"},"Envelope_SignInChoices_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/SignInChoices"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[SignInChoices]"},"Envelope_SignInListResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/SignInListResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[SignInListResponse]"},"Envelope_SignupConfigResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/SignupConfigResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[SignupConfigResponse]"},"Envelope_StripeWebhookResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/StripeWebhookResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[StripeWebhookResponse]"},"Envelope_SubpagesFollowResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/SubpagesFollowResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[SubpagesFollowResponse]"},"Envelope_SynthesisHealthSummary_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/SynthesisHealthSummary"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[SynthesisHealthSummary]"},"Envelope_SystemInfo_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/SystemInfo"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[SystemInfo]"},"Envelope_TeamDetail_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/TeamDetail"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[TeamDetail]"},"Envelope_TemplateDetailOut_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/TemplateDetailOut"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[TemplateDetailOut]"},"Envelope_TraceHealthResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/TraceHealthResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[TraceHealthResponse]"},"Envelope_TranscriptContent_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/TranscriptContent"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[TranscriptContent]"},"Envelope_TransferLibraryPreview_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/TransferLibraryPreview"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[TransferLibraryPreview]"},"Envelope_TransferLibraryResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/TransferLibraryResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[TransferLibraryResponse]"},"Envelope_TransferOwnershipResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/TransferOwnershipResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[TransferOwnershipResponse]"},"Envelope_UnblockInvitationsResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/UnblockInvitationsResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[UnblockInvitationsResponse]"},"Envelope_Union_SeatPrice__NoneType__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/SeatPrice"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[Union[SeatPrice, NoneType]]"},"Envelope_UnlinkAgentResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/UnlinkAgentResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[UnlinkAgentResponse]"},"Envelope_UpdateMemoryResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/UpdateMemoryResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[UpdateMemoryResponse]"},"Envelope_UsageReport_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/UsageReport"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[UsageReport]"},"Envelope_UserProfileResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/UserProfileResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[UserProfileResponse]"},"Envelope_ValidateCodeResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/ValidateCodeResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[ValidateCodeResponse]"},"Envelope_VerificationEmailSendResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/VerificationEmailSendResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[VerificationEmailSendResponse]"},"Envelope_VerifyEmailResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/VerifyEmailResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[VerifyEmailResponse]"},"Envelope_VisibilityResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/VisibilityResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[VisibilityResponse]"},"Envelope_VoiceTokenResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/VoiceTokenResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[VoiceTokenResponse]"},"Envelope_WaitingSuggestionsOut_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/WaitingSuggestionsOut"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[WaitingSuggestionsOut]"},"Envelope_WaitlistJoinResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/WaitlistJoinResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[WaitlistJoinResponse]"},"Envelope_WaitlistSignupOut_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/WaitlistSignupOut"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[WaitlistSignupOut]"},"Envelope_WaitlistStatsResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/WaitlistStatsResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[WaitlistStatsResponse]"},"Envelope_list_AccountSummary__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/AccountSummary"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[list[AccountSummary]]"},"Envelope_list_AgentCredentialItem__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/AgentCredentialItem"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[list[AgentCredentialItem]]"},"Envelope_list_AgentSummary__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/AgentSummary"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[list[AgentSummary]]"},"Envelope_list_AgentTokenItem__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/AgentTokenItem"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[list[AgentTokenItem]]"},"Envelope_list_BilledAccount__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/BilledAccount"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[list[BilledAccount]]"},"Envelope_list_BreakGlassListItem__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/BreakGlassListItem"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[list[BreakGlassListItem]]"},"Envelope_list_BreakGlassLogItem__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/BreakGlassLogItem"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[list[BreakGlassLogItem]]"},"Envelope_list_CollectionPromptItem__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/CollectionPromptItem"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[list[CollectionPromptItem]]"},"Envelope_list_ConnectAccountCandidate__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/ConnectAccountCandidate"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[list[ConnectAccountCandidate]]"},"Envelope_list_ConnectAgentCandidate__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/ConnectAgentCandidate"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[list[ConnectAgentCandidate]]"},"Envelope_list_DocumentListItem__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/DocumentListItem"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[list[DocumentListItem]]"},"Envelope_list_GrantItem__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/GrantItem"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[list[GrantItem]]"},"Envelope_list_InboundInvitationItem__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/InboundInvitationItem"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[list[InboundInvitationItem]]"},"Envelope_list_InvitationListItem__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/InvitationListItem"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[list[InvitationListItem]]"},"Envelope_list_JobListItem__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/JobListItem"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[list[JobListItem]]"},"Envelope_list_LibraryListItem__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/LibraryListItem"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[list[LibraryListItem]]"},"Envelope_list_LibraryOnboardingPromptItem__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/LibraryOnboardingPromptItem"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[list[LibraryOnboardingPromptItem]]"},"Envelope_list_MeAgentSummary__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/MeAgentSummary"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[list[MeAgentSummary]]"},"Envelope_list_MemberListItem__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/MemberListItem"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[list[MemberListItem]]"},"Envelope_list_MemoryListItem__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/MemoryListItem"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[list[MemoryListItem]]"},"Envelope_list_OfferedShareItem__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/OfferedShareItem"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[list[OfferedShareItem]]"},"Envelope_list_OpsAccountListItem__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/OpsAccountListItem"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[list[OpsAccountListItem]]"},"Envelope_list_OpsAgentDay__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/OpsAgentDay"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[list[OpsAgentDay]]"},"Envelope_list_OpsAgentListItem__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/OpsAgentListItem"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[list[OpsAgentListItem]]"},"Envelope_list_OpsAuditListItem__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/OpsAuditListItem"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[list[OpsAuditListItem]]"},"Envelope_list_OpsBrainstormRunListItem__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/OpsBrainstormRunListItem"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[list[OpsBrainstormRunListItem]]"},"Envelope_list_OpsEmailSend__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/OpsEmailSend"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[list[OpsEmailSend]]"},"Envelope_list_OpsEmailSuppression__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/OpsEmailSuppression"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[list[OpsEmailSuppression]]"},"Envelope_list_OpsEnterpriseInquiry__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/OpsEnterpriseInquiry"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[list[OpsEnterpriseInquiry]]"},"Envelope_list_OpsFeedbackDetail__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/OpsFeedbackDetail"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[list[OpsFeedbackDetail]]"},"Envelope_list_OpsFeedbackListItem__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/OpsFeedbackListItem"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[list[OpsFeedbackListItem]]"},"Envelope_list_OpsJobListItem__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/OpsJobListItem"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[list[OpsJobListItem]]"},"Envelope_list_OpsLibraryListItem__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/OpsLibraryListItem"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[list[OpsLibraryListItem]]"},"Envelope_list_OpsLibrarySettings__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/OpsLibrarySettings"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[list[OpsLibrarySettings]]"},"Envelope_list_OpsSignupTagCount__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/OpsSignupTagCount"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[list[OpsSignupTagCount]]"},"Envelope_list_OpsTraceListItem__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/OpsTraceListItem"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[list[OpsTraceListItem]]"},"Envelope_list_OpsUserListItem__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/OpsUserListItem"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[list[OpsUserListItem]]"},"Envelope_list_PageInvitationItem__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/PageInvitationItem"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[list[PageInvitationItem]]"},"Envelope_list_PageSummary__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/PageSummary"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[list[PageSummary]]"},"Envelope_list_PageTypeSummary__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/PageTypeSummary"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[list[PageTypeSummary]]"},"Envelope_list_ReconsolidationListItem__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/ReconsolidationListItem"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[list[ReconsolidationListItem]]"},"Envelope_list_SessionListItem__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/SessionListItem"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[list[SessionListItem]]"},"Envelope_list_ShareItem__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/ShareItem"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[list[ShareItem]]"},"Envelope_list_SharedLibraryItem__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/SharedLibraryItem"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[list[SharedLibraryItem]]"},"Envelope_list_SynthesisHealthPage__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/SynthesisHealthPage"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[list[SynthesisHealthPage]]"},"Envelope_list_SynthesisPromptView__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/SynthesisPromptView"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[list[SynthesisPromptView]]"},"Envelope_list_TeamListItem__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/TeamListItem"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[list[TeamListItem]]"},"Envelope_list_TranscriptListItem__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/TranscriptListItem"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[list[TranscriptListItem]]"},"Envelope_list_TranscriptSearchHit__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/TranscriptSearchHit"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[list[TranscriptSearchHit]]"},"Envelope_list_WaitlistReferrerSummaryOut__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/WaitlistReferrerSummaryOut"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[list[WaitlistReferrerSummaryOut]]"},"Envelope_list_WaitlistSignupOut__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/WaitlistSignupOut"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[list[WaitlistSignupOut]]"},"Envelope_list_WaitlistSurveyQuestion__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/WaitlistSurveyQuestion"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[list[WaitlistSurveyQuestion]]"},"Envelope_list_str__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"meta":{"anyOf":[{"$ref":"#/components/schemas/PaginationMeta"},{"type":"null"}]}},"type":"object","title":"Envelope[list[str]]"},"ErrorEnvelope":{"description":"The client-error body for a domain error, a string ``HTTPException``, or a\nmiddleware rejection. Every one is built by :func:`error_body`, and the\nOpenAPI ``4XX`` response documents this model, so the two cannot drift.","properties":{"success":{"const":false,"title":"Success","type":"boolean"},"data":{"title":"Data","type":"null"},"error":{"title":"Error","type":"string"},"field":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Field"}},"required":["success","data","error","field"],"title":"ErrorEnvelope","type":"object"},"FeatureFlag":{"properties":{"name":{"type":"string","title":"Name"},"status":{"type":"string","enum":["enabled","on_hold","deferred"],"title":"Status"},"note":{"type":"string","title":"Note"}},"type":"object","required":["name","status","note"],"title":"FeatureFlag"},"FeedbackDetail":{"properties":{"id":{"type":"string","title":"Id"},"kind":{"type":"string","enum":["bug","feature","other"],"title":"Kind"},"source_type":{"type":"string","enum":["session","web"],"title":"Source Type"},"status":{"type":"string","enum":["open","triaged","in_progress","resolved","closed","wont_fix","duplicate"],"title":"Status"},"severity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Severity"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"component":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Component"},"body":{"type":"string","title":"Body"},"context":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Context"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","kind","source_type","status","body","created_at"],"title":"FeedbackDetail","description":"The report just filed, echoed back to its sender."},"ForgotPasswordRequest":{"properties":{"email":{"type":"string","maxLength":255,"minLength":3,"title":"Email"}},"type":"object","required":["email"],"title":"ForgotPasswordRequest"},"ForgotPasswordResponse":{"properties":{"sent":{"type":"boolean","title":"Sent"}},"type":"object","required":["sent"],"title":"ForgotPasswordResponse"},"GrantAccessItem":{"properties":{"principal_kind":{"type":"string","enum":["member","team"],"title":"Principal Kind"},"principal_id":{"type":"string","title":"Principal Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"can_read":{"type":"boolean","title":"Can Read"},"can_write":{"type":"boolean","title":"Can Write"},"can_share":{"type":"boolean","title":"Can Share"},"can_delete":{"type":"boolean","title":"Can Delete"},"can_read_private":{"type":"boolean","title":"Can Read Private"}},"type":"object","required":["principal_kind","principal_id","can_read","can_write","can_share","can_delete","can_read_private"],"title":"GrantAccessItem","description":"A library grant that reaches an page (membership path)."},"GrantItem":{"properties":{"id":{"type":"string","title":"Id"},"principal_kind":{"type":"string","enum":["member","team"],"title":"Principal Kind"},"principal_id":{"type":"string","title":"Principal Id"},"principal_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Principal Name"},"can_read":{"type":"boolean","title":"Can Read"},"can_write":{"type":"boolean","title":"Can Write"},"can_share":{"type":"boolean","title":"Can Share"},"can_delete":{"type":"boolean","title":"Can Delete"},"can_read_private":{"type":"boolean","title":"Can Read Private"},"preset":{"anyOf":[{"type":"string","enum":["consumer","contributor","curator","admin"]},{"type":"null"}],"title":"Preset"},"is_self":{"type":"boolean","title":"Is Self","default":false},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","principal_kind","principal_id","can_read","can_write","can_share","can_delete","can_read_private","created_at"],"title":"GrantItem","description":"A live grant on a library, with its principal and effective preset."},"GrantSpecInput":{"properties":{"library_id":{"type":"string","title":"Library Id"},"preset":{"anyOf":[{"type":"string","enum":["consumer","contributor","curator","admin"]},{"type":"null"}],"title":"Preset"},"actions":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Actions"},"can_read_private":{"type":"boolean","title":"Can Read Private","default":false}},"type":"object","required":["library_id"],"title":"GrantSpecInput","description":"A library grant to apply on accept: a preset (or explicit actions) + flags."},"GuestAccessItem":{"properties":{"user_id":{"type":"string","title":"User Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"history_visible_from":{"type":"string","format":"date-time","title":"History Visible From"}},"type":"object","required":["user_id","history_visible_from"],"title":"GuestAccessItem","description":"A person outside the account who reads this page's library as a guest."},"GuestInvitationItem":{"properties":{"id":{"type":"string","title":"Id"},"email":{"type":"string","title":"Email"},"role":{"type":"string","enum":["viewer","collaborator"],"title":"Role"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"}},"type":"object","required":["id","email","role","created_at"],"title":"GuestInvitationItem","description":"A pending invitation to the library, sent by email to someone outside the account."},"GuestItem":{"properties":{"id":{"type":"string","title":"Id"},"user_id":{"type":"string","title":"User Id"},"handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Handle"},"role":{"type":"string","enum":["viewer","collaborator"],"title":"Role"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"pending":{"type":"boolean","title":"Pending"}},"type":"object","required":["id","user_id","role","created_at","pending"],"title":"GuestItem","description":"A guest grant on a library: a person outside the account who reads it, and\nas a Collaborator also writes there, once they accept it."},"GuestList":{"properties":{"grantable":{"type":"boolean","title":"Grantable"},"limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"},"used":{"type":"integer","title":"Used"},"guests":{"items":{"$ref":"#/components/schemas/GuestItem"},"type":"array","title":"Guests"},"invitations":{"items":{"$ref":"#/components/schemas/GuestInvitationItem"},"type":"array","title":"Invitations"}},"type":"object","required":["grantable","limit","used","guests","invitations"],"title":"GuestList","description":"The library's guests, with the account policy that bounds them."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HandleCheckResponse":{"properties":{"handle":{"type":"string","title":"Handle"},"available":{"type":"boolean","title":"Available"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["handle","available"],"title":"HandleCheckResponse"},"HandoffEmailRequest":{"properties":{"client_kind":{"anyOf":[{"type":"string","enum":["claude-code","claude-desktop","codex","cursor"]},{"type":"null"}],"title":"Client Kind","description":"The client the person will connect; the email names it."}},"type":"object","title":"HandoffEmailRequest","description":"Body of POST /v1/onboarding/handoff-email; it may be omitted."},"HandoffEmailResponse":{"properties":{"sent":{"type":"boolean","title":"Sent"},"email":{"type":"string","title":"Email"}},"type":"object","required":["sent","email"],"title":"HandoffEmailResponse","description":"Outcome of POST /v1/onboarding/handoff-email.\n\n``sent=False`` means one went out recently (inside the cooldown, or the\nday's cap is used): the card says it was already sent. Never an error: the\nbutton stays calm. Sending again is the computer's job, from the page a\nspent link opens (``POST /v1/auth/magic/resend``)."},"HandoffRedeemRequest":{"properties":{"code":{"type":"string","maxLength":128,"minLength":1,"title":"Code"}},"type":"object","required":["code"],"title":"HandoffRedeemRequest"},"HandoffRedeemResponse":{"properties":{"status":{"type":"string","enum":["ok","unknown","expired"],"title":"Status"},"raw_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Raw Token"},"agent_display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Display Name"},"client_kind":{"anyOf":[{"type":"string","enum":["claude-code","claude-desktop","openclaw","codex","cursor","gemini-cli","antigravity","chatgpt","gemini","muse","hermes","perplexity","other","seaglass-cli","seaglass-system"]},{"type":"null"}],"title":"Client Kind"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"}},"type":"object","required":["status"],"title":"HandoffRedeemResponse"},"HealthLag":{"properties":{"days":{"type":"integer","title":"Days"},"pages":{"type":"integer","title":"Pages"},"p50_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"P50 Seconds"},"p95_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"P95 Seconds"}},"type":"object","required":["days","pages","p50_seconds","p95_seconds"],"title":"HealthLag","description":"Capture-to-page lag: each page's last memory-triggered synthesis in the window."},"HealthNotice":{"properties":{"kind":{"type":"string","enum":["prompt_drift","model_drift","has_notes","spend_cap"],"title":"Kind"},"pages":{"type":"integer","title":"Pages"},"current":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current"}},"type":"object","required":["kind","pages","current"],"title":"HealthNotice","description":"A fact about many pages, said once instead of on every row."},"HealthThresholds":{"properties":{"behind_after_seconds":{"type":"integer","title":"Behind After Seconds"},"low_quality_score":{"type":"number","title":"Low Quality Score"}},"type":"object","required":["behind_after_seconds","low_quality_score"],"title":"HealthThresholds","description":"The Behind window and Low quality floor (``page_health_rules``) the\nconsole's bucket hints are worded from, so the copy cannot drift."},"HomeAgent":{"properties":{"display_name":{"type":"string","title":"Display Name"},"client_kind":{"type":"string","enum":["claude-code","claude-desktop","openclaw","codex","cursor","gemini-cli","antigravity","chatgpt","gemini","muse","hermes","perplexity","other","seaglass-cli","seaglass-system"],"title":"Client Kind"}},"type":"object","required":["display_name","client_kind"],"title":"HomeAgent","description":"An agent as the state panel names it."},"HomeCounts":{"properties":{"memories":{"type":"integer","title":"Memories"},"memories_delta":{"type":"integer","title":"Memories Delta"},"pages_synthesized":{"type":"integer","title":"Pages Synthesized"},"pages_delta":{"type":"integer","title":"Pages Delta"},"agents":{"type":"integer","title":"Agents"}},"type":"object","required":["memories","memories_delta","pages_synthesized","pages_delta","agents"],"title":"HomeCounts"},"HomeLibraryPrompt":{"properties":{"library":{"type":"string","title":"Library"},"id":{"type":"string","title":"Id"},"text":{"type":"string","title":"Text"}},"type":"object","required":["library","id","text"],"title":"HomeLibraryPrompt","description":"A library's lead starter prompt, for the All libraries head start."},"HomePulse":{"properties":{"new_pages":{"items":{"type":"integer"},"type":"array","title":"New Pages"},"page_edits":{"items":{"type":"integer"},"type":"array","title":"Page Edits"},"searches":{"items":{"type":"integer"},"type":"array","title":"Searches"},"pages_searched":{"items":{"type":"integer"},"type":"array","title":"Pages Searched"},"memories":{"items":{"type":"integer"},"type":"array","title":"Memories"},"documents":{"items":{"type":"integer"},"type":"array","title":"Documents"},"conversations":{"items":{"type":"integer"},"type":"array","title":"Conversations"}},"type":"object","required":["new_pages","page_edits","searches","pages_searched","memories","documents","conversations"],"title":"HomePulse","description":"Seven series of the last 30 UTC days in scope, oldest first: the wiki's\n(new pages, page edits, agent searches and the page hits they listed) and\nmemory's (memories, documents, conversations that saved or wrote)."},"HomeRecentMemory":{"properties":{"id":{"type":"string","title":"Id"},"content":{"type":"string","title":"Content"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"library":{"type":"string","title":"Library","default":""},"agent_display_name":{"type":"string","title":"Agent Display Name","default":""},"agent_client_kind":{"anyOf":[{"type":"string","enum":["claude-code","claude-desktop","openclaw","codex","cursor","gemini-cli","antigravity","chatgpt","gemini","muse","hermes","perplexity","other","seaglass-cli","seaglass-system"]},{"type":"string","const":""}],"title":"Agent Client Kind","default":""}},"type":"object","required":["id","content","created_at"],"title":"HomeRecentMemory"},"HomeRecentPage":{"properties":{"id":{"type":"string","title":"Id"},"type":{"type":"string","title":"Type"},"slug":{"type":"string","title":"Slug"},"title":{"type":"string","title":"Title"},"handle":{"type":"string","title":"Handle","default":""},"library":{"type":"string","title":"Library","default":""},"one_line_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"One Line Summary"},"last_synthesized_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Synthesized At"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"writer_count":{"type":"integer","title":"Writer Count","default":0}},"type":"object","required":["id","type","slug","title"],"title":"HomeRecentPage"},"HomeResponse":{"properties":{"counts":{"$ref":"#/components/schemas/HomeCounts"},"caller_agents":{"items":{"$ref":"#/components/schemas/HomeAgent"},"type":"array","title":"Caller Agents","default":[]},"connect_picks":{"items":{"type":"string"},"type":"array","title":"Connect Picks","default":[]},"active_agents":{"items":{"$ref":"#/components/schemas/HomeAgent"},"type":"array","title":"Active Agents","default":[]},"pulse":{"$ref":"#/components/schemas/HomePulse"},"library_prompts":{"items":{"$ref":"#/components/schemas/HomeLibraryPrompt"},"type":"array","title":"Library Prompts","default":[]},"recent_pages":{"items":{"$ref":"#/components/schemas/HomeRecentPage"},"type":"array","title":"Recent Pages"},"recent_memories":{"items":{"$ref":"#/components/schemas/HomeRecentMemory"},"type":"array","title":"Recent Memories"}},"type":"object","required":["counts","pulse","recent_pages","recent_memories"],"title":"HomeResponse"},"ImportManualRequest":{"properties":{"external_id":{"type":"string","title":"External Id"},"library":{"type":"string","title":"Library"},"title":{"type":"string","title":"Title"},"content":{"type":"string","title":"Content"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"primary_page":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Page"},"primary_page_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Page Type"}},"type":"object","required":["external_id","library","title","content"],"title":"ImportManualRequest"},"ImportRequest":{"properties":{"external_id":{"type":"string","title":"External Id"},"library":{"type":"string","title":"Library"},"primary_page":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Page"},"primary_page_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Page Type"}},"type":"object","required":["external_id","library"],"title":"ImportRequest"},"ImportView":{"properties":{"source_document_id":{"type":"string","title":"Source Document Id"},"external_id":{"type":"string","title":"External Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"document_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Id"},"external_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Url"},"status":{"type":"string","enum":["candidate","active","stale","gone"],"title":"Status"},"sync_enabled":{"type":"boolean","title":"Sync Enabled"}},"type":"object","required":["source_document_id","external_id","title","document_id","external_url","status","sync_enabled"],"title":"ImportView","description":"The wire shape of a source document (candidate or imported).\n\nKeyed ``source_document_id`` on the wire — the route/feature noun stays\n\"source-document\" even though the data-layer model is ``Import`` (ADR-2026-06-26-rename-connector-tables-integrations-imports)."},"ImportsResponse":{"properties":{"documents":{"items":{"$ref":"#/components/schemas/ImportView"},"type":"array","title":"Documents"}},"type":"object","required":["documents"],"title":"ImportsResponse"},"InboundInvitationItem":{"properties":{"id":{"type":"string","title":"Id"},"kind":{"type":"string","enum":["seat","library","page"],"title":"Kind"},"account_handle":{"type":"string","title":"Account Handle"},"account_display_name":{"type":"string","title":"Account Display Name"},"account_role":{"anyOf":[{"type":"string","enum":["owner","admin","member"]},{"type":"null"}],"title":"Account Role"},"library":{"anyOf":[{"$ref":"#/components/schemas/InvitationLibrary"},{"type":"null"}]},"page":{"anyOf":[{"$ref":"#/components/schemas/InvitationPage"},{"type":"null"}]},"status":{"type":"string","enum":["pending","accepted","declined","revoked"],"title":"Status"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"}},"type":"object","required":["id","kind","account_handle","account_display_name","status"],"title":"InboundInvitationItem","description":"An invitation as seen by the invitee (no token; the accept link carried it).\n\nA seat invitation carries ``account_role``; a library invitation carries\n``library`` instead and no role in the account, and a page invitation\n``page``."},"InputSizeBand":{"properties":{"low":{"type":"number","title":"Low"},"high":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"High"},"pages":{"type":"integer","title":"Pages"},"graded":{"type":"integer","title":"Graded"},"mean_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mean Score"}},"type":"object","required":["low","high","pages","graded","mean_score"],"title":"InputSizeBand","description":"Pages whose whole share falls in `[low, high)`; `high` null is open-ended."},"InputSizePage":{"properties":{"page_id":{"type":"string","title":"Page Id"},"library_id":{"type":"string","title":"Library Id"},"slug":{"type":"string","title":"Slug"},"title":{"type":"string","title":"Title"},"account_handle":{"type":"string","title":"Account Handle"},"library_slug":{"type":"string","title":"Library Slug"},"memory_count":{"type":"integer","title":"Memory Count"},"memory_tokens":{"type":"integer","title":"Memory Tokens"},"document_count":{"type":"integer","title":"Document Count"},"document_tokens":{"type":"integer","title":"Document Tokens"},"body_tokens":{"type":"integer","title":"Body Tokens"},"whole_tokens":{"type":"integer","title":"Whole Tokens"},"total_tokens":{"type":"integer","title":"Total Tokens"},"whole_share":{"type":"number","title":"Whole Share"},"quality_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Quality Score"}},"type":"object","required":["page_id","library_id","slug","title","account_handle","library_slug","memory_count","memory_tokens","document_count","document_tokens","body_tokens","whole_tokens","total_tokens","whole_share","quality_score"],"title":"InputSizePage","description":"One page's estimated page-synthesis input, in tokens. No text."},"InputSizeReport":{"properties":{"budget_tokens":{"type":"integer","title":"Budget Tokens"},"pages_measured":{"type":"integer","title":"Pages Measured"},"truncated":{"type":"boolean","title":"Truncated"},"whole_share_p50":{"type":"number","title":"Whole Share P50"},"whole_share_p95":{"type":"number","title":"Whole Share P95"},"whole_share_max":{"type":"number","title":"Whole Share Max"},"pages_at_or_over":{"additionalProperties":{"type":"integer"},"type":"object","title":"Pages At Or Over"},"pages_excerpting":{"type":"integer","title":"Pages Excerpting"},"bands":{"items":{"$ref":"#/components/schemas/InputSizeBand"},"type":"array","title":"Bands"},"runs":{"$ref":"#/components/schemas/InputSizeRuns"},"largest":{"items":{"$ref":"#/components/schemas/InputSizePage"},"type":"array","title":"Largest"}},"type":"object","required":["budget_tokens","pages_measured","truncated","whole_share_p50","whole_share_p95","whole_share_max","pages_at_or_over","pages_excerpting","bands","runs","largest"],"title":"InputSizeReport","description":"How close pages' synthesis prompts run to the input budget."},"InputSizeRuns":{"properties":{"days":{"type":"integer","title":"Days"},"runs":{"type":"integer","title":"Runs"},"over_budget":{"type":"integer","title":"Over Budget"},"documents_excerpted":{"type":"integer","title":"Documents Excerpted"},"tokens_p50":{"type":"integer","title":"Tokens P50"},"tokens_p95":{"type":"integer","title":"Tokens P95"},"tokens_max":{"type":"integer","title":"Tokens Max"},"truncated":{"type":"boolean","title":"Truncated"}},"type":"object","required":["days","runs","over_budget","documents_excerpted","tokens_p50","tokens_p95","tokens_max","truncated"],"title":"InputSizeRuns","description":"What synthesis runs in the window recorded about their own input."},"InstallAssets":{"properties":{"connector_url":{"type":"string","title":"Connector Url"},"cursor_install_url":{"type":"string","title":"Cursor Install Url"},"add_to_claude_url":{"type":"string","title":"Add To Claude Url"},"connector_name":{"type":"string","title":"Connector Name"},"marketplace_repo":{"type":"string","title":"Marketplace Repo"},"mcp_server_name":{"type":"string","title":"Mcp Server Name"},"plugin_carries_connector":{"type":"boolean","title":"Plugin Carries Connector"},"claude_plugin_id":{"type":"string","title":"Claude Plugin Id"},"claude_plugin_server":{"type":"string","title":"Claude Plugin Server"}},"type":"object","required":["connector_url","cursor_install_url","add_to_claude_url","connector_name","marketplace_repo","mcp_server_name","plugin_carries_connector","claude_plugin_id","claude_plugin_server"],"title":"InstallAssets","description":"The hosted connector URL and the client-specific deep links built from it.\n\nServed by ``GET /v1/connect/install-assets`` so the web install hub renders\ncopy rather than logic: the connector URL comes from the deployment's config\nand the Cursor config blob is base64-encoded server-side, never hand-built in\nthe browser."},"InvitationBlockItem":{"properties":{"id":{"type":"string","title":"Id"},"account_handle":{"type":"string","title":"Account Handle"},"account_display_name":{"type":"string","title":"Account Display Name"},"blocked_at":{"type":"string","format":"date-time","title":"Blocked At"}},"type":"object","required":["id","account_handle","account_display_name","blocked_at"],"title":"InvitationBlockItem","description":"An account the caller blocked when declining one of its invitations.\n\nOnly the person who blocked it ever sees one; the account is never told."},"InvitationBlocksResponse":{"properties":{"email_verified":{"type":"boolean","title":"Email Verified"},"blocks":{"items":{"$ref":"#/components/schemas/InvitationBlockItem"},"type":"array","title":"Blocks"}},"type":"object","required":["email_verified","blocks"],"title":"InvitationBlocksResponse","description":"The caller's blocks, once their email is verified.\n\n``email_verified`` false means the list is withheld (``blocks`` is empty\nwhatever is recorded): a block is keyed on the address, so only someone who\nproved they hold it may see or lift one."},"InvitationLibrary":{"properties":{"id":{"type":"string","title":"Id"},"slug":{"type":"string","title":"Slug"},"display_name":{"type":"string","title":"Display Name"},"role":{"type":"string","enum":["viewer","collaborator"],"title":"Role"}},"type":"object","required":["id","slug","display_name","role"],"title":"InvitationLibrary","description":"The library a library invitation offers, as its invitee sees it."},"InvitationListItem":{"properties":{"id":{"type":"string","title":"Id"},"email":{"type":"string","title":"Email"},"account_role":{"type":"string","enum":["owner","admin","member"],"title":"Account Role"},"status":{"type":"string","enum":["pending","accepted","declined","revoked"],"title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"}},"type":"object","required":["id","email","account_role","status","created_at"],"title":"InvitationListItem"},"InvitationPage":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"path":{"type":"string","title":"Path"}},"type":"object","required":["id","title","path"],"title":"InvitationPage","description":"The page a page invitation offers, as its invitee sees it."},"InvitationPreview":{"properties":{"kind":{"type":"string","enum":["seat","library","page"],"title":"Kind"},"inviter_label":{"type":"string","title":"Inviter Label"},"account_display_name":{"type":"string","title":"Account Display Name"},"account_role":{"anyOf":[{"type":"string","enum":["owner","admin","member"]},{"type":"null"}],"title":"Account Role"},"library_display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Library Display Name"},"library_role":{"anyOf":[{"type":"string","enum":["viewer","collaborator"]},{"type":"null"}],"title":"Library Role"},"page_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Title"},"on_hold":{"type":"boolean","title":"On Hold","default":false}},"type":"object","required":["kind","inviter_label","account_display_name"],"title":"InvitationPreview","description":"What a signed-out holder of a live invite link sees.\n\nDeliberately narrow: no invited email, no handle, no expiry, and nothing\nthat says whether the invited address already has an account\n(ADR-2026-09-22-a-live-member-invitation-satisfies-the-signup-gate-for-its-email)."},"InviteDraftOut":{"properties":{"subject":{"type":"string","title":"Subject"},"body":{"type":"string","title":"Body"},"trial":{"type":"boolean","title":"Trial"},"placeholders":{"items":{"type":"string"},"type":"array","title":"Placeholders"}},"type":"object","required":["subject","body","trial","placeholders"],"title":"InviteDraftOut","description":"The template a row would be sent: the variant its trial status picks."},"InviteEdit":{"properties":{"subject":{"type":"string","maxLength":1000,"title":"Subject"},"body":{"type":"string","maxLength":20000,"title":"Body"},"note":{"type":"string","maxLength":5000,"title":"Note","default":""}},"type":"object","required":["subject","body"],"title":"InviteEdit","description":"An operator's edit of the invite for one send\n(ADR-2026-11-09-the-waitlist-invite-is-one-founder-template-an-operator-may-edit-per-send).\nNever stored. The template module enforces the limits and placeholders, so\na bad edit is a 400 naming what to fix; these caps only bound the payload."},"InviteGuestRequest":{"properties":{"email":{"type":"string","maxLength":255,"minLength":3,"title":"Email"},"role":{"type":"string","enum":["viewer","collaborator"],"title":"Role","default":"viewer"}},"type":"object","required":["email"],"title":"InviteGuestRequest"},"InvitePageRequest":{"properties":{"email":{"type":"string","maxLength":255,"minLength":3,"title":"Email"}},"type":"object","required":["email"],"title":"InvitePageRequest","description":"Invite an email address to a page (ADR-2026-11-12-a-page-can-be-shared-with-an-email-address)."},"InvitePreviewOut":{"properties":{"subject":{"type":"string","title":"Subject"},"html":{"type":"string","title":"Html"}},"type":"object","required":["subject","html"],"title":"InvitePreviewOut","description":"An edit rendered as it would land, with a stand-in signup link."},"InviteResult":{"properties":{"signup_id":{"type":"string","title":"Signup Id"},"outcome":{"type":"string","title":"Outcome"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"}},"type":"object","required":["signup_id","outcome"],"title":"InviteResult"},"IssueCreditGrantRequest":{"properties":{"source":{"type":"string","enum":["included","topup"],"title":"Source"},"amount_usd":{"type":"number","exclusiveMinimum":0.0,"title":"Amount Usd"},"starts_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Starts At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["source","amount_usd"],"title":"IssueCreditGrantRequest","description":"An operator's grant of usage credit to an account."},"JobActionResponse":{"properties":{"job_id":{"type":"string","title":"Job Id"},"status":{"type":"string","enum":["queued","running","completed","failed","awaiting_agent","cancelled","over_cap"],"title":"Status"}},"type":"object","required":["job_id","status"],"title":"JobActionResponse"},"JobDetail":{"properties":{"id":{"type":"string","title":"Id"},"kind":{"type":"string","enum":["synthesize_page","extract_document","rebuild_profile","title_memories","check_collection_prompts","regenerate_collection_prompts","build_typed_pick_library","write_library_suggestion","judge_memory","grade_page","embed_memory","embed_document","embed_page","build_embedding_set"],"title":"Kind"},"status":{"type":"string","enum":["queued","running","completed","failed","awaiting_agent","cancelled","over_cap"],"title":"Status"},"page_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Id"},"page_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Slug"},"page_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Title"},"account_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Handle"},"library_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Library Slug"},"document_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Id"},"cascade_depth":{"type":"integer","title":"Cascade Depth"},"outcome":{"anyOf":[{"type":"string","enum":["wrote","same_body","unchanged","no_evidence","refresh_declined","handoff_closed","evidence_redacted","kept","patched"]},{"type":"null"}],"title":"Outcome"},"scheduled_for":{"type":"string","format":"date-time","title":"Scheduled For"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"trigger_memory_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trigger Memory Id"},"trigger_document_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trigger Document Id"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"attempts":{"type":"integer","title":"Attempts"},"max_attempts":{"type":"integer","title":"Max Attempts","default":0},"routed_mode":{"anyOf":[{"type":"string","enum":["agent","server"]},{"type":"null"}],"title":"Routed Mode"},"library_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Library Id"},"trace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trace Id"}},"type":"object","required":["id","kind","status","cascade_depth","scheduled_for","created_at","updated_at","attempts"],"title":"JobDetail","description":"Full job record — adds trigger ids and retry-budget state.\n\nKept shape-identical to ``ops.OpsJobDetail`` (F-UI-07: the web renders both\nsurfaces through one ``JobRow``); ``max_attempts`` is server config stamped\nby the router, not a row column."},"JobListItem":{"properties":{"id":{"type":"string","title":"Id"},"kind":{"type":"string","enum":["synthesize_page","extract_document","rebuild_profile","title_memories","check_collection_prompts","regenerate_collection_prompts","build_typed_pick_library","write_library_suggestion","judge_memory","grade_page","embed_memory","embed_document","embed_page","build_embedding_set"],"title":"Kind"},"status":{"type":"string","enum":["queued","running","completed","failed","awaiting_agent","cancelled","over_cap"],"title":"Status"},"page_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Id"},"page_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Slug"},"page_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Title"},"account_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Handle"},"library_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Library Slug"},"document_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Id"},"cascade_depth":{"type":"integer","title":"Cascade Depth"},"outcome":{"anyOf":[{"type":"string","enum":["wrote","same_body","unchanged","no_evidence","refresh_declined","handoff_closed","evidence_redacted","kept","patched"]},{"type":"null"}],"title":"Outcome"},"scheduled_for":{"type":"string","format":"date-time","title":"Scheduled For"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","kind","status","cascade_depth","scheduled_for","created_at"],"title":"JobListItem"},"KindTimingRow":{"properties":{"kind":{"type":"string","enum":["synthesize_page","extract_document","rebuild_profile","title_memories","check_collection_prompts","regenerate_collection_prompts","build_typed_pick_library","write_library_suggestion","judge_memory","grade_page","embed_memory","embed_document","embed_page","build_embedding_set"],"title":"Kind"},"finished":{"type":"integer","title":"Finished"},"failed":{"type":"integer","title":"Failed"},"wait_p50_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Wait P50 Ms"},"wait_p95_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Wait P95 Ms"},"run_p50_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Run P50 Ms"},"run_p95_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Run P95 Ms"}},"type":"object","required":["kind","finished","failed"],"title":"KindTimingRow","description":"One kind's finished jobs in the window, with nearest-rank percentiles.\n\nQueue wait runs from enqueue (``created_at``) to the last claim\n(``started_at``), the ``queue_wait_ms`` interval of the ``synthesis_job_*``\nevents; run time from that claim to ``completed_at``. The percentiles are\n``None`` when no finished job of the kind was ever claimed."},"LeaveSharedLibraryResponse":{"properties":{"library_id":{"type":"string","title":"Library Id"},"left":{"type":"boolean","title":"Left"}},"type":"object","required":["library_id","left"],"title":"LeaveSharedLibraryResponse"},"LibraryDetail":{"properties":{"id":{"type":"string","title":"Id"},"slug":{"type":"string","title":"Slug"},"kind":{"type":"string","enum":["default","standard","member_private"],"title":"Kind"},"display_name":{"type":"string","title":"Display Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtitle"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"},"is_default":{"type":"boolean","title":"Is Default"},"page_count":{"type":"integer","title":"Page Count"},"member_count":{"type":"integer","title":"Member Count"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"template_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Template Id"}},"type":"object","required":["id","slug","kind","display_name","is_default","page_count","member_count","created_at","updated_at"],"title":"LibraryDetail","description":"A single library with its derived counts and audit timestamps."},"LibraryDraftOut":{"properties":{"name":{"type":"string","title":"Name"},"subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtitle"},"description":{"type":"string","title":"Description"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"},"collections":{"items":{"$ref":"#/components/schemas/DraftCollectionOut"},"type":"array","title":"Collections"}},"type":"object","required":["name","subtitle","description","icon","color","collections"],"title":"LibraryDraftOut"},"LibraryListItem":{"properties":{"id":{"type":"string","title":"Id"},"slug":{"type":"string","title":"Slug"},"kind":{"type":"string","enum":["default","standard","member_private"],"title":"Kind"},"display_name":{"type":"string","title":"Display Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtitle"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"},"is_default":{"type":"boolean","title":"Is Default"},"page_count":{"type":"integer","title":"Page Count"},"member_count":{"type":"integer","title":"Member Count"},"memory_count":{"type":"integer","title":"Memory Count","default":0},"archived_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Archived At"},"template_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Template Id"}},"type":"object","required":["id","slug","kind","display_name","is_default","page_count","member_count"],"title":"LibraryListItem","description":"A library as it appears in the management list.\n\n``archived_at`` is set for a put-away library (ADR-2026-07-07-library-archive-is-a-reversible-put-away-state); the management\nlist includes archived libraries so the UI can render them as an inert\nArchived group, while every active-frontier surface excludes them."},"LibraryOnboardingPromptItem":{"properties":{"id":{"type":"string","title":"Id"},"text":{"type":"string","title":"Text"},"collection_slug":{"type":"string","title":"Collection Slug"},"collection_label":{"type":"string","title":"Collection Label"},"collection_icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Collection Icon"},"collection_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Collection Color"}},"type":"object","required":["id","text","collection_slug","collection_label","collection_icon","collection_color"],"title":"LibraryOnboardingPromptItem","description":"One of a library's written onboarding prompts, with the collection it fills\n(ADR-2026-09-28-templates-and-brainstorm-write-onboarding-prompts-as-collection-prompts).\n\nWhat the Ready screen shows after a library is created from a template or\nBrainstorm. The collection's presentation rides along so a card can draw it."},"LibraryPublicReach":{"properties":{"page_count":{"type":"integer","title":"Page Count","description":"How many live public pages the library holds."},"reads_this_week":{"type":"integer","title":"Reads This Week","description":"Public reads of those pages over the last 7 UTC days, today included."},"reads_all_time":{"type":"integer","title":"Reads All Time","description":"Public reads of those pages, ever."},"most_read":{"items":{"$ref":"#/components/schemas/PublicReachPage"},"type":"array","title":"Most Read","description":"Up to three of those pages, most read first; a page never read is left out."}},"type":"object","required":["page_count","reads_this_week","reads_all_time","most_read"],"title":"LibraryPublicReach","description":"How much a library's public pages are read."},"LibraryReaderItem":{"properties":{"kind":{"type":"string","enum":["member","team"],"title":"Kind"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"can_write":{"type":"boolean","title":"Can Write"},"is_you":{"type":"boolean","title":"Is You"}},"type":"object","required":["kind","can_write","is_you"],"title":"LibraryReaderItem","description":"One team or member who reads a library, as its readers see it: a name and\nwhether they can edit, never an email or id\n(ADR-2026-11-12-library-readers-see-who-reads-their-library-and-seats-see-team-names)."},"LibraryReaders":{"properties":{"library_name":{"type":"string","title":"Library Name"},"readers":{"items":{"$ref":"#/components/schemas/LibraryReaderItem"},"type":"array","title":"Readers"},"only_you":{"type":"boolean","title":"Only You"},"can_manage":{"type":"boolean","title":"Can Manage"}},"type":"object","required":["library_name","readers","only_you","can_manage"],"title":"LibraryReaders"},"LibrarySuggestionOut":{"properties":{"id":{"type":"string","title":"Id"},"kind":{"type":"string","enum":["library","collection_changes"],"title":"Kind"},"status":{"type":"string","enum":["pending","applied","dismissed","expired","replaced","closed"],"title":"Status"},"reason":{"type":"string","title":"Reason"},"agent_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"library":{"anyOf":[{"$ref":"#/components/schemas/SuggestionLibraryRef"},{"type":"null"}]},"draft":{"anyOf":[{"$ref":"#/components/schemas/LibraryDraftOut"},{"type":"null"}]},"changes":{"anyOf":[{"items":{"$ref":"#/components/schemas/ChangeOut"},"type":"array"},{"type":"null"}],"title":"Changes"},"untouched":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Untouched"},"writing":{"type":"boolean","title":"Writing"},"similar_templates":{"items":{"$ref":"#/components/schemas/LibraryTemplateOut"},"type":"array","title":"Similar Templates"},"version":{"type":"integer","title":"Version"}},"type":"object","required":["id","kind","status","reason","agent_name","created_at","library","draft","changes","untouched","writing","similar_templates","version"],"title":"LibrarySuggestionOut"},"LibraryTemplateCategoryOut":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"template_count":{"type":"integer","title":"Template Count"}},"type":"object","required":["id","name","template_count"],"title":"LibraryTemplateCategoryOut"},"LibraryTemplateCollectionDetailOut":{"properties":{"slug":{"type":"string","title":"Slug"},"label":{"type":"string","title":"Label"},"subtitle":{"type":"string","title":"Subtitle"},"icon":{"type":"string","title":"Icon"},"color":{"type":"string","title":"Color"},"description":{"type":"string","title":"Description"}},"type":"object","required":["slug","label","subtitle","icon","color","description"],"title":"LibraryTemplateCollectionDetailOut"},"LibraryTemplateCollectionOut":{"properties":{"slug":{"type":"string","title":"Slug"},"label":{"type":"string","title":"Label"},"subtitle":{"type":"string","title":"Subtitle"},"icon":{"type":"string","title":"Icon"},"color":{"type":"string","title":"Color"}},"type":"object","required":["slug","label","subtitle","icon","color"],"title":"LibraryTemplateCollectionOut"},"LibraryTemplateDetailOut":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"subtitle":{"type":"string","title":"Subtitle"},"category":{"type":"string","title":"Category"},"fit":{"items":{"type":"string"},"type":"array","title":"Fit"},"popular":{"type":"boolean","title":"Popular"},"icon":{"type":"string","title":"Icon"},"color":{"type":"string","title":"Color"},"description":{"type":"string","title":"Description"},"collections":{"items":{"$ref":"#/components/schemas/LibraryTemplateCollectionDetailOut"},"type":"array","title":"Collections"},"onboarding_prompts":{"items":{"$ref":"#/components/schemas/LibraryTemplatePromptOut"},"type":"array","title":"Onboarding Prompts"}},"type":"object","required":["id","name","subtitle","category","fit","popular","icon","color","description","collections","onboarding_prompts"],"title":"LibraryTemplateDetailOut"},"LibraryTemplateOut":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"subtitle":{"type":"string","title":"Subtitle"},"category":{"type":"string","title":"Category"},"fit":{"items":{"type":"string"},"type":"array","title":"Fit"},"popular":{"type":"boolean","title":"Popular"},"icon":{"type":"string","title":"Icon"},"color":{"type":"string","title":"Color"},"description":{"type":"string","title":"Description"},"collections":{"items":{"$ref":"#/components/schemas/LibraryTemplateCollectionOut"},"type":"array","title":"Collections"}},"type":"object","required":["id","name","subtitle","category","fit","popular","icon","color","description","collections"],"title":"LibraryTemplateOut"},"LibraryTemplateProfileTabOut":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"categories":{"items":{"type":"string"},"type":"array","title":"Categories"},"starters":{"items":{"$ref":"#/components/schemas/LibraryTemplateOut"},"type":"array","title":"Starters"}},"type":"object","required":["id","name","categories","starters"],"title":"LibraryTemplateProfileTabOut"},"LibraryTemplateProfileTabsOut":{"properties":{"tabs":{"items":{"$ref":"#/components/schemas/LibraryTemplateProfileTabOut"},"type":"array","title":"Tabs"}},"type":"object","required":["tabs"],"title":"LibraryTemplateProfileTabsOut","description":"The /start About you step's picker\n(ADR-2026-10-02-the-about-you-step-picks-from-the-template-catalog)."},"LibraryTemplatePromptOut":{"properties":{"collection":{"type":"string","title":"Collection"},"text":{"type":"string","title":"Text"}},"type":"object","required":["collection","text"],"title":"LibraryTemplatePromptOut"},"LibraryTemplateSearchOut":{"properties":{"categories":{"items":{"$ref":"#/components/schemas/LibraryTemplateCategoryOut"},"type":"array","title":"Categories"},"catalog_size":{"type":"integer","title":"Catalog Size"},"templates":{"items":{"$ref":"#/components/schemas/LibraryTemplateOut"},"type":"array","title":"Templates"},"suggestion":{"anyOf":[{"$ref":"#/components/schemas/LibraryTemplateSuggestionOut"},{"type":"null"}]}},"type":"object","required":["categories","catalog_size","templates"],"title":"LibraryTemplateSearchOut"},"LibraryTemplateSuggestionOut":{"properties":{"kind":{"type":"string","enum":["template","spelling"],"title":"Kind"},"text":{"type":"string","title":"Text"},"template":{"anyOf":[{"$ref":"#/components/schemas/LibraryTemplateOut"},{"type":"null"}]}},"type":"object","required":["kind","text"],"title":"LibraryTemplateSuggestionOut","description":"A \"Did you mean\" for a query that matched nothing\n(ADR-2026-11-24-about-you-title-cases-a-typed-pick-and-suggests-a-near-miss-from-pyspellchecker)."},"LinkRefusal":{"properties":{"reason":{"type":"string","enum":["unavailable","no_access","org_policy"],"title":"Reason"},"message":{"type":"string","title":"Message"}},"type":"object","required":["reason","message"],"title":"LinkRefusal","description":"Why a box is disabled, in words the user reads."},"LlmProviderStatus":{"properties":{"provider":{"type":"string","enum":["anthropic","openai","google"],"title":"Provider"},"configured":{"type":"boolean","title":"Configured"}},"type":"object","required":["provider","configured"],"title":"LlmProviderStatus","description":"A provider some model slot routes to, and whether its key is set."},"LoginRequest":{"properties":{"email":{"type":"string","maxLength":255,"minLength":1,"title":"Email"},"password":{"type":"string","maxLength":255,"minLength":1,"title":"Password"}},"type":"object","required":["email","password"],"title":"LoginRequest"},"LoginResponse":{"properties":{"session_expires_at":{"type":"string","format":"date-time","title":"Session Expires At"}},"type":"object","required":["session_expires_at"],"title":"LoginResponse"},"LogoutResponse":{"properties":{"revoked":{"type":"boolean","title":"Revoked"}},"type":"object","required":["revoked"],"title":"LogoutResponse"},"MagicLinkRedeemRequest":{"properties":{"token":{"type":"string","maxLength":512,"minLength":1,"title":"Token"},"campaign":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Campaign"},"on_load":{"type":"boolean","title":"On Load","default":false},"on_phone":{"type":"boolean","title":"On Phone","default":false}},"type":"object","required":["token"],"title":"MagicLinkRedeemRequest","description":"A magic link, with the campaign of the link that carried it.\n\nNo password: the link signs in on the inbox alone\n(ADR-2026-11-29-the-magic-link-signs-in-on-the-inbox-alone)."},"MagicLinkResendRequest":{"properties":{"token":{"type":"string","maxLength":512,"minLength":1,"title":"Token"},"connect":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Connect","description":"The connect-catalog client the old link opened; the new link opens it too."}},"type":"object","required":["token"],"title":"MagicLinkResendRequest","description":"A link that no longer works, asking for a new one."},"MagicLinkResendResponse":{"properties":{"status":{"type":"string","enum":["sent","wait","unavailable"],"title":"Status"},"retry_after_seconds":{"type":"integer","title":"Retry After Seconds","default":0},"gmail":{"type":"boolean","title":"Gmail","default":false}},"type":"object","required":["status"],"title":"MagicLinkResendResponse","description":"Outcome of POST /v1/auth/magic/resend.\n\n``sent``: a new link went to the link owner's own address. ``wait``: one was\nsent recently; another is allowed after ``retry_after_seconds``.\n``unavailable``: the link is unknown or too old to ask from; sign in instead.\n``gmail`` says the address is a Gmail one, never what it is."},"MagicLoginResponse":{"properties":{"authenticated":{"type":"boolean","title":"Authenticated"},"continue_required":{"type":"boolean","title":"Continue Required","default":false},"phone_held":{"type":"boolean","title":"Phone Held","default":false}},"type":"object","required":["authenticated"],"title":"MagicLoginResponse"},"MapPoint":{"properties":{"id":{"type":"string","title":"Id"},"x":{"type":"number","title":"X"},"y":{"type":"number","title":"Y"},"z":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Z"},"kind":{"type":"string","enum":["memory","section","document","page"],"title":"Kind"},"source_id":{"type":"string","title":"Source Id"},"page_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Id"},"page_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Type"},"page_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Slug"},"recency":{"type":"string","enum":["week","month","quarter","older"],"title":"Recency"},"is_fitted":{"type":"boolean","title":"Is Fitted"}},"type":"object","required":["id","x","y","kind","source_id","recency","is_fitted"],"title":"MapPoint"},"MapResponse":{"properties":{"library_id":{"type":"string","title":"Library Id"},"handle":{"type":"string","title":"Handle"},"library_slug":{"type":"string","title":"Library Slug"},"dims":{"type":"integer","title":"Dims"},"vector_set_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vector Set Id"},"fitted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Fitted At"},"fitted_count":{"type":"integer","title":"Fitted Count"},"points":{"items":{"$ref":"#/components/schemas/MapPoint"},"type":"array","title":"Points"}},"type":"object","required":["library_id","handle","library_slug","dims","vector_set_id","fitted_at","fitted_count","points"],"title":"MapResponse"},"MeAgentDetail":{"properties":{"agent_id":{"type":"string","title":"Agent Id"},"display_name":{"type":"string","title":"Display Name"},"client_kind":{"type":"string","enum":["claude-code","claude-desktop","openclaw","codex","cursor","gemini-cli","antigravity","chatgpt","gemini","muse","hermes","perplexity","other","seaglass-cli","seaglass-system"],"title":"Client Kind"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"last_used_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Used At"},"session_count":{"type":"integer","title":"Session Count","default":0},"last_activity_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Activity At"},"plugin_installed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Plugin Installed"},"plugin_reported_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Plugin Reported At"},"links":{"items":{"$ref":"#/components/schemas/AgentLinkDetail"},"type":"array","title":"Links"},"unlink_required_by":{"items":{"$ref":"#/components/schemas/AgentLinkSummary"},"type":"array","title":"Unlink Required By"},"restrictions":{"items":{"$ref":"#/components/schemas/AgentRestrictionItem"},"type":"array","title":"Restrictions"},"cli_install":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cli Install"},"effective_cli_install":{"type":"string","title":"Effective Cli Install"},"inherited_cli_install":{"type":"string","title":"Inherited Cli Install"},"transcript_capture":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transcript Capture"},"effective_transcript_capture":{"type":"string","title":"Effective Transcript Capture"},"inherited_transcript_capture":{"type":"string","title":"Inherited Transcript Capture"}},"type":"object","required":["agent_id","display_name","client_kind","created_at","links","unlink_required_by","restrictions","effective_cli_install","inherited_cli_install","effective_transcript_capture","inherited_transcript_capture"],"title":"MeAgentDetail","description":"One of the caller's agents, everything its page edits.\n\nEach install setting comes as the agent's own value (null inherits), the\nvalue in force, and the ``inherited_*`` value Inherit falls back to: the\ncaller's own default.\n\n``unlink_required_by`` are the linked accounts that forbid agents also linked\nto other accounts, while this one is: the caller must unlink it from one side\n(ADR-2026-10-09-an-account-may-forbid-multi-account-agents-without-seeing-other-memberships).\nEmpty when nothing forbids its links."},"MeAgentSummary":{"properties":{"agent_id":{"type":"string","title":"Agent Id"},"display_name":{"type":"string","title":"Display Name"},"client_kind":{"type":"string","enum":["claude-code","claude-desktop","openclaw","codex","cursor","gemini-cli","antigravity","chatgpt","gemini","muse","hermes","perplexity","other","seaglass-cli","seaglass-system"],"title":"Client Kind"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"last_used_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Used At"},"session_count":{"type":"integer","title":"Session Count","default":0},"last_activity_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Activity At"},"plugin_installed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Plugin Installed"},"plugin_reported_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Plugin Reported At"},"links":{"items":{"$ref":"#/components/schemas/AgentLinkSummary"},"type":"array","title":"Links"}},"type":"object","required":["agent_id","display_name","client_kind","created_at","links"],"title":"MeAgentSummary","description":"One of the caller's agents in the list, with the accounts it is linked to."},"MeIdentity":{"properties":{"user_id":{"type":"string","title":"User Id"},"email":{"type":"string","title":"Email"},"has_password":{"type":"boolean","title":"Has Password"},"email_reachable":{"type":"boolean","title":"Email Reachable"},"handle":{"type":"string","title":"Handle"},"is_superuser":{"type":"boolean","title":"Is Superuser","default":false},"accounts":{"items":{"$ref":"#/components/schemas/AccountSummary"},"type":"array","title":"Accounts"},"onboarding":{"anyOf":[{"$ref":"#/components/schemas/OnboardingState"},{"type":"null"}]},"terms_acceptance_required":{"type":"boolean","title":"Terms Acceptance Required","default":false},"agent_synthesis_enabled":{"type":"boolean","title":"Agent Synthesis Enabled","default":false},"directory_brief_enabled":{"type":"boolean","title":"Directory Brief Enabled","default":false},"library_guests_enabled":{"type":"boolean","title":"Library Guests Enabled","default":false},"transcript_capture_enabled":{"type":"boolean","title":"Transcript Capture Enabled","default":false},"library_suggestions_enabled":{"type":"boolean","title":"Library Suggestions Enabled","default":false},"payment_required_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Required Handle"},"billing_enabled":{"type":"boolean","title":"Billing Enabled","default":false},"trial_notice":{"anyOf":[{"$ref":"#/components/schemas/TrialNotice"},{"type":"null"}]},"disposable_email":{"anyOf":[{"$ref":"#/components/schemas/DisposableEmailNotice"},{"type":"null"}]},"cli_install":{"type":"string","enum":["always","ask","never"],"title":"Cli Install","default":"ask"},"transcript_capture":{"type":"string","enum":["on","off"],"title":"Transcript Capture","default":"off"},"analytics_enabled":{"type":"boolean","title":"Analytics Enabled","default":true}},"type":"object","required":["user_id","email","has_password","email_reachable","handle"],"title":"MeIdentity","description":"GET /v1/me — the caller plus their accounts, with no server-pinned active one."},"MemberDetail":{"properties":{"id":{"type":"string","title":"Id"},"user_id":{"type":"string","title":"User Id"},"email":{"type":"string","title":"Email"},"handle":{"type":"string","title":"Handle"},"account_role":{"type":"string","enum":["owner","admin","member"],"title":"Account Role"},"status":{"type":"string","enum":["active","invited","suspended"],"title":"Status"},"teams":{"items":{"$ref":"#/components/schemas/TeamRef"},"type":"array","title":"Teams"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","user_id","email","handle","account_role","status","created_at"],"title":"MemberDetail"},"MemberListItem":{"properties":{"id":{"type":"string","title":"Id"},"user_id":{"type":"string","title":"User Id"},"email":{"type":"string","title":"Email"},"handle":{"type":"string","title":"Handle"},"account_role":{"type":"string","enum":["owner","admin","member"],"title":"Account Role"},"status":{"type":"string","enum":["active","invited","suspended"],"title":"Status"},"teams":{"items":{"$ref":"#/components/schemas/TeamRef"},"type":"array","title":"Teams"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","user_id","email","handle","account_role","status","created_at"],"title":"MemberListItem"},"MemoryListItem":{"properties":{"id":{"type":"string","title":"Id"},"primary_page_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Page Id"},"primary_page_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Page Slug"},"primary_page_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Page Title"},"primary_page_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Page Handle"},"primary_page_library":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Page Library"},"agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Id"},"session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"},"content":{"type":"string","title":"Content"},"source_type":{"type":"string","enum":["primary","annotation","extracted"],"title":"Source Type"},"source_origin":{"$ref":"#/components/schemas/SourceOrigin"},"confidence":{"type":"number","title":"Confidence"},"event_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Event Time"},"retired_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Retired At"},"retired_reason":{"anyOf":[{"type":"string","enum":["superseded","retracted"]},{"type":"null"}],"title":"Retired Reason"},"retired_by_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Retired By Id"},"retired_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Retired Note"},"redacted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Redacted At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","primary_page_id","content","source_type","source_origin","confidence","created_at"],"title":"MemoryListItem"},"MemorySource":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"content":{"type":"string","title":"Content"},"agent_display_name":{"type":"string","title":"Agent Display Name","default":""},"agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Id"},"source_type":{"type":"string","enum":["primary","annotation","extracted"],"title":"Source Type"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"source_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Url"},"retrieved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Retrieved At"},"retired_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Retired At"},"retired_reason":{"anyOf":[{"type":"string","enum":["superseded","retracted"]},{"type":"null"}],"title":"Retired Reason"},"retired_by_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Retired By Id"},"retired_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Retired Note"},"redacted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Redacted At"},"relation":{"type":"string","title":"Relation","default":"primary"},"filed_on_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filed On Slug"},"filed_on_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filed On Title"},"annotations":{"items":{"$ref":"#/components/schemas/SourceAnnotation"},"type":"array","title":"Annotations","default":[]}},"type":"object","required":["id","title","content","source_type","created_at"],"title":"MemorySource"},"ModelRouting":{"properties":{"default":{"type":"string","title":"Default"},"extraction":{"type":"string","title":"Extraction"},"synthesis":{"type":"string","title":"Synthesis"},"reconsolidation":{"type":"string","title":"Reconsolidation"},"section_rewrite":{"type":"string","title":"Section Rewrite"},"title":{"type":"string","title":"Title"},"profile":{"type":"string","title":"Profile"},"patch_triage":{"type":"string","title":"Patch Triage"}},"type":"object","required":["default","extraction","synthesis","reconsolidation","section_rewrite","title","profile","patch_triage"],"title":"ModelRouting"},"ModelSpendRow":{"properties":{"model":{"type":"string","title":"Model"},"calls":{"type":"integer","title":"Calls"},"errored":{"type":"integer","title":"Errored"},"input_tokens":{"type":"integer","title":"Input Tokens"},"output_tokens":{"type":"integer","title":"Output Tokens"},"cost_usd":{"type":"number","title":"Cost Usd"}},"type":"object","required":["model","calls","errored","input_tokens","output_tokens","cost_usd"],"title":"ModelSpendRow","description":"One model's LLM calls in the window. ``model`` is ``unknown`` when unrecorded."},"MostReadPage":{"properties":{"id":{"type":"string","title":"Id"},"slug":{"type":"string","title":"Slug"},"title":{"type":"string","title":"Title"},"one_line_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"One Line Summary"},"library_slug":{"type":"string","title":"Library Slug"},"library_name":{"type":"string","title":"Library Name"},"reads":{"type":"integer","title":"Reads","description":"Public reads, ever: readers with no seat in the account, once a day each."}},"type":"object","required":["id","slug","title","one_line_summary","library_slug","library_name","reads"],"title":"MostReadPage","description":"One of the account's most read public pages, with where it lives and its count."},"MovePageRequest":{"properties":{"to":{"type":"string","title":"To"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"}},"type":"object","required":["to"],"title":"MovePageRequest","description":"Rename/move a page (ADR-2026-06-10-page-slugs-are-mutable-redirecting-addresses): full typed slug target, optional retitle."},"MovePageResponse":{"properties":{"id":{"type":"string","title":"Id"},"old_slug":{"type":"string","title":"Old Slug"},"new_slug":{"type":"string","title":"New Slug"},"title":{"type":"string","title":"Title"},"version":{"type":"integer","title":"Version"},"moved_subpages":{"type":"integer","title":"Moved Subpages"},"no_op":{"type":"boolean","title":"No Op"}},"type":"object","required":["id","old_slug","new_slug","title","version","moved_subpages","no_op"],"title":"MovePageResponse"},"MyInviteResponse":{"properties":{"code":{"type":"string","title":"Code"},"email_verified":{"type":"boolean","title":"Email Verified"},"sends_enabled":{"type":"boolean","title":"Sends Enabled"}},"type":"object","required":["code","email_verified","sends_enabled"],"title":"MyInviteResponse","description":"The person's referral code and whether their email is verified.\n\nNo counts: a count of joins through one's own link would tell a member\nwhether a typed address was already on the waitlist."},"NavChanges":{"properties":{"version":{"type":"string","title":"Version"},"changed_page_ids":{"items":{"type":"string"},"type":"array","title":"Changed Page Ids"}},"type":"object","required":["version","changed_page_ids"],"title":"NavChanges","description":"Whether what the nav shows, or a page the caller reads, changed since ``since``.\n\n``version`` is opaque: send it back as ``since`` on the next check. It moves\nonly when something the caller can read changed. ``changed_page_ids`` lists\nthe readable pages changed after ``since``, newest first and at most 200; it\nis empty when ``since`` is absent, current, or not in this route's version\nformat."},"NavLibrary":{"properties":{"library_id":{"type":"string","title":"Library Id"},"collections":{"items":{"$ref":"#/components/schemas/PageTypeSummary"},"type":"array","title":"Collections"},"pages":{"items":{"$ref":"#/components/schemas/PageSummary"},"type":"array","title":"Pages"}},"type":"object","required":["library_id","collections","pages"],"title":"NavLibrary","description":"One readable library's collections, in nav order, and its live pages, in slug order.\n\nThe pages are flat: the browser files each under its collection by ``type``\nand builds the tree from the slugs. They carry no activity dates\n(``created_at`` and ``last_edited_at`` are always null), which the nav does\nnot show."},"OAuthClientRegisterRequest":{"properties":{"redirect_uris":{"items":{"type":"string","maxLength":2048},"type":"array","title":"Redirect Uris"},"client_name":{"type":"string","maxLength":255,"title":"Client Name","default":""},"scope":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Scope"},"client_kind":{"type":"string","maxLength":40,"title":"Client Kind","default":"other"}},"type":"object","required":["redirect_uris"],"title":"OAuthClientRegisterRequest","description":"RFC 7591 client registration. Unknown standard fields are ignored.\n\nRegistration is public, so every field is bounded; the redirect list's\nlength is refused in ``oauth_service.register_client`` with the RFC 7591\nerror the client expects."},"OAuthErrorBody":{"description":"An OAuth error (RFC 6749 §5.2): a code plus an optional human sentence.","properties":{"error":{"title":"Error","type":"string"},"error_description":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Error Description"}},"required":["error"],"title":"OAuthErrorBody","type":"object"},"OfferedShareItem":{"properties":{"grant_id":{"type":"string","title":"Grant Id"},"object_kind":{"type":"string","enum":["library","page"],"title":"Object Kind"},"account_handle":{"type":"string","title":"Account Handle"},"account_display_name":{"type":"string","title":"Account Display Name"},"library_id":{"type":"string","title":"Library Id"},"library_slug":{"type":"string","title":"Library Slug"},"library_display_name":{"type":"string","title":"Library Display Name"},"page_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Id"},"page_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Slug"},"page_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Title"},"can_write":{"type":"boolean","title":"Can Write"},"shared_by_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Shared By Handle"},"shared_at":{"type":"string","format":"date-time","title":"Shared At"}},"type":"object","required":["grant_id","object_kind","account_handle","account_display_name","library_id","library_slug","library_display_name","can_write","shared_at"],"title":"OfferedShareItem","description":"A share made to the caller by handle, waiting for them to accept it."},"OffsetMismatch":{"properties":{"error":{"type":"string","const":"offset_mismatch","title":"Error"},"byte_count":{"type":"integer","title":"Byte Count"},"tail_start":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tail Start"}},"type":"object","required":["error","byte_count","tail_start"],"title":"OffsetMismatch"},"OnboardingBuiltLibrary":{"properties":{"id":{"type":"string","title":"Id"},"slug":{"type":"string","title":"Slug"},"display_name":{"type":"string","title":"Display Name"},"subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtitle"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"},"collections":{"items":{"type":"string"},"type":"array","title":"Collections"},"collection_summaries":{"items":{"type":"string"},"type":"array","title":"Collection Summaries"},"source":{"type":"string","enum":["template","typed"],"title":"Source"}},"type":"object","required":["id","slug","display_name","collections","collection_summaries","source"],"title":"OnboardingBuiltLibrary","description":"A library the About you build made, while it is still live\n(ADR-2026-11-24-about-you-picks-build-the-first-run-libraries)."},"OnboardingPendingPick":{"properties":{"text":{"type":"string","title":"Text"},"status":{"type":"string","enum":["drafting","waiting","failed"],"title":"Status"}},"type":"object","required":["text","status"],"title":"OnboardingPendingPick","description":"An About you pick that has no library: a typed pick still being drafted\n(``drafting``), parked at its account's spend ceiling (``waiting``), or one\nthat could not be built (``failed``)."},"OnboardingPromptInput":{"properties":{"collection":{"type":"string","maxLength":64,"minLength":1,"title":"Collection"},"text":{"type":"string","maxLength":1000,"minLength":1,"title":"Text"},"check":{"type":"boolean","title":"Check","default":false}},"type":"object","required":["collection","text"],"title":"OnboardingPromptInput","description":"A template's or Brainstorm's prompt, tokens intact, for one collection by slug\n(ADR-2026-09-28-templates-and-brainstorm-write-onboarding-prompts-as-collection-prompts)."},"OnboardingState":{"properties":{"steps":{"items":{"$ref":"#/components/schemas/OnboardingStep"},"type":"array","title":"Steps"},"resume_step":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resume Step"},"required_complete":{"type":"boolean","title":"Required Complete"},"about_you_picks":{"items":{"$ref":"#/components/schemas/LibraryTemplateOut"},"type":"array","title":"About You Picks","default":[]},"built_libraries":{"items":{"$ref":"#/components/schemas/OnboardingBuiltLibrary"},"type":"array","title":"Built Libraries","default":[]},"pending_picks":{"items":{"$ref":"#/components/schemas/OnboardingPendingPick"},"type":"array","title":"Pending Picks","default":[]},"connect_picks":{"items":{"type":"string"},"type":"array","title":"Connect Picks","default":[]},"suggested_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Suggested Handle"}},"type":"object","required":["steps","resume_step","required_complete"],"title":"OnboardingState","description":"GET /v1/onboarding — the wizard/checklist state for the caller."},"OnboardingStep":{"properties":{"step":{"type":"string","title":"Step"},"status":{"type":"string","enum":["pending","done","skipped"],"title":"Status"},"required":{"type":"boolean","title":"Required"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"}},"type":"object","required":["step","status","required"],"title":"OnboardingStep","description":"One step's progress (the registry order is the list order)."},"OpsAccountComp":{"properties":{"active":{"type":"boolean","title":"Active"},"comped_at":{"type":"string","format":"date-time","title":"Comped At"},"comped_by_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comped By Email"},"reason":{"type":"string","title":"Reason"},"ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ends At"}},"type":"object","required":["active","comped_at","comped_by_email","reason","ends_at"],"title":"OpsAccountComp","description":"An operator's comp of a personal account\n(ADR-2026-11-13-an-operator-can-comp-a-personal-account-out-of-the-trial-pause).\nMetadata only: who set it and when, the operator's reason, its end."},"OpsAccountDetail":{"properties":{"id":{"type":"string","title":"Id"},"handle":{"type":"string","title":"Handle"},"display_name":{"type":"string","title":"Display Name"},"kind":{"type":"string","enum":["personal","organization"],"title":"Kind"},"plan":{"type":"string","title":"Plan"},"synthesis_mode":{"type":"string","enum":["agent","server"],"title":"Synthesis Mode"},"owner_user_id":{"type":"string","title":"Owner User Id"},"owner_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Handle"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"members":{"items":{"$ref":"#/components/schemas/OpsAccountMember"},"type":"array","title":"Members"},"libraries":{"items":{"$ref":"#/components/schemas/OpsAccountLibrary"},"type":"array","title":"Libraries"},"agent_count":{"type":"integer","title":"Agent Count"},"team_count":{"type":"integer","title":"Team Count"},"status":{"type":"string","enum":["active","suspended"],"title":"Status","default":"active"},"usage_state":{"type":"string","enum":["ok","warned","capped"],"title":"Usage State","default":"ok"},"spend_daily_usd":{"type":"number","title":"Spend Daily Usd","default":0.0},"spend_period_usd":{"type":"number","title":"Spend Period Usd","default":0.0},"ceiling_daily_usd":{"type":"number","title":"Ceiling Daily Usd","default":0.0},"ceiling_period_usd":{"type":"number","title":"Ceiling Period Usd","default":0.0},"jobs_over_cap":{"type":"integer","title":"Jobs Over Cap","default":0},"cost_cap_enabled":{"type":"boolean","title":"Cost Cap Enabled"},"spend_pool_size":{"type":"integer","title":"Spend Pool Size"},"spend_soft_threshold_pct":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Spend Soft Threshold Pct"},"billing_enforced":{"type":"boolean","title":"Billing Enforced","default":false},"billing_status":{"anyOf":[{"type":"string","enum":["pending_payment","incomplete","incomplete_expired","trialing","active","past_due","unpaid","paused","canceled"]},{"type":"null"}],"title":"Billing Status"},"credit_period_start":{"type":"string","format":"date-time","title":"Credit Period Start"},"credit_period_end":{"type":"string","format":"date-time","title":"Credit Period End"},"credit_balance_usd":{"type":"number","title":"Credit Balance Usd","default":0.0},"credit_grants":{"items":{"$ref":"#/components/schemas/OpsCreditGrant"},"type":"array","title":"Credit Grants","default":[]},"refundable_credit_usd":{"type":"number","title":"Refundable Credit Usd","default":0.0},"billing_resync_available":{"type":"boolean","title":"Billing Resync Available","default":false},"test_clock_trial_available":{"type":"boolean","title":"Test Clock Trial Available","default":false},"billing_cancel_at_period_end":{"type":"boolean","title":"Billing Cancel At Period End","default":false},"billing_disputes":{"items":{"$ref":"#/components/schemas/OpsBillingDispute"},"type":"array","title":"Billing Disputes","default":[]},"billing_trial_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Billing Trial End"},"billing_card_on_file":{"type":"boolean","title":"Billing Card On File","default":false},"trial_signup_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trial Signup Path"},"trial_paused_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Trial Paused At"},"stripe_customer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Customer Id"},"stripe_mode":{"anyOf":[{"type":"string","enum":["test","live"]},{"type":"null"}],"title":"Stripe Mode"},"comp":{"anyOf":[{"$ref":"#/components/schemas/OpsAccountComp"},{"type":"null"}]}},"type":"object","required":["id","handle","display_name","kind","plan","synthesis_mode","owner_user_id","created_at","updated_at","members","libraries","agent_count","team_count","cost_cap_enabled","spend_pool_size","spend_soft_threshold_pct","credit_period_start","credit_period_end"],"title":"OpsAccountDetail"},"OpsAccountLibrary":{"properties":{"id":{"type":"string","title":"Id"},"slug":{"type":"string","title":"Slug"},"display_name":{"type":"string","title":"Display Name"},"kind":{"type":"string","enum":["default","standard","member_private"],"title":"Kind"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"},"memory_count":{"type":"integer","title":"Memory Count"},"document_count":{"type":"integer","title":"Document Count"},"page_count":{"type":"integer","title":"Page Count"}},"type":"object","required":["id","slug","display_name","kind","memory_count","document_count","page_count"],"title":"OpsAccountLibrary"},"OpsAccountListItem":{"properties":{"id":{"type":"string","title":"Id"},"handle":{"type":"string","title":"Handle"},"display_name":{"type":"string","title":"Display Name"},"kind":{"type":"string","enum":["personal","organization"],"title":"Kind"},"plan":{"type":"string","title":"Plan"},"synthesis_mode":{"type":"string","enum":["agent","server"],"title":"Synthesis Mode"},"owner_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Handle"},"member_count":{"type":"integer","title":"Member Count"},"library_count":{"type":"integer","title":"Library Count"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"comp":{"anyOf":[{"$ref":"#/components/schemas/OpsAccountComp"},{"type":"null"}]},"usage_state":{"type":"string","enum":["ok","warned","capped"],"title":"Usage State"}},"type":"object","required":["id","handle","display_name","kind","plan","synthesis_mode","member_count","library_count","created_at","usage_state"],"title":"OpsAccountListItem"},"OpsAccountMember":{"properties":{"account_membership_id":{"type":"string","title":"Account Membership Id"},"user_id":{"type":"string","title":"User Id"},"handle":{"type":"string","title":"Handle"},"email":{"type":"string","title":"Email"},"role":{"type":"string","enum":["owner","admin","member"],"title":"Role"},"status":{"type":"string","enum":["active","invited","suspended"],"title":"Status"}},"type":"object","required":["account_membership_id","user_id","handle","email","role","status"],"title":"OpsAccountMember"},"OpsActiveUser":{"properties":{"id":{"type":"string","title":"Id"},"handle":{"type":"string","title":"Handle"},"email":{"type":"string","title":"Email"},"last_web_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Web At"},"last_agent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Agent At"},"last_agent_client":{"anyOf":[{"type":"string","enum":["claude-code","claude-desktop","openclaw","codex","cursor","gemini-cli","antigravity","chatgpt","gemini","muse","hermes","perplexity","other","seaglass-cli","seaglass-system"]},{"type":"null"}],"title":"Last Agent Client"},"last_agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Agent Id"},"active_agents":{"type":"integer","title":"Active Agents"},"usage":{"anyOf":[{"$ref":"#/components/schemas/OpsUsage"},{"type":"null"}]},"limit":{"anyOf":[{"type":"string","enum":["near","at"]},{"type":"null"}],"title":"Limit"}},"type":"object","required":["id","handle","email","last_web_at","last_agent_at","last_agent_client","last_agent_id","active_agents","usage","limit"],"title":"OpsActiveUser"},"OpsActiveUsers":{"properties":{"active":{"type":"integer","title":"Active"},"with_agent":{"type":"integer","title":"With Agent"},"near_limit":{"type":"integer","title":"Near Limit"},"users":{"items":{"$ref":"#/components/schemas/OpsActiveUser"},"type":"array","title":"Users"}},"type":"object","required":["active","with_agent","near_limit","users"],"title":"OpsActiveUsers"},"OpsActivity":{"properties":{"days":{"items":{"$ref":"#/components/schemas/OpsActivityDay"},"type":"array","title":"Days"},"account_count":{"type":"integer","title":"Account Count"}},"type":"object","required":["days","account_count"],"title":"OpsActivity"},"OpsActivityDay":{"properties":{"day":{"type":"string","title":"Day"},"search":{"type":"integer","title":"Search"},"store_memory":{"type":"integer","title":"Store Memory"},"other_tools":{"type":"integer","title":"Other Tools"},"memories":{"type":"integer","title":"Memories"},"documents":{"type":"integer","title":"Documents"},"jobs_completed":{"type":"integer","title":"Jobs Completed"},"jobs_failed":{"type":"integer","title":"Jobs Failed"},"jobs_over_cap":{"type":"integer","title":"Jobs Over Cap"},"spend_usd":{"type":"number","title":"Spend Usd"},"sessions":{"type":"integer","title":"Sessions"}},"type":"object","required":["day","search","store_memory","other_tools","memories","documents","jobs_completed","jobs_failed","jobs_over_cap","spend_usd","sessions"],"title":"OpsActivityDay"},"OpsAgentAccount":{"properties":{"account_id":{"type":"string","title":"Account Id"},"handle":{"type":"string","title":"Handle"},"walled":{"type":"boolean","title":"Walled"},"session_lock":{"type":"boolean","title":"Session Lock"},"active":{"type":"boolean","title":"Active"}},"type":"object","required":["account_id","handle","walled","session_lock","active"],"title":"OpsAgentAccount","description":"An account the agent is linked to, with its two walls."},"OpsAgentClientCount":{"properties":{"client_kind":{"type":"string","enum":["claude-code","claude-desktop","openclaw","codex","cursor","gemini-cli","antigravity","chatgpt","gemini","muse","hermes","perplexity","other","seaglass-cli","seaglass-system"],"title":"Client Kind"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["client_kind","count"],"title":"OpsAgentClientCount"},"OpsAgentDay":{"properties":{"day":{"type":"string","title":"Day"},"people":{"type":"integer","title":"People"}},"type":"object","required":["day","people"],"title":"OpsAgentDay"},"OpsAgentDetail":{"properties":{"id":{"type":"string","title":"Id"},"display_name":{"type":"string","title":"Display Name"},"client_kind":{"type":"string","enum":["claude-code","claude-desktop","openclaw","codex","cursor","gemini-cli","antigravity","chatgpt","gemini","muse","hermes","perplexity","other","seaglass-cli","seaglass-system"],"title":"Client Kind"},"transport":{"type":"string","enum":["oauth","device"],"title":"Transport"},"user_id":{"type":"string","title":"User Id"},"user_email":{"type":"string","title":"User Email"},"user_handle":{"type":"string","title":"User Handle"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"last_active_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Active At"},"plugin_installed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Plugin Installed"},"accounts":{"items":{"$ref":"#/components/schemas/OpsAgentAccount"},"type":"array","title":"Accounts"},"sessions_14d":{"type":"integer","title":"Sessions 14D"},"sessions_14d_without_start":{"type":"integer","title":"Sessions 14D Without Start"},"live_token_count":{"type":"integer","title":"Live Token Count"},"restriction_count":{"type":"integer","title":"Restriction Count"},"oauth_client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oauth Client Id"},"plugin_reported_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Plugin Reported At"},"cli_install":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cli Install"},"links":{"items":{"$ref":"#/components/schemas/OpsAgentLink"},"type":"array","title":"Links"},"restrictions":{"$ref":"#/components/schemas/OpsAgentRestrictions"},"tokens":{"items":{"$ref":"#/components/schemas/OpsAgentToken"},"type":"array","title":"Tokens"},"revoked_token_count":{"type":"integer","title":"Revoked Token Count"},"expired_token_count":{"type":"integer","title":"Expired Token Count"},"daily_sessions":{"items":{"type":"integer"},"type":"array","title":"Daily Sessions"},"recent_sessions":{"items":{"$ref":"#/components/schemas/OpsAgentSession"},"type":"array","title":"Recent Sessions"}},"type":"object","required":["id","display_name","client_kind","transport","user_id","user_email","user_handle","created_at","accounts","sessions_14d","sessions_14d_without_start","live_token_count","restriction_count","links","restrictions","tokens","revoked_token_count","expired_token_count","daily_sessions","recent_sessions"],"title":"OpsAgentDetail"},"OpsAgentLink":{"properties":{"account_id":{"type":"string","title":"Account Id"},"handle":{"type":"string","title":"Handle"},"walled":{"type":"boolean","title":"Walled"},"session_lock":{"type":"boolean","title":"Session Lock"},"active":{"type":"boolean","title":"Active"},"linked_at":{"type":"string","format":"date-time","title":"Linked At"},"overrides":{"items":{"type":"string","enum":["capture","recall","approval","disclosure"]},"type":"array","title":"Overrides"},"instructions_chars":{"type":"integer","title":"Instructions Chars"}},"type":"object","required":["account_id","handle","walled","session_lock","active","linked_at","overrides","instructions_chars"],"title":"OpsAgentLink","description":"A linked account with what the agent's link changes there."},"OpsAgentListItem":{"properties":{"id":{"type":"string","title":"Id"},"display_name":{"type":"string","title":"Display Name"},"client_kind":{"type":"string","enum":["claude-code","claude-desktop","openclaw","codex","cursor","gemini-cli","antigravity","chatgpt","gemini","muse","hermes","perplexity","other","seaglass-cli","seaglass-system"],"title":"Client Kind"},"transport":{"type":"string","enum":["oauth","device"],"title":"Transport"},"user_id":{"type":"string","title":"User Id"},"user_email":{"type":"string","title":"User Email"},"user_handle":{"type":"string","title":"User Handle"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"last_active_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Active At"},"plugin_installed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Plugin Installed"},"accounts":{"items":{"$ref":"#/components/schemas/OpsAgentAccount"},"type":"array","title":"Accounts"},"sessions_14d":{"type":"integer","title":"Sessions 14D"},"sessions_14d_without_start":{"type":"integer","title":"Sessions 14D Without Start"},"live_token_count":{"type":"integer","title":"Live Token Count"},"restriction_count":{"type":"integer","title":"Restriction Count"}},"type":"object","required":["id","display_name","client_kind","transport","user_id","user_email","user_handle","created_at","accounts","sessions_14d","sessions_14d_without_start","live_token_count","restriction_count"],"title":"OpsAgentListItem"},"OpsAgentRestrictions":{"properties":{"library_none":{"type":"integer","title":"Library None"},"library_read":{"type":"integer","title":"Library Read"},"page_none":{"type":"integer","title":"Page None"},"page_read":{"type":"integer","title":"Page Read"}},"type":"object","required":["library_none","library_read","page_none","page_read"],"title":"OpsAgentRestrictions","description":"How far the agent is narrowed below its owner, as counts."},"OpsAgentSession":{"properties":{"id":{"type":"string","title":"Id"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"last_activity_at":{"type":"string","format":"date-time","title":"Last Activity At"},"client_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Name"},"called_start_session":{"type":"boolean","title":"Called Start Session"},"locked_account_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locked Account Handle"},"memory_count":{"type":"integer","title":"Memory Count"},"document_count":{"type":"integer","title":"Document Count"}},"type":"object","required":["id","started_at","last_activity_at","called_start_session","memory_count","document_count"],"title":"OpsAgentSession"},"OpsAgentSummary":{"properties":{"agent_count":{"type":"integer","title":"Agent Count"},"owner_count":{"type":"integer","title":"Owner Count"},"active_24h":{"type":"integer","title":"Active 24H"},"active_7d":{"type":"integer","title":"Active 7D"},"idle_30d":{"type":"integer","title":"Idle 30D"},"never_active":{"type":"integer","title":"Never Active"},"sessions_14d":{"type":"integer","title":"Sessions 14D"},"plugin_installed":{"type":"integer","title":"Plugin Installed"},"plugin_missing":{"type":"integer","title":"Plugin Missing"},"plugin_unreported":{"type":"integer","title":"Plugin Unreported"},"by_client":{"items":{"$ref":"#/components/schemas/OpsAgentClientCount"},"type":"array","title":"By Client"}},"type":"object","required":["agent_count","owner_count","active_24h","active_7d","idle_30d","never_active","sessions_14d","plugin_installed","plugin_missing","plugin_unreported","by_client"],"title":"OpsAgentSummary","description":"Whole-platform rollup over every user's agent."},"OpsAgentToken":{"properties":{"id":{"type":"string","title":"Id"},"kind":{"type":"string","enum":["static","oauth"],"title":"Kind"},"last_used_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Used At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"from_cli_handoff":{"type":"boolean","title":"From Cli Handoff"}},"type":"object","required":["id","kind","from_cli_handoff"],"title":"OpsAgentToken","description":"A live token. No label and no secret."},"OpsAttention":{"properties":{"rows":{"items":{"$ref":"#/components/schemas/OpsAttentionRow"},"type":"array","title":"Rows"},"candidates":{"type":"integer","title":"Candidates"},"limit":{"type":"integer","title":"Limit"}},"type":"object","required":["rows","candidates","limit"],"title":"OpsAttention"},"OpsAttentionRow":{"properties":{"account_id":{"type":"string","title":"Account Id"},"account_handle":{"type":"string","title":"Account Handle"},"account_kind":{"type":"string","enum":["personal","organization"],"title":"Account Kind"},"plan":{"type":"string","title":"Plan"},"owner_user_id":{"type":"string","title":"Owner User Id"},"owner_handle":{"type":"string","title":"Owner Handle"},"owner_email":{"type":"string","title":"Owner Email"},"reason":{"type":"string","enum":["capped","warned","parked","trial_ended"],"title":"Reason"},"window":{"anyOf":[{"type":"string","enum":["daily","period"]},{"type":"null"}],"title":"Window"},"resets_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resets At"},"credit":{"type":"boolean","title":"Credit"},"parked":{"type":"integer","title":"Parked"}},"type":"object","required":["account_id","account_handle","account_kind","plan","owner_user_id","owner_handle","owner_email","reason","window","resets_at","credit","parked"],"title":"OpsAttentionRow"},"OpsAuditListItem":{"properties":{"id":{"type":"string","title":"Id"},"actor_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor User Id"},"actor_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor Handle"},"action":{"type":"string","title":"Action"},"target_kind":{"type":"string","enum":["account","user","library","page","feedback","synthesis_job","waitlist_signup","enterprise_inquiry","email_suppression","brainstorm_run"],"title":"Target Kind"},"target_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Id"},"summary":{"type":"string","title":"Summary"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","action","target_kind","summary","created_at"],"title":"OpsAuditListItem"},"OpsBillingDispute":{"properties":{"id":{"type":"string","title":"Id"},"stripe_dispute_id":{"type":"string","title":"Stripe Dispute Id"},"amount":{"type":"integer","title":"Amount"},"currency":{"type":"string","title":"Currency"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"livemode":{"type":"boolean","title":"Livemode"},"disputed_at":{"type":"string","format":"date-time","title":"Disputed At"},"alerted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Alerted At"}},"type":"object","required":["id","stripe_dispute_id","amount","currency","reason","livemode","disputed_at","alerted_at"],"title":"OpsBillingDispute","description":"A dispute Stripe reported on one of the account's payments. Stripe ids,\nan amount in the currency's smallest unit, Stripe's reason code."},"OpsBillingResync":{"properties":{"queued":{"type":"boolean","title":"Queued"}},"type":"object","required":["queued"],"title":"OpsBillingResync"},"OpsBrainstormRunDetail":{"properties":{"id":{"type":"string","title":"Id"},"account_id":{"type":"string","title":"Account Id"},"account_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Handle"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"turn_count":{"type":"integer","title":"Turn Count"},"revision_count":{"type":"integer","title":"Revision Count"},"accepted":{"type":"boolean","title":"Accepted"},"account_membership_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Membership Id"},"accepted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Accepted At"},"turns":{"items":{"$ref":"#/components/schemas/OpsBrainstormTurn"},"type":"array","title":"Turns"}},"type":"object","required":["id","account_id","account_handle","created_at","updated_at","turn_count","revision_count","accepted","account_membership_id","accepted_at","turns"],"title":"OpsBrainstormRunDetail"},"OpsBrainstormRunListItem":{"properties":{"id":{"type":"string","title":"Id"},"account_id":{"type":"string","title":"Account Id"},"account_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Handle"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"turn_count":{"type":"integer","title":"Turn Count"},"revision_count":{"type":"integer","title":"Revision Count"},"accepted":{"type":"boolean","title":"Accepted"}},"type":"object","required":["id","account_id","account_handle","created_at","updated_at","turn_count","revision_count","accepted"],"title":"OpsBrainstormRunListItem"},"OpsBrainstormTurn":{"properties":{"step":{"type":"string","enum":["roles","draft","revise","expand"],"title":"Step"},"at":{"type":"string","format":"date-time","title":"At"},"given":{"additionalProperties":true,"type":"object","title":"Given"},"returned":{"additionalProperties":true,"type":"object","title":"Returned"}},"type":"object","required":["step","at","given","returned"],"title":"OpsBrainstormTurn"},"OpsCreditGrant":{"properties":{"id":{"type":"string","title":"Id"},"source":{"type":"string","enum":["included","boost","member_personal","topup","disposable_trial"],"title":"Source"},"amount_usd":{"type":"number","title":"Amount Usd"},"drawn_usd":{"type":"number","title":"Drawn Usd"},"starts_at":{"type":"string","format":"date-time","title":"Starts At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"withdrawn_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Withdrawn At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"refunded_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Refunded Usd"},"comp":{"type":"boolean","title":"Comp","default":false}},"type":"object","required":["id","source","amount_usd","drawn_usd","starts_at","expires_at","withdrawn_at","created_at"],"title":"OpsCreditGrant","description":"One usage-credit grant, as the operator sees it. Credit dollars."},"OpsCreditRefundFailure":{"properties":{"grant_id":{"type":"string","title":"Grant Id"},"kind":{"type":"string","enum":["refused","unreachable","failed"],"title":"Kind"},"message":{"type":"string","title":"Message"}},"type":"object","required":["grant_id","kind","message"],"title":"OpsCreditRefundFailure","description":"A top-up left live because its refund did not go through."},"OpsCreditRefundResult":{"properties":{"refunded_usd":{"type":"number","title":"Refunded Usd"},"refunded_count":{"type":"integer","title":"Refunded Count"},"failures":{"items":{"$ref":"#/components/schemas/OpsCreditRefundFailure"},"type":"array","title":"Failures"},"account":{"$ref":"#/components/schemas/OpsAccountDetail"}},"type":"object","required":["refunded_usd","refunded_count","failures","account"],"title":"OpsCreditRefundResult","description":"What a refund of unspent bought credit did: dollars refunded, any\ntop-up whose refund did not go through, and the account as it now stands."},"OpsEmailBounceReason":{"properties":{"bounce_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bounce Type"},"bounce_subtype":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bounce Subtype"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["bounce_type","bounce_subtype","count"],"title":"OpsEmailBounceReason"},"OpsEmailBreakdown":{"properties":{"key":{"type":"string","title":"Key"},"total":{"type":"integer","title":"Total"},"counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Counts"}},"type":"object","required":["key","total","counts"],"title":"OpsEmailBreakdown","description":"One purpose's or provider's sends, counted by current status."},"OpsEmailEvent":{"properties":{"id":{"type":"string","title":"Id"},"event_type":{"type":"string","title":"Event Type"},"bounce_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bounce Type"},"bounce_subtype":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bounce Subtype"},"occurred_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Occurred At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","event_type","bounce_type","bounce_subtype","occurred_at","created_at"],"title":"OpsEmailEvent"},"OpsEmailSend":{"properties":{"id":{"type":"string","title":"Id"},"to_email":{"type":"string","title":"To Email"},"purpose":{"type":"string","title":"Purpose"},"status":{"type":"string","enum":["sent","failed","suppressed","delivery_delayed","delivered","bounced","complained","provider_suppressed"],"title":"Status"},"provider_message_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Message Id"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"delivered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Delivered At"},"failure_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Failure Code"},"failure_kind":{"anyOf":[{"type":"string","enum":["rate_limited","validation","auth","server","network","provider"]},{"type":"null"}],"title":"Failure Kind"},"address_suppressed":{"type":"boolean","title":"Address Suppressed","description":"The address is on the wall now, unlifted."}},"type":"object","required":["id","to_email","purpose","status","provider_message_id","user_id","account_id","created_at","delivered_at","failure_code","failure_kind","address_suppressed"],"title":"OpsEmailSend"},"OpsEmailSendDetail":{"properties":{"send":{"$ref":"#/components/schemas/OpsEmailSend"},"events":{"items":{"$ref":"#/components/schemas/OpsEmailEvent"},"type":"array","title":"Events"}},"type":"object","required":["send","events"],"title":"OpsEmailSendDetail"},"OpsEmailSendSearch":{"properties":{"status":{"anyOf":[{"type":"string","enum":["sent","failed","suppressed","delivery_delayed","delivered","bounced","complained","provider_suppressed"]},{"type":"null"}],"title":"Status"},"purpose":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Purpose"},"user_id":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"User Id"},"account_id":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Account Id"},"email":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Email"}},"type":"object","title":"OpsEmailSendSearch","description":"Filters for the sends list. A POST body, so an address never rides a URL."},"OpsEmailSummary":{"properties":{"by_status":{"additionalProperties":{"type":"integer"},"type":"object","title":"By Status"},"accepted":{"type":"integer","title":"Accepted","description":"Sends the provider accepted: the rates' denominator."},"bounced":{"type":"integer","title":"Bounced"},"complained":{"type":"integer","title":"Complained"},"bounce_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Bounce Rate"},"complaint_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Complaint Rate"},"complaint_rate_target":{"type":"number","title":"Complaint Rate Target"},"complaint_rate_limit":{"type":"number","title":"Complaint Rate Limit"},"bounce_rate_limit":{"type":"number","title":"Bounce Rate Limit"},"median_seconds_to_deliver":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Seconds To Deliver"},"by_purpose":{"items":{"$ref":"#/components/schemas/OpsEmailBreakdown"},"type":"array","title":"By Purpose"},"by_provider":{"items":{"$ref":"#/components/schemas/OpsEmailBreakdown"},"type":"array","title":"By Provider"},"bounce_reasons":{"items":{"$ref":"#/components/schemas/OpsEmailBounceReason"},"type":"array","title":"Bounce Reasons"},"last_event_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Event At","description":"When the last webhook event of any kind arrived; null if none ever has."},"linked_events":{"type":"integer","title":"Linked Events"},"unlinked_events":{"type":"integer","title":"Unlinked Events","description":"Events in the window for no send of this environment's (other products or the other environment on the shared provider account)."}},"type":"object","required":["by_status","accepted","bounced","complained","bounce_rate","complaint_rate","complaint_rate_target","complaint_rate_limit","bounce_rate_limit","median_seconds_to_deliver","by_purpose","by_provider","bounce_reasons","last_event_at","linked_events","unlinked_events"],"title":"OpsEmailSummary","description":"Delivery over a window, counted from sends (each send once, in its current status)."},"OpsEmailSuppression":{"properties":{"id":{"type":"string","title":"Id"},"email":{"type":"string","title":"Email"},"reason":{"type":"string","enum":["bounced","complained"],"title":"Reason"},"bounce_subtype":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bounce Subtype"},"email_send_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email Send Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"lifted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Lifted At"}},"type":"object","required":["id","email","reason","bounce_subtype","email_send_id","created_at","lifted_at"],"title":"OpsEmailSuppression"},"OpsEmailSuppressionLift":{"properties":{"reason":{"type":"string","maxLength":500,"minLength":1,"title":"Reason"}},"type":"object","required":["reason"],"title":"OpsEmailSuppressionLift"},"OpsEnterpriseInquiry":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"},"company":{"type":"string","title":"Company"},"team_size":{"type":"string","enum":["1-10","11-50","51-200","201+"],"title":"Team Size"},"needs":{"items":{"type":"string","enum":["sso","scim","audit_log_export","data_retention","security_review","dpa","invoiced_contract","volume_pricing","data_residency","uptime_sla","other"]},"type":"array","title":"Needs"},"message":{"type":"string","title":"Message"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"handled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Handled At"},"handled_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Handled By User Id"}},"type":"object","required":["id","name","email","company","team_size","needs","message","created_at","handled_at","handled_by_user_id"],"title":"OpsEnterpriseInquiry","description":"An inquiry as the console shows it: the whole submission plus its triage stamp."},"OpsFeedbackDetail":{"properties":{"id":{"type":"string","title":"Id"},"account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"},"account_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Handle"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"kind":{"type":"string","enum":["bug","feature","other"],"title":"Kind"},"source_type":{"type":"string","enum":["session","web"],"title":"Source Type"},"status":{"type":"string","enum":["open","triaged","in_progress","resolved","closed","wont_fix","duplicate"],"title":"Status"},"severity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Severity"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"component":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Component"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"body":{"type":"string","title":"Body"},"context":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Context"},"account_membership_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Membership Id"},"agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Id"},"session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","kind","source_type","status","created_at","body","updated_at"],"title":"OpsFeedbackDetail"},"OpsFeedbackListItem":{"properties":{"id":{"type":"string","title":"Id"},"account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"},"account_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Handle"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"kind":{"type":"string","enum":["bug","feature","other"],"title":"Kind"},"source_type":{"type":"string","enum":["session","web"],"title":"Source Type"},"status":{"type":"string","enum":["open","triaged","in_progress","resolved","closed","wont_fix","duplicate"],"title":"Status"},"severity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Severity"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"component":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Component"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","kind","source_type","status","created_at"],"title":"OpsFeedbackListItem"},"OpsFinanceLine":{"properties":{"section":{"type":"string","enum":["deferred_revenue","revenue","model_cost","acquisition_cost","gross_margin"],"title":"Section"},"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value"},"unit":{"type":"string","enum":["usd","percent"],"title":"Unit"}},"type":"object","required":["section","key","label","value","unit"],"title":"OpsFinanceLine","description":"One figure of the monthly finance report: a section, a stable key, a\nlabel, and dollars (or a percent); null when it cannot be computed here."},"OpsFinanceReport":{"properties":{"month":{"type":"string","title":"Month"},"starts_at":{"type":"string","format":"date-time","title":"Starts At"},"ends_at":{"type":"string","format":"date-time","title":"Ends At"},"complete":{"type":"boolean","title":"Complete"},"subscription_revenue_available":{"type":"boolean","title":"Subscription Revenue Available"},"lines":{"items":{"$ref":"#/components/schemas/OpsFinanceLine"},"type":"array","title":"Lines"}},"type":"object","required":["month","starts_at","ends_at","complete","subscription_revenue_available","lines"],"title":"OpsFinanceReport","description":"The CPA's monthly report: totals across every account, never one\naccount's figures and never content\n(ADR-2026-11-09-the-cpas-monthly-finance-report-is-an-ops-console-page-with-a-csv-export)."},"OpsFunnelStep":{"properties":{"step":{"type":"string","title":"Step"},"done":{"type":"integer","title":"Done"},"skipped":{"type":"integer","title":"Skipped"}},"type":"object","required":["step","done","skipped"],"title":"OpsFunnelStep","description":"How many of the window's signups have settled one onboarding step."},"OpsJobDetail":{"properties":{"id":{"type":"string","title":"Id"},"kind":{"type":"string","enum":["synthesize_page","extract_document","rebuild_profile","title_memories","check_collection_prompts","regenerate_collection_prompts","build_typed_pick_library","write_library_suggestion","judge_memory","grade_page","embed_memory","embed_document","embed_page","build_embedding_set"],"title":"Kind"},"status":{"type":"string","enum":["queued","running","completed","failed","awaiting_agent","cancelled","over_cap"],"title":"Status"},"page_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Id"},"page_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Slug"},"page_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Title"},"account_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Handle"},"library_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Library Slug"},"document_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Id"},"cascade_depth":{"type":"integer","title":"Cascade Depth"},"outcome":{"anyOf":[{"type":"string","enum":["wrote","same_body","unchanged","no_evidence","refresh_declined","handoff_closed","evidence_redacted","kept","patched"]},{"type":"null"}],"title":"Outcome"},"scheduled_for":{"type":"string","format":"date-time","title":"Scheduled For"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"trigger_memory_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trigger Memory Id"},"trigger_document_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trigger Document Id"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"attempts":{"type":"integer","title":"Attempts"},"max_attempts":{"type":"integer","title":"Max Attempts","default":0},"routed_mode":{"anyOf":[{"type":"string","enum":["agent","server"]},{"type":"null"}],"title":"Routed Mode"},"library_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Library Id"},"trace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trace Id"}},"type":"object","required":["id","kind","status","cascade_depth","scheduled_for","created_at","updated_at","attempts"],"title":"OpsJobDetail"},"OpsJobListItem":{"properties":{"id":{"type":"string","title":"Id"},"kind":{"type":"string","enum":["synthesize_page","extract_document","rebuild_profile","title_memories","check_collection_prompts","regenerate_collection_prompts","build_typed_pick_library","write_library_suggestion","judge_memory","grade_page","embed_memory","embed_document","embed_page","build_embedding_set"],"title":"Kind"},"status":{"type":"string","enum":["queued","running","completed","failed","awaiting_agent","cancelled","over_cap"],"title":"Status"},"page_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Id"},"page_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Slug"},"page_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Title"},"account_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Handle"},"library_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Library Slug"},"document_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Id"},"cascade_depth":{"type":"integer","title":"Cascade Depth"},"outcome":{"anyOf":[{"type":"string","enum":["wrote","same_body","unchanged","no_evidence","refresh_declined","handoff_closed","evidence_redacted","kept","patched"]},{"type":"null"}],"title":"Outcome"},"scheduled_for":{"type":"string","format":"date-time","title":"Scheduled For"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","kind","status","cascade_depth","scheduled_for","created_at"],"title":"OpsJobListItem"},"OpsLibraryCollection":{"properties":{"id":{"type":"string","title":"Id"},"slug":{"type":"string","title":"Slug"},"label":{"type":"string","title":"Label"},"subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtitle"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"},"outcome":{"anyOf":[{"type":"string","enum":["kept","renamed","rewritten","added"]},{"type":"null"}],"title":"Outcome"},"page_count":{"type":"integer","title":"Page Count"},"memory_count":{"type":"integer","title":"Memory Count"},"last_page_update":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Page Update"}},"type":"object","required":["id","slug","label","subtitle","color","outcome","page_count","memory_count","last_page_update"],"title":"OpsLibraryCollection"},"OpsLibraryListItem":{"properties":{"id":{"type":"string","title":"Id"},"slug":{"type":"string","title":"Slug"},"display_name":{"type":"string","title":"Display Name"},"kind":{"type":"string","enum":["default","standard","member_private"],"title":"Kind"},"account_id":{"type":"string","title":"Account Id"},"account_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Handle"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"},"memory_count":{"type":"integer","title":"Memory Count"},"document_count":{"type":"integer","title":"Document Count"},"page_count":{"type":"integer","title":"Page Count"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","slug","display_name","kind","account_id","memory_count","document_count","page_count","created_at"],"title":"OpsLibraryListItem"},"OpsLibraryReads":{"properties":{"days":{"items":{"$ref":"#/components/schemas/OpsReadDay"},"type":"array","title":"Days"},"pages":{"items":{"$ref":"#/components/schemas/OpsPageReadTotals"},"type":"array","title":"Pages"}},"type":"object","required":["days","pages"],"title":"OpsLibraryReads","description":"A library's reads over the last 30 UTC days, today included."},"OpsLibrarySettings":{"properties":{"library_id":{"type":"string","title":"Library Id"},"library_slug":{"type":"string","title":"Library Slug"},"account_id":{"type":"string","title":"Account Id"},"account_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Handle"},"synthesis_debounce_seconds":{"type":"integer","title":"Synthesis Debounce Seconds"},"synthesis_cascade_max_depth":{"type":"integer","title":"Synthesis Cascade Max Depth"},"synthesis_cold_threshold":{"type":"integer","title":"Synthesis Cold Threshold"}},"type":"object","required":["library_id","library_slug","account_id","synthesis_debounce_seconds","synthesis_cascade_max_depth","synthesis_cold_threshold"],"title":"OpsLibrarySettings"},"OpsLibraryStructure":{"properties":{"id":{"type":"string","title":"Id"},"slug":{"type":"string","title":"Slug"},"display_name":{"type":"string","title":"Display Name"},"kind":{"type":"string","enum":["default","standard","member_private"],"title":"Kind"},"account_id":{"type":"string","title":"Account Id"},"account_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Handle"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"archived_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Archived At"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"},"origin":{"anyOf":[{"type":"string","enum":["template","brainstorm","default","custom"]},{"type":"null"}],"title":"Origin"},"template":{"anyOf":[{"$ref":"#/components/schemas/OpsTemplateRef"},{"type":"null"}]},"brainstorm_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brainstorm Run Id"},"memory_count":{"type":"integer","title":"Memory Count"},"document_count":{"type":"integer","title":"Document Count"},"page_count":{"type":"integer","title":"Page Count"},"unfiled_memory_count":{"type":"integer","title":"Unfiled Memory Count"},"tree":{"$ref":"#/components/schemas/OpsPageTree"},"collections":{"items":{"$ref":"#/components/schemas/OpsLibraryCollection"},"type":"array","title":"Collections"},"removed_template_collections":{"items":{"$ref":"#/components/schemas/OpsRemovedCollection"},"type":"array","title":"Removed Template Collections"}},"type":"object","required":["id","slug","display_name","kind","account_id","account_handle","created_at","archived_at","deleted_at","origin","template","brainstorm_run_id","memory_count","document_count","page_count","unfiled_memory_count","tree","collections","removed_template_collections"],"title":"OpsLibraryStructure"},"OpsLibraryStructureSummary":{"properties":{"library_count":{"type":"integer","title":"Library Count"},"origins":{"items":{"$ref":"#/components/schemas/OpsOriginCount"},"type":"array","title":"Origins"},"median_collections":{"type":"number","title":"Median Collections"},"empty_collection_share":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Empty Collection Share"},"empty_after_days":{"type":"integer","title":"Empty After Days"},"unfiled_memory_share":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Unfiled Memory Share"},"template_outcomes":{"$ref":"#/components/schemas/OpsTemplateOutcomes"},"top_templates":{"items":{"$ref":"#/components/schemas/OpsTemplateUse"},"type":"array","title":"Top Templates"}},"type":"object","required":["library_count","origins","median_collections","empty_collection_share","empty_after_days","unfiled_memory_share","template_outcomes","top_templates"],"title":"OpsLibraryStructureSummary","description":"Summed over the libraries people created (kind ``standard``, not deleted,\narchived included)."},"OpsNewUser":{"properties":{"id":{"type":"string","title":"Id"},"handle":{"type":"string","title":"Handle"},"email":{"type":"string","title":"Email"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"origin":{"$ref":"#/components/schemas/OpsSignupOrigin"},"onboarding":{"anyOf":[{"items":{"$ref":"#/components/schemas/OpsOnboardingStep"},"type":"array"},{"type":"null"}],"title":"Onboarding"},"waiting_on":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Waiting On"},"waiting_since":{"type":"string","format":"date-time","title":"Waiting Since"},"last_seen_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Seen At"}},"type":"object","required":["id","handle","email","created_at","origin","onboarding","waiting_on","waiting_since","last_seen_at"],"title":"OpsNewUser"},"OpsNewUsers":{"properties":{"days":{"type":"integer","title":"Days"},"signed_up":{"type":"integer","title":"Signed Up"},"funnel":{"items":{"$ref":"#/components/schemas/OpsFunnelStep"},"type":"array","title":"Funnel"},"users":{"items":{"$ref":"#/components/schemas/OpsNewUser"},"type":"array","title":"Users"}},"type":"object","required":["days","signed_up","funnel","users"],"title":"OpsNewUsers"},"OpsOnboardingStep":{"properties":{"step":{"type":"string","title":"Step"},"status":{"type":"string","enum":["pending","done","skipped"],"title":"Status"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"}},"type":"object","required":["step","status"],"title":"OpsOnboardingStep","description":"One step of a member's onboarding, as the console's drill-in lists it\n(ADR-2026-06-12-member-onboarding-state-table). Metadata only."},"OpsOriginCount":{"properties":{"origin":{"anyOf":[{"type":"string","enum":["template","brainstorm","default","custom"]},{"type":"null"}],"title":"Origin"},"library_count":{"type":"integer","title":"Library Count"}},"type":"object","required":["origin","library_count"],"title":"OpsOriginCount"},"OpsPageReadTotals":{"properties":{"public":{"type":"integer","title":"Public"},"team":{"type":"integer","title":"Team"},"agent":{"type":"integer","title":"Agent"},"page_id":{"type":"string","title":"Page Id"},"page_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Slug"}},"type":"object","required":["public","team","agent","page_id","page_slug"],"title":"OpsPageReadTotals","description":"One page's reads over the window. ``page_slug`` is ``None`` for a page\ndeleted since it was read."},"OpsPageTree":{"properties":{"root_pages":{"type":"integer","title":"Root Pages"},"subpages":{"type":"integer","title":"Subpages"},"deepest_level":{"type":"integer","title":"Deepest Level"}},"type":"object","required":["root_pages","subpages","deepest_level"],"title":"OpsPageTree"},"OpsReadDay":{"properties":{"public":{"type":"integer","title":"Public"},"team":{"type":"integer","title":"Team"},"agent":{"type":"integer","title":"Agent"},"day":{"type":"string","format":"date","title":"Day"}},"type":"object","required":["public","team","agent","day"],"title":"OpsReadDay","description":"One UTC day's reads across the library."},"OpsRemovedCollection":{"properties":{"slug":{"type":"string","title":"Slug"},"label":{"type":"string","title":"Label"}},"type":"object","required":["slug","label"],"title":"OpsRemovedCollection","description":"A template collection the library has no live collection for, by the\ncatalog's own label."},"OpsResetPasswordResponse":{"properties":{"temporary_password":{"type":"string","title":"Temporary Password"},"revoked_sessions":{"type":"integer","title":"Revoked Sessions"}},"type":"object","required":["temporary_password","revoked_sessions"],"title":"OpsResetPasswordResponse"},"OpsSignupOrigin":{"properties":{"device":{"anyOf":[{"type":"string","enum":["mobile","desktop"]},{"type":"null"}],"title":"Device"},"ad_source":{"anyOf":[{"type":"string","enum":["facebook","google","openai","reddit","x"]},{"type":"null"}],"title":"Ad Source"},"ad_campaign":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ad Campaign"},"referrer_domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Referrer Domain"},"landing_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Landing Path"}},"type":"object","required":["device","ad_source","ad_campaign","referrer_domain","landing_path"],"title":"OpsSignupOrigin","description":"Where a person came in from\n(ADR-2026-11-18-a-signup-records-its-device-class-and-the-people-view-shows-it-with-its-ad):\nthe device class of the request that created the user, and from their\nfirst-touch attribution row the ad platform and campaign, the external\nreferrer's domain and the landing path\n(ADR-2026-12-01-every-signup-keeps-its-first-touch-attribution-in-one-row).\nClient-asserted attribution, our own marketing labels and a bare domain,\nso it belongs on the metadata plane."},"OpsSignupTagCount":{"properties":{"tag":{"type":"string","title":"Tag"},"user_count":{"type":"integer","title":"User Count"}},"type":"object","required":["tag","user_count"],"title":"OpsSignupTagCount","description":"One row of the signup-tag rollup: a cohort and how many signups it holds.\n\nThe point of the rollup is that a typo is visible\n(ADR-2026-08-27-signup-tags-are-a-url-carried-cohort-stamp): tags are\nfree-form, so a one-count row sitting beside a fifty-count one is how\n``pro-yeer`` gets noticed."},"OpsTemplateOutcomes":{"properties":{"kept":{"type":"integer","title":"Kept","default":0},"renamed":{"type":"integer","title":"Renamed","default":0},"rewritten":{"type":"integer","title":"Rewritten","default":0},"removed":{"type":"integer","title":"Removed","default":0},"added":{"type":"integer","title":"Added","default":0}},"type":"object","title":"OpsTemplateOutcomes"},"OpsTemplateRef":{"properties":{"id":{"type":"string","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","required":["id","name"],"title":"OpsTemplateRef"},"OpsTemplateUse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"library_count":{"type":"integer","title":"Library Count"},"kept_share":{"type":"number","title":"Kept Share"}},"type":"object","required":["id","name","library_count","kept_share"],"title":"OpsTemplateUse"},"OpsTestClockTrial":{"properties":{"clock_id":{"type":"string","title":"Clock Id"},"customer_id":{"type":"string","title":"Customer Id"},"subscription_id":{"type":"string","title":"Subscription Id"}},"type":"object","required":["clock_id","customer_id","subscription_id"],"title":"OpsTestClockTrial","description":"An account's trial recreated on a new Stripe test clock (test mode only)."},"OpsTraceDetail":{"properties":{"trace_id":{"type":"string","title":"Trace Id"},"spans":{"items":{"$ref":"#/components/schemas/OpsTraceSpan"},"type":"array","title":"Spans"}},"type":"object","required":["trace_id","spans"],"title":"OpsTraceDetail"},"OpsTraceListItem":{"properties":{"trace_id":{"type":"string","title":"Trace Id"},"root_span_id":{"type":"string","title":"Root Span Id"},"kind":{"type":"string","title":"Kind"},"name":{"type":"string","title":"Name"},"status":{"type":"string","enum":["ok","error"],"title":"Status"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended At"},"duration_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Ms"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Id"},"session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"},"error_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Kind"},"llm_call_count":{"type":"integer","title":"Llm Call Count"},"llm_input_tokens_total":{"type":"integer","title":"Llm Input Tokens Total"},"llm_output_tokens_total":{"type":"integer","title":"Llm Output Tokens Total"},"llm_cost_usd_total":{"type":"number","title":"Llm Cost Usd Total"}},"type":"object","required":["trace_id","root_span_id","kind","name","status","started_at","llm_call_count","llm_input_tokens_total","llm_output_tokens_total","llm_cost_usd_total"],"title":"OpsTraceListItem"},"OpsTraceSpan":{"properties":{"id":{"type":"string","title":"Id"},"trace_id":{"type":"string","title":"Trace Id"},"parent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Id"},"kind":{"type":"string","title":"Kind"},"name":{"type":"string","title":"Name"},"status":{"type":"string","enum":["ok","error"],"title":"Status"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended At"},"duration_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Ms"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"input_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Input Tokens"},"output_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Output Tokens"},"cost_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Usd"},"error_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Kind"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"}},"type":"object","required":["id","trace_id","kind","name","status","started_at"],"title":"OpsTraceSpan"},"OpsUsage":{"properties":{"account_id":{"type":"string","title":"Account Id"},"plan":{"type":"string","title":"Plan"},"spend_daily_usd":{"type":"number","title":"Spend Daily Usd"},"ceiling_daily_usd":{"type":"number","title":"Ceiling Daily Usd"},"spend_period_usd":{"type":"number","title":"Spend Period Usd"},"ceiling_period_usd":{"type":"number","title":"Ceiling Period Usd"},"soft_threshold_pct":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Soft Threshold Pct"},"billing_enforced":{"type":"boolean","title":"Billing Enforced"}},"type":"object","required":["account_id","plan","spend_daily_usd","ceiling_daily_usd","spend_period_usd","ceiling_period_usd","soft_threshold_pct","billing_enforced"],"title":"OpsUsage","description":"A personal account's spend against its ceilings, as the cap measures it."},"OpsUserAccount":{"properties":{"account_id":{"type":"string","title":"Account Id"},"handle":{"type":"string","title":"Handle"},"display_name":{"type":"string","title":"Display Name"},"kind":{"type":"string","enum":["personal","organization"],"title":"Kind"},"role":{"type":"string","enum":["owner","admin","member"],"title":"Role"},"status":{"type":"string","enum":["active","invited","suspended"],"title":"Status"},"library_count":{"type":"integer","title":"Library Count","default":0},"page_count":{"type":"integer","title":"Page Count","default":0}},"type":"object","required":["account_id","handle","display_name","kind","role","status"],"title":"OpsUserAccount"},"OpsUserAgent":{"properties":{"id":{"type":"string","title":"Id"},"display_name":{"type":"string","title":"Display Name"},"client_kind":{"type":"string","enum":["claude-code","claude-desktop","openclaw","codex","cursor","gemini-cli","antigravity","chatgpt","gemini","muse","hermes","perplexity","other","seaglass-cli","seaglass-system"],"title":"Client Kind"},"last_used_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Used At"}},"type":"object","required":["id","display_name","client_kind"],"title":"OpsUserAgent"},"OpsUserDetail":{"properties":{"id":{"type":"string","title":"Id"},"handle":{"type":"string","title":"Handle"},"email":{"type":"string","title":"Email"},"is_superuser":{"type":"boolean","title":"Is Superuser"},"signup_tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signup Tag"},"origin":{"$ref":"#/components/schemas/OpsSignupOrigin"},"terms_accepted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Terms Accepted At"},"terms_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Terms Version"},"privacy_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Privacy Version"},"terms_accepted_via":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Terms Accepted Via"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"accounts":{"items":{"$ref":"#/components/schemas/OpsUserAccount"},"type":"array","title":"Accounts"},"agents":{"items":{"$ref":"#/components/schemas/OpsUserAgent"},"type":"array","title":"Agents"},"active_admin_sessions":{"type":"integer","title":"Active Admin Sessions"},"library_count":{"type":"integer","title":"Library Count"},"page_count":{"type":"integer","title":"Page Count"},"memory_count":{"type":"integer","title":"Memory Count"},"document_count":{"type":"integer","title":"Document Count"},"pages_edited":{"type":"integer","title":"Pages Edited"},"onboarding":{"anyOf":[{"items":{"$ref":"#/components/schemas/OpsOnboardingStep"},"type":"array"},{"type":"null"}],"title":"Onboarding"},"usage":{"anyOf":[{"$ref":"#/components/schemas/OpsUsage"},{"type":"null"}]},"last_web_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Web At"}},"type":"object","required":["id","handle","email","is_superuser","signup_tag","origin","terms_accepted_at","terms_version","privacy_version","terms_accepted_via","created_at","updated_at","accounts","agents","active_admin_sessions","library_count","page_count","memory_count","document_count","pages_edited","onboarding","usage","last_web_at"],"title":"OpsUserDetail"},"OpsUserListItem":{"properties":{"id":{"type":"string","title":"Id"},"handle":{"type":"string","title":"Handle"},"email":{"type":"string","title":"Email"},"is_superuser":{"type":"boolean","title":"Is Superuser"},"signup_tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signup Tag"},"origin":{"$ref":"#/components/schemas/OpsSignupOrigin"},"account_count":{"type":"integer","title":"Account Count"},"library_count":{"type":"integer","title":"Library Count"},"page_count":{"type":"integer","title":"Page Count"},"memory_count":{"type":"integer","title":"Memory Count"},"document_count":{"type":"integer","title":"Document Count"},"agent_count":{"type":"integer","title":"Agent Count"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","handle","email","is_superuser","signup_tag","origin","account_count","library_count","page_count","memory_count","document_count","agent_count","created_at"],"title":"OpsUserListItem"},"OrgDetail":{"properties":{"id":{"type":"string","title":"Id"},"handle":{"type":"string","title":"Handle"},"display_name":{"type":"string","title":"Display Name"},"kind":{"type":"string","enum":["personal","organization"],"title":"Kind"}},"type":"object","required":["id","handle","display_name","kind"],"title":"OrgDetail"},"OverviewSnapshot":{"properties":{"generated_at":{"type":"string","format":"date-time","title":"Generated At"},"users_total":{"type":"integer","title":"Users Total"},"superusers_total":{"type":"integer","title":"Superusers Total"},"accounts_total":{"type":"integer","title":"Accounts Total"},"accounts_personal":{"type":"integer","title":"Accounts Personal"},"accounts_organization":{"type":"integer","title":"Accounts Organization"},"members_total":{"type":"integer","title":"Members Total"},"libraries_total":{"type":"integer","title":"Libraries Total"},"libraries_deleted":{"type":"integer","title":"Libraries Deleted"},"agents_total":{"type":"integer","title":"Agents Total"},"teams_total":{"type":"integer","title":"Teams Total"},"tokens_active":{"type":"integer","title":"Tokens Active"},"memories_total":{"type":"integer","title":"Memories Total"},"documents_total":{"type":"integer","title":"Documents Total"},"pages_total":{"type":"integer","title":"Pages Total"},"sessions_total":{"type":"integer","title":"Sessions Total"},"sessions_active":{"type":"integer","title":"Sessions Active"},"jobs_queued":{"type":"integer","title":"Jobs Queued"},"jobs_running":{"type":"integer","title":"Jobs Running"},"jobs_failed":{"type":"integer","title":"Jobs Failed"},"jobs_completed_24h":{"type":"integer","title":"Jobs Completed 24H"},"oldest_queued_age_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Oldest Queued Age Seconds"},"stuck_running":{"type":"integer","title":"Stuck Running"},"worker_running":{"type":"boolean","title":"Worker Running"},"worker_last_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Worker Last Error"},"usage_days":{"type":"integer","title":"Usage Days"},"llm_calls":{"type":"integer","title":"Llm Calls"},"llm_input_tokens":{"type":"integer","title":"Llm Input Tokens"},"llm_output_tokens":{"type":"integer","title":"Llm Output Tokens"},"llm_cost_usd":{"type":"number","title":"Llm Cost Usd"},"cost_by_day":{"items":{"$ref":"#/components/schemas/CostByDay"},"type":"array","title":"Cost By Day"},"seaglass_paid_cost_usd":{"type":"number","title":"Seaglass Paid Cost Usd"},"cost_cap_enabled":{"type":"boolean","title":"Cost Cap Enabled"},"spend_soft_threshold_pct":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Spend Soft Threshold Pct"},"spend_watch":{"items":{"$ref":"#/components/schemas/SpendWatchRow"},"type":"array","title":"Spend Watch"},"spend_watch_total":{"type":"integer","title":"Spend Watch Total"},"new_users_24h":{"type":"integer","title":"New Users 24H"},"new_accounts_24h":{"type":"integer","title":"New Accounts 24H"},"new_memories_24h":{"type":"integer","title":"New Memories 24H"},"new_documents_24h":{"type":"integer","title":"New Documents 24H"}},"type":"object","required":["generated_at","users_total","superusers_total","accounts_total","accounts_personal","accounts_organization","members_total","libraries_total","libraries_deleted","agents_total","teams_total","tokens_active","memories_total","documents_total","pages_total","sessions_total","sessions_active","jobs_queued","jobs_running","jobs_failed","jobs_completed_24h","oldest_queued_age_seconds","stuck_running","worker_running","worker_last_error","usage_days","llm_calls","llm_input_tokens","llm_output_tokens","llm_cost_usd","cost_by_day","seaglass_paid_cost_usd","cost_cap_enabled","spend_soft_threshold_pct","spend_watch","spend_watch_total","new_users_24h","new_accounts_24h","new_memories_24h","new_documents_24h"],"title":"OverviewSnapshot"},"PageAccessAudit":{"properties":{"visibility":{"type":"string","enum":["private","members","public"],"title":"Visibility"},"public_since":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Public Since"},"subpages_follow":{"type":"boolean","title":"Subpages Follow"},"library_grants":{"items":{"$ref":"#/components/schemas/GrantAccessItem"},"type":"array","title":"Library Grants","default":[]},"shares":{"items":{"$ref":"#/components/schemas/ShareAccessItem"},"type":"array","title":"Shares","default":[]},"library_guests":{"items":{"$ref":"#/components/schemas/GuestAccessItem"},"type":"array","title":"Library Guests","default":[]}},"type":"object","required":["visibility","subpages_follow"],"title":"PageAccessAudit","description":"Who can reach this page: library grants + direct shares + public state."},"PageCanonical":{"properties":{"handle":{"type":"string","title":"Handle"},"library":{"type":"string","title":"Library"},"type":{"type":"string","title":"Type"},"slug":{"type":"string","title":"Slug"},"path":{"type":"string","title":"Path"}},"type":"object","required":["handle","library","type","slug","path"],"title":"PageCanonical","description":"The canonical address the page lives at right now."},"PageCrossLink":{"properties":{"slug":{"type":"string","title":"Slug"},"accessible":{"type":"boolean","title":"Accessible"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"library":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Library"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"one_line_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"One Line Summary"},"type_icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type Icon"},"type_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type Color"}},"type":"object","required":["slug","accessible"],"title":"PageCrossLink","description":"A resolved cross-link; when ``accessible`` is false, ``slug`` is the target's\nopaque page id and every other field is withheld but ``title``.\n\nAn inaccessible target keeps its ``title`` when it lives in the reading page's\naccount, so the web renders it locked; a target in another account withholds it\ntoo (ADR-2026-11-19-a-link-to-a-page-the-reader-cannot-open-shows-its-title-locked).\n\n``type`` and ``one_line_summary`` let the web render a link as its type glyph +\npage title (not the raw slug) and show a hover preview. They ride the\naccessibility gate (ADR-2026-05-28-url-and-addressing-scheme): an\ninaccessible target carries neither, so nothing beyond its title leaks through\nthe link chrome.\n\n``type_icon`` and ``type_color`` are the target collection's stored icon key\nand ``#rrggbb`` tint, read from the target library's page-type registry, so\nthe link wears its collection's glyph and color (ADR-2026-09-24-wiki-cross-links-wear-their-collections-color).\nSame gate; both are None when the collection stores none.\n\n``library`` is the target's library slug, since a body can link into another\nlibrary of the account and the web routes the link by it. Same gate."},"PageInvitationItem":{"properties":{"id":{"type":"string","title":"Id"},"email":{"type":"string","title":"Email"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"}},"type":"object","required":["id","email","created_at"],"title":"PageInvitationItem","description":"A pending invitation to a page, as its sharer sees it in the share dialog."},"PageQualityGroup":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"graded":{"type":"integer","title":"Graded"},"gradeable":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Gradeable"},"mean_score":{"type":"number","title":"Mean Score"},"failing_pages":{"type":"integer","title":"Failing Pages"},"criterion_means":{"additionalProperties":{"type":"number"},"type":"object","title":"Criterion Means"},"criterion_failing":{"additionalProperties":{"type":"integer"},"type":"object","title":"Criterion Failing"},"worst_criterion":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Worst Criterion"}},"type":"object","required":["key","label","graded","gradeable","mean_score","failing_pages","criterion_means","criterion_failing","worst_criterion"],"title":"PageQualityGroup","description":"Aggregates over a set of graded pages: all, a library, a collection, a writer."},"PageQualityPages":{"properties":{"truncated":{"type":"boolean","title":"Truncated"},"pages":{"items":{"$ref":"#/components/schemas/PageQualityRow"},"type":"array","title":"Pages"}},"type":"object","required":["truncated","pages"],"title":"PageQualityPages"},"PageQualityReport":{"properties":{"rubric_version":{"type":"string","title":"Rubric Version"},"criteria":{"additionalProperties":{"type":"string"},"type":"object","title":"Criteria"},"fail_below":{"type":"number","title":"Fail Below"},"truncated":{"type":"boolean","title":"Truncated"},"overall":{"$ref":"#/components/schemas/PageQualityGroup"},"by_library":{"items":{"$ref":"#/components/schemas/PageQualityGroup"},"type":"array","title":"By Library"},"by_collection":{"items":{"$ref":"#/components/schemas/PageQualityGroup"},"type":"array","title":"By Collection"},"by_writer":{"items":{"$ref":"#/components/schemas/PageQualityGroup"},"type":"array","title":"By Writer"},"by_prompt":{"items":{"$ref":"#/components/schemas/PageQualityGroup"},"type":"array","title":"By Prompt"},"trend":{"items":{"$ref":"#/components/schemas/PageQualityTrendPoint"},"type":"array","title":"Trend"}},"type":"object","required":["rubric_version","criteria","fail_below","truncated","overall","by_library","by_collection","by_writer","by_prompt","trend"],"title":"PageQualityReport"},"PageQualityRow":{"properties":{"page_id":{"type":"string","title":"Page Id"},"slug":{"type":"string","title":"Slug"},"title":{"type":"string","title":"Title"},"library_id":{"type":"string","title":"Library Id"},"account_handle":{"type":"string","title":"Account Handle"},"library_slug":{"type":"string","title":"Library Slug"},"collection":{"type":"string","title":"Collection"},"page_version":{"type":"integer","title":"Page Version"},"edit_kind":{"anyOf":[{"type":"string","enum":["worker_synthesis","agent_edit","human_admin","revert","move","intent_edit","page_intent_edit","worker_patch"]},{"type":"null"}],"title":"Edit Kind"},"prompt_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Version"},"synthesis_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Synthesis Model"},"score":{"type":"number","title":"Score"},"weakest_criterion":{"type":"string","title":"Weakest Criterion"},"weakest_score":{"type":"number","title":"Weakest Score"},"scores":{"additionalProperties":{"type":"number"},"type":"object","title":"Scores"},"graded_at":{"type":"string","format":"date-time","title":"Graded At"}},"type":"object","required":["page_id","slug","title","library_id","account_handle","library_slug","collection","page_version","edit_kind","prompt_version","synthesis_model","score","weakest_criterion","weakest_score","scores","graded_at"],"title":"PageQualityRow","description":"A page's newest grade under the current rubric."},"PageQualityTrendPoint":{"properties":{"week_start":{"type":"string","format":"date","title":"Week Start"},"grades":{"type":"integer","title":"Grades"},"mean_score":{"type":"number","title":"Mean Score"},"criterion_means":{"additionalProperties":{"type":"number"},"type":"object","title":"Criterion Means"}},"type":"object","required":["week_start","grades","mean_score","criterion_means"],"title":"PageQualityTrendPoint"},"PageRetired":{"properties":{"reason":{"type":"string","enum":["superseded","retracted"],"title":"Reason"},"at":{"type":"string","format":"date-time","title":"At"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","required":["reason","at"],"title":"PageRetired","description":"A retired page's lifecycle block (ADR-2026-09-18-pages-retire-when-their-evidence-drains).\n\nThe page is living but out of its collection: its evidence drained. ``reason``\nis ``superseded`` or ``retracted``; ``note`` is a viewer-independent sentence\nthe retired banner shows. No successor pointer — where the evidence went is on\nthe memory tombstones in the source trail."},"PageRewriteRequest":{"properties":{"instruction":{"type":"string","title":"Instruction"},"base_version":{"type":"integer","title":"Base Version"}},"type":"object","required":["instruction","base_version"],"title":"PageRewriteRequest","description":"Describe-a-change intent edit for the whole page (ADR-2026-06-30-whole-page-edit-page-scope-correction).\n\n``instruction`` is the natural-language change applied across every section;\n``base_version`` is the optimistic token — a stale value is rejected with a\n409, and the whole edit is atomic (one new version or nothing)."},"PageRewriteResponse":{"properties":{"page_id":{"type":"string","title":"Page Id"},"synthesis_page_id":{"type":"string","title":"Synthesis Page Id"},"version":{"type":"integer","title":"Version"},"edit_id":{"type":"string","title":"Edit Id"},"edit_kind":{"type":"string","enum":["worker_synthesis","agent_edit","human_admin","revert","move","intent_edit","page_intent_edit","worker_patch"],"title":"Edit Kind"},"unresolved_links":{"items":{"type":"string"},"type":"array","title":"Unresolved Links","default":[]},"cross_links":{"items":{"type":"string"},"type":"array","title":"Cross Links","default":[]},"no_op":{"type":"boolean","title":"No Op","default":false},"sections":{"items":{"$ref":"#/components/schemas/PageRewriteSectionDiff"},"type":"array","title":"Sections","default":[]},"captured_memory_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Captured Memory Ids"},"superseded_memory_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Superseded Memory Ids"}},"type":"object","required":["page_id","synthesis_page_id","version","edit_id","edit_kind"],"title":"PageRewriteResponse","description":"An applied whole-page correction: the atomic edit + per-section diffs."},"PageRewriteSectionDiff":{"properties":{"sect_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sect Id"},"heading":{"type":"string","title":"Heading","default":""},"before":{"type":"string","title":"Before","default":""},"after":{"type":"string","title":"After","default":""}},"type":"object","title":"PageRewriteSectionDiff","description":"One section's before/after body — drives the client's staggered arrival."},"PageSectionItem":{"properties":{"sect_id":{"type":"string","title":"Sect Id"},"heading":{"type":"string","title":"Heading"},"level":{"type":"integer","title":"Level"},"position":{"type":"integer","title":"Position"},"body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body"}},"type":"object","required":["sect_id","heading","level","position"],"title":"PageSectionItem","description":"One addressable section of the page body (ADR-2026-06-12-stable-section-identity-sections-are-the-chunk-unit / ADR-2026-06-26-intent-based-section-editing-in-the-web-wiki).\n\nStructural metadata of the ``synthesis_markdown`` the viewer already reads:\nthe stable ``sect_…`` id lets the web map a click on a chunk to an edit\ntarget. No new privacy surface — it mirrors headings of content already\nreturned in the body."},"PageSummary":{"properties":{"id":{"type":"string","title":"Id"},"slug":{"type":"string","title":"Slug"},"type":{"type":"string","title":"Type"},"title":{"type":"string","title":"Title"},"visibility":{"type":"string","enum":["private","members","public"],"title":"Visibility"},"one_line_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"One Line Summary"},"last_synthesized_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Synthesized At"},"retired_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Retired At"},"retired_reason":{"anyOf":[{"type":"string","enum":["superseded","retracted"]},{"type":"null"}],"title":"Retired Reason"},"retired_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Retired Note"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"last_edited_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Edited At"}},"type":"object","required":["id","slug","type","title","visibility"],"title":"PageSummary","description":"A single row in a library's page index (ADR-2026-05-29-collection-first-addressing-scheme collection list).\n\nPublic-capable and deliberately provenance-free: the index is reachable by an\nanonymous viewer (who sees only public pages), so it never carries writers or\nsource rows. The viewer-filtering happens per row in the list handler."},"PageSynthesisStatus":{"properties":{"state":{"type":"string","enum":["queued","running","awaiting_agent","over_cap","failed"],"title":"State"},"scheduled_for":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled For"},"paused_reason":{"anyOf":[{"type":"string","enum":["trial_ended","out_of_credit"]},{"type":"null"}],"title":"Paused Reason"}},"type":"object","required":["state"],"title":"PageSynthesisStatus","description":"What the synthesis queue currently owes this page (ADR-2026-09-19-the-page-read-declares-its-pending-synthesis).\n\nPresent only for a member-reader, and only when the queue has something to\nsay: an open ``synthesize_page`` job, or a last run that failed. Absent means\n\"nothing pending\", which is what lets the web tell a page nothing is coming\nfor from a page being written right now.\n\nDeliberately narrower than the job row: no ``error`` (it can carry provider\ntext), no ``routed_mode`` or ``handoff_session_id`` — those are ops-console\ndetail (ADR-2026-05-31-platform-operations-console-and-superuser-role)."},"PageTypeInput":{"properties":{"slug":{"type":"string","maxLength":64,"title":"Slug"},"label":{"type":"string","maxLength":120,"title":"Label"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"icon":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Icon"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"},"subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtitle"},"template_slug":{"anyOf":[{"type":"string","maxLength":64,"minLength":1},{"type":"null"}],"title":"Template Slug"}},"type":"object","required":["slug","label"],"title":"PageTypeInput","description":"A collection (page type) to create in the new library (ADR-2026-05-30-library-defined-page-types).\n\nEvery collection on the create form is the same shape, whether it started as\na default or the user added it: an editable label + description (plus the\npresentational icon/color), keyed by slug."},"PageTypeSummary":{"properties":{"slug":{"type":"string","title":"Slug"},"label":{"type":"string","title":"Label"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"},"subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtitle"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["slug","label","created_at"],"title":"PageTypeSummary","description":"A single library-defined page type."},"PageView":{"properties":{"redirected":{"type":"boolean","title":"Redirected"},"canonical":{"$ref":"#/components/schemas/PageCanonical"},"viewer":{"$ref":"#/components/schemas/PageViewer"},"id":{"type":"string","title":"Id"},"type":{"type":"string","title":"Type"},"slug":{"type":"string","title":"Slug"},"title":{"type":"string","title":"Title"},"visibility":{"type":"string","enum":["private","members","public"],"title":"Visibility"},"aliases":{"items":{"type":"string"},"type":"array","title":"Aliases","default":[]},"identity_hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Identity Hint"},"one_line_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"One Line Summary"},"parent":{"anyOf":[{"$ref":"#/components/schemas/ParentSummary"},{"type":"null"}]},"subpages":{"items":{"$ref":"#/components/schemas/SubpageSummary"},"type":"array","title":"Subpages","default":[]},"synthesis_markdown":{"type":"string","title":"Synthesis Markdown","default":""},"synthesis_notes":{"type":"string","title":"Synthesis Notes","default":""},"version":{"type":"integer","title":"Version","default":0},"sections":{"items":{"$ref":"#/components/schemas/PageSectionItem"},"type":"array","title":"Sections","default":[]},"cross_links":{"items":{"$ref":"#/components/schemas/PageCrossLink"},"type":"array","title":"Cross Links","default":[]},"writers":{"items":{"$ref":"#/components/schemas/PageWriter"},"type":"array","title":"Writers","default":[]},"source_memories":{"items":{"$ref":"#/components/schemas/MemorySource"},"type":"array","title":"Source Memories","default":[]},"source_documents":{"items":{"$ref":"#/components/schemas/DocumentSource"},"type":"array","title":"Source Documents","default":[]},"last_synthesized_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Synthesized At"},"synthesis_status":{"anyOf":[{"$ref":"#/components/schemas/PageSynthesisStatus"},{"type":"null"}]},"public_reads":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Public Reads"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"retired":{"anyOf":[{"$ref":"#/components/schemas/PageRetired"},{"type":"null"}]}},"type":"object","required":["redirected","canonical","viewer","id","type","slug","title","visibility","created_at","updated_at"],"title":"PageView","description":"A fully-resolved, authorized page for the URL-grammar read surface."},"PageViewer":{"properties":{"authenticated":{"type":"boolean","title":"Authenticated","default":false},"reads_library":{"type":"boolean","title":"Reads Library","default":false},"can_write":{"type":"boolean","title":"Can Write","default":false},"can_share":{"type":"boolean","title":"Can Share","default":false},"can_manage":{"type":"boolean","title":"Can Manage","default":false},"can_move":{"type":"boolean","title":"Can Move","default":false},"can_rewrite":{"type":"boolean","title":"Can Rewrite","default":false}},"type":"object","title":"PageViewer","description":"Advisory capability hints for the requesting viewer (server still authorizes)."},"PageWriter":{"properties":{"agent_id":{"type":"string","title":"Agent Id"},"display_name":{"type":"string","title":"Display Name","default":""},"memory_count":{"type":"integer","title":"Memory Count","default":0},"document_count":{"type":"integer","title":"Document Count","default":0}},"type":"object","required":["agent_id"],"title":"PageWriter"},"PaginationMeta":{"properties":{"page":{"type":"integer","title":"Page"},"per_page":{"type":"integer","title":"Per Page"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["page","per_page","total"],"title":"PaginationMeta"},"ParentSummary":{"properties":{"id":{"type":"string","title":"Id"},"slug":{"type":"string","title":"Slug"},"title":{"type":"string","title":"Title"},"type":{"type":"string","title":"Type"}},"type":"object","required":["id","slug","title","type"],"title":"ParentSummary"},"PickItem":{"properties":{"external_id":{"type":"string","title":"External Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"}},"type":"object","required":["external_id"],"title":"PickItem"},"PickRequest":{"properties":{"items":{"items":{"$ref":"#/components/schemas/PickItem"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"PickRequest"},"PickerTokenResponse":{"properties":{"access_token":{"type":"string","title":"Access Token"}},"type":"object","required":["access_token"],"title":"PickerTokenResponse"},"PortalRequest":{"properties":{"purpose":{"type":"string","enum":["manage","replace_card","cancel"],"title":"Purpose","default":"manage"}},"type":"object","title":"PortalRequest","description":"POST /v1/accounts/{handle}/billing/portal."},"PortalResponse":{"properties":{"url":{"type":"string","title":"Url"}},"type":"object","required":["url"],"title":"PortalResponse"},"PreferencesBlock":{"properties":{"capture":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Capture"},"recall":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recall"},"approval":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approval"},"disclosure":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disclosure"}},"additionalProperties":false,"type":"object","title":"PreferencesBlock","description":"Raw column values — null means \"inherit\" (on agent rows) or \"default\" (on user rows)."},"PrefixChanged":{"properties":{"error":{"type":"string","const":"prefix_changed","title":"Error"},"byte_count":{"type":"integer","title":"Byte Count"}},"type":"object","required":["error","byte_count"],"title":"PrefixChanged"},"PromptMap":{"properties":{"generated_at":{"type":"string","title":"Generated At"},"sections":{"items":{"$ref":"#/components/schemas/PromptMapSection"},"type":"array","title":"Sections"},"stale_citations":{"type":"integer","title":"Stale Citations"},"missing_anchors":{"type":"integer","title":"Missing Anchors"}},"type":"object","required":["generated_at","sections","stale_citations","missing_anchors"],"title":"PromptMap","description":"The whole map: every instruction surface, in delivery order."},"PromptMapSection":{"properties":{"key":{"type":"string","title":"Key"},"title":{"type":"string","title":"Title"},"blurb":{"type":"string","title":"Blurb"},"count":{"type":"integer","title":"Count"},"payload":{"additionalProperties":true,"type":"object","title":"Payload"}},"type":"object","required":["key","title","blurb","count","payload"],"title":"PromptMapSection","description":"One section of the map, with the free-form payload its page renders."},"PromptParam":{"properties":{"name":{"type":"string","title":"Name"},"annotation":{"type":"string","title":"Annotation"},"required":{"type":"boolean","title":"Required"},"default":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default"}},"type":"object","required":["name","annotation","required"],"title":"PromptParam","description":"One declared parameter of a user-prompt renderer."},"PromptPerformance":{"properties":{"generated_at":{"type":"string","format":"date-time","title":"Generated At"},"window_start":{"type":"string","format":"date-time","title":"Window Start"},"bucket_hours":{"type":"integer","title":"Bucket Hours"},"bucket_count":{"type":"integer","title":"Bucket Count"},"series":{"items":{"$ref":"#/components/schemas/PromptSeriesPoint"},"type":"array","title":"Series"},"prompts":{"items":{"$ref":"#/components/schemas/PromptPerformanceRow"},"type":"array","title":"Prompts"},"unattributed_calls":{"type":"integer","title":"Unattributed Calls"}},"type":"object","required":["generated_at","window_start","bucket_hours","bucket_count","series","prompts","unattributed_calls"],"title":"PromptPerformance","description":"Every server-side prompt's calls over a trailing window.\n\n``series`` feeds the console's charts: ``bucket_count`` buckets of\n``bucket_hours`` from ``window_start``, which is the window's start floored\nto a UTC bucket boundary, so the first bucket holds only the window's part\nof it and the last one runs to ``generated_at``. Unattributed calls are in\nno point, as they are in no row."},"PromptPerformanceRow":{"properties":{"calls":{"type":"integer","title":"Calls"},"error_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Error Rate"},"retry_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Retry Rate"},"truncated":{"type":"integer","title":"Truncated"},"refused":{"type":"integer","title":"Refused"},"p50_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"P50 Ms"},"p95_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"P95 Ms"},"avg_input_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Avg Input Tokens"},"avg_output_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Avg Output Tokens"},"cache_hit_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cache Hit Rate"},"cost_usd":{"type":"number","title":"Cost Usd"},"cost_per_call":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Per Call"},"job":{"type":"string","title":"Job"},"title":{"type":"string","title":"Title"},"summary":{"type":"string","title":"Summary"},"effort":{"type":"string","title":"Effort"},"configured_model":{"type":"string","title":"Configured Model"},"current_version":{"type":"string","title":"Current Version"},"effort_mix":{"items":{"$ref":"#/components/schemas/EffortShare"},"type":"array","title":"Effort Mix"},"quality":{"anyOf":[{"$ref":"#/components/schemas/PromptQuality"},{"type":"null"}]},"versions":{"items":{"$ref":"#/components/schemas/PromptVersionPerformance"},"type":"array","title":"Versions"}},"type":"object","required":["calls","truncated","refused","cost_usd","job","title","summary","effort","configured_model","current_version","effort_mix","versions"],"title":"PromptPerformanceRow","description":"One server-side prompt: what it is, and how its calls ran."},"PromptQuality":{"properties":{"kind":{"type":"string","enum":["pages_healthy","empty_profile","title_fallback"],"title":"Kind"},"count":{"type":"integer","title":"Count"},"total":{"type":"integer","title":"Total"},"rate":{"type":"number","title":"Rate"},"warn":{"type":"boolean","title":"Warn"}},"type":"object","required":["kind","count","total","rate","warn"],"title":"PromptQuality","description":"One job's output-quality rate: ``count`` of ``total`` outcomes hit the signal.\n\n``pages_healthy``: pages in no synthesis-health bucket, of the pages the page\nwriter produced in the window. ``empty_profile``: profile rebuilds\nthat came back empty, of those that called the model. ``title_fallback``:\nmemories that got the computed headline, of those sent for a title. ``warn``\nis set when the rate crosses the signal's threshold. Counts only, never content."},"PromptSeriesPoint":{"properties":{"bucket":{"type":"string","format":"date-time","title":"Bucket"},"job":{"type":"string","title":"Job"},"calls":{"type":"integer","title":"Calls"},"errors":{"type":"integer","title":"Errors"},"cost_usd":{"type":"number","title":"Cost Usd"}},"type":"object","required":["bucket","job","calls","errors","cost_usd"],"title":"PromptSeriesPoint","description":"One job's calls in one chart bucket starting at ``bucket``. Sparse: a\nbucket with no calls for a job has no point."},"PromptVersionPerformance":{"properties":{"version":{"type":"string","title":"Version"},"model":{"type":"string","title":"Model"},"effort":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Effort"},"current":{"type":"boolean","title":"Current"},"first_seen":{"type":"string","format":"date-time","title":"First Seen"},"last_seen":{"type":"string","format":"date-time","title":"Last Seen"},"calls":{"type":"integer","title":"Calls"},"error_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Error Rate"},"retry_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Retry Rate"},"truncated":{"type":"integer","title":"Truncated"},"refused":{"type":"integer","title":"Refused"},"p95_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"P95 Ms"},"avg_output_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Avg Output Tokens"},"cost_per_call":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Per Call"},"quality":{"anyOf":[{"$ref":"#/components/schemas/PromptQuality"},{"type":"null"}]}},"type":"object","required":["version","model","current","first_seen","last_seen","calls","truncated","refused"],"title":"PromptVersionPerformance","description":"One prompt version on one model at one effort within the window: the\nmeasures that compare a prompt edit, a model switch or an effort change.\nRates are 0..1."},"ProtectedResourceMetadata":{"properties":{"resource":{"type":"string","title":"Resource"},"authorization_servers":{"items":{"type":"string"},"type":"array","title":"Authorization Servers"},"scopes_supported":{"items":{"type":"string"},"type":"array","title":"Scopes Supported"},"bearer_methods_supported":{"items":{"type":"string"},"type":"array","title":"Bearer Methods Supported"}},"type":"object","required":["resource","authorization_servers","scopes_supported","bearer_methods_supported"],"title":"ProtectedResourceMetadata","description":"RFC 9728: the MCP endpoint, and the authorization server that guards it."},"ProvidersResponse":{"properties":{"providers":{"items":{"type":"string"},"type":"array","title":"Providers"}},"type":"object","required":["providers"],"title":"ProvidersResponse"},"PublicCollection":{"properties":{"type":{"type":"string","title":"Type","description":"The collection's slug, the first segment of its pages' slugs."},"pages":{"items":{"$ref":"#/components/schemas/PublicPageNode"},"type":"array","title":"Pages"}},"type":"object","required":["type","pages"],"title":"PublicCollection","description":"One collection's public pages in a library, most read first."},"PublicLibrary":{"properties":{"slug":{"type":"string","title":"Slug","description":"The library's address segment; `-` for the default library."},"name":{"type":"string","title":"Name","description":"The library's name; the account's display name for its default."},"page_count":{"type":"integer","title":"Page Count","description":"How many public pages the library holds."},"collections":{"items":{"$ref":"#/components/schemas/PublicCollection"},"type":"array","title":"Collections"}},"type":"object","required":["slug","name","page_count","collections"],"title":"PublicLibrary","description":"One library's public pages, most read collection first."},"PublicPageNode":{"properties":{"id":{"type":"string","title":"Id"},"slug":{"type":"string","title":"Slug","description":"The page's slug path in its library, type first."},"title":{"type":"string","title":"Title"},"one_line_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"One Line Summary","description":"The page's one-line summary on a collection's top-level page; null on a sub-page or when the page has none."},"children":{"items":{"$ref":"#/components/schemas/PublicPageNode"},"type":"array","title":"Children"}},"type":"object","required":["id","slug","title","one_line_summary"],"title":"PublicPageNode","description":"A public page, with its public sub-pages under it."},"PublicProfile":{"properties":{"handle":{"type":"string","title":"Handle"},"display_name":{"type":"string","title":"Display Name"},"bio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bio"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"page_count":{"type":"integer","title":"Page Count","description":"How many public pages the account holds."},"most_read":{"items":{"$ref":"#/components/schemas/MostReadPage"},"type":"array","title":"Most Read","description":"Up to three pages with at least one public read, most read first."},"libraries":{"items":{"$ref":"#/components/schemas/PublicLibrary"},"type":"array","title":"Libraries","description":"Every library with a public page, most read first."}},"type":"object","required":["handle","display_name","bio","location","page_count","most_read","libraries"],"title":"PublicProfile","description":"An account as a stranger sees it."},"PublicReachPage":{"properties":{"id":{"type":"string","title":"Id"},"slug":{"type":"string","title":"Slug","description":"The page's slug path in its library, its collection first."},"title":{"type":"string","title":"Title"},"one_line_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"One Line Summary"},"reads":{"type":"integer","title":"Reads","description":"Public reads, ever."}},"type":"object","required":["id","slug","title","one_line_summary","reads"],"title":"PublicReachPage","description":"One of the library's most read public pages."},"QueueHealthResponse":{"properties":{"generated_at":{"type":"string","format":"date-time","title":"Generated At"},"window_start":{"type":"string","format":"date-time","title":"Window Start"},"window_hours":{"type":"integer","title":"Window Hours"},"counts":{"$ref":"#/components/schemas/QueueStateCounts"},"oldest_queued_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Oldest Queued At"},"oldest_running_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Oldest Running At"},"throughput":{"items":{"$ref":"#/components/schemas/QueueThroughputRow"},"type":"array","title":"Throughput"},"synthesis_mix":{"items":{"$ref":"#/components/schemas/SynthesisMixRow"},"type":"array","title":"Synthesis Mix"},"timings":{"items":{"$ref":"#/components/schemas/KindTimingRow"},"type":"array","title":"Timings"}},"type":"object","required":["generated_at","window_start","window_hours","counts","throughput","synthesis_mix","timings"],"title":"QueueHealthResponse","description":"The queue at a glance: counts, ages, 24h throughput, the synthesis mix,\nand timings. Kinds, statuses, counts and durations only\n(ADR-2026-09-30-a-synthesis-job-records-its-outcome-and-the-queue-page-reads-sql-aggregates)."},"QueueStateCounts":{"properties":{"queued":{"type":"integer","title":"Queued"},"running":{"type":"integer","title":"Running"},"awaiting_agent":{"type":"integer","title":"Awaiting Agent"},"over_cap":{"type":"integer","title":"Over Cap"},"failed":{"type":"integer","title":"Failed"}},"type":"object","required":["queued","running","awaiting_agent","over_cap","failed"],"title":"QueueStateCounts","description":"Jobs in each state an operator watches, right now (not windowed)."},"QueueThroughputRow":{"properties":{"hour":{"type":"string","format":"date-time","title":"Hour"},"kind":{"type":"string","enum":["synthesize_page","extract_document","rebuild_profile","title_memories","check_collection_prompts","regenerate_collection_prompts","build_typed_pick_library","write_library_suggestion","judge_memory","grade_page","embed_memory","embed_document","embed_page","build_embedding_set"],"title":"Kind"},"enqueued":{"type":"integer","title":"Enqueued"},"finished":{"type":"integer","title":"Finished"}},"type":"object","required":["hour","kind","enqueued","finished"],"title":"QueueThroughputRow","description":"Jobs of one kind enqueued, and finished (completed or failed), in one hour."},"ReconsolidationDetail":{"properties":{"id":{"type":"string","title":"Id"},"kind":{"type":"string","enum":["split","merge","reassign"],"title":"Kind"},"agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Id"},"session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"pages_snapshotted":{"type":"integer","title":"Pages Snapshotted"},"pages_created":{"type":"integer","title":"Pages Created"},"pages_removed":{"type":"integer","title":"Pages Removed"},"pages_retired":{"type":"integer","title":"Pages Retired"},"memories_reassigned":{"type":"integer","title":"Memories Reassigned"},"documents_reassigned":{"type":"integer","title":"Documents Reassigned"},"synthesis_queued":{"type":"integer","title":"Synthesis Queued"}},"type":"object","required":["id","kind","created_at","pages_snapshotted","pages_created","pages_removed","pages_retired","memories_reassigned","documents_reassigned","synthesis_queued"],"title":"ReconsolidationDetail","description":"What an operation changed, as counts."},"ReconsolidationListItem":{"properties":{"id":{"type":"string","title":"Id"},"kind":{"type":"string","enum":["split","merge","reassign"],"title":"Kind"},"agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Id"},"session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","kind","created_at"],"title":"ReconsolidationListItem"},"RecoverBatchResponse":{"properties":{"recovered":{"type":"integer","title":"Recovered"},"eligible":{"type":"integer","title":"Eligible"}},"type":"object","required":["recovered","eligible"],"title":"RecoverBatchResponse"},"RecoverPageResponse":{"properties":{"page_id":{"type":"string","title":"Page Id"},"job_id":{"type":"string","title":"Job Id"}},"type":"object","required":["page_id","job_id"],"title":"RecoverPageResponse"},"RefundUnspentCreditRequest":{"properties":{"reason":{"type":"string","enum":["account_closed","service_discontinued"],"title":"Reason"},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"}},"type":"object","required":["reason"],"title":"RefundUnspentCreditRequest","description":"An operator refunding an account's unspent bought credit through Stripe\n(ADR-2026-11-09-unspent-bought-credit-is-refunded-by-an-operator-when-an-account-closes)."},"RegisterResponse":{"properties":{"user_id":{"type":"string","title":"User Id"},"email":{"type":"string","title":"Email"},"handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Handle"},"account":{"anyOf":[{"$ref":"#/components/schemas/AccountSummary"},{"type":"null"}]}},"type":"object","required":["user_id","email","handle","account"],"title":"RegisterResponse"},"RemoveMemberResponse":{"properties":{"id":{"type":"string","title":"Id"},"revoked":{"type":"boolean","title":"Revoked"}},"type":"object","required":["id","revoked"],"title":"RemoveMemberResponse"},"RenameHandleRequest":{"properties":{"handle":{"type":"string","title":"Handle"}},"type":"object","required":["handle"],"title":"RenameHandleRequest"},"RenameHandleResponse":{"properties":{"handle":{"type":"string","title":"Handle"}},"type":"object","required":["handle"],"title":"RenameHandleResponse"},"RenderWebhookResponse":{"properties":{"received":{"type":"boolean","title":"Received"},"handled":{"type":"boolean","title":"Handled"}},"type":"object","required":["received","handled"],"title":"RenderWebhookResponse"},"ReplaceableAgent":{"properties":{"id":{"type":"string","title":"Id"},"display_name":{"type":"string","title":"Display Name"},"last_active_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Active At"}},"type":"object","required":["id","display_name","last_active_at"],"title":"ReplaceableAgent","description":"One of the user's agents a sign-in may replace, for the consent and\ndevice-approval pages\n(ADR-2026-11-10-a-connection-can-replace-an-agent-of-its-kind-and-agent-names-are-unique)."},"ResendWebhookResponse":{"properties":{"received":{"type":"boolean","title":"Received"}},"type":"object","required":["received"],"title":"ResendWebhookResponse"},"ResetPasswordRequest":{"properties":{"token":{"type":"string","maxLength":255,"minLength":1,"title":"Token"},"password":{"type":"string","maxLength":255,"minLength":1,"title":"Password"}},"type":"object","required":["token","password"],"title":"ResetPasswordRequest"},"ResetPasswordResponse":{"properties":{"reset":{"type":"boolean","title":"Reset"},"confirmed_address":{"type":"boolean","title":"Confirmed Address","default":false},"live_agent_credentials":{"type":"integer","title":"Live Agent Credentials","default":0}},"type":"object","required":["reset"],"title":"ResetPasswordResponse","description":"A redeemed reset: the browser that redeemed it is now signed in\n(ADR-2026-11-14-confirming-a-password-accounts-address-needs-its-password-or-a-reset)."},"ResolvedPageRef":{"properties":{"ref":{"type":"string","title":"Ref"},"id":{"type":"string","title":"Id"},"kind":{"type":"string","const":"page","title":"Kind"}},"type":"object","required":["ref","id","kind"],"title":"ResolvedPageRef","description":"A page the upload named that already existed."},"ResyncBillingRequest":{"properties":{"reason":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Reason"}},"type":"object","title":"ResyncBillingRequest","description":"An operator asking for the account's subscription to be re-read from Stripe."},"ResyncResponse":{"properties":{"source_document_id":{"type":"string","title":"Source Document Id"},"changed":{"type":"boolean","title":"Changed"},"gone":{"type":"boolean","title":"Gone"}},"type":"object","required":["source_document_id","changed","gone"],"title":"ResyncResponse"},"RetryFailedResponse":{"properties":{"retried":{"type":"integer","title":"Retried"}},"type":"object","required":["retried"],"title":"RetryFailedResponse"},"ReviseSuggestionRequest":{"properties":{"change":{"type":"string","maxLength":1000,"minLength":1,"title":"Change"}},"type":"object","required":["change"],"title":"ReviseSuggestionRequest","description":"What the person typed under \"What should change?\"."},"ReviseSuggestionResponse":{"properties":{"suggestion":{"$ref":"#/components/schemas/LibrarySuggestionOut"},"change_summary":{"type":"string","title":"Change Summary"}},"type":"object","required":["suggestion","change_summary"],"title":"ReviseSuggestionResponse"},"RevokeAgentTokenResponse":{"properties":{"id":{"type":"string","title":"Id"},"revoked":{"type":"boolean","title":"Revoked"}},"type":"object","required":["id","revoked"],"title":"RevokeAgentTokenResponse"},"RevokeAllAgentCredentialsResponse":{"properties":{"revoked":{"type":"integer","title":"Revoked"}},"type":"object","required":["revoked"],"title":"RevokeAllAgentCredentialsResponse"},"RevokeGrantResponse":{"properties":{"id":{"type":"string","title":"Id"},"revoked":{"type":"boolean","title":"Revoked"}},"type":"object","required":["id","revoked"],"title":"RevokeGrantResponse"},"RevokeGuestResponse":{"properties":{"id":{"type":"string","title":"Id"},"revoked":{"type":"boolean","title":"Revoked"}},"type":"object","required":["id","revoked"],"title":"RevokeGuestResponse"},"RevokeInvitationResponse":{"properties":{"id":{"type":"string","title":"Id"},"revoked":{"type":"boolean","title":"Revoked"}},"type":"object","required":["id","revoked"],"title":"RevokeInvitationResponse"},"RevokeResponse":{"properties":{},"additionalProperties":false,"type":"object","title":"RevokeResponse","description":"RFC 7009 §2.2: an empty body, whether or not the token existed."},"RevokeSessionsResponse":{"properties":{"revoked":{"type":"integer","title":"Revoked"}},"type":"object","required":["revoked"],"title":"RevokeSessionsResponse"},"RevokeShareResponse":{"properties":{"id":{"type":"string","title":"Id"},"revoked":{"type":"boolean","title":"Revoked"}},"type":"object","required":["id","revoked"],"title":"RevokeShareResponse"},"RevokeSignInsResponse":{"properties":{"revoked":{"type":"integer","title":"Revoked"}},"type":"object","required":["revoked"],"title":"RevokeSignInsResponse"},"SampleRender":{"properties":{"prefix":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prefix"},"suffix":{"type":"string","title":"Suffix"},"cached_prefix":{"type":"boolean","title":"Cached Prefix"}},"type":"object","required":["suffix","cached_prefix"],"title":"SampleRender","description":"A prompt rendered from synthetic fixtures. Never real tenant data."},"SaveChangesDraftRequest":{"properties":{"changes":{"items":{"$ref":"#/components/schemas/ChangeIn"},"type":"array","maxItems":50,"title":"Changes"}},"type":"object","required":["changes"],"title":"SaveChangesDraftRequest","description":"Edits to the listed changes, by key. A change not listed, and a field\nnot sent, is left as it is."},"SaveLibraryDraftRequest":{"properties":{"base_version":{"type":"integer","title":"Base Version"},"name":{"type":"string","title":"Name"},"subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtitle"},"description":{"type":"string","title":"Description","default":""},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"},"collections":{"items":{"$ref":"#/components/schemas/DraftCollectionIn"},"type":"array","maxItems":50,"title":"Collections"}},"type":"object","required":["base_version","name","collections"],"title":"SaveLibraryDraftRequest","description":"The whole edited library: every field and the full collection list,\nand the ``version`` of the read it was edited from. A save made from a\ndraft that has since been rewritten is a 409, and changes nothing."},"ScopeSharingResult":{"properties":{"page_count":{"type":"integer","title":"Page Count"},"public_count":{"type":"integer","title":"Public Count"},"new_pages_public":{"type":"boolean","title":"New Pages Public"},"set_by_library":{"type":"boolean","title":"Set By Library"},"can_share":{"type":"boolean","title":"Can Share"},"updated":{"type":"integer","title":"Updated"}},"type":"object","required":["page_count","public_count","new_pages_public","set_by_library","can_share","updated"],"title":"ScopeSharingResult","description":"The state after a change, and how many pages it changed."},"ScopeSharingState":{"properties":{"page_count":{"type":"integer","title":"Page Count"},"public_count":{"type":"integer","title":"Public Count"},"new_pages_public":{"type":"boolean","title":"New Pages Public"},"set_by_library":{"type":"boolean","title":"Set By Library"},"can_share":{"type":"boolean","title":"Can Share"}},"type":"object","required":["page_count","public_count","new_pages_public","set_by_library","can_share"],"title":"ScopeSharingState","description":"Where a collection or library stands, for its share dialog."},"SearchMemoryItem":{"properties":{"id":{"type":"string","title":"Id"},"content":{"type":"string","title":"Content"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"retired_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Retired At"},"retired_reason":{"anyOf":[{"type":"string","enum":["superseded","retracted"]},{"type":"null"}],"title":"Retired Reason"},"retired_by_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Retired By Id"},"retired_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Retired Note"},"agent_display_name":{"type":"string","title":"Agent Display Name","default":""},"agent_client_kind":{"anyOf":[{"type":"string","enum":["claude-code","claude-desktop","openclaw","codex","cursor","gemini-cli","antigravity","chatgpt","gemini","muse","hermes","perplexity","other","seaglass-cli","seaglass-system"]},{"type":"string","const":""}],"title":"Agent Client Kind","default":""},"page_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Slug"},"page_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Title"}},"type":"object","required":["id","content","created_at"],"title":"SearchMemoryItem"},"SearchPageItem":{"properties":{"id":{"type":"string","title":"Id"},"type":{"type":"string","title":"Type"},"slug":{"type":"string","title":"Slug"},"title":{"type":"string","title":"Title"},"handle":{"type":"string","title":"Handle","default":""},"library":{"type":"string","title":"Library","default":""},"one_line_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"One Line Summary"},"last_synthesized_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Synthesized At"}},"type":"object","required":["id","type","slug","title"],"title":"SearchPageItem"},"SearchResponse":{"properties":{"query":{"type":"string","title":"Query"},"pages":{"items":{"$ref":"#/components/schemas/SearchPageItem"},"type":"array","title":"Pages"},"memories":{"items":{"$ref":"#/components/schemas/SearchMemoryItem"},"type":"array","title":"Memories"}},"type":"object","required":["query","pages","memories"],"title":"SearchResponse"},"SeatPrice":{"properties":{"unit_amount":{"type":"integer","title":"Unit Amount"},"currency":{"type":"string","title":"Currency"},"payment_failed":{"type":"boolean","title":"Payment Failed"}},"type":"object","required":["unit_amount","currency","payment_failed"],"title":"SeatPrice","description":"What one more seat costs an organization on Team Seat, as the catalog declares\nit: the invite screen says so before an invitation adds one."},"SectionRewriteRequest":{"properties":{"section":{"type":"string","title":"Section"},"instruction":{"type":"string","title":"Instruction"},"base_version":{"type":"integer","title":"Base Version"}},"type":"object","required":["section","instruction","base_version"],"title":"SectionRewriteRequest","description":"Describe-a-change intent edit for one section (ADR-2026-06-26-intent-based-section-editing-in-the-web-wiki).\n\n``section`` is the stable ``sect_…`` id (or heading text); ``instruction`` is\nthe natural-language change; ``base_version`` is the optimistic token — a\nstale value is rejected with a 409, exactly like the plain section edit."},"SectionRewriteResponse":{"properties":{"page_id":{"type":"string","title":"Page Id"},"synthesis_page_id":{"type":"string","title":"Synthesis Page Id"},"version":{"type":"integer","title":"Version"},"edit_id":{"type":"string","title":"Edit Id"},"edit_kind":{"type":"string","enum":["worker_synthesis","agent_edit","human_admin","revert","move","intent_edit","page_intent_edit","worker_patch"],"title":"Edit Kind"},"unresolved_links":{"items":{"type":"string"},"type":"array","title":"Unresolved Links","default":[]},"cross_links":{"items":{"type":"string"},"type":"array","title":"Cross Links","default":[]},"no_op":{"type":"boolean","title":"No Op","default":false},"section_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Section Id"},"section_heading":{"type":"string","title":"Section Heading","default":""},"section_before":{"type":"string","title":"Section Before","default":""},"section_after":{"type":"string","title":"Section After","default":""}},"type":"object","required":["page_id","synthesis_page_id","version","edit_id","edit_kind"],"title":"SectionRewriteResponse","description":"An applied intent edit plus the section before/after for the highlight."},"SendFriendInvitesRequest":{"properties":{"emails":{"items":{"type":"string","maxLength":320},"type":"array","maxItems":20,"minItems":1,"title":"Emails"}},"type":"object","required":["emails"],"title":"SendFriendInvitesRequest","description":"Up to five addresses for Seaglass to mail; the server counts the distinct\nwell-formed ones and refuses more."},"SendFriendInvitesResponse":{"properties":{"requested":{"type":"integer","title":"Requested"}},"type":"object","required":["requested"],"title":"SendFriendInvitesResponse","description":"The same answer whatever happened to each address: how many were taken.\n\nEvery one is charged against the member's limits and the mail goes out\nafter this answer, so nothing here says which addresses were mailed."},"SendUserEmailRequest":{"properties":{"subject":{"type":"string","maxLength":200,"minLength":1,"title":"Subject"},"body":{"type":"string","maxLength":20000,"minLength":1,"title":"Body"}},"type":"object","required":["subject","body"],"title":"SendUserEmailRequest","description":"An operator's note to one user\n(ADR-2026-11-12-an-operator-may-email-any-user-a-plain-text-message-from-the-console)."},"SendUserEmailResponse":{"properties":{"status":{"type":"string","enum":["sent","failed","suppressed"],"title":"Status"}},"type":"object","required":["status"],"title":"SendUserEmailResponse","description":"What became of the send: ``suppressed`` when earlier mail to the address\nbounced or was marked spam, ``failed`` when the provider refused it."},"SessionDetail":{"properties":{"id":{"type":"string","title":"Id"},"agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Id"},"agent_display_name":{"type":"string","title":"Agent Display Name"},"client_kind":{"type":"string","enum":["claude-code","claude-desktop","openclaw","codex","cursor","gemini-cli","antigravity","chatgpt","gemini","muse","hermes","perplexity","other","seaglass-cli","seaglass-system"],"title":"Client Kind"},"client_session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Session Id"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"last_activity_at":{"type":"string","format":"date-time","title":"Last Activity At"},"ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended At"},"memory_count":{"type":"integer","title":"Memory Count","default":0},"document_count":{"type":"integer","title":"Document Count","default":0},"memories":{"items":{"$ref":"#/components/schemas/SessionMemory"},"type":"array","title":"Memories","default":[]},"documents":{"items":{"$ref":"#/components/schemas/SessionDocument"},"type":"array","title":"Documents","default":[]},"feedback":{"items":{"$ref":"#/components/schemas/SessionFeedback"},"type":"array","title":"Feedback","default":[]}},"type":"object","required":["id","agent_id","agent_display_name","client_kind","started_at","last_activity_at"],"title":"SessionDetail"},"SessionDocument":{"properties":{"id":{"type":"string","title":"Id"},"extraction_status":{"type":"string","enum":["pending","running","completed"],"title":"Extraction Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","extraction_status","created_at"],"title":"SessionDocument"},"SessionFeedback":{"properties":{"id":{"type":"string","title":"Id"},"kind":{"type":"string","enum":["bug","feature","other"],"title":"Kind"},"status":{"type":"string","enum":["open","triaged","in_progress","resolved","closed","wont_fix","duplicate"],"title":"Status"},"severity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Severity"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","kind","status","created_at"],"title":"SessionFeedback"},"SessionListItem":{"properties":{"id":{"type":"string","title":"Id"},"agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Id"},"agent_display_name":{"type":"string","title":"Agent Display Name"},"client_kind":{"type":"string","enum":["claude-code","claude-desktop","openclaw","codex","cursor","gemini-cli","antigravity","chatgpt","gemini","muse","hermes","perplexity","other","seaglass-cli","seaglass-system"],"title":"Client Kind"},"client_session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Session Id"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"last_activity_at":{"type":"string","format":"date-time","title":"Last Activity At"},"ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended At"},"memory_count":{"type":"integer","title":"Memory Count","default":0},"document_count":{"type":"integer","title":"Document Count","default":0}},"type":"object","required":["id","agent_id","agent_display_name","client_kind","started_at","last_activity_at"],"title":"SessionListItem"},"SessionMemory":{"properties":{"id":{"type":"string","title":"Id"},"primary_page_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Page Id"},"source_type":{"type":"string","enum":["primary","annotation","extracted"],"title":"Source Type"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","primary_page_id","source_type","created_at"],"title":"SessionMemory"},"SetAccountCompRequest":{"properties":{"reason":{"type":"string","maxLength":500,"minLength":1,"title":"Reason"},"ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ends At"}},"type":"object","required":["reason"],"title":"SetAccountCompRequest","description":"An operator comping a personal account, or changing its comp\n(ADR-2026-11-13-an-operator-can-comp-a-personal-account-out-of-the-trial-pause)."},"SetGrantRequest":{"properties":{"principal_kind":{"type":"string","enum":["member","team"],"title":"Principal Kind"},"principal_id":{"type":"string","maxLength":40,"minLength":1,"title":"Principal Id"},"preset":{"anyOf":[{"type":"string","enum":["consumer","contributor","curator","admin"]},{"type":"null"}],"title":"Preset"},"actions":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Actions"},"can_read_private":{"type":"boolean","title":"Can Read Private","default":false}},"type":"object","required":["principal_kind","principal_id"],"title":"SetGrantRequest"},"SetPasswordLinkResponse":{"properties":{"sent":{"type":"boolean","title":"Sent"},"not_sent_reason":{"anyOf":[{"type":"string","enum":["suppressed","failed"]},{"type":"null"}],"title":"Not Sent Reason"}},"type":"object","required":["sent"],"title":"SetPasswordLinkResponse","description":"Whether the set-a-password link went out (``POST /v1/me/password/set-link``).\n\n``sent`` is true only when the mail provider took it; otherwise\n``not_sent_reason`` says ``suppressed`` (earlier mail to the address bounced\nor was marked as spam) or ``failed``."},"SetRestrictionRequest":{"properties":{"library_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Library Id"},"page_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Id"},"access":{"type":"string","enum":["read","none"],"title":"Access"}},"additionalProperties":false,"type":"object","required":["access"],"title":"SetRestrictionRequest","description":"PUT body: narrow the agent on one library, or one page, to ``read`` or ``none``."},"SetScopeSharingRequest":{"properties":{"audience":{"type":"string","enum":["library","public"],"title":"Audience"},"new_pages_public":{"type":"boolean","title":"New Pages Public","default":false}},"additionalProperties":false,"type":"object","required":["audience"],"title":"SetScopeSharingRequest","description":"Share every page in the scope with ``audience``."},"SetShareRequest":{"properties":{"principal_kind":{"type":"string","enum":["user","team"],"title":"Principal Kind"},"principal_id":{"type":"string","maxLength":255,"minLength":1,"title":"Principal Id"},"can_read":{"type":"boolean","title":"Can Read","default":true},"can_write":{"type":"boolean","title":"Can Write","default":false},"include_subtree":{"type":"boolean","title":"Include Subtree","default":true},"include_history":{"type":"boolean","title":"Include History","default":false}},"type":"object","required":["principal_kind","principal_id"],"title":"SetShareRequest"},"SetSubpagesFollowRequest":{"properties":{"follow":{"type":"boolean","title":"Follow"}},"type":"object","required":["follow"],"title":"SetSubpagesFollowRequest","description":"Whether the page's sub-pages follow it (ADR-2026-11-12-a-page-records-whether-its-sub-pages-follow-it)."},"SetSuperuserRequest":{"properties":{"is_superuser":{"type":"boolean","title":"Is Superuser"}},"type":"object","required":["is_superuser"],"title":"SetSuperuserRequest"},"SetVisibilityRequest":{"properties":{"visibility":{"type":"string","enum":["private","members","public"],"title":"Visibility"}},"type":"object","required":["visibility"],"title":"SetVisibilityRequest"},"SettingsResponse":{"properties":{"synthesis_debounce_seconds":{"type":"integer","title":"Synthesis Debounce Seconds"},"synthesis_cascade_max_depth":{"type":"integer","title":"Synthesis Cascade Max Depth"},"synthesis_cold_threshold":{"type":"integer","title":"Synthesis Cold Threshold"}},"type":"object","required":["synthesis_debounce_seconds","synthesis_cascade_max_depth","synthesis_cold_threshold"],"title":"SettingsResponse"},"ShareAccessItem":{"properties":{"id":{"type":"string","title":"Id"},"principal_kind":{"type":"string","enum":["member","team","user"],"title":"Principal Kind"},"principal_id":{"type":"string","title":"Principal Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"can_read":{"type":"boolean","title":"Can Read"},"can_write":{"type":"boolean","title":"Can Write"},"include_subtree":{"type":"boolean","title":"Include Subtree"},"include_history":{"type":"boolean","title":"Include History"},"history_visible_from":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"History Visible From"},"source_page_id":{"type":"string","title":"Source Page Id"},"pending":{"type":"boolean","title":"Pending"}},"type":"object","required":["id","principal_kind","principal_id","can_read","can_write","include_subtree","include_history","source_page_id","pending"],"title":"ShareAccessItem","description":"A direct page-share reaching an page (on it or a covering ancestor)."},"ShareItem":{"properties":{"id":{"type":"string","title":"Id"},"principal_kind":{"type":"string","enum":["member","team","user"],"title":"Principal Kind"},"principal_id":{"type":"string","title":"Principal Id"},"principal_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Principal Name"},"can_read":{"type":"boolean","title":"Can Read"},"can_write":{"type":"boolean","title":"Can Write"},"include_subtree":{"type":"boolean","title":"Include Subtree"},"include_history":{"type":"boolean","title":"Include History"},"history_visible_from":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"History Visible From"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"pending":{"type":"boolean","title":"Pending"}},"type":"object","required":["id","principal_kind","principal_id","can_read","can_write","include_subtree","include_history","created_at","pending"],"title":"ShareItem","description":"A live page-share (the on-top, no-membership grant)."},"SharedLibraryItem":{"properties":{"grant_id":{"type":"string","title":"Grant Id"},"account_handle":{"type":"string","title":"Account Handle"},"account_display_name":{"type":"string","title":"Account Display Name"},"library_id":{"type":"string","title":"Library Id"},"library_slug":{"type":"string","title":"Library Slug"},"library_display_name":{"type":"string","title":"Library Display Name"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"},"role":{"type":"string","enum":["viewer","collaborator"],"title":"Role"},"shared_at":{"type":"string","format":"date-time","title":"Shared At"},"seat_required":{"type":"boolean","title":"Seat Required"}},"type":"object","required":["grant_id","account_handle","account_display_name","library_id","library_slug","library_display_name","role","shared_at","seat_required"],"title":"SharedLibraryItem","description":"A library in another account shared with the caller."},"SignInChoices":{"properties":{"reconnect":{"anyOf":[{"$ref":"#/components/schemas/ReplaceableAgent"},{"type":"null"}]},"reconnectable":{"items":{"$ref":"#/components/schemas/ReplaceableAgent"},"type":"array","title":"Reconnectable"},"replaceable":{"items":{"$ref":"#/components/schemas/ReplaceableAgent"},"type":"array","title":"Replaceable"},"taken_names":{"items":{"type":"string"},"type":"array","title":"Taken Names"}},"type":"object","required":["reconnect","reconnectable","replaceable","taken_names"],"title":"SignInChoices","description":"``GET /v1/me/connect/replaceable``: what a sign-in can be. A sign-in\nthrough a dynamic registration that has the caller's agent is that agent\n(``reconnect``), with nothing to choose, and both lists are empty. One\nthrough a published client (a metadata document) where the caller has\nagents lists them (``reconnectable``, most recently active first) beside\nthe caller's agents of its kind elsewhere (``replaceable``): it reconnects\none, replaces one, or adds a new agent. Otherwise ``replaceable`` lists the\nagents it may replace, most recently active first; with both lists empty\nit makes a new agent."},"SignInListResponse":{"properties":{"sign_ins":{"items":{"$ref":"#/components/schemas/SignInSummary"},"type":"array","title":"Sign Ins"}},"type":"object","required":["sign_ins"],"title":"SignInListResponse"},"SignInSummary":{"properties":{"id":{"type":"string","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"last_activity_at":{"type":"string","format":"date-time","title":"Last Activity At"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"current":{"type":"boolean","title":"Current"}},"type":"object","required":["id","created_at","last_activity_at","expires_at","current"],"title":"SignInSummary","description":"One of the caller's active browser sign-ins (``GET /v1/me/sign-ins``)."},"SignupConfigResponse":{"properties":{"mode":{"type":"string","enum":["open","waitlist","closed"],"title":"Mode"},"providers":{"items":{"type":"string"},"type":"array","title":"Providers"}},"type":"object","required":["mode","providers"],"title":"SignupConfigResponse","description":"One public call for the signup page: the mode plus the OAuth buttons."},"SourceAnnotation":{"properties":{"id":{"type":"string","title":"Id"},"content":{"type":"string","title":"Content"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","content","created_at"],"title":"SourceAnnotation","description":"A capture note (``source_type=\"annotation\"``) shown under the memory or\ndocument it annotates, not as a row of its own\n(ADR-2026-09-22-the-source-trail-is-a-time-grouped-list-with-notes-nested)."},"SourceOrigin":{"properties":{"kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"},"ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ref"},"retrieved_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Retrieved At"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"},"external_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Id"},"etag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Etag"}},"additionalProperties":true,"type":"object","title":"SourceOrigin"},"SpendHourRow":{"properties":{"hour":{"type":"string","format":"date-time","title":"Hour"},"model":{"type":"string","title":"Model"},"calls":{"type":"integer","title":"Calls"},"cost_usd":{"type":"number","title":"Cost Usd"}},"type":"object","required":["hour","model","calls","cost_usd"],"title":"SpendHourRow","description":"LLM calls to one model started in one hour, and what they cost."},"SpendWatchRow":{"properties":{"account_id":{"type":"string","title":"Account Id"},"handle":{"type":"string","title":"Handle"},"display_name":{"type":"string","title":"Display Name"},"plan":{"type":"string","title":"Plan"},"status":{"type":"string","enum":["active","suspended"],"title":"Status"},"usage_state":{"type":"string","enum":["ok","warned","capped"],"title":"Usage State"},"spend_daily_usd":{"type":"number","title":"Spend Daily Usd"},"ceiling_daily_usd":{"type":"number","title":"Ceiling Daily Usd"},"spend_period_usd":{"type":"number","title":"Spend Period Usd"},"ceiling_period_usd":{"type":"number","title":"Ceiling Period Usd"},"used_fraction":{"type":"number","title":"Used Fraction"},"heavier_window":{"type":"string","enum":["daily","period"],"title":"Heavier Window"},"measured_state":{"type":"string","enum":["ok","warned","capped"],"title":"Measured State"},"jobs_over_cap":{"type":"integer","title":"Jobs Over Cap"},"pool_size":{"type":"integer","title":"Pool Size"}},"type":"object","required":["account_id","handle","display_name","plan","status","usage_state","spend_daily_usd","ceiling_daily_usd","spend_period_usd","ceiling_period_usd","used_fraction","heavier_window","measured_state","jobs_over_cap","pool_size"],"title":"SpendWatchRow","description":"One spend ceiling near or at its limit. Dollars and counts only.\n\nA free ceiling is pooled across the owner's free accounts, so a row can\nstand for several; it names the one with the most spend of its own."},"StepCompleteRequest":{"properties":{"detail":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Detail"},"template_ids":{"items":{"type":"string","maxLength":64},"type":"array","maxItems":10,"title":"Template Ids"},"typed_picks":{"items":{"$ref":"#/components/schemas/TypedPick"},"type":"array","maxItems":10,"title":"Typed Picks"},"capture_style":{"anyOf":[{"type":"string","enum":["save_and_tell","ask_first","only_when_asked"]},{"type":"null"}],"title":"Capture Style"}},"type":"object","title":"StepCompleteRequest","description":"Optional small payload for web-completable steps: the About you answer.\nAbout you also sends its picks, 2 to 10 across the catalog templates and\nthe typed picks, and the capture-style step sends its choice."},"StripeWebhookResponse":{"properties":{"received":{"type":"boolean","title":"Received"},"queued":{"type":"boolean","title":"Queued"}},"type":"object","required":["received","queued"],"title":"StripeWebhookResponse"},"SubpageSummary":{"properties":{"id":{"type":"string","title":"Id"},"slug":{"type":"string","title":"Slug"},"title":{"type":"string","title":"Title"},"type":{"type":"string","title":"Type"},"one_line_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"One Line Summary"}},"type":"object","required":["id","slug","title","type"],"title":"SubpageSummary"},"SubpagesFollowResponse":{"properties":{"id":{"type":"string","title":"Id"},"subpages_follow":{"type":"boolean","title":"Subpages Follow"},"subpages_updated":{"type":"integer","title":"Subpages Updated"},"shares_updated":{"type":"integer","title":"Shares Updated"}},"type":"object","required":["id","subpages_follow","subpages_updated","shares_updated"],"title":"SubpagesFollowResponse"},"SuggestionLibraryRef":{"properties":{"slug":{"type":"string","title":"Slug"},"display_name":{"type":"string","title":"Display Name"}},"type":"object","required":["slug","display_name"],"title":"SuggestionLibraryRef"},"SurveyResponseOut":{"properties":{"question_key":{"type":"string","title":"Question Key"},"question_text":{"type":"string","title":"Question Text"},"selected_keys":{"items":{"type":"string"},"type":"array","title":"Selected Keys"},"other_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Other Text"},"free_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Free Text"},"answered_at":{"type":"string","format":"date-time","title":"Answered At"}},"type":"object","required":["question_key","question_text","selected_keys","other_text","free_text","answered_at"],"title":"SurveyResponseOut"},"SyncEnabledRequest":{"properties":{"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["enabled"],"title":"SyncEnabledRequest"},"SynthesisHealthPage":{"properties":{"page_id":{"type":"string","title":"Page Id"},"library_id":{"type":"string","title":"Library Id"},"account_id":{"type":"string","title":"Account Id"},"slug":{"type":"string","title":"Slug"},"title":{"type":"string","title":"Title"},"account_handle":{"type":"string","title":"Account Handle"},"library_slug":{"type":"string","title":"Library Slug"},"buckets":{"items":{"type":"string","enum":["broken","behind","low_quality"]},"type":"array","title":"Buckets"},"reasons":{"items":{"type":"string","enum":["never_synthesized","empty_body","owed_stale","last_job_failed","orphaned_body","no_summary","no_sections","unembedded","stale_embedding","evidence_waiting","low_score","thin_body","broken_links"]},"type":"array","title":"Reasons"},"flagged_since":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Flagged Since"},"last_synthesis_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Synthesis At"},"evidence_waiting_since":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Evidence Waiting Since"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"quality_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Quality Score"},"weakest_criterion":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Weakest Criterion"},"recoverable":{"type":"boolean","title":"Recoverable"}},"type":"object","required":["page_id","library_id","account_id","slug","title","account_handle","library_slug","buckets","reasons","flagged_since","last_synthesis_at","evidence_waiting_since","error","quality_score","weakest_criterion","recoverable"],"title":"SynthesisHealthPage","description":"One page in a bucket, from its precomputed health row."},"SynthesisHealthSummary":{"properties":{"pages_measured":{"type":"integer","title":"Pages Measured"},"pages_unmeasured":{"type":"integer","title":"Pages Unmeasured"},"pages_applicable":{"type":"integer","title":"Pages Applicable"},"healthy":{"type":"integer","title":"Healthy"},"healthy_share":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Healthy Share"},"broken":{"type":"integer","title":"Broken"},"behind":{"type":"integer","title":"Behind"},"low_quality":{"type":"integer","title":"Low Quality"},"recoverable":{"type":"integer","title":"Recoverable"},"lag":{"$ref":"#/components/schemas/HealthLag"},"notices":{"items":{"$ref":"#/components/schemas/HealthNotice"},"type":"array","title":"Notices"},"oldest_computed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Oldest Computed At"},"thresholds":{"$ref":"#/components/schemas/HealthThresholds"}},"type":"object","required":["pages_measured","pages_unmeasured","pages_applicable","healthy","healthy_share","broken","behind","low_quality","recoverable","lag","notices","oldest_computed_at","thresholds"],"title":"SynthesisHealthSummary","description":"Platform (or scoped) headline, read from the health rows."},"SynthesisMixRow":{"properties":{"reason":{"type":"string","enum":["evidence","cascade"],"title":"Reason"},"outcome":{"type":"string","enum":["wrote","same_body","unchanged","no_evidence","refresh_declined","handoff_closed","evidence_redacted","kept","patched","failed","not_recorded"],"title":"Outcome"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["reason","outcome","count"],"title":"SynthesisMixRow"},"SynthesisPromptView":{"properties":{"job":{"type":"string","title":"Job"},"title":{"type":"string","title":"Title"},"effort":{"type":"string","title":"Effort"},"rewrite_effort":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rewrite Effort"},"constant":{"type":"string","title":"Constant"},"text":{"type":"string","title":"Text"},"version":{"type":"string","title":"Version"},"module":{"type":"string","title":"Module"},"summary":{"type":"string","title":"Summary"},"renderer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Renderer"},"renderer_doc":{"type":"string","title":"Renderer Doc","default":""},"params":{"items":{"$ref":"#/components/schemas/PromptParam"},"type":"array","title":"Params","default":[]},"cached_prefix":{"type":"boolean","title":"Cached Prefix","default":false},"output_schema":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Output Schema"},"caller":{"type":"string","title":"Caller"},"model":{"type":"string","title":"Model"},"model_setting":{"type":"string","title":"Model Setting"},"system_chars":{"type":"integer","title":"System Chars"}},"type":"object","required":["job","title","effort","constant","text","version","module","summary","caller","model","model_setting","system_chars"],"title":"SynthesisPromptView","description":"One server-side synthesis prompt, as its module declares it."},"SynthesizedBlock":{"properties":{"markdown_content":{"type":"string","title":"Markdown Content","default":""},"last_synthesis_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Synthesis At"},"source_memory_count":{"type":"integer","title":"Source Memory Count","default":0},"source_document_count":{"type":"integer","title":"Source Document Count","default":0}},"type":"object","title":"SynthesizedBlock"},"SystemInfo":{"properties":{"generated_at":{"type":"string","format":"date-time","title":"Generated At"},"environment":{"type":"string","title":"Environment"},"version":{"type":"string","title":"Version"},"database_backend":{"type":"string","title":"Database Backend"},"web_origin":{"type":"string","title":"Web Origin"},"admin_url":{"type":"string","title":"Admin Url"},"llm_providers":{"items":{"$ref":"#/components/schemas/LlmProviderStatus"},"type":"array","title":"Llm Providers"},"models":{"$ref":"#/components/schemas/ModelRouting"},"efforts":{"$ref":"#/components/schemas/EffortRouting"},"worker_running":{"type":"boolean","title":"Worker Running"},"worker_last_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Worker Last Error"},"feature_flags":{"items":{"$ref":"#/components/schemas/FeatureFlag"},"type":"array","title":"Feature Flags"},"config_enforced":{"type":"boolean","title":"Config Enforced"},"config_checks":{"items":{"$ref":"#/components/schemas/ConfigCheckOut"},"type":"array","title":"Config Checks"}},"type":"object","required":["generated_at","environment","version","database_backend","web_origin","admin_url","llm_providers","models","efforts","worker_running","feature_flags","config_enforced","config_checks"],"title":"SystemInfo"},"TeamDetail":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"is_everyone":{"type":"boolean","title":"Is Everyone"},"member_count":{"type":"integer","title":"Member Count"},"members":{"items":{"$ref":"#/components/schemas/TeamMemberRef"},"type":"array","title":"Members"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","name","slug","is_everyone","member_count","created_at","updated_at"],"title":"TeamDetail"},"TeamListItem":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"is_everyone":{"type":"boolean","title":"Is Everyone"},"member_count":{"type":"integer","title":"Member Count"}},"type":"object","required":["id","name","slug","is_everyone","member_count"],"title":"TeamListItem"},"TeamMemberRef":{"properties":{"account_membership_id":{"type":"string","title":"Account Membership Id"},"user_id":{"type":"string","title":"User Id"},"email":{"type":"string","title":"Email"},"handle":{"type":"string","title":"Handle"},"account_role":{"type":"string","enum":["owner","admin","member"],"title":"Account Role"}},"type":"object","required":["account_membership_id","user_id","email","handle","account_role"],"title":"TeamMemberRef"},"TeamMemberRequest":{"properties":{"account_membership_id":{"type":"string","maxLength":40,"minLength":1,"title":"Account Membership Id"}},"type":"object","required":["account_membership_id"],"title":"TeamMemberRequest"},"TeamRef":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"}},"type":"object","required":["id","name","slug"],"title":"TeamRef"},"TeamSeats":{"properties":{"seats":{"type":"integer","title":"Seats"},"unit_amount":{"type":"integer","title":"Unit Amount"},"currency":{"type":"string","title":"Currency"},"payment_failed":{"type":"boolean","title":"Payment Failed"}},"type":"object","required":["seats","unit_amount","currency","payment_failed"],"title":"TeamSeats","description":"An organization's billed seats: active members plus open seat invitations."},"TemplateCategoryOut":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"template_count":{"type":"integer","title":"Template Count"}},"type":"object","required":["id","name","template_count"],"title":"TemplateCategoryOut"},"TemplateCollectionOut":{"properties":{"slug":{"type":"string","title":"Slug"},"label":{"type":"string","title":"Label"},"subtitle":{"type":"string","title":"Subtitle"},"icon":{"type":"string","title":"Icon"},"color":{"type":"string","title":"Color"},"description":{"type":"string","title":"Description"}},"type":"object","required":["slug","label","subtitle","icon","color","description"],"title":"TemplateCollectionOut"},"TemplateDetailOut":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"subtitle":{"type":"string","title":"Subtitle"},"category":{"type":"string","title":"Category"},"fit":{"items":{"type":"string"},"type":"array","title":"Fit"},"popular":{"type":"boolean","title":"Popular"},"start_example":{"type":"boolean","title":"Start Example"},"icon":{"type":"string","title":"Icon"},"color":{"type":"string","title":"Color"},"description":{"type":"string","title":"Description"},"keywords":{"items":{"type":"string"},"type":"array","title":"Keywords"},"collection_labels":{"items":{"type":"string"},"type":"array","title":"Collection Labels"},"collections":{"items":{"$ref":"#/components/schemas/TemplateCollectionOut"},"type":"array","title":"Collections"},"onboarding_prompts":{"items":{"$ref":"#/components/schemas/TemplatePromptOut"},"type":"array","title":"Onboarding Prompts"}},"type":"object","required":["id","name","subtitle","category","fit","popular","start_example","icon","color","description","keywords","collection_labels","collections","onboarding_prompts"],"title":"TemplateDetailOut"},"TemplatePromptOut":{"properties":{"collection":{"type":"string","title":"Collection"},"text":{"type":"string","title":"Text"}},"type":"object","required":["collection","text"],"title":"TemplatePromptOut"},"TemplateSummaryOut":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"subtitle":{"type":"string","title":"Subtitle"},"category":{"type":"string","title":"Category"},"fit":{"items":{"type":"string"},"type":"array","title":"Fit"},"popular":{"type":"boolean","title":"Popular"},"start_example":{"type":"boolean","title":"Start Example"},"icon":{"type":"string","title":"Icon"},"color":{"type":"string","title":"Color"},"description":{"type":"string","title":"Description"},"keywords":{"items":{"type":"string"},"type":"array","title":"Keywords"},"collection_labels":{"items":{"type":"string"},"type":"array","title":"Collection Labels"}},"type":"object","required":["id","name","subtitle","category","fit","popular","start_example","icon","color","description","keywords","collection_labels"],"title":"TemplateSummaryOut"},"TokenRedeemRequest":{"properties":{"token":{"type":"string","maxLength":512,"minLength":1,"title":"Token"}},"type":"object","required":["token"],"title":"TokenRedeemRequest"},"TokenResponse":{"properties":{"access_token":{"type":"string","title":"Access Token"},"token_type":{"type":"string","const":"Bearer","title":"Token Type"},"expires_in":{"type":"integer","title":"Expires In"},"refresh_token":{"type":"string","title":"Refresh Token"},"scope":{"type":"string","title":"Scope"}},"type":"object","required":["access_token","token_type","expires_in","refresh_token","scope"],"title":"TokenResponse","description":"RFC 6749 §5.1: a bearer access token and the refresh token that renews it."},"TopupCheckoutRequest":{"properties":{"pack_usd":{"type":"integer","exclusiveMinimum":0.0,"title":"Pack Usd"}},"type":"object","required":["pack_usd"],"title":"TopupCheckoutRequest","description":"POST /v1/accounts/{handle}/billing/topups: buy one pack of extra credit."},"TraceHealthResponse":{"properties":{"generated_at":{"type":"string","format":"date-time","title":"Generated At"},"window_start":{"type":"string","format":"date-time","title":"Window Start"},"window_hours":{"type":"integer","title":"Window Hours"},"totals":{"$ref":"#/components/schemas/TraceHealthTotals"},"hours":{"items":{"$ref":"#/components/schemas/TraceHourRow"},"type":"array","title":"Hours"},"spend":{"items":{"$ref":"#/components/schemas/SpendHourRow"},"type":"array","title":"Spend"},"models":{"items":{"$ref":"#/components/schemas/ModelSpendRow"},"type":"array","title":"Models"},"operations":{"items":{"$ref":"#/components/schemas/TraceOperationRow"},"type":"array","title":"Operations"}},"type":"object","required":["generated_at","window_start","window_hours","totals","hours","spend","models","operations"],"title":"TraceHealthResponse","description":"Traces and LLM spend at a glance: totals, hourly activity and spend by\nmodel, spend per model, and per-operation cost and latency over 24 hours.\nKinds, names, models, counts, tokens, dollars and durations only\n(ADR-2026-09-30-the-traces-page-reads-spend-and-latency-as-sql-aggregates-of-trace-spans)."},"TraceHealthTotals":{"properties":{"traces":{"type":"integer","title":"Traces"},"errored":{"type":"integer","title":"Errored"},"llm_calls":{"type":"integer","title":"Llm Calls"},"input_tokens":{"type":"integer","title":"Input Tokens"},"output_tokens":{"type":"integer","title":"Output Tokens"},"cost_usd":{"type":"number","title":"Cost Usd"},"previous_cost_usd":{"type":"number","title":"Previous Cost Usd"}},"type":"object","required":["traces","errored","llm_calls","input_tokens","output_tokens","cost_usd","previous_cost_usd"],"title":"TraceHealthTotals","description":"The window in numbers. Traces are root spans started in the window; the\nLLM figures are every ``llm_call`` span started in it, whatever its root."},"TraceHourRow":{"properties":{"hour":{"type":"string","format":"date-time","title":"Hour"},"traces":{"type":"integer","title":"Traces"},"errored":{"type":"integer","title":"Errored"}},"type":"object","required":["hour","traces","errored"],"title":"TraceHourRow","description":"Root spans started in one hour, and how many of them errored."},"TraceOperationRow":{"properties":{"kind":{"type":"string","title":"Kind"},"name":{"type":"string","title":"Name"},"traces":{"type":"integer","title":"Traces"},"errored":{"type":"integer","title":"Errored"},"duration_p50_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration P50 Ms"},"duration_p95_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration P95 Ms"},"llm_calls":{"type":"integer","title":"Llm Calls"},"input_tokens":{"type":"integer","title":"Input Tokens"},"output_tokens":{"type":"integer","title":"Output Tokens"},"cost_usd":{"type":"number","title":"Cost Usd"}},"type":"object","required":["kind","name","traces","errored","llm_calls","input_tokens","output_tokens","cost_usd"],"title":"TraceOperationRow","description":"One operation (a root span's kind and name) over the window.\n\n``traces``, ``errored`` and the nearest-rank duration percentiles count the\nroots started in the window. The LLM columns sum the window's ``llm_call``\nspans by the root of their trace. An LLM call whose root was never written\n(the trace is still open, or its root write was dropped) lands on a row of\nkind ``unattributed``, which has no traces of its own."},"TranscriptAppendConflict":{"properties":{"detail":{"anyOf":[{"$ref":"#/components/schemas/OffsetMismatch"},{"$ref":"#/components/schemas/PrefixChanged"}],"title":"Detail"}},"type":"object","required":["detail"],"title":"TranscriptAppendConflict"},"TranscriptAppendRequest":{"properties":{"client_session_id":{"type":"string","title":"Client Session Id"},"byte_offset":{"type":"integer","minimum":0.0,"title":"Byte Offset"},"content":{"type":"string","title":"Content"},"format":{"type":"string","enum":["claude_code_jsonl","gemini_cli_jsonl"],"title":"Format","default":"claude_code_jsonl"},"tail_sha256":{"anyOf":[{"type":"string","pattern":"^[0-9a-f]{64}$"},{"type":"null"}],"title":"Tail Sha256"}},"type":"object","required":["client_session_id","byte_offset","content"],"title":"TranscriptAppendRequest"},"TranscriptAppendResponse":{"properties":{"transcript_id":{"type":"string","title":"Transcript Id"},"byte_count":{"type":"integer","title":"Byte Count"},"line_count":{"type":"integer","title":"Line Count"},"upload_count":{"type":"integer","title":"Upload Count"},"redaction_count":{"type":"integer","title":"Redaction Count"},"tail_start":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tail Start"}},"type":"object","required":["transcript_id","byte_count","line_count","upload_count","redaction_count","tail_start"],"title":"TranscriptAppendResponse"},"TranscriptAppendTooLarge":{"properties":{"detail":{"anyOf":[{"$ref":"#/components/schemas/AppendTooLarge"},{"$ref":"#/components/schemas/CapExceeded"}],"title":"Detail"}},"type":"object","required":["detail"],"title":"TranscriptAppendTooLarge"},"TranscriptConfigResponse":{"properties":{"transcript_capture":{"type":"string","title":"Transcript Capture"}},"type":"object","required":["transcript_capture"],"title":"TranscriptConfigResponse"},"TranscriptContent":{"properties":{"transcript_id":{"type":"string","title":"Transcript Id"},"session_id":{"type":"string","title":"Session Id"},"line_offset":{"type":"integer","title":"Line Offset"},"total_lines":{"type":"integer","title":"Total Lines"},"content":{"type":"string","title":"Content"}},"type":"object","required":["transcript_id","session_id","line_offset","total_lines","content"],"title":"TranscriptContent"},"TranscriptFinalizeRequest":{"properties":{"client_session_id":{"type":"string","title":"Client Session Id"},"reason":{"type":"string","title":"Reason","default":"other"}},"type":"object","required":["client_session_id"],"title":"TranscriptFinalizeRequest"},"TranscriptFinalizeResponse":{"properties":{"finalized":{"type":"boolean","title":"Finalized"},"transcript_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transcript Id"}},"type":"object","required":["finalized"],"title":"TranscriptFinalizeResponse"},"TranscriptListItem":{"properties":{"transcript_id":{"type":"string","title":"Transcript Id"},"session_id":{"type":"string","title":"Session Id"},"status":{"type":"string","enum":["active","final"],"title":"Status"},"end_reason":{"anyOf":[{"type":"string","enum":["clear","resume","logout","prompt_input_exit","other","manual","ttl_sweep","cap_exceeded","line_too_large"]},{"type":"null"}],"title":"End Reason"},"byte_count":{"type":"integer","title":"Byte Count"},"line_count":{"type":"integer","title":"Line Count"},"upload_count":{"type":"integer","title":"Upload Count"},"redaction_count":{"type":"integer","title":"Redaction Count"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"last_upload_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Upload At"},"finalized_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Finalized At"}},"type":"object","required":["transcript_id","session_id","status","end_reason","byte_count","line_count","upload_count","redaction_count","created_at","last_upload_at","finalized_at"],"title":"TranscriptListItem"},"TranscriptResetRequest":{"properties":{"client_session_id":{"type":"string","title":"Client Session Id"}},"type":"object","required":["client_session_id"],"title":"TranscriptResetRequest"},"TranscriptResetResponse":{"properties":{"reset":{"type":"boolean","title":"Reset"}},"type":"object","required":["reset"],"title":"TranscriptResetResponse"},"TranscriptSearchHit":{"properties":{"transcript_id":{"type":"string","title":"Transcript Id"},"session_id":{"type":"string","title":"Session Id"},"line_no":{"type":"integer","title":"Line No"},"snippet":{"type":"string","title":"Snippet"}},"type":"object","required":["transcript_id","session_id","line_no","snippet"],"title":"TranscriptSearchHit"},"TransferLibraryPreview":{"properties":{"library_id":{"type":"string","title":"Library Id"},"target_account_id":{"type":"string","title":"Target Account Id"},"target_display_name":{"type":"string","title":"Target Display Name"},"guests":{"items":{"$ref":"#/components/schemas/TransferPreviewGuest"},"type":"array","title":"Guests"},"invitations":{"items":{"$ref":"#/components/schemas/TransferPreviewInvitation"},"type":"array","title":"Invitations"},"page_invitation_count":{"type":"integer","title":"Page Invitation Count"},"external_share_count":{"type":"integer","title":"External Share Count"},"guest_limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Guest Limit"},"guest_used":{"type":"integer","title":"Guest Used"}},"type":"object","required":["library_id","target_account_id","target_display_name","guests","invitations","page_invitation_count","external_share_count","guest_limit","guest_used"],"title":"TransferLibraryPreview","description":"What moving the library to the target would do to outside access."},"TransferLibraryRequest":{"properties":{"target_account_id":{"type":"string","maxLength":40,"minLength":1,"title":"Target Account Id"},"keep_external_share_ids":{"items":{"type":"string"},"type":"array","title":"Keep External Share Ids"},"drop_guest_grant_ids":{"items":{"type":"string"},"type":"array","title":"Drop Guest Grant Ids"}},"type":"object","required":["target_account_id"],"title":"TransferLibraryRequest","description":"Move a library to another account the caller also manages.\n\n``keep_external_share_ids`` lets the operator confirm specific cross-account\n``user`` (external) page-shares to carry across the move (ADR-2026-06-18-access-grants-bind-to-the-membership-lifecycle). The\ndefault is fail-closed: any external share not listed here is revoked.\n\nLibrary guests move with the library unless listed in\n``drop_guest_grant_ids`` (or seated in the target, where their grant ends);\nthe kept ones must fit the target's guest cap or the move is refused\n(ADR-2026-10-06-a-library-may-be-granted-to-a-user-outside-its-account)."},"TransferLibraryResponse":{"properties":{"library_id":{"type":"string","title":"Library Id"},"slug":{"type":"string","title":"Slug"},"source_account_id":{"type":"string","title":"Source Account Id"},"target_account_id":{"type":"string","title":"Target Account Id"},"redirect_from_handle":{"type":"string","title":"Redirect From Handle"},"redirect_to_handle":{"type":"string","title":"Redirect To Handle"},"revoked_intra_share_count":{"type":"integer","title":"Revoked Intra Share Count","default":0},"revoked_external_share_ids":{"items":{"type":"string"},"type":"array","title":"Revoked External Share Ids"},"kept_external_share_ids":{"items":{"type":"string"},"type":"array","title":"Kept External Share Ids"},"cancelled_job_count":{"type":"integer","title":"Cancelled Job Count","default":0},"kept_guest_grant_count":{"type":"integer","title":"Kept Guest Grant Count","default":0},"revoked_guest_grant_count":{"type":"integer","title":"Revoked Guest Grant Count","default":0},"revoked_invitation_count":{"type":"integer","title":"Revoked Invitation Count","default":0}},"type":"object","required":["library_id","slug","source_account_id","target_account_id","redirect_from_handle","redirect_to_handle"],"title":"TransferLibraryResponse"},"TransferOwnershipRequest":{"properties":{"new_owner_account_membership_id":{"type":"string","maxLength":40,"minLength":1,"title":"New Owner Account Membership Id"},"old_owner_role":{"type":"string","enum":["admin","member"],"title":"Old Owner Role","default":"admin"}},"type":"object","required":["new_owner_account_membership_id"],"title":"TransferOwnershipRequest","description":"Move account ownership to an existing member; pick the old owner's new role."},"TransferOwnershipResponse":{"properties":{"account_id":{"type":"string","title":"Account Id"},"new_owner_user_id":{"type":"string","title":"New Owner User Id"},"new_owner_account_membership_id":{"type":"string","title":"New Owner Account Membership Id"},"old_owner_account_membership_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Old Owner Account Membership Id"},"old_owner_role":{"anyOf":[{"type":"string","enum":["admin","member"]},{"type":"null"}],"title":"Old Owner Role"}},"type":"object","required":["account_id","new_owner_user_id","new_owner_account_membership_id"],"title":"TransferOwnershipResponse"},"TransferPreviewGuest":{"properties":{"grant_id":{"type":"string","title":"Grant Id"},"user_id":{"type":"string","title":"User Id"},"handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Handle"},"role":{"type":"string","enum":["viewer","collaborator"],"title":"Role"},"outcome":{"type":"string","enum":["moves","ends_has_seat","ends"],"title":"Outcome"},"seat_status":{"anyOf":[{"type":"string","enum":["active","invited","suspended"]},{"type":"null"}],"title":"Seat Status"}},"type":"object","required":["grant_id","user_id","role","outcome"],"title":"TransferPreviewGuest","description":"One live guest grant on the library, and what the move does to it."},"TransferPreviewInvitation":{"properties":{"id":{"type":"string","title":"Id"},"email":{"type":"string","title":"Email"},"role":{"type":"string","enum":["viewer","collaborator"],"title":"Role"}},"type":"object","required":["id","email","role"],"title":"TransferPreviewInvitation","description":"A pending invitation to the library; every one ends with the move."},"TrialNotice":{"properties":{"account_id":{"type":"string","title":"Account Id"},"handle":{"type":"string","title":"Handle"},"state":{"type":"string","enum":["ending","paused"],"title":"State"},"trial_ends_at":{"type":"string","format":"date-time","title":"Trial Ends At"}},"type":"object","required":["account_id","handle","state","trial_ends_at"],"title":"TrialNotice","description":"What the trial banner says, and about which account."},"TypedPick":{"properties":{"tab":{"type":"string","enum":["work","hobbies","life"],"title":"Tab"},"text":{"type":"string","maxLength":60,"minLength":1,"title":"Text"}},"type":"object","required":["tab","text"],"title":"TypedPick","description":"A pick About you added as written, under \"Something else?\". Its text is\ntitle-cased when typed all in lowercase, whatever the client sent\n(ADR-2026-11-24-about-you-title-cases-a-typed-pick-and-suggests-a-near-miss-from-pyspellchecker)."},"UnblockInvitationsResponse":{"properties":{"id":{"type":"string","title":"Id"},"unblocked":{"type":"boolean","title":"Unblocked"}},"type":"object","required":["id","unblocked"],"title":"UnblockInvitationsResponse"},"UnlinkAgentResponse":{"properties":{"agent_id":{"type":"string","title":"Agent Id"},"account_id":{"type":"string","title":"Account Id"},"unlinked":{"type":"boolean","title":"Unlinked"},"rescued_page_count":{"type":"integer","title":"Rescued Page Count"}},"type":"object","required":["agent_id","account_id","unlinked","rescued_page_count"],"title":"UnlinkAgentResponse"},"UpdateAccountPolicyRequest":{"properties":{"allow_multi_account_agents":{"type":"boolean","title":"Allow Multi Account Agents"}},"additionalProperties":false,"type":"object","required":["allow_multi_account_agents"],"title":"UpdateAccountPolicyRequest","description":"PATCH body. Forbidding keeps existing links; each person whose agent is\nlinked here and elsewhere is asked to unlink it from one side."},"UpdateAccountRequest":{"properties":{"plan":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan"},"synthesis_mode":{"anyOf":[{"type":"string","enum":["agent","server"]},{"type":"null"}],"title":"Synthesis Mode"},"status":{"anyOf":[{"type":"string","enum":["active","suspended"]},{"type":"null"}],"title":"Status"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","title":"UpdateAccountRequest"},"UpdateAgentLinkRequest":{"properties":{"synthesis_mode_override":{"anyOf":[{"type":"string","enum":["agent","server","inherit"]},{"type":"null"}],"title":"Synthesis Mode Override"},"preferences":{"anyOf":[{"$ref":"#/components/schemas/PreferencesBlock"},{"type":"null"}]},"instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instructions"},"walled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Walled"},"session_lock":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Session Lock"}},"additionalProperties":false,"type":"object","title":"UpdateAgentLinkRequest","description":"PATCH body for the agent's settings in one linked account. An absent\nfield is left as it is; a preference set to ``null`` inherits the caller's\nown value there, and ``synthesis_mode_override: inherit`` follows the\naccount's mode. ``walled`` and ``session_lock`` turn the account's walls on\nor off."},"UpdateFeedbackRequest":{"properties":{"status":{"type":"string","enum":["open","triaged","in_progress","resolved","closed","wont_fix","duplicate"],"title":"Status"}},"type":"object","required":["status"],"title":"UpdateFeedbackRequest"},"UpdateLibraryRequest":{"properties":{"slug":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Slug"},"display_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Display Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtitle"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"}},"type":"object","title":"UpdateLibraryRequest"},"UpdateLibrarySettingsRequest":{"properties":{"synthesis_debounce_seconds":{"anyOf":[{"type":"integer","maximum":86400.0,"minimum":1.0},{"type":"null"}],"title":"Synthesis Debounce Seconds"},"synthesis_cascade_max_depth":{"anyOf":[{"type":"integer","maximum":10.0,"minimum":0.0},{"type":"null"}],"title":"Synthesis Cascade Max Depth"},"synthesis_cold_threshold":{"anyOf":[{"type":"integer","maximum":1000.0,"minimum":1.0},{"type":"null"}],"title":"Synthesis Cold Threshold"}},"type":"object","title":"UpdateLibrarySettingsRequest"},"UpdateMeAgentRequest":{"properties":{"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"cli_install":{"anyOf":[{"type":"string","enum":["always","ask","never","inherit"]},{"type":"null"}],"title":"Cli Install"},"transcript_capture":{"anyOf":[{"type":"string","enum":["on","off","inherit"]},{"type":"null"}],"title":"Transcript Capture"}},"additionalProperties":false,"type":"object","title":"UpdateMeAgentRequest","description":"PATCH body for the agent itself. An absent field is left as it is; an\ninstall setting set to ``inherit`` follows the caller's default."},"UpdateMeRequest":{"properties":{"cli_install":{"anyOf":[{"type":"string","enum":["always","ask","never"]},{"type":"null"}],"title":"Cli Install"},"transcript_capture":{"anyOf":[{"type":"string","enum":["on","off"]},{"type":"null"}],"title":"Transcript Capture"},"analytics_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Analytics Enabled"}},"additionalProperties":false,"type":"object","title":"UpdateMeRequest","description":"PATCH /v1/me — the user's own settings. An omitted field is left as it is."},"UpdateMemberRequest":{"properties":{"account_role":{"anyOf":[{"type":"string","enum":["admin","member"]},{"type":"null"}],"title":"Account Role"},"status":{"anyOf":[{"type":"string","enum":["active","suspended"]},{"type":"null"}],"title":"Status"}},"type":"object","title":"UpdateMemberRequest"},"UpdateMemoryRequest":{"properties":{"action":{"type":"string","title":"Action"},"successor_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Successor Id"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","required":["action"],"title":"UpdateMemoryRequest"},"UpdateMemoryResponse":{"properties":{"target_id":{"type":"string","title":"Target Id"},"action":{"type":"string","title":"Action"},"retired_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Retired At"},"retired_reason":{"anyOf":[{"type":"string","enum":["superseded","retracted"]},{"type":"null"}],"title":"Retired Reason"},"retired_by_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Retired By Id"},"affected_page_ids":{"items":{"type":"string"},"type":"array","title":"Affected Page Ids"}},"type":"object","required":["target_id","action","affected_page_ids"],"title":"UpdateMemoryResponse"},"UpdatePageTypeRequest":{"properties":{"label":{"type":"string","maxLength":120,"title":"Label"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"icon":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Icon"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"},"subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtitle"}},"type":"object","required":["label"],"title":"UpdatePageTypeRequest","description":"Update a page type's mutable fields. The slug is immutable (ADR-2026-05-30-library-defined-page-types)."},"UpdateProfileRequest":{"properties":{"preferences":{"anyOf":[{"$ref":"#/components/schemas/PreferencesBlock"},{"type":"null"}]},"instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instructions"},"synthesis_mode":{"anyOf":[{"type":"string","enum":["agent","server"]},{"type":"null"}],"title":"Synthesis Mode"},"core_values":{"anyOf":[{"items":{"$ref":"#/components/schemas/CoreValuePatchItem"},"type":"array"},{"type":"null"}],"title":"Core Values"},"briefing":{"anyOf":[{"type":"string","enum":["on","off"]},{"type":"null"}],"title":"Briefing"}},"additionalProperties":false,"type":"object","title":"UpdateProfileRequest","description":"Partial patch. Only ``preferences`` keys explicitly present in the\nrequest body are written — omitted keys are left untouched (so editing\none preference never disturbs the others). An explicitly-sent ``null``\nstill means \"default\".\n``instructions`` overwrites in full when present. ``synthesis_mode``\naccepts ``'agent'`` / ``'server'``; validation happens server-side.\nAn unknown field is refused, so a client still sending the install settings\nhere (they moved to ``PATCH /v1/me``) hears so rather than a silent no-op."},"UpdatePublicProfileRequest":{"properties":{"bio":{"anyOf":[{"type":"string","maxLength":280},{"type":"null"}],"title":"Bio"},"location":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Location"}},"additionalProperties":false,"type":"object","required":["bio","location"],"title":"UpdatePublicProfileRequest","description":"Set both fields a stranger reads; a blank or null value clears that field."},"UpdateTeamRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"}},"type":"object","title":"UpdateTeamRequest"},"UsageBucket":{"properties":{"key":{"type":"string","title":"Key"},"calls":{"type":"integer","title":"Calls"},"input_tokens":{"type":"integer","title":"Input Tokens"},"output_tokens":{"type":"integer","title":"Output Tokens"},"cost_usd":{"type":"number","title":"Cost Usd"}},"type":"object","required":["key","calls","input_tokens","output_tokens","cost_usd"],"title":"UsageBucket","description":"One rollup of the ledger's calls: a day, a kind, a model or a payer."},"UsageLine":{"properties":{"source":{"type":"string","enum":["boost","included","member_personal","operator","disposable_trial","comp"],"title":"Source"},"used_pct":{"type":"integer","maximum":100.0,"minimum":0.0,"title":"Used Pct"},"ends_at":{"type":"string","format":"date-time","title":"Ends At"},"resets":{"type":"boolean","title":"Resets"},"for_member":{"type":"boolean","title":"For Member","default":false}},"type":"object","required":["source","used_pct","ends_at","resets"],"title":"UsageLine","description":"A live grant as a percent of itself: a month's included grants together,\neach boost and each operator's grant on its own."},"UsageReport":{"properties":{"window_days":{"type":"integer","title":"Window Days"},"since":{"type":"string","format":"date-time","title":"Since"},"total_llm_calls":{"type":"integer","title":"Total Llm Calls"},"total_input_tokens":{"type":"integer","title":"Total Input Tokens"},"total_output_tokens":{"type":"integer","title":"Total Output Tokens"},"total_cost_usd":{"type":"number","title":"Total Cost Usd"},"calls_without_tokens":{"type":"integer","title":"Calls Without Tokens"},"total_mcp_tool_calls":{"type":"integer","title":"Total Mcp Tool Calls"},"by_day":{"items":{"$ref":"#/components/schemas/UsageBucket"},"type":"array","title":"By Day"},"by_kind":{"items":{"$ref":"#/components/schemas/UsageBucket"},"type":"array","title":"By Kind"},"by_model":{"items":{"$ref":"#/components/schemas/UsageBucket"},"type":"array","title":"By Model"},"by_payer":{"items":{"$ref":"#/components/schemas/UsageBucket"},"type":"array","title":"By Payer"}},"type":"object","required":["window_days","since","total_llm_calls","total_input_tokens","total_output_tokens","total_cost_usd","calls_without_tokens","total_mcp_tool_calls","by_day","by_kind","by_model","by_payer"],"title":"UsageReport","description":"The account's server LLM calls over the window, from the spend ledger.\n\nEvery ledger row counts, whoever paid; ``by_payer`` splits them.\n``calls_without_tokens`` is how many calls were recorded before the ledger\nkept tokens, which the token totals leave out. ``total_mcp_tool_calls``\ncounts the account's agents' tool calls from ``trace_spans``."},"UsageTopup":{"properties":{"source":{"type":"string","enum":["purchase","auto","seaglass"],"title":"Source"},"amount_usd":{"type":"number","title":"Amount Usd"},"left_usd":{"type":"number","title":"Left Usd"},"added_at":{"type":"string","format":"date-time","title":"Added At"}},"type":"object","required":["source","amount_usd","left_usd","added_at"],"title":"UsageTopup","description":"One live top-up, in the dollars it was bought or given in\n(ADR-2026-11-27-the-usage-view-lists-each-top-up-with-where-it-came-from)."},"UserInfoResponse":{"properties":{"sub":{"type":"string","title":"Sub"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"email_verified":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Email Verified"}},"type":"object","required":["sub"],"title":"UserInfoResponse","description":"OIDC Core 5.3.2: who the access token belongs to. ``email`` and\n``email_verified`` are present only when the token holds the ``email`` scope."},"UserProfileResponse":{"properties":{"user_id":{"type":"string","title":"User Id"},"synthesized":{"$ref":"#/components/schemas/SynthesizedBlock"},"preferences":{"$ref":"#/components/schemas/PreferencesBlock"},"effective_preferences":{"$ref":"#/components/schemas/EffectivePreferences"},"instructions":{"type":"string","title":"Instructions"},"core_values":{"items":{"$ref":"#/components/schemas/CoreValueItem"},"type":"array","title":"Core Values"},"synthesis_mode":{"type":"string","enum":["agent","server"],"title":"Synthesis Mode"},"effective_mode":{"type":"string","enum":["agent","server"],"title":"Effective Mode"},"agents":{"items":{"$ref":"#/components/schemas/AgentSummary"},"type":"array","title":"Agents"},"briefing":{"type":"string","enum":["on","off"],"title":"Briefing","default":"on"}},"type":"object","required":["user_id","synthesized","preferences","effective_preferences","instructions","core_values","synthesis_mode","effective_mode","agents"],"title":"UserProfileResponse"},"UserRegisterRequest":{"properties":{"utm_source":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Utm Source"},"utm_medium":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Utm Medium"},"utm_campaign":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Utm Campaign"},"referrer_domain":{"anyOf":[{"type":"string","maxLength":253},{"type":"null"}],"title":"Referrer Domain"},"landing_path":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Landing Path"},"email":{"type":"string","maxLength":255,"minLength":3,"title":"Email"},"handle":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Handle"},"password":{"type":"string","maxLength":255,"minLength":1,"title":"Password"},"display_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Display Name"},"invite_code":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Invite Code"},"invitation_token":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Invitation Token"},"rdt_cid":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Rdt Cid"},"signup_tag":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Signup Tag"},"accepted_terms":{"type":"boolean","title":"Accepted Terms","default":false}},"type":"object","required":["email","password"],"title":"UserRegisterRequest","description":"The first-touch attribution fields come from ``SignupAttributionFields``\n(ADR-2026-12-01-every-signup-keeps-its-first-touch-attribution-in-one-row)."},"ValidateCodeRequest":{"properties":{"code":{"type":"string","maxLength":255,"minLength":1,"title":"Code"}},"type":"object","required":["code"],"title":"ValidateCodeRequest"},"ValidateCodeResponse":{"properties":{"valid":{"type":"boolean","title":"Valid"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"direct":{"type":"boolean","title":"Direct","default":false}},"type":"object","required":["valid"],"title":"ValidateCodeResponse"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VerificationEmailSendResponse":{"properties":{"sent":{"type":"boolean","title":"Sent"},"email_verified":{"type":"boolean","title":"Email Verified"},"not_sent_reason":{"anyOf":[{"type":"string","enum":["suppressed","failed"]},{"type":"null"}],"title":"Not Sent Reason"}},"type":"object","required":["sent","email_verified"],"title":"VerificationEmailSendResponse","description":"``POST /v1/auth/verify-email/send``: whether a fresh link was mailed.\n\n``sent`` is true only when the mail provider took the message. It is false\nwhen the address is already verified (``email_verified`` says so), or when\nthe send did not go out, which ``not_sent_reason`` names: ``suppressed``\n(earlier mail to the address bounced or was marked as spam, so Seaglass no\nlonger mails it) or ``failed`` (the provider refused it, or the outcome\ncould not be recorded). The attempt is still recorded, so it answers 200\nrather than an error that would roll the record back."},"VerifyEmailResponse":{"properties":{"verified":{"type":"boolean","title":"Verified"}},"type":"object","required":["verified"],"title":"VerifyEmailResponse"},"VisibilityResponse":{"properties":{"id":{"type":"string","title":"Id"},"visibility":{"type":"string","enum":["private","members","public"],"title":"Visibility"},"updated":{"type":"integer","title":"Updated"}},"type":"object","required":["id","visibility","updated"],"title":"VisibilityResponse"},"VoiceTokenResponse":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"},"expires_in":{"type":"integer","title":"Expires In","default":0}},"type":"object","required":["enabled"],"title":"VoiceTokenResponse","description":"POST /v1/voice/token. ``enabled=false`` ⇒ use the browser Web Speech API."},"WaitingChangesOut":{"properties":{"id":{"type":"string","title":"Id"},"library_slug":{"type":"string","title":"Library Slug"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["id","library_slug","count"],"title":"WaitingChangesOut","description":"A library's open list of suggested changes."},"WaitingLibraryOut":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"agent_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"collections":{"items":{"type":"string"},"type":"array","title":"Collections"}},"type":"object","required":["id","name","agent_name","created_at","collections"],"title":"WaitingLibraryOut","description":"A suggested library not created yet, as its card on Your libraries shows it."},"WaitingSuggestionsOut":{"properties":{"libraries":{"items":{"$ref":"#/components/schemas/WaitingLibraryOut"},"type":"array","title":"Libraries"},"changes":{"items":{"$ref":"#/components/schemas/WaitingChangesOut"},"type":"array","title":"Changes"}},"type":"object","required":["libraries","changes"],"title":"WaitingSuggestionsOut","description":"The caller's own open suggestions in the account."},"WaitlistAnswer":{"properties":{"question_key":{"type":"string","maxLength":100,"minLength":1,"title":"Question Key"},"selected_keys":{"items":{"type":"string"},"type":"array","title":"Selected Keys"},"other_text":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Other Text"},"free_text":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Free Text"}},"type":"object","required":["question_key"],"title":"WaitlistAnswer"},"WaitlistAnswersRequest":{"properties":{"survey_token":{"type":"string","maxLength":255,"minLength":1,"title":"Survey Token"},"answers":{"items":{"$ref":"#/components/schemas/WaitlistAnswer"},"type":"array","minItems":1,"title":"Answers"},"complete":{"type":"boolean","title":"Complete","default":true}},"type":"object","required":["survey_token","answers"],"title":"WaitlistAnswersRequest"},"WaitlistJoinRequest":{"properties":{"utm_source":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Utm Source"},"utm_medium":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Utm Medium"},"utm_campaign":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Utm Campaign"},"referrer_domain":{"anyOf":[{"type":"string","maxLength":253},{"type":"null"}],"title":"Referrer Domain"},"landing_path":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Landing Path"},"email":{"type":"string","maxLength":255,"minLength":3,"title":"Email"},"rdt_cid":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Rdt Cid"},"conversion_id":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Conversion Id"},"posthog_distinct_id":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Posthog Distinct Id"},"signup_tag":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Signup Tag"},"referral_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Referral Code"}},"type":"object","required":["email"],"title":"WaitlistJoinRequest","description":"The first-touch attribution fields come from ``SignupAttributionFields``\n(ADR-2026-12-01-every-signup-keeps-its-first-touch-attribution-in-one-row)."},"WaitlistJoinResponse":{"properties":{"survey_token":{"type":"string","title":"Survey Token"},"referral_code":{"type":"string","title":"Referral Code"},"ad_invite":{"type":"boolean","title":"Ad Invite"},"signup_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signup Code"}},"type":"object","required":["survey_token","referral_code","ad_invite","signup_code"],"title":"WaitlistJoinResponse"},"WaitlistReferralCountsOut":{"properties":{"joined":{"type":"integer","title":"Joined"},"surveyed":{"type":"integer","title":"Surveyed"},"signed_up":{"type":"integer","title":"Signed Up"}},"type":"object","required":["joined","surveyed","signed_up"],"title":"WaitlistReferralCountsOut","description":"Referred joins, those who finished the survey, those who signed up."},"WaitlistReferrerOut":{"properties":{"kind":{"type":"string","enum":["waitlister","member"],"title":"Kind"},"id":{"type":"string","title":"Id"},"email":{"type":"string","title":"Email"}},"type":"object","required":["kind","id","email"],"title":"WaitlistReferrerOut","description":"Who referred a join: a waitlister (``id`` is their row's) or a member\n(``id`` is their user id), by the one member-referral rule\n(ADR-2026-11-03-an-account-holders-referral-code-is-their-own-and-their-friends-still-join-the-waitlist)."},"WaitlistReferrerSummaryOut":{"properties":{"kind":{"type":"string","enum":["waitlister","member"],"title":"Kind"},"id":{"type":"string","title":"Id"},"email":{"type":"string","title":"Email"},"joined":{"type":"integer","title":"Joined"},"surveyed":{"type":"integer","title":"Surveyed"},"signed_up":{"type":"integer","title":"Signed Up"},"invites_sent":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Invites Sent"},"invites_mailed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Invites Mailed"}},"type":"object","required":["kind","id","email","joined","surveyed","signed_up","invites_sent","invites_mailed"],"title":"WaitlistReferrerSummaryOut","description":"One referrer on the operator's Referrers view, with what came of their\nlinks. Operator-only: the inviter's own page shows no counts."},"WaitlistSignupOut":{"properties":{"id":{"type":"string","title":"Id"},"email":{"type":"string","title":"Email"},"status":{"type":"string","enum":["pending","invited","redeemed","revoked"],"title":"Status"},"utm_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Utm Source"},"utm_medium":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Utm Medium"},"utm_campaign":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Utm Campaign"},"signup_tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signup Tag"},"ad_source":{"anyOf":[{"type":"string","enum":["facebook","google","openai","reddit","x"]},{"type":"null"}],"title":"Ad Source"},"signup_device":{"anyOf":[{"type":"string","enum":["mobile","desktop"]},{"type":"null"}],"title":"Signup Device"},"survey_completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Survey Completed At"},"invited_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Invited At"},"code_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Code Expires At"},"is_ad_invite":{"type":"boolean","title":"Is Ad Invite"},"redeemed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Redeemed At"},"redeemed_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Redeemed User Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"responses":{"items":{"$ref":"#/components/schemas/SurveyResponseOut"},"type":"array","title":"Responses"},"referred_by":{"anyOf":[{"$ref":"#/components/schemas/WaitlistReferrerOut"},{"type":"null"}]},"referrals":{"$ref":"#/components/schemas/WaitlistReferralCountsOut"}},"type":"object","required":["id","email","status","utm_source","utm_medium","utm_campaign","signup_tag","ad_source","signup_device","survey_completed_at","invited_at","code_expires_at","is_ad_invite","redeemed_at","redeemed_user_id","created_at","responses","referred_by","referrals"],"title":"WaitlistSignupOut"},"WaitlistStatsResponse":{"properties":{"pending":{"type":"integer","title":"Pending"},"invited":{"type":"integer","title":"Invited"},"redeemed":{"type":"integer","title":"Redeemed"},"revoked":{"type":"integer","title":"Revoked"},"surveyed":{"type":"integer","title":"Surveyed"},"referred":{"type":"integer","title":"Referred"},"member_referred_joins":{"type":"integer","title":"Member Referred Joins"}},"type":"object","required":["pending","invited","redeemed","revoked","surveyed","referred","member_referred_joins"],"title":"WaitlistStatsResponse"},"WaitlistSurveyOption":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"exclusive":{"type":"boolean","title":"Exclusive","default":false}},"additionalProperties":false,"type":"object","required":["key","label"],"title":"WaitlistSurveyOption","description":"One choice on a survey question."},"WaitlistSurveyQuestion":{"properties":{"key":{"type":"string","title":"Key"},"kind":{"type":"string","enum":["single","multi","text"],"title":"Kind"},"prompt":{"type":"string","title":"Prompt"},"helper":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Helper"},"allow_other":{"type":"boolean","title":"Allow Other"},"other_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Other Prompt"},"other_option_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Other Option Key"},"short":{"type":"boolean","title":"Short","default":false},"prefix":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prefix"},"suffix":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Suffix"},"options":{"items":{"$ref":"#/components/schemas/WaitlistSurveyOption"},"type":"array","title":"Options"}},"additionalProperties":false,"type":"object","required":["key","kind","prompt","helper","allow_other","other_prompt","options"],"title":"WaitlistSurveyQuestion","description":"One question of the intake survey the public form renders from\n(``services/waitlist_survey.WAITLIST_SURVEY``)."},"WithdrawCreditGrantRequest":{"properties":{"reason":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Reason"}},"type":"object","title":"WithdrawCreditGrantRequest","description":"An operator taking a top-up grant back: the credit half of a refund."},"DetailError":{"description":"FastAPI's ``{\"detail\": ...}`` body: a request-validation failure, or an\n``HTTPException`` whose detail is structured and so cannot ride the\nenvelope's string ``error``. A string detail is always enveloped.","properties":{"detail":{"anyOf":[{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"}],"title":"Detail"}},"required":["detail"],"title":"DetailError","type":"object"}}}}