{"openapi":"3.1.0","info":{"title":"Intelibo Accounts","version":"0.1.0"},"paths":{"/healthz":{"get":{"summary":"Healthz","operationId":"healthz_healthz_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Healthz Healthz Get"}}}}}}},"/readyz":{"get":{"summary":"Readyz","operationId":"readyz_readyz_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Readyz Readyz Get"}}}}}}},"/auth/register":{"post":{"tags":["auth"],"summary":"Register","operationId":"register_auth_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Register Auth Register Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/login/password":{"post":{"tags":["auth"],"summary":"Login Password","operationId":"login_password_auth_login_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Login Password Auth Login Password Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/login/mfa":{"post":{"tags":["auth"],"summary":"Login Mfa","operationId":"login_mfa_auth_login_mfa_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MfaLoginIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Login Mfa Auth Login Mfa Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/login/passkey/options":{"post":{"tags":["auth"],"summary":"Passkey Login Options","description":"Discoverable by default; a known email narrows the allow-list (no enumeration).","operationId":"passkey_login_options_auth_login_passkey_options_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasskeyOptionsIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Passkey Login Options Auth Login Passkey Options Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/login/passkey":{"post":{"tags":["auth"],"summary":"Passkey Login","operationId":"passkey_login_auth_login_passkey_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasskeyLoginIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Passkey Login Auth Login Passkey Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/login/mfa/passkey/options":{"post":{"tags":["auth"],"summary":"Mfa Passkey Options","operationId":"mfa_passkey_options_auth_login_mfa_passkey_options_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MfaPasskeyOptionsIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Mfa Passkey Options Auth Login Mfa Passkey Options Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/login/mfa/passkey":{"post":{"tags":["auth"],"summary":"Login Mfa Passkey","operationId":"login_mfa_passkey_auth_login_mfa_passkey_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MfaPasskeyLoginIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Login Mfa Passkey Auth Login Mfa Passkey Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/consent":{"post":{"tags":["auth"],"summary":"Consent","operationId":"consent_auth_consent_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Consent Auth Consent Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/logout":{"post":{"tags":["auth"],"summary":"Logout","operationId":"logout_auth_logout_post","responses":{"204":{"description":"Successful Response"}}}},"/auth/email-verification/send":{"post":{"tags":["auth"],"summary":"Email Verification Send","operationId":"email_verification_send_auth_email_verification_send_post","responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Response Email Verification Send Auth Email Verification Send Post"}}}}}}},"/auth/email-verification/confirm":{"post":{"tags":["auth"],"summary":"Email Verification Confirm","operationId":"email_verification_confirm_auth_email_verification_confirm_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__identity__api__auth__TokenIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Email Verification Confirm Auth Email Verification Confirm Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/password-reset/request":{"post":{"tags":["auth"],"summary":"Password Reset Request","operationId":"password_reset_request_auth_password_reset_request_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordResetRequestIn"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Response Password Reset Request Auth Password Reset Request Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/password-reset/confirm":{"post":{"tags":["auth"],"summary":"Password Reset Confirm","operationId":"password_reset_confirm_auth_password_reset_confirm_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordResetConfirmIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Response Password Reset Confirm Auth Password Reset Confirm Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/context":{"get":{"tags":["auth"],"summary":"Auth Context","operationId":"auth_context_auth_context_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Auth Context Auth Context Get"}}}}}}},"/auth/google/start":{"get":{"tags":["auth"],"summary":"Google Start","operationId":"google_start_auth_google_start_get","parameters":[{"name":"return_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Return To"}},{"name":"link","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Link"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/google/callback":{"get":{"tags":["auth"],"summary":"Google Callback","operationId":"google_callback_auth_google_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/{provider}/start":{"get":{"tags":["auth"],"summary":"Provider Start","description":"Facebook and Apple (docs/phase6/P6-T03); Google keeps its own route above.","operationId":"provider_start_auth__provider__start_get","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}},{"name":"return_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Return To"}},{"name":"link","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Link"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/{provider}/callback":{"post":{"tags":["auth"],"summary":"Provider Callback","operationId":"provider_callback_auth__provider__callback_post","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["auth"],"summary":"Provider Callback","operationId":"provider_callback_auth__provider__callback_get","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/.well-known/oauth-authorization-server":{"get":{"tags":["oauth"],"summary":"Openid Configuration","operationId":"openid_configuration__well_known_oauth_authorization_server_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Openid Configuration  Well Known Oauth Authorization Server Get"}}}}}}},"/.well-known/openid-configuration":{"get":{"tags":["oauth"],"summary":"Openid Configuration","operationId":"openid_configuration__well_known_openid_configuration_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Openid Configuration  Well Known Openid Configuration Get"}}}}}}},"/.well-known/jwks.json":{"get":{"tags":["oauth"],"summary":"Jwks","operationId":"jwks__well_known_jwks_json_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Jwks  Well Known Jwks Json Get"}}}}}}},"/oauth/authorize":{"get":{"tags":["oauth"],"summary":"Authorize Get","operationId":"authorize_get_oauth_authorize_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["oauth"],"summary":"Authorize Post","operationId":"authorize_post_oauth_authorize_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/oauth/token":{"post":{"tags":["oauth"],"summary":"Token","operationId":"token_oauth_token_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Token Oauth Token Post"}}}}}}},"/oauth/device/code":{"post":{"tags":["oauth"],"summary":"Device Code","description":"RFC 8628 §3.1 device authorization request (docs/06 §2.1); 10 per minute per IP.","operationId":"device_code_oauth_device_code_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Device Code Oauth Device Code Post"}}}}}}},"/oauth/userinfo":{"get":{"tags":["oauth"],"summary":"Userinfo","operationId":"userinfo_oauth_userinfo_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Userinfo Oauth Userinfo Get"}}}}}}},"/oauth/logout":{"get":{"tags":["oauth"],"summary":"Rp Initiated Logout","description":"RP-initiated logout (docs/04 §4.9): revoke the session, queue back-channel logout, then\nredirect to a registered post-logout URI or the SPA logout page.","operationId":"rp_initiated_logout_oauth_logout_get","parameters":[{"name":"id_token_hint","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id Token Hint"}},{"name":"post_logout_redirect_uri","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Post Logout Redirect Uri"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"client_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oauth/revoke":{"post":{"tags":["oauth"],"summary":"Revoke","operationId":"revoke_oauth_revoke_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/oauth/introspect":{"post":{"tags":["oauth"],"summary":"Introspect","operationId":"introspect_oauth_introspect_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Introspect Oauth Introspect Post"}}}}}}},"/me":{"get":{"tags":["me"],"summary":"Get Me","operationId":"get_me_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Me Me Get"}}}}}},"patch":{"tags":["me"],"summary":"Patch Me","operationId":"patch_me_me_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Patch Me Me Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/me/active-org":{"put":{"tags":["me"],"summary":"Put Active Org","operationId":"put_active_org_me_active_org_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActiveOrgIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Put Active Org Me Active Org Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/me/sessions":{"get":{"tags":["me"],"summary":"List Sessions","operationId":"list_sessions_me_sessions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response List Sessions Me Sessions Get"}}}}}},"delete":{"tags":["me"],"summary":"Revoke Other Sessions","operationId":"revoke_other_sessions_me_sessions_delete","responses":{"204":{"description":"Successful Response"}}}},"/me/sessions/{session_id}":{"delete":{"tags":["me"],"summary":"Revoke One Session","operationId":"revoke_one_session_me_sessions__session_id__delete","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/me/identities":{"get":{"tags":["me"],"summary":"List Identities","operationId":"list_identities_me_identities_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response List Identities Me Identities Get"}}}}}}},"/me/identities/{provider}":{"delete":{"tags":["me"],"summary":"Unlink Identity","operationId":"unlink_identity_me_identities__provider__delete","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/me/password":{"put":{"tags":["me"],"summary":"Put Password","operationId":"put_password_me_password_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Response Put Password Me Password Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/me/mfa/totp/setup":{"post":{"tags":["me"],"summary":"Mfa Setup","operationId":"mfa_setup_me_mfa_totp_setup_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Mfa Setup Me Mfa Totp Setup Post"}}}}}}},"/me/mfa/totp/confirm":{"post":{"tags":["me"],"summary":"Mfa Confirm","operationId":"mfa_confirm_me_mfa_totp_confirm_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MfaCodeIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Mfa Confirm Me Mfa Totp Confirm Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/me/mfa/totp":{"delete":{"tags":["me"],"summary":"Mfa Disable","operationId":"mfa_disable_me_mfa_totp_delete","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MfaDisableIn"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/me/mfa/recovery-codes":{"post":{"tags":["me"],"summary":"Mfa Recovery Codes","operationId":"mfa_recovery_codes_me_mfa_recovery_codes_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MfaCodeIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Mfa Recovery Codes Me Mfa Recovery Codes Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/me/passkeys":{"get":{"tags":["me"],"summary":"List Passkeys","operationId":"list_passkeys_me_passkeys_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response List Passkeys Me Passkeys Get"}}}}}},"post":{"tags":["me"],"summary":"Add Passkey","operationId":"add_passkey_me_passkeys_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasskeyRegisterIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Add Passkey Me Passkeys Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/me/passkeys/options":{"post":{"tags":["me"],"summary":"Passkey Options","operationId":"passkey_options_me_passkeys_options_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Passkey Options Me Passkeys Options Post"}}}}}}},"/me/passkeys/{passkey_id}":{"delete":{"tags":["me"],"summary":"Remove Passkey","operationId":"remove_passkey_me_passkeys__passkey_id__delete","parameters":[{"name":"passkey_id","in":"path","required":true,"schema":{"type":"string","title":"Passkey Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/me/tokens":{"get":{"tags":["me"],"summary":"List Tokens","operationId":"list_tokens_me_tokens_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response List Tokens Me Tokens Get"}}}}}},"post":{"tags":["me"],"summary":"Create Token","operationId":"create_token_me_tokens_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__identity__api__me__TokenIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Create Token Me Tokens Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/me/tokens/{token_id}":{"delete":{"tags":["me"],"summary":"Revoke Token","operationId":"revoke_token_me_tokens__token_id__delete","parameters":[{"name":"token_id","in":"path","required":true,"schema":{"type":"string","title":"Token Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/me/clients":{"get":{"tags":["me"],"summary":"List Mcp Clients","operationId":"list_mcp_clients_me_clients_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response List Mcp Clients Me Clients Get"}}}}}},"post":{"tags":["me"],"summary":"Create Mcp Client","operationId":"create_mcp_client_me_clients_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpClientIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Create Mcp Client Me Clients Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/me/clients/{client_db_id}":{"delete":{"tags":["me"],"summary":"Disable Mcp Client","operationId":"disable_mcp_client_me_clients__client_db_id__delete","parameters":[{"name":"client_db_id","in":"path","required":true,"schema":{"type":"string","title":"Client Db Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/me/products":{"get":{"tags":["me"],"summary":"List My Products","description":"What this person has in each product (docs/15 §3): the organisations they act through,\ntheir role in each, and the credit balance where the product bills. One call, because the\naccount home answers \"what am I part of\" before anyone clicks.","operationId":"list_my_products_me_products_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response List My Products Me Products Get"}}}}}}},"/me/orgs":{"get":{"tags":["me"],"summary":"List Orgs","operationId":"list_orgs_me_orgs_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response List Orgs Me Orgs Get"}}}}}},"post":{"tags":["me"],"summary":"Create Org","operationId":"create_org_me_orgs_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__identity__api__me__OrgIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Create Org Me Orgs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/me/orgs/{org_id}/members":{"post":{"tags":["me"],"summary":"Add Member","operationId":"add_member_me_orgs__org_id__members_post","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__identity__api__me__MemberIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Add Member Me Orgs  Org Id  Members Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/me/orgs/{org_id}/members/{user_id}":{"delete":{"tags":["me"],"summary":"Remove Member","operationId":"remove_member_me_orgs__org_id__members__user_id__delete","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/me/consents":{"get":{"tags":["me"],"summary":"List Consents","operationId":"list_consents_me_consents_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response List Consents Me Consents Get"}}}}}}},"/me/consents/{client_id}":{"delete":{"tags":["me"],"summary":"Revoke Consent","operationId":"revoke_consent_me_consents__client_id__delete","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/me/delete":{"post":{"tags":["me"],"summary":"Delete Me","description":"docs/04 §7: events to products, billing close, emails, pseudonymisation.","operationId":"delete_me_me_delete_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteIn"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/me/export":{"get":{"tags":["me"],"summary":"Export Me","description":"GDPR export (docs/phase6/P6-T07): every row that belongs to the user, plus the sections\nbilling and devices register.","operationId":"export_me_me_export_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Export Me Me Export Get"}}}}}}},"/v1/users/{user_id}":{"get":{"tags":["v1-identity"],"summary":"Get User","operationId":"get_user_v1_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":{"type":"object","additionalProperties":true,"title":"Response Get User V1 Users  User Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/users":{"get":{"tags":["v1-identity"],"summary":"Lookup User","operationId":"lookup_user_v1_users_get","parameters":[{"name":"email","in":"query","required":true,"schema":{"type":"string","format":"email","title":"Email"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Lookup User V1 Users Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/products/{slug}/seen":{"post":{"tags":["v1-identity"],"summary":"Product Seen","operationId":"product_seen_v1_products__slug__seen_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeenIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"boolean"},"title":"Response Product Seen V1 Products  Slug  Seen Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/orgs/{org_id}":{"get":{"tags":["v1-identity"],"summary":"Get Org","operationId":"get_org_v1_orgs__org_id__get","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Org V1 Orgs  Org Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/orgs/{org_id}/verify-member":{"post":{"tags":["v1-identity"],"summary":"Verify Member","operationId":"verify_member_v1_orgs__org_id__verify_member_post","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyMemberIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Verify Member V1 Orgs  Org Id  Verify Member Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/billing/balance":{"get":{"tags":["v1-billing"],"summary":"Get Balance","operationId":"get_balance_v1_billing_balance_get","parameters":[{"name":"org","in":"query","required":true,"schema":{"type":"string","title":"Org"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Balance V1 Billing Balance Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/billing/ledger":{"get":{"tags":["v1-billing"],"summary":"Get Ledger","operationId":"get_ledger_v1_billing_ledger_get","parameters":[{"name":"org","in":"query","required":true,"schema":{"type":"string","title":"Org"}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"To"}},{"name":"kinds","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kinds"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"group_by","in":"query","required":false,"schema":{"type":"string","default":"none","title":"Group By"}},{"name":"tz_offset_minutes","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Tz Offset Minutes"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Ledger V1 Billing Ledger Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/billing/usage":{"get":{"tags":["v1-billing"],"summary":"Get Usage","operationId":"get_usage_v1_billing_usage_get","parameters":[{"name":"org","in":"query","required":true,"schema":{"type":"string","title":"Org"}},{"name":"period","in":"query","required":false,"schema":{"type":"string","default":"30d","title":"Period"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"integer"},"title":"Response Get Usage V1 Billing Usage Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/billing/debits":{"post":{"tags":["v1-billing"],"summary":"Post Debit","operationId":"post_debit_v1_billing_debits_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DebitIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Debit V1 Billing Debits Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/billing/precheck":{"get":{"tags":["v1-billing"],"summary":"Get Precheck","operationId":"get_precheck_v1_billing_precheck_get","parameters":[{"name":"org","in":"query","required":true,"schema":{"type":"string","title":"Org"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Precheck V1 Billing Precheck Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/billing/reservations":{"post":{"tags":["v1-billing"],"summary":"Post Reservation","operationId":"post_reservation_v1_billing_reservations_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReservationIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Reservation V1 Billing Reservations Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/billing/reservations/{reservation_id}/settle":{"post":{"tags":["v1-billing"],"summary":"Post Settle","operationId":"post_settle_v1_billing_reservations__reservation_id__settle_post","parameters":[{"name":"reservation_id","in":"path","required":true,"schema":{"type":"string","title":"Reservation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettleIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Settle V1 Billing Reservations  Reservation Id  Settle Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/billing/reservations/{reservation_id}/release":{"post":{"tags":["v1-billing"],"summary":"Post Release","operationId":"post_release_v1_billing_reservations__reservation_id__release_post","parameters":[{"name":"reservation_id","in":"path","required":true,"schema":{"type":"string","title":"Reservation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Release V1 Billing Reservations  Reservation Id  Release Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/billing/grants":{"post":{"tags":["v1-billing"],"summary":"Post Grant","operationId":"post_grant_v1_billing_grants_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrantIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Grant V1 Billing Grants Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/billing/offers":{"get":{"tags":["v1-billing"],"summary":"Get Offers","description":"Without `org` (a product's public pricing page) only an explicit `country` filters.","operationId":"get_offers_v1_billing_offers_get","parameters":[{"name":"org","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org"}},{"name":"country","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Offers V1 Billing Offers Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/billing/purchases":{"post":{"tags":["v1-billing"],"summary":"Post Purchase","operationId":"post_purchase_v1_billing_purchases_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Purchase V1 Billing Purchases Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["v1-billing"],"summary":"List Purchases","operationId":"list_purchases_v1_billing_purchases_get","parameters":[{"name":"org","in":"query","required":true,"schema":{"type":"string","title":"Org"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Purchases V1 Billing Purchases Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/billing/purchases/{purchase_id}":{"get":{"tags":["v1-billing"],"summary":"Get Purchase","operationId":"get_purchase_v1_billing_purchases__purchase_id__get","parameters":[{"name":"purchase_id","in":"path","required":true,"schema":{"type":"string","title":"Purchase Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Purchase V1 Billing Purchases  Purchase Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/billing/portal-link":{"post":{"tags":["v1-billing"],"summary":"Post Portal Link","operationId":"post_portal_link_v1_billing_portal_link_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortalIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Post Portal Link V1 Billing Portal Link Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/billing/receipts":{"get":{"tags":["v1-billing"],"summary":"List Receipts","operationId":"list_receipts_v1_billing_receipts_get","parameters":[{"name":"org","in":"query","required":true,"schema":{"type":"string","title":"Org"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Receipts V1 Billing Receipts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/billing/auto-refill":{"put":{"tags":["v1-billing"],"summary":"Put Auto Refill","operationId":"put_auto_refill_v1_billing_auto_refill_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoRefillIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Put Auto Refill V1 Billing Auto Refill Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/billing/promo/redeem":{"post":{"tags":["v1-billing"],"summary":"Post Promo Redeem","operationId":"post_promo_redeem_v1_billing_promo_redeem_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromoRedeemIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Promo Redeem V1 Billing Promo Redeem Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/billing/promo/held":{"get":{"tags":["v1-billing"],"summary":"Get Held Promos","operationId":"get_held_promos_v1_billing_promo_held_get","parameters":[{"name":"org","in":"query","required":true,"schema":{"type":"string","title":"Org"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Held Promos V1 Billing Promo Held Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/billing/promo/redemptions/{redemption_id}/collect":{"post":{"tags":["v1-billing"],"summary":"Post Collect Promo","operationId":"post_collect_promo_v1_billing_promo_redemptions__redemption_id__collect_post","parameters":[{"name":"redemption_id","in":"path","required":true,"schema":{"type":"string","title":"Redemption Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__billing__api__v1__OrgIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Collect Promo V1 Billing Promo Redemptions  Redemption Id  Collect Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/billing/promo/invitations/{invitation_id}/fulfil":{"post":{"tags":["v1-billing"],"summary":"Post Fulfil Invitation","operationId":"post_fulfil_invitation_v1_billing_promo_invitations__invitation_id__fulfil_post","parameters":[{"name":"invitation_id","in":"path","required":true,"schema":{"type":"string","title":"Invitation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulfilIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Fulfil Invitation V1 Billing Promo Invitations  Invitation Id  Fulfil Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/billing/promo/invite-code":{"post":{"tags":["v1-billing"],"summary":"Post Invite Code","operationId":"post_invite_code_v1_billing_promo_invite_code_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteCodeIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Invite Code V1 Billing Promo Invite Code Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/billing/promo/pending-invites":{"get":{"tags":["v1-billing"],"summary":"Get Pending Invites","operationId":"get_pending_invites_v1_billing_promo_pending_invites_get","parameters":[{"name":"org","in":"query","required":true,"schema":{"type":"string","title":"Org"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"integer"},"title":"Response Get Pending Invites V1 Billing Promo Pending Invites Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/billing/purchases/{purchase_id}/pi/approve":{"post":{"tags":["v1-billing"],"summary":"Post Pi Approve","operationId":"post_pi_approve_v1_billing_purchases__purchase_id__pi_approve_post","parameters":[{"name":"purchase_id","in":"path","required":true,"schema":{"type":"string","title":"Purchase Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PiApproveIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Pi Approve V1 Billing Purchases  Purchase Id  Pi Approve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/billing/purchases/{purchase_id}/pi/complete":{"post":{"tags":["v1-billing"],"summary":"Post Pi Complete","operationId":"post_pi_complete_v1_billing_purchases__purchase_id__pi_complete_post","parameters":[{"name":"purchase_id","in":"path","required":true,"schema":{"type":"string","title":"Purchase Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PiCompleteIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Pi Complete V1 Billing Purchases  Purchase Id  Pi Complete Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/devices/approve":{"post":{"tags":["v1-devices"],"summary":"Approve","operationId":"approve_v1_devices_approve_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApproveIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Approve V1 Devices Approve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/devices/deny":{"post":{"tags":["v1-devices"],"summary":"Deny","operationId":"deny_v1_devices_deny_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DenyIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Deny V1 Devices Deny Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/devices":{"get":{"tags":["v1-devices"],"summary":"List Devices","operationId":"list_devices_v1_devices_get","parameters":[{"name":"org","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Devices V1 Devices Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/devices/count":{"get":{"tags":["v1-devices"],"summary":"Count Devices","operationId":"count_devices_v1_devices_count_get","parameters":[{"name":"org","in":"query","required":true,"schema":{"type":"string","title":"Org"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"integer"},"title":"Response Count Devices V1 Devices Count Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/devices/{device_id}":{"get":{"tags":["v1-devices"],"summary":"Get Device","operationId":"get_device_v1_devices__device_id__get","parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","title":"Device Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Device V1 Devices  Device Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["v1-devices"],"summary":"Patch Device","operationId":"patch_device_v1_devices__device_id__patch","parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","title":"Device Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DevicePatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Patch Device V1 Devices  Device Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/devices/{device_id}/disable":{"post":{"tags":["v1-devices"],"summary":"Disable Device","operationId":"disable_device_v1_devices__device_id__disable_post","parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","title":"Device Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Disable Device V1 Devices  Device Id  Disable Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/devices/{device_id}/enable":{"post":{"tags":["v1-devices"],"summary":"Enable Device","operationId":"enable_device_v1_devices__device_id__enable_post","parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","title":"Device Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Enable Device V1 Devices  Device Id  Enable Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/devices/{device_id}/revoke":{"post":{"tags":["v1-devices"],"summary":"Revoke Device","operationId":"revoke_device_v1_devices__device_id__revoke_post","parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","title":"Device Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Revoke Device V1 Devices  Device Id  Revoke Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/stripe":{"post":{"tags":["webhooks"],"summary":"Stripe Webhook","operationId":"stripe_webhook_webhooks_stripe_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Stripe Webhook Webhooks Stripe Post"}}}}}}},"/clients/{client_id}/public":{"get":{"tags":["clients"],"summary":"Client Public","operationId":"client_public_clients__client_id__public_get","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Client Public Clients  Client Id  Public Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users":{"get":{"tags":["admin"],"summary":"List Users","operationId":"list_users_admin_users_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"product","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","default":"created_at","title":"Sort"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Users Admin Users Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users/{user_id}":{"get":{"tags":["admin"],"summary":"View User","operationId":"view_user_admin_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":{"type":"object","additionalProperties":true,"title":"Response View User Admin Users  User Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users/{user_id}/suspend":{"post":{"tags":["admin"],"summary":"Suspend User","operationId":"suspend_user_admin_users__user_id__suspend_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/ReasonIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Suspend User Admin Users  User Id  Suspend Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users/{user_id}/unsuspend":{"post":{"tags":["admin"],"summary":"Unsuspend User","operationId":"unsuspend_user_admin_users__user_id__unsuspend_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Unsuspend User Admin Users  User Id  Unsuspend Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users/{user_id}/sessions/revoke-all":{"post":{"tags":["admin"],"summary":"Revoke All Sessions","operationId":"revoke_all_sessions_admin_users__user_id__sessions_revoke_all_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users/{user_id}/verify-email":{"post":{"tags":["admin"],"summary":"Verify Email","operationId":"verify_email_admin_users__user_id__verify_email_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"boolean"},"title":"Response Verify Email Admin Users  User Id  Verify Email Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users/{user_id}/password-reset-link":{"post":{"tags":["admin"],"summary":"Password Reset Link","operationId":"password_reset_link_admin_users__user_id__password_reset_link_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Password Reset Link Admin Users  User Id  Password Reset Link Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users/{user_id}/mfa/reset":{"post":{"tags":["admin"],"summary":"Reset Mfa","description":"Support recovery for a lost authenticator (docs/phase6/P6-T01 §2).","operationId":"reset_mfa_admin_users__user_id__mfa_reset_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"boolean"},"title":"Response Reset Mfa Admin Users  User Id  Mfa Reset Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users/{user_id}/notes":{"put":{"tags":["admin"],"summary":"Update Notes","operationId":"update_notes_admin_users__user_id__notes_put","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotesIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Notes Admin Users  User Id  Notes Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users/{user_id}/delete":{"post":{"tags":["admin"],"summary":"Delete User","operationId":"delete_user_admin_users__user_id__delete_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users/{user_id}/export":{"get":{"tags":["admin"],"summary":"Export User","operationId":"export_user_admin_users__user_id__export_get","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Export User Admin Users  User Id  Export Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/me":{"get":{"tags":["admin"],"summary":"Staff Me","description":"What the console may show this person (docs/14 §1): the platform role, and the products\nthey can open with the role and capabilities of each. Any staff member may call it.","operationId":"staff_me_admin_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Staff Me Admin Me Get"}}}}}}},"/admin/staff":{"get":{"tags":["admin"],"summary":"List Staff","operationId":"list_staff_admin_staff_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response List Staff Admin Staff Get"}}}}}},"post":{"tags":["admin"],"summary":"Grant Staff","operationId":"grant_staff_admin_staff_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Grant Staff Admin Staff Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/staff/{user_id}":{"delete":{"tags":["admin"],"summary":"Revoke Staff","description":"`?product=<slug>` removes that product's role; without it, the platform role.","operationId":"revoke_staff_admin_staff__user_id__delete","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"product","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/orgs":{"get":{"tags":["admin"],"summary":"List Orgs","operationId":"list_orgs_admin_orgs_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"product","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Orgs Admin Orgs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/orgs/{org_id}":{"get":{"tags":["admin"],"summary":"View Org","operationId":"view_org_admin_orgs__org_id__get","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response View Org Admin Orgs  Org Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/orgs/{org_id}/billing/suspend":{"post":{"tags":["admin"],"summary":"Suspend Billing","operationId":"suspend_billing_admin_orgs__org_id__billing_suspend_post","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReasonIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Suspend Billing Admin Orgs  Org Id  Billing Suspend Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/orgs/{org_id}/billing/resume":{"post":{"tags":["admin"],"summary":"Resume Billing","operationId":"resume_billing_admin_orgs__org_id__billing_resume_post","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReasonIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Resume Billing Admin Orgs  Org Id  Billing Resume Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/orgs/{org_id}/ledger/adjust":{"post":{"tags":["admin"],"summary":"Adjust Ledger","operationId":"adjust_ledger_admin_orgs__org_id__ledger_adjust_post","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdjustIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Adjust Ledger Admin Orgs  Org Id  Ledger Adjust Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/orgs/{org_id}/members":{"post":{"tags":["admin"],"summary":"Add Org Member","operationId":"add_org_member_admin_orgs__org_id__members_post","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__admin__api_billing__MemberIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Add Org Member Admin Orgs  Org Id  Members Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/orgs/{org_id}/members/{user_id}":{"delete":{"tags":["admin"],"summary":"Remove Org Member","operationId":"remove_org_member_admin_orgs__org_id__members__user_id__delete","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/payments":{"get":{"tags":["admin"],"summary":"List Payments","operationId":"list_payments_admin_payments_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"}},{"name":"product","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product"}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Payments Admin Payments Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/payments/{payment_id}":{"get":{"tags":["admin"],"summary":"View Payment","operationId":"view_payment_admin_payments__payment_id__get","parameters":[{"name":"payment_id","in":"path","required":true,"schema":{"type":"string","title":"Payment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response View Payment Admin Payments  Payment Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/payments/{payment_id}/refund":{"post":{"tags":["admin"],"summary":"Refund Payment","operationId":"refund_payment_admin_payments__payment_id__refund_post","parameters":[{"name":"payment_id","in":"path","required":true,"schema":{"type":"string","title":"Payment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefundIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Refund Payment Admin Payments  Payment Id  Refund Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ledger":{"get":{"tags":["admin"],"summary":"List Ledger","operationId":"list_ledger_admin_ledger_get","parameters":[{"name":"org","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org"}},{"name":"product","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product"}},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Ledger Admin Ledger Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/receipts/{receipt_id}/download":{"get":{"tags":["admin"],"summary":"Download Receipt","operationId":"download_receipt_admin_receipts__receipt_id__download_get","parameters":[{"name":"receipt_id","in":"path","required":true,"schema":{"type":"string","title":"Receipt Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/promo-codes":{"get":{"tags":["admin"],"summary":"List Promo Codes","description":"`exclude_invitations` leaves out the codes users generate to invite each other, which\noutnumber the ones staff create.","operationId":"list_promo_codes_admin_promo_codes_get","parameters":[{"name":"product","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"exclude_invitations","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Exclude Invitations"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Promo Codes Admin Promo Codes Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin"],"summary":"Create Promo Code","operationId":"create_promo_code_admin_promo_codes_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromoIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Promo Code Admin Promo Codes Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/promo-codes/{promo_id}":{"patch":{"tags":["admin"],"summary":"Update Promo Code","operationId":"update_promo_code_admin_promo_codes__promo_id__patch","parameters":[{"name":"promo_id","in":"path","required":true,"schema":{"type":"string","title":"Promo Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromoLimitsIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Promo Code Admin Promo Codes  Promo Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin"],"summary":"Expire Promo Code","operationId":"expire_promo_code_admin_promo_codes__promo_id__delete","parameters":[{"name":"promo_id","in":"path","required":true,"schema":{"type":"string","title":"Promo Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/promo-codes/{promo_id}/redemptions":{"get":{"tags":["admin"],"summary":"List Promo Redemptions","description":"Who redeemed the code, newest first.","operationId":"list_promo_redemptions_admin_promo_codes__promo_id__redemptions_get","parameters":[{"name":"promo_id","in":"path","required":true,"schema":{"type":"string","title":"Promo Id"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Promo Redemptions Admin Promo Codes  Promo Id  Redemptions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/offers":{"get":{"tags":["admin"],"summary":"List Offers","operationId":"list_offers_admin_offers_get","parameters":[{"name":"product","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Offers Admin Offers Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/offers/{offer_id}":{"put":{"tags":["admin"],"summary":"Update Offer","operationId":"update_offer_admin_offers__offer_id__put","parameters":[{"name":"offer_id","in":"path","required":true,"schema":{"type":"string","title":"Offer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfferIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Offer Admin Offers  Offer Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/devices":{"get":{"tags":["admin"],"summary":"List Devices","operationId":"list_devices_admin_devices_get","parameters":[{"name":"org","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org"}},{"name":"product","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Devices Admin Devices Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/devices/{device_id}/revoke":{"post":{"tags":["admin"],"summary":"Revoke Device","operationId":"revoke_device_admin_devices__device_id__revoke_post","parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","title":"Device Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Revoke Device Admin Devices  Device Id  Revoke Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/devices/{device_id}/disable":{"post":{"tags":["admin"],"summary":"Disable Device","operationId":"disable_device_admin_devices__device_id__disable_post","parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","title":"Device Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Disable Device Admin Devices  Device Id  Disable Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/devices/{device_id}/enable":{"post":{"tags":["admin"],"summary":"Enable Device","operationId":"enable_device_admin_devices__device_id__enable_post","parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","title":"Device Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Enable Device Admin Devices  Device Id  Enable Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/events":{"get":{"tags":["admin"],"summary":"List Events","operationId":"list_events_admin_events_get","parameters":[{"name":"product","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product"}},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Events Admin Events Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/events/{delivery_id}/retry":{"post":{"tags":["admin"],"summary":"Retry Event","operationId":"retry_event_admin_events__delivery_id__retry_post","parameters":[{"name":"delivery_id","in":"path","required":true,"schema":{"type":"string","title":"Delivery Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Retry Event Admin Events  Delivery Id  Retry Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/audit":{"get":{"tags":["admin"],"summary":"List Audit","operationId":"list_audit_admin_audit_get","parameters":[{"name":"actor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor"}},{"name":"target","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target"}},{"name":"action","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action"}},{"name":"product","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product"}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"format","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Format"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response List Audit Admin Audit Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/security-events":{"get":{"tags":["admin"],"summary":"List Security Events","operationId":"list_security_events_admin_security_events_get","parameters":[{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"}},{"name":"user","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User"}},{"name":"ip","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ip"}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Security Events Admin Security Events Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/security-events/unlock":{"post":{"tags":["admin"],"summary":"Unlock","operationId":"unlock_admin_security_events_unlock_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnlockIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Response Unlock Admin Security Events Unlock Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/login-events":{"get":{"tags":["admin"],"summary":"List Login Events","operationId":"list_login_events_admin_login_events_get","parameters":[{"name":"user","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User"}},{"name":"outcome","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outcome"}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Login Events Admin Login Events Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/keys":{"get":{"tags":["admin"],"summary":"List Keys","operationId":"list_keys_admin_keys_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response List Keys Admin Keys Get"}}}}}}},"/admin/products":{"get":{"tags":["admin"],"summary":"List Products","operationId":"list_products_admin_products_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response List Products Admin Products Get"}}}}}},"post":{"tags":["admin"],"summary":"Create Product","description":"Owner session or a service token with `admin:provision` (docs/08 §3). Returns the\nwebhook secret once; offers are seeded when billing is enabled.","operationId":"create_product_admin_products_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Create Product Admin Products Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/products/{product_id}":{"patch":{"tags":["admin"],"summary":"Update Product","operationId":"update_product_admin_products__product_id__patch","parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"string","title":"Product Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Product Admin Products  Product Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/products/{product_id}/webhook-secret/rotate":{"post":{"tags":["admin"],"summary":"Rotate Webhook Secret","operationId":"rotate_webhook_secret_admin_products__product_id__webhook_secret_rotate_post","parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"string","title":"Product Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Rotate Webhook Secret Admin Products  Product Id  Webhook Secret Rotate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients":{"get":{"tags":["admin"],"summary":"List Clients","operationId":"list_clients_admin_clients_get","parameters":[{"name":"product","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product"}},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Clients Admin Clients Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin"],"summary":"Create Client","operationId":"create_client_admin_clients_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Client Admin Clients Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{client_id}":{"patch":{"tags":["admin"],"summary":"Update Client","operationId":"update_client_admin_clients__client_id__patch","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Client Admin Clients  Client Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{client_id}/secret/rotate":{"post":{"tags":["admin"],"summary":"Rotate Client Secret","operationId":"rotate_client_secret_admin_clients__client_id__secret_rotate_post","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Rotate Client Secret Admin Clients  Client Id  Secret Rotate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients/{client_id}/disable":{"post":{"tags":["admin"],"summary":"Disable Client","operationId":"disable_client_admin_clients__client_id__disable_post","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Disable Client Admin Clients  Client Id  Disable Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/metrics/overview":{"get":{"tags":["admin"],"summary":"Metrics Overview","operationId":"metrics_overview_admin_metrics_overview_get","parameters":[{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To"}},{"name":"product","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Metrics Overview Admin Metrics Overview Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/metrics/platform":{"get":{"tags":["admin"],"summary":"Metrics Platform","description":"Every product side by side (docs/14 §3); the platform level is the owner's view.","operationId":"metrics_platform_admin_metrics_platform_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Metrics Platform Admin Metrics Platform Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"ActiveOrgIn":{"properties":{"org_id":{"type":"string","maxLength":36,"minLength":1,"title":"Org Id"}},"type":"object","required":["org_id"],"title":"ActiveOrgIn"},"AdjustIn":{"properties":{"product":{"type":"string","maxLength":32,"minLength":1,"title":"Product"},"amount":{"type":"integer","title":"Amount"},"note":{"type":"string","maxLength":255,"minLength":1,"title":"Note"}},"type":"object","required":["product","amount","note"],"title":"AdjustIn"},"ApproveIn":{"properties":{"user_code":{"type":"string","maxLength":9,"minLength":8,"title":"User Code"},"org":{"type":"string","maxLength":36,"minLength":1,"title":"Org"},"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"}},"type":"object","required":["user_code","org","name"],"title":"ApproveIn"},"AutoRefillIn":{"properties":{"org":{"type":"string","maxLength":36,"minLength":1,"title":"Org"},"enabled":{"type":"boolean","title":"Enabled"},"threshold":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Threshold"},"offer":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Offer"}},"type":"object","required":["org","enabled"],"title":"AutoRefillIn"},"ClientIn":{"properties":{"client_id":{"type":"string","maxLength":128,"minLength":2,"pattern":"^[A-Za-z0-9_.-]+$","title":"Client Id"},"kind":{"type":"string","pattern":"^(product|service|native|mcp)$","title":"Kind"},"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"product":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product"},"redirect_uris":{"items":{"type":"string"},"type":"array","title":"Redirect Uris"},"post_logout_redirect_uris":{"items":{"type":"string"},"type":"array","title":"Post Logout Redirect Uris"},"allowed_origins":{"items":{"type":"string"},"type":"array","title":"Allowed Origins"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"},"first_party":{"type":"boolean","title":"First Party","default":false},"backchannel_logout_uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Backchannel Logout Uri"},"branding":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Branding"},"device_verification_uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Device Verification Uri"}},"type":"object","required":["client_id","kind","name"],"title":"ClientIn"},"ClientPatch":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Name"},"redirect_uris":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Redirect Uris"},"post_logout_redirect_uris":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Post Logout Redirect Uris"},"allowed_origins":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Allowed Origins"},"scopes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Scopes"},"first_party":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"First Party"},"backchannel_logout_uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Backchannel Logout Uri"},"branding":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Branding"},"token_policy":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Token Policy"},"device_verification_uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Device Verification Uri"}},"type":"object","title":"ClientPatch"},"ConsentIn":{"properties":{"client_id":{"type":"string","maxLength":128,"minLength":1,"title":"Client Id"},"scope":{"type":"string","maxLength":512,"minLength":1,"title":"Scope"},"return_to":{"type":"string","maxLength":4096,"minLength":1,"title":"Return To"},"decision":{"type":"string","pattern":"^(allow|deny)$","title":"Decision","default":"allow"}},"type":"object","required":["client_id","scope","return_to"],"title":"ConsentIn"},"DebitIn":{"properties":{"org":{"type":"string","maxLength":36,"minLength":1,"title":"Org"},"amount":{"type":"integer","exclusiveMinimum":0.0,"title":"Amount"},"idempotency_key":{"type":"string","maxLength":128,"minLength":1,"title":"Idempotency Key"},"ref":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Ref"},"allow_partial":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Allow Partial"}},"type":"object","required":["org","amount","idempotency_key"],"title":"DebitIn"},"DeleteIn":{"properties":{"password":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Password"},"confirm":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Confirm"}},"type":"object","title":"DeleteIn"},"DenyIn":{"properties":{"user_code":{"type":"string","maxLength":9,"minLength":8,"title":"User Code"},"org":{"type":"string","maxLength":36,"minLength":1,"title":"Org"}},"type":"object","required":["user_code","org"],"title":"DenyIn"},"DevicePatch":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Name"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"}},"type":"object","title":"DevicePatch"},"FulfilIn":{"properties":{"idempotency_key":{"type":"string","maxLength":128,"minLength":1,"title":"Idempotency Key"}},"type":"object","required":["idempotency_key"],"title":"FulfilIn"},"GrantIn":{"properties":{"org":{"type":"string","maxLength":36,"minLength":1,"title":"Org"},"kind":{"type":"string","pattern":"^(winback|invite_reward|adjustment|signup_grant)$","title":"Kind"},"credits":{"type":"integer","exclusiveMinimum":0.0,"title":"Credits"},"idempotency_key":{"type":"string","maxLength":128,"minLength":1,"title":"Idempotency Key"},"note":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Note"}},"type":"object","required":["org","kind","credits","idempotency_key"],"title":"GrantIn"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"InviteCodeIn":{"properties":{"org":{"type":"string","maxLength":36,"minLength":1,"title":"Org"},"user_id":{"type":"string","maxLength":36,"minLength":1,"title":"User Id"}},"type":"object","required":["org","user_id"],"title":"InviteCodeIn"},"LoginIn":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","maxLength":256,"minLength":1,"title":"Password"},"turnstile_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Turnstile Token"},"return_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Return To"}},"type":"object","required":["email","password"],"title":"LoginIn"},"McpClientIn":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"redirect_uris":{"items":{"type":"string"},"type":"array","maxItems":10,"minItems":1,"title":"Redirect Uris"},"product":{"type":"string","maxLength":32,"minLength":1,"title":"Product","default":"tradebo"}},"type":"object","required":["name","redirect_uris"],"title":"McpClientIn"},"MfaCodeIn":{"properties":{"code":{"type":"string","maxLength":16,"minLength":6,"title":"Code"}},"type":"object","required":["code"],"title":"MfaCodeIn"},"MfaDisableIn":{"properties":{"code":{"anyOf":[{"type":"string","maxLength":16,"minLength":6},{"type":"null"}],"title":"Code"},"password":{"anyOf":[{"type":"string","maxLength":256,"minLength":1},{"type":"null"}],"title":"Password"}},"type":"object","title":"MfaDisableIn"},"MfaLoginIn":{"properties":{"mfa_token":{"type":"string","maxLength":128,"minLength":10,"title":"Mfa Token"},"code":{"type":"string","maxLength":16,"minLength":6,"title":"Code"}},"type":"object","required":["mfa_token","code"],"title":"MfaLoginIn"},"MfaPasskeyLoginIn":{"properties":{"mfa_token":{"type":"string","maxLength":128,"minLength":10,"title":"Mfa Token"},"credential":{"additionalProperties":true,"type":"object","title":"Credential"}},"type":"object","required":["mfa_token","credential"],"title":"MfaPasskeyLoginIn"},"MfaPasskeyOptionsIn":{"properties":{"mfa_token":{"type":"string","maxLength":128,"minLength":10,"title":"Mfa Token"}},"type":"object","required":["mfa_token"],"title":"MfaPasskeyOptionsIn"},"NotesIn":{"properties":{"notes":{"type":"string","maxLength":10000,"title":"Notes","default":""},"flags":{"items":{"type":"string"},"type":"array","maxItems":32,"title":"Flags"}},"type":"object","title":"NotesIn"},"OfferIn":{"properties":{"active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active"},"countries":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Countries"},"sort_order":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sort Order"}},"type":"object","title":"OfferIn"},"PasskeyLoginIn":{"properties":{"credential":{"additionalProperties":true,"type":"object","title":"Credential"},"return_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Return To"}},"type":"object","required":["credential"],"title":"PasskeyLoginIn"},"PasskeyOptionsIn":{"properties":{"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email"}},"type":"object","title":"PasskeyOptionsIn"},"PasskeyRegisterIn":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name","default":"This device"},"credential":{"additionalProperties":true,"type":"object","title":"Credential"}},"type":"object","required":["credential"],"title":"PasskeyRegisterIn"},"PasswordIn":{"properties":{"current_password":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Current Password"},"new_password":{"type":"string","maxLength":256,"minLength":1,"title":"New Password"}},"type":"object","required":["new_password"],"title":"PasswordIn"},"PasswordResetConfirmIn":{"properties":{"token":{"type":"string","maxLength":256,"minLength":1,"title":"Token"},"new_password":{"type":"string","maxLength":256,"minLength":1,"title":"New Password"}},"type":"object","required":["token","new_password"],"title":"PasswordResetConfirmIn"},"PasswordResetRequestIn":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"turnstile_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Turnstile Token"}},"type":"object","required":["email"],"title":"PasswordResetRequestIn"},"PiApproveIn":{"properties":{"payment_id":{"type":"string","maxLength":255,"minLength":1,"title":"Payment Id"}},"type":"object","required":["payment_id"],"title":"PiApproveIn"},"PiCompleteIn":{"properties":{"payment_id":{"type":"string","maxLength":255,"minLength":1,"title":"Payment Id"},"txid":{"type":"string","maxLength":255,"minLength":1,"title":"Txid"}},"type":"object","required":["payment_id","txid"],"title":"PiCompleteIn"},"PortalIn":{"properties":{"org":{"type":"string","maxLength":36,"minLength":1,"title":"Org"},"return_url":{"type":"string","maxLength":2048,"minLength":1,"title":"Return Url"}},"type":"object","required":["org","return_url"],"title":"PortalIn"},"ProductIn":{"properties":{"slug":{"type":"string","maxLength":32,"minLength":2,"pattern":"^[a-z0-9][a-z0-9-]*$","title":"Slug"},"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"api_audience":{"type":"string","maxLength":255,"minLength":1,"title":"Api Audience"},"web_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Web Url"},"webhook_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Webhook Url"},"billing":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Billing"},"branding":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Branding"},"capabilities":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Capabilities"}},"type":"object","required":["slug","name","api_audience"],"title":"ProductIn"},"ProductPatch":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Name"},"web_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Web Url"},"email_domain":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Email Domain"},"webhook_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Webhook Url"},"branding":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Branding"},"billing":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Billing"},"capabilities":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Capabilities"},"status":{"anyOf":[{"type":"string","pattern":"^(active|disabled)$"},{"type":"null"}],"title":"Status"}},"type":"object","title":"ProductPatch"},"ProfileIn":{"properties":{"first_name":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Last Name"},"locale":{"anyOf":[{"type":"string","maxLength":10,"minLength":2},{"type":"null"}],"title":"Locale"},"country":{"anyOf":[{"type":"string","maxLength":2,"minLength":2},{"type":"null"}],"title":"Country"}},"type":"object","title":"ProfileIn"},"PromoIn":{"properties":{"product":{"type":"string","maxLength":32,"minLength":1,"title":"Product"},"code":{"type":"string","maxLength":64,"minLength":3,"pattern":"^[A-Za-z0-9_-]+$","title":"Code"},"credits":{"type":"integer","exclusiveMinimum":0.0,"title":"Credits"},"max_uses":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Max Uses"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"}},"type":"object","required":["product","code","credits"],"title":"PromoIn"},"PromoLimitsIn":{"properties":{"max_uses":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Max Uses"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"}},"type":"object","title":"PromoLimitsIn","description":"Only the fields sent are changed; null removes the limit or the expiry."},"PromoRedeemIn":{"properties":{"org":{"type":"string","maxLength":36,"minLength":1,"title":"Org"},"user_id":{"type":"string","maxLength":36,"minLength":1,"title":"User Id"},"code":{"type":"string","maxLength":64,"minLength":1,"title":"Code"},"at_registration":{"type":"boolean","title":"At Registration","default":false}},"type":"object","required":["org","user_id","code"],"title":"PromoRedeemIn"},"PurchaseIn":{"properties":{"org":{"type":"string","maxLength":36,"minLength":1,"title":"Org"},"offer":{"type":"string","maxLength":64,"minLength":1,"title":"Offer"},"provider":{"type":"string","pattern":"^(stripe|pi_network)$","title":"Provider"},"idempotency_key":{"type":"string","maxLength":128,"minLength":1,"title":"Idempotency Key"},"initiated_by_user_id":{"type":"string","maxLength":36,"minLength":1,"title":"Initiated By User Id"},"success_url":{"type":"string","maxLength":2048,"minLength":1,"title":"Success Url"},"cancel_url":{"type":"string","maxLength":2048,"minLength":1,"title":"Cancel Url"},"pi":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Pi"}},"type":"object","required":["org","offer","provider","idempotency_key","initiated_by_user_id","success_url","cancel_url"],"title":"PurchaseIn"},"ReasonIn":{"properties":{"reason":{"type":"string","maxLength":500,"title":"Reason","default":""}},"type":"object","title":"ReasonIn"},"RefundIn":{"properties":{"amount":{"type":"integer","exclusiveMinimum":0.0,"title":"Amount"},"reason":{"type":"string","maxLength":500,"minLength":1,"title":"Reason"}},"type":"object","required":["amount","reason"],"title":"RefundIn"},"RegisterIn":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","maxLength":256,"minLength":1,"title":"Password"},"first_name":{"type":"string","maxLength":100,"minLength":1,"title":"First Name"},"last_name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Last Name"},"country":{"anyOf":[{"type":"string","maxLength":2,"minLength":2},{"type":"null"}],"title":"Country"},"locale":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Locale"},"turnstile_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Turnstile Token"},"return_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Return To"}},"type":"object","required":["email","password","first_name"],"title":"RegisterIn"},"ReservationIn":{"properties":{"org":{"type":"string","maxLength":36,"minLength":1,"title":"Org"},"amount":{"type":"integer","exclusiveMinimum":0.0,"title":"Amount"},"idempotency_key":{"type":"string","maxLength":128,"minLength":1,"title":"Idempotency Key"},"ref":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Ref"},"ttl_seconds":{"type":"integer","maximum":86400.0,"minimum":1.0,"title":"Ttl Seconds","default":1800}},"type":"object","required":["org","amount","idempotency_key"],"title":"ReservationIn"},"SeenIn":{"properties":{"user_id":{"type":"string","maxLength":36,"minLength":1,"title":"User Id"}},"type":"object","required":["user_id"],"title":"SeenIn"},"SettleIn":{"properties":{"amount":{"type":"integer","minimum":0.0,"title":"Amount"}},"type":"object","required":["amount"],"title":"SettleIn"},"StaffIn":{"properties":{"email":{"type":"string","maxLength":255,"minLength":3,"title":"Email"},"role":{"type":"string","pattern":"^(support|admin|owner)$","title":"Role"},"product":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product"}},"type":"object","required":["email","role"],"title":"StaffIn"},"UnlockIn":{"properties":{"ip":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Ip"},"email":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Email"}},"type":"object","title":"UnlockIn"},"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"},"VerifyMemberIn":{"properties":{"user_id":{"type":"string","maxLength":36,"minLength":1,"title":"User Id"}},"type":"object","required":["user_id"],"title":"VerifyMemberIn"},"backend__admin__api_billing__MemberIn":{"properties":{"email":{"type":"string","maxLength":255,"minLength":3,"title":"Email"},"role":{"type":"string","pattern":"^(owner|admin|member)$","title":"Role","default":"member"}},"type":"object","required":["email"],"title":"MemberIn"},"backend__billing__api__v1__OrgIn":{"properties":{"org":{"type":"string","maxLength":36,"minLength":1,"title":"Org"}},"type":"object","required":["org"],"title":"OrgIn"},"backend__identity__api__auth__TokenIn":{"properties":{"token":{"type":"string","maxLength":256,"minLength":1,"title":"Token"}},"type":"object","required":["token"],"title":"TokenIn"},"backend__identity__api__me__MemberIn":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"role":{"type":"string","pattern":"^(owner|admin|member)$","title":"Role"}},"type":"object","required":["email","role"],"title":"MemberIn"},"backend__identity__api__me__OrgIn":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"}},"type":"object","required":["name"],"title":"OrgIn"},"backend__identity__api__me__TokenIn":{"properties":{"product":{"type":"string","maxLength":32,"minLength":1,"title":"Product"},"label":{"type":"string","maxLength":255,"minLength":1,"title":"Label"},"scopes":{"items":{"type":"string"},"type":"array","maxItems":32,"minItems":1,"title":"Scopes"}},"type":"object","required":["product","label","scopes"],"title":"TokenIn"}}}}