{"openapi":"3.1.0","info":{"title":"Super Intelligence Dog — Gateway","description":"OpenAI-compatible multi-provider proxy with task-aware routing, credits, BYOK, and metering.","version":"0.2.0"},"paths":{"/v1/catalog":{"get":{"summary":"Public Catalog Endpoint","description":"Public product catalog: plans, SLAs, and pricing — read from the code\nthat enforces them, so nothing here is aspirational.","operationId":"public_catalog_endpoint_v1_catalog_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Public Catalog Endpoint V1 Catalog Get"}}}}}}},"/v1/receipts":{"get":{"summary":"Public Receipts Feed","description":"BC-143: the public, read-only verified-receipts feed.\n\nCompleted verified-fix runs projected to the claim-bearing fields only:\ntask class, model route, BellerBuild re-scan verdict + artifact hash join,\nthe settled cost, and the saving line repriced at closed-lab frontier list\nrates (omitted when the run had no priced route). No source code and no\nuser identifiers cross this boundary. Evidence of what already ran — never\na vendor benchmark, never live customer traffic.","operationId":"public_receipts_feed_v1_receipts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Public Receipts Feed V1 Receipts Get"}}}}}}},"/v1/templates":{"get":{"summary":"Templates Endpoint","description":"BC-142: the vibe-coder starter library. A curated subset of the\nplatform's REAL first-party store apps (apps/<slug>/), exposed as read-only\nscaffolds so a new project starts from a working app, not a blank page.\n\nFiles are the shipped apps' own bytes, pinned by tests to apps/<slug>/;\nthis endpoint lists, prices, checks out, and deploys nothing.","operationId":"templates_endpoint_v1_templates_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Templates Endpoint V1 Templates Get"}}}}}}},"/v1/templates/{slug}":{"get":{"summary":"Template Detail Endpoint","description":"One starter template's metadata + real files, in the frozen\n<sid-preview> shape {entry, files: [{path, content}]}.","operationId":"template_detail_endpoint_v1_templates__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Template Detail Endpoint V1 Templates  Slug  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/signup":{"post":{"summary":"Signup","description":"Start a self-serve account. Grants nothing until the address is proven.\n\n- no email: an unlinked BYOK key is minted immediately, with no credit and\n  no BC binding (the unlinked path keeps working for bring-your-own-key\n  users, who do not need our credits at all);\n- email: a single-use confirmation link is emailed and the response says\n  verification is required. The key, the free credit and the BC binding are\n  created only at POST /signup/verify after possession is proven.\n\nRate-limited per client IP. Disabled (403) only when the bounded trial is\noff AND SID_SIGNUP_GRANT_USD is 0, so a deploy cannot hand out credits by\naccident once an operator has turned both paths off.","operationId":"signup_signup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignupRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/signup/verify":{"post":{"summary":"Signup Verify","description":"Burn the emailed proof, then create the key, credit and BC binding.","operationId":"signup_verify_signup_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignupVerifyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/login":{"post":{"summary":"Login","description":"Sign in and issue the signed httpOnly session cookie.\n\nRate-limited per client IP (the signup limiter pattern). A bad credential\nis an honest 401; no error oracle (unknown/revoked/expired are alike).","operationId":"login_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/logout":{"post":{"summary":"Logout","description":"Clear the session cookie.","operationId":"logout_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/session":{"get":{"summary":"Session State","description":"The signed-in state the shared chrome reads. Never errors: signed-out is\na truthful {signed_in: false}, not a 401.","operationId":"session_state_session_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionResponse"}}}}}}},"/auth/magic/request":{"post":{"summary":"Magic Link Request","description":"Email a sign-in link. Same response whether an account exists or not.","operationId":"magic_link_request_auth_magic_request_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MagicLinkRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MagicLinkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/recovery":{"post":{"summary":"Recovery Request","description":"Account recovery: the same proof-of-address path, marked for audit.","operationId":"recovery_request_auth_recovery_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MagicLinkRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MagicLinkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/magic/verify":{"post":{"summary":"Magic Link Verify","description":"Burn the link, prove the address, then mint the normal session cookie.","operationId":"magic_link_verify_auth_magic_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MagicLinkVerifyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MagicLinkVerifyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/entitlement":{"post":{"summary":"Internal Entitlement","description":"BC-99 paid-to-key join: the one seam through which a REAL SID purchase\nlights up the buyer's key.\n\nBC's webhook/poller calls this after its own grant lands (BC holds the\nauthoritative entitlement record under bc_mor). Auth is the shared\ninternal token (SID_INTERNAL_TOKEN — also set on the BC api compose);\nunset refuses everything, fail-closed. Find-or-provision the key bound\nto the BC user, grant the tier's included credit exactly once per\nperiod, and return the plaintext key ONLY on first provisioning so the\nbuyer's confirmation email can deliver it exactly once.","operationId":"internal_entitlement_internal_entitlement_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalEntitlementRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalEntitlementResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/account-status":{"get":{"summary":"Internal Account Status","description":"SUB-73: the SID state behind a BC account, read server-to-server.\n\nBC's one account home (dashboard.html) reads this over the SAME shared\nsecret as /internal/entitlement (BC-99 join contract reused, never forked)\nto show the member's SID plan and verified-fixes meter beside their store\nand build status. Read-only and honest: an account with no bound key yet\ngets linked=false — this endpoint never provisions (unlike the paid join).","operationId":"internal_account_status_internal_account_status_get","parameters":[{"name":"bc_user_id","in":"query","required":true,"schema":{"type":"string","title":"Bc User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Internal Account Status Internal Account Status Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/revoke":{"post":{"summary":"Internal Revoke","description":"BC-authoritative deactivation (SID lifecycle completion).\n\nThe cancel/refund webhooks only touched the BC entitlement row, so a\ncanceled buyer's SID key kept its paid fix ceiling, model ceiling and\nstable routing forever — paid capability with no paying subscription.\nThis seam lets BC end it: the bound key is deactivated (is_active=0),\nwhich also kills its session cookies (auth resolves sessions through\nactive keys). Idempotent: revoking an unbound or already-dead binding is\nan honest no-op, never an error. A resubscribe provisions a fresh key\nthrough /internal/entitlement (ensure_bc_key re-binds on a dead key).","operationId":"internal_revoke_internal_revoke_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalRevokeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Internal Revoke Internal Revoke Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/agents/runs/{run_id}":{"get":{"summary":"Internal Agent Run","description":"BC-120 listing-receipt binding: BC fetches a completed run's receipt\nover the shared internal token, validates it (verified + hash-joined +\nnot stale), and binds it as a listing version beside the scan.\n\nSame credential seam as /internal/entitlement (SID_INTERNAL_TOKEN, also\nset on the BC api compose); unset refuses everything, fail-closed. The\nreceipt is exactly what GET /v1/agents/runs/{run_id} serves a key holder\n— including the per-GET staleness marker — minus nothing: BC binds only\nreceipts that pass its own validation.","operationId":"internal_agent_run_internal_agents_runs__run_id__get","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Internal Agent Run Internal Agents Runs  Run Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health":{"get":{"summary":"Health","description":"Liveness: the process is up. Records an SLA probe (self-check).","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Health Health Get"}}}}}}},"/ready":{"get":{"summary":"Ready","description":"Readiness: dependencies are usable (DB reachable, models loaded).","operationId":"ready_ready_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Ready Ready Get"}}}}}}},"/admin/metrics":{"get":{"summary":"Admin Metrics","operationId":"admin_metrics_admin_metrics_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Metrics Admin Metrics Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/alerts":{"get":{"summary":"Admin Alerts","description":"Firing alerts over live metrics. Empty list = healthy.","operationId":"admin_alerts_admin_alerts_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Alerts Admin Alerts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/sla":{"get":{"summary":"Admin Sla","operationId":"admin_sla_admin_sla_get","parameters":[{"name":"window_hours","in":"query","required":false,"schema":{"type":"integer","default":24,"title":"Window Hours"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Sla Admin Sla Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/sla/credit-back":{"post":{"summary":"Admin Sla Credit Back","description":"Credit affected plan keys back for a measured SLA breach. Idempotent per\nwindow (a cron re-run credits exactly once). Disabled unless\nSID_SLA_CREDIT_BACK is on.","operationId":"admin_sla_credit_back_admin_sla_credit_back_post","parameters":[{"name":"window_hours","in":"query","required":false,"schema":{"type":"integer","default":24,"title":"Window Hours"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Sla Credit Back Admin Sla Credit Back Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/holdbacks":{"get":{"summary":"Admin Holdbacks","description":"Models currently held out of stable routing (deprecations, changes).","operationId":"admin_holdbacks_admin_holdbacks_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Holdbacks Admin Holdbacks Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/deprecation-feed/apply":{"post":{"summary":"Admin Apply Deprecation Feed","description":"(Re)apply the configured deprecation feed to holdbacks. Idempotent.","operationId":"admin_apply_deprecation_feed_admin_deprecation_feed_apply_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Apply Deprecation Feed Admin Deprecation Feed Apply Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/deprecation-feed/refresh":{"post":{"summary":"Admin Refresh Deprecation Feed","description":"Fetch the configured LIVE deprecation feed now (SUB-44). 409 when no\nSID_DEPRECATION_FEED_URL is configured; a failed fetch is a 502 that\nleaves holdbacks untouched.","operationId":"admin_refresh_deprecation_feed_admin_deprecation_feed_refresh_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Refresh Deprecation Feed Admin Deprecation Feed Refresh Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/holdbacks/{model_id}":{"post":{"summary":"Admin Hold Model","operationId":"admin_hold_model_admin_holdbacks__model_id__post","parameters":[{"name":"model_id","in":"path","required":true,"schema":{"type":"string","title":"Model Id"}},{"name":"reason","in":"query","required":false,"schema":{"type":"string","default":"operator","title":"Reason"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Hold Model Admin Holdbacks  Model Id  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Admin Release Model","operationId":"admin_release_model_admin_holdbacks__model_id__delete","parameters":[{"name":"model_id","in":"path","required":true,"schema":{"type":"string","title":"Model Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Release Model Admin Holdbacks  Model Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/telemetry":{"get":{"summary":"Admin Telemetry","description":"Live per-model latency/success observed by the router, plus the BC-107\napp/agent attribution breakdown (as sent — absent stays '(absent)').","operationId":"admin_telemetry_admin_telemetry_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Telemetry Admin Telemetry Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/models":{"get":{"summary":"List Models","operationId":"list_models_v1_models_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelListResponse"}}}}}}},"/v1/me":{"get":{"summary":"Me","operationId":"me_v1_me_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/route":{"post":{"summary":"Route Preview","description":"Dry-run the router: show the ranked candidates and the explanation\nwithout calling a provider.","operationId":"route_preview_v1_route_post","parameters":[{"name":"X-Provider-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Provider-Key"}},{"name":"X-Routing-Profile","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Routing-Profile"}},{"name":"X-Min-Quality","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Min-Quality"}},{"name":"X-Max-Cost-USD","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Max-Cost-Usd"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RouteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RouteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/chat/completions":{"post":{"summary":"Chat Completions","operationId":"chat_completions_v1_chat_completions_post","parameters":[{"name":"X-Provider-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Provider-Key"}},{"name":"X-Routing-Profile","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Routing-Profile"}},{"name":"X-Min-Quality","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Min-Quality"}},{"name":"X-Max-Cost-USD","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Max-Cost-Usd"}},{"name":"X-Prefer-Owned","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Prefer-Owned"}},{"name":"X-Routing-Stability","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Routing-Stability"}},{"name":"HTTP-Referer","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Http-Referer"}},{"name":"Referer","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Referer"}},{"name":"X-Title","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Title"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatCompletionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/completions/status":{"get":{"summary":"Completions Status","description":"Can this key get inline completions right now, and with what?\n\nA cheap, honest probe for the Studio's off state: the same code-floor,\nplan-ceiling, BYOK and resale gates as the POST path. It never calls a\nprovider and never claims availability that would be refused.","operationId":"completions_status_v1_completions_status_get","parameters":[{"name":"X-Provider-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Provider-Key"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/completions":{"post":{"summary":"Completions Route","description":"OpenAI-compatible FIM completion for the Studio editor.\n\nSame admission gates as /v1/chat/completions (chat scope, wallet, plan\nquota, rate limit), the same router (forced to a code task so the code\nquality floor applies), the same plan ceiling / BYOK rules, and the same\nledger (settled once per request with scope=completions). The only new\ncontract is shape and time: a prefix/suffix in, one bounded continuation\nout, inside a hard latency budget.","operationId":"completions_route_v1_completions_post","parameters":[{"name":"X-Provider-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Provider-Key"}},{"name":"X-Routing-Profile","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Routing-Profile"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FimCompletionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/messages":{"post":{"summary":"Anthropic Messages","description":"Anthropic Messages API: the POST /v1/messages endpoint Claude Code\npoints ANTHROPIC_BASE_URL at (ANTHROPIC_AUTH_TOKEN carries the sk-sid-\nkey as the Bearer value). Pure translation onto the chat-completions\npath — same key auth, same wallet/quota/rate-limit checks, same router,\nsame billing. A model id outside the catalog routes as \"auto\" and the\nresponse names what actually ran; closed Claude models keep their BYOK\nrule (X-Provider-Key, which Claude Code sends via ANTHROPIC_CUSTOM_HEADERS).","operationId":"anthropic_messages_v1_messages_post","parameters":[{"name":"X-Provider-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Provider-Key"}},{"name":"X-Routing-Profile","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Routing-Profile"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/responses":{"post":{"summary":"Responses Surface","description":"OpenAI Responses API: the POST /v1/responses endpoint a Codex CLI\ncustom provider (wire_api = \"responses\") POSTs to. Pure translation onto\nthe chat-completions path — same key auth, same wallet/quota/rate-limit\nchecks, same router, same billing. Unknown model ids route as \"auto\" and\nthe response names what actually ran; hosted/namespace tool types are\ndropped and counted (never forwarded as garbage); BYOK rules and plan\nceilings are unchanged.","operationId":"responses_surface_v1_responses_post","parameters":[{"name":"X-Provider-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Provider-Key"}},{"name":"X-Routing-Profile","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Routing-Profile"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/embeddings":{"post":{"summary":"Embeddings Route","description":"OpenAI-compatible embeddings resale: same policy stack as chat —\nBYOK-only for closed providers, the plan model ceiling, wallet check, and\nmetering (input tokens at the card's input rate, settled once with\nscope=embeddings). A provider that omits usage gets an estimate flagged\nusage_estimated in the ledger meta, never a silent number.","operationId":"embeddings_route_v1_embeddings_post","parameters":[{"name":"X-Provider-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Provider-Key"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmbeddingsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Embeddings Route V1 Embeddings Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/keys":{"get":{"summary":"List Own Keys","description":"BC-124 (a, d): the caller's own keys with balances, caps, stored-BYOK\nstate, and the plan snapshot (plan, included credit, overage block,\ncheckout live state). The WHERE clause is the authenticated key id —\nanother key's row is unreachable by construction.","operationId":"list_own_keys_v1_keys_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeysResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/keys/{key_id}/rotate":{"post":{"summary":"Rotate Own Key","description":"BC-124 (a): rotate a leaked key. A fresh secret is issued for the same\nkey id — balance, plan, scopes, and the stored BYOK key survive; the old\nplaintext stops working immediately. The new secret is shown once.","operationId":"rotate_own_key_v1_keys__key_id__rotate_post","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"integer","title":"Key Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RotateKeyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/keys/{key_id}/revoke":{"post":{"summary":"Revoke Own Key","description":"BC-124 (a): revoke the caller's own key. This is immediate and\npermanent for the caller's credential — every later request with it 401s.","operationId":"revoke_own_key_v1_keys__key_id__revoke_post","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"integer","title":"Key Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Revoke Own Key V1 Keys  Key Id  Revoke Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/keys/{key_id}/cap":{"post":{"summary":"Set Own Spend Cap","description":"BC-124 (b): set (or clear with 0) the caller's own spend cap. Enforcement\nis the existing _check_wallet gate — spend past the cap 402s.","operationId":"set_own_spend_cap_v1_keys__key_id__cap_post","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"integer","title":"Key Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetCapRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Own Spend Cap V1 Keys  Key Id  Cap Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/keys/{key_id}/provider-key":{"post":{"summary":"Store Own Provider Key","description":"BC-124 (c): store the caller's own BYOK provider key once, encrypted at\nrest (crypto.py). Later completions use it WITHOUT the X-Provider-Key\nheader; an explicit header still wins. The plaintext is never returned,\nnever logged — only the last four characters come back.","operationId":"store_own_provider_key_v1_keys__key_id__provider_key_post","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"integer","title":"Key Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderKeyStoreRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderKeyStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Own Provider Key Status","description":"Whether the caller's own key has a stored BYOK provider key (hint only\n— the plaintext is never served back).","operationId":"own_provider_key_status_v1_keys__key_id__provider_key_get","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"integer","title":"Key Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderKeyStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Clear Own Provider Key","description":"Forget the caller's own stored BYOK provider key.","operationId":"clear_own_provider_key_v1_keys__key_id__provider_key_delete","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"integer","title":"Key Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderKeyStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/keys":{"post":{"summary":"Admin Create Key","operationId":"admin_create_key_admin_keys_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateKeyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateKeyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Admin List Keys","description":"BC-127: the console's key list — id, name, plan, balance, spend cap,\nstatus. Bounded read (LIMIT).","operationId":"admin_list_keys_admin_keys_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":500,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Admin List Keys Admin Keys Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/keys/{key_id}/rotate":{"post":{"summary":"Admin Rotate Key","operationId":"admin_rotate_key_admin_keys__key_id__rotate_post","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"integer","title":"Key Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Rotate Key Admin Keys  Key Id  Rotate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/keys/{key_id}/revoke":{"post":{"summary":"Admin Revoke Key","operationId":"admin_revoke_key_admin_keys__key_id__revoke_post","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"integer","title":"Key Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Revoke Key Admin Keys  Key Id  Revoke Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/keys/{key_id}/scopes":{"post":{"summary":"Admin Set Scopes","operationId":"admin_set_scopes_admin_keys__key_id__scopes_post","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"integer","title":"Key Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetScopesRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Set Scopes Admin Keys  Key Id  Scopes Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/keys/{key_id}/credits":{"post":{"summary":"Admin Grant Credits","operationId":"admin_grant_credits_admin_keys__key_id__credits_post","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"integer","title":"Key Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrantCreditsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BalanceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/keys/{key_id}/cap":{"post":{"summary":"Admin Set Cap","operationId":"admin_set_cap_admin_keys__key_id__cap_post","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"integer","title":"Key Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetCapRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BalanceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/keys/{key_id}/spend-alert":{"post":{"summary":"Admin Set Spend Alert","description":"Set (or clear with <= 0) the key's spend-alert threshold. Crossings POST\nto SID_SPEND_WEBHOOK_URL exactly once per threshold.","operationId":"admin_set_spend_alert_admin_keys__key_id__spend_alert_post","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"integer","title":"Key Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpendAlertRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Set Spend Alert Admin Keys  Key Id  Spend Alert Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Admin Get Spend Alert","operationId":"admin_get_spend_alert_admin_keys__key_id__spend_alert_get","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"integer","title":"Key Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Get Spend Alert Admin Keys  Key Id  Spend Alert Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/keys/{key_id}/balance":{"get":{"summary":"Admin Balance","operationId":"admin_balance_admin_keys__key_id__balance_get","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"integer","title":"Key Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BalanceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ledger/invariant":{"get":{"summary":"Admin Ledger Invariant","description":"Money-exactness gate: wallet balances must equal the ledger sum.","operationId":"admin_ledger_invariant_admin_ledger_invariant_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Ledger Invariant Admin Ledger Invariant Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/providers/health":{"get":{"summary":"Admin Provider Health","operationId":"admin_provider_health_admin_providers_health_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Admin Provider Health Admin Providers Health Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/feedback":{"post":{"summary":"Submit Feedback","operationId":"submit_feedback_v1_feedback_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/eval":{"get":{"summary":"Admin Eval","operationId":"admin_eval_admin_eval_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":200,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Eval Admin Eval Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects":{"post":{"summary":"Create Project","operationId":"create_project_v1_projects_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Projects","operationId":"list_projects_v1_projects_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Projects V1 Projects Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/conversations":{"post":{"summary":"Create Conversation","operationId":"create_conversation_v1_conversations_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Conversations","operationId":"list_conversations_v1_conversations_get","parameters":[{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Conversations V1 Conversations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/conversations/{conversation_id}":{"get":{"summary":"Get Conversation","operationId":"get_conversation_v1_conversations__conversation_id__get","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"integer","title":"Conversation Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/conversations/{conversation_id}/messages":{"post":{"summary":"Append Message","operationId":"append_message_v1_conversations__conversation_id__messages_post","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"integer","title":"Conversation Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageAppend"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Append Message V1 Conversations  Conversation Id  Messages Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/conversations/{conversation_id}/chat":{"post":{"summary":"Conversation Chat","operationId":"conversation_chat_v1_conversations__conversation_id__chat_post","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"integer","title":"Conversation Id"}},{"name":"X-Provider-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Provider-Key"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatMessageCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/chat/tools":{"get":{"summary":"Chat Tools Status","description":"BC-151: what the chat tool surface can actually do on this deployment.\n\nThe UI reads this to label the affordances honestly — a web-search toggle\nthat is off (no provider/credential) is shown as unavailable with the\nreason, instead of implying the chat can retrieve live information.\nAvailability is server-side truth, never a client guess.","operationId":"chat_tools_status_v1_chat_tools_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Chat Tools Status V1 Chat Tools Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/memory":{"post":{"summary":"Add Memory","operationId":"add_memory_v1_memory_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemoryCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Add Memory V1 Memory Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Memory","operationId":"list_memory_v1_memory_get","parameters":[{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Memory V1 Memory Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/memory/{memory_id}":{"delete":{"summary":"Delete Memory","operationId":"delete_memory_v1_memory__memory_id__delete","parameters":[{"name":"memory_id","in":"path","required":true,"schema":{"type":"integer","title":"Memory Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Memory V1 Memory  Memory Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/documents":{"post":{"summary":"Add Document","operationId":"add_document_v1_documents_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Add Document V1 Documents Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Documents","operationId":"list_documents_v1_documents_get","parameters":[{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Documents V1 Documents Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/documents/{document_id}":{"delete":{"summary":"Delete Document","operationId":"delete_document_v1_documents__document_id__delete","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"integer","title":"Document Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Document V1 Documents  Document Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/experts":{"post":{"summary":"Create Expert Endpoint","operationId":"create_expert_endpoint_v1_experts_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpertCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpertOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Experts Endpoint","operationId":"list_experts_endpoint_v1_experts_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ExpertOut"},"title":"Response List Experts Endpoint V1 Experts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/experts/{expert_id}":{"delete":{"summary":"Delete Expert Endpoint","operationId":"delete_expert_endpoint_v1_experts__expert_id__delete","parameters":[{"name":"expert_id","in":"path","required":true,"schema":{"type":"integer","title":"Expert Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Expert Endpoint V1 Experts  Expert Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agents":{"post":{"summary":"Create Agent Endpoint","operationId":"create_agent_endpoint_v1_agents_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Agents Endpoint","operationId":"list_agents_endpoint_v1_agents_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AgentOut"},"title":"Response List Agents Endpoint V1 Agents Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agents/{agent_id}":{"get":{"summary":"Get Agent Endpoint","operationId":"get_agent_endpoint_v1_agents__agent_id__get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"summary":"Update Agent Endpoint","operationId":"update_agent_endpoint_v1_agents__agent_id__patch","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Agent Endpoint","operationId":"delete_agent_endpoint_v1_agents__agent_id__delete","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Agent Endpoint V1 Agents  Agent Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/verify/patch":{"post":{"summary":"Verify Patch Endpoint","description":"Review a proposed diff with an independent model. Does NOT run code.","operationId":"verify_patch_endpoint_v1_verify_patch_post","parameters":[{"name":"X-Provider-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Provider-Key"}},{"name":"X-Routing-Profile","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Routing-Profile"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchVerifyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/sandbox":{"get":{"summary":"Sandbox Status","description":"Report the configured execution backend. `isolated: false` means no\nuntrusted-code guarantee is active.","operationId":"sandbox_status_v1_sandbox_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Sandbox Status V1 Sandbox Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/sandbox/exec":{"post":{"summary":"Sandbox Exec","description":"Run a command in the configured sandbox. Master-key only.\n\nRefuses (BLOCKED) when no sandbox is configured — it never executes on the\nhost as a fallback. `isolated` in the response states whether a real\nisolation boundary was in effect.","operationId":"sandbox_exec_admin_sandbox_exec_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SandboxExecRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Sandbox Exec Admin Sandbox Exec Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agents/criteria":{"post":{"summary":"Agents Criteria","description":"Propose acceptance criteria and tests before an agent edits a project.\n\nThe proposal is durably recorded but is not executable until this same API\nkey approves it at /v1/agents/plans/{plan_id}/approve. Only file paths—not\nsource contents—are sent to the planning model. The run phase receives the\nactual workspace and verifies that it matches the proposal snapshot.","operationId":"agents_criteria_v1_agents_criteria_post","parameters":[{"name":"X-Provider-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Provider-Key"}},{"name":"X-Routing-Profile","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Routing-Profile"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentCriteriaRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agents/plans/{plan_id}/approve":{"post":{"summary":"Agents Criteria Approve","description":"Record explicit human approval before the criteria may gate an agent run.","operationId":"agents_criteria_approve_v1_agents_plans__plan_id__approve_post","parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentCriteriaApprovalRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Agents Criteria Approve V1 Agents Plans  Plan Id  Approve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agents/run":{"post":{"summary":"Agents Run","description":"Verification-first agent run: verify a diff with an independent model,\nrun the repo's tests through the sandbox, and security-scan via BellerBuild.\n\nApproved native runs use SID's bounded first-party tool loop; approved\nOpenHands runs remain available through the pinned SDK in the sandbox.\nBoth feed the same independent verifier and tested-artifact scan join.\n\nFail-closed: no sandbox -> BLOCKED (never the host); scanner unreachable ->\nthe scan step refuses. Nothing here executes on the SID host.","operationId":"agents_run_v1_agents_run_post","parameters":[{"name":"X-Provider-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Provider-Key"}},{"name":"X-Routing-Profile","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Routing-Profile"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRunRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agents/runs/{run_id}":{"get":{"summary":"Agents Run Status","operationId":"agents_run_status_v1_agents_runs__run_id__get","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Agents Run Status V1 Agents Runs  Run Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/integrations/github/connect":{"post":{"summary":"Github Connect","description":"Session A: begin the per-user GitHub App install.\n\nReturns the GitHub install URL carrying a signed, short-lived state bound\nto this key id. No token is created here; the App private key stays in the\ndeployment secret store.","operationId":"github_connect_v1_integrations_github_connect_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Github Connect V1 Integrations Github Connect Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/integrations/github/callback":{"get":{"summary":"Github Callback","description":"Session A: bind an installation to the SID owner that started the flow.\n\nThe signed state is the ownership proof; a missing/bad/expired state is a\n400 with no error oracle. A GitHub ``deleted``/``removed`` action revokes\nthe binding instead. The response never carries a token.","operationId":"github_callback_v1_integrations_github_callback_get","parameters":[{"name":"installation_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Installation Id"}},{"name":"setup_action","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Setup Action"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Github Callback V1 Integrations Github Callback Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/integrations/github":{"get":{"summary":"Github Binding","description":"Session A: report the bound installation and account — never a token.","operationId":"github_binding_v1_integrations_github_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Github Binding V1 Integrations Github Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agents/runs/{run_id}/open-pr":{"post":{"summary":"Github Open Pr","description":"Session B: turn one verified run into a branch + PR with the receipt.\n\nFail closed on every boundary: owner-only via the run receipt (a foreign\nrun reads 404), no installation 409, a revoked installation 401, an\nunverified run 409, an empty diff 409, and a repo outside the installation\n403. The installation token is minted on demand, used only inside the\nGitHub call, and never returned, logged, or stored.","operationId":"github_open_pr_v1_agents_runs__run_id__open_pr_post","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenPrRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Github Open Pr V1 Agents Runs  Run Id  Open Pr Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/build/verification":{"get":{"summary":"Build Verification","description":"BC-141: read-only BellerBuild verification for the workspace panel.\n\nShows the current project's BB scan verdict, security/realness scores,\nfindings, Beller Store listing state, and the latest LQ-597 verified-fix\noutcome — sourced from BC's stored verified-scan data. Read-only: SID is\nnever the BB control plane. Unconfigured or unreachable upstream returns an\nhonest ``{available: false, reason}`` — never a fabricated pass.","operationId":"build_verification_v1_build_verification_get","parameters":[{"name":"project_id","in":"query","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Build Verification V1 Build Verification Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/preview/{run_id}":{"get":{"summary":"Preview Run","description":"SUB-72: the run's retained post-run artifact tree, in the frozen\n<sid-preview> shape {\"entry\", \"files\": [{\"path\", \"content\"}]} (SUB-60).\n\nOwnership is enforced exactly like the receipt: a run the caller does not\nown reads back 404. A run with nothing retained — or nothing renderable —\nis 404 too: an empty render is never presented as an artifact. Read-only;\nthere is no publish path here.","operationId":"preview_run_v1_preview__run_id__get","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Preview Run V1 Preview  Run Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/marketplace/listings":{"post":{"summary":"Publish Listing","operationId":"publish_listing_v1_marketplace_listings_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListingCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Publish Listing V1 Marketplace Listings Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Browse Listings","operationId":"browse_listings_v1_marketplace_listings_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Browse Listings V1 Marketplace Listings Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/marketplace/listings/{listing_id}/install":{"post":{"summary":"Install Listing","operationId":"install_listing_v1_marketplace_listings__listing_id__install_post","parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"integer","title":"Listing Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Install Listing V1 Marketplace Listings  Listing Id  Install Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/marketplace/payouts":{"get":{"summary":"My Payouts","operationId":"my_payouts_v1_marketplace_payouts_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response My Payouts V1 Marketplace Payouts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/orgs":{"post":{"summary":"Create Org","operationId":"create_org_v1_orgs_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Org V1 Orgs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Orgs","operationId":"list_orgs_v1_orgs_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Orgs V1 Orgs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/orgs/{org_id}":{"get":{"summary":"Get Org","operationId":"get_org_v1_orgs__org_id__get","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"integer","title":"Org Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Org V1 Orgs  Org Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/orgs/{org_id}/members":{"post":{"summary":"Add Member","operationId":"add_member_v1_orgs__org_id__members_post","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"integer","title":"Org Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemberAdd"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Add Member V1 Orgs  Org Id  Members Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/orgs/{org_id}/members/{member_key_id}":{"delete":{"summary":"Remove Member","operationId":"remove_member_v1_orgs__org_id__members__member_key_id__delete","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"integer","title":"Org Id"}},{"name":"member_key_id","in":"path","required":true,"schema":{"type":"integer","title":"Member Key Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Remove Member V1 Orgs  Org Id  Members  Member Key Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/orgs/{org_id}/seats":{"post":{"summary":"Set Seats","operationId":"set_seats_v1_orgs__org_id__seats_post","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"integer","title":"Org Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeatsSet"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Seats V1 Orgs  Org Id  Seats Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/orgs/{org_id}/usage":{"get":{"summary":"Org Usage","operationId":"org_usage_v1_orgs__org_id__usage_get","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"integer","title":"Org Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Org Usage V1 Orgs  Org Id  Usage Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/sso/config":{"get":{"summary":"Sso Config","operationId":"sso_config_v1_sso_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Sso Config V1 Sso Config Get"}}}}}}},"/v1/sso/authorize":{"get":{"summary":"Sso Authorize","operationId":"sso_authorize_v1_sso_authorize_get","parameters":[{"name":"redirect_uri","in":"query","required":true,"schema":{"type":"string","title":"Redirect Uri"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Sso Authorize V1 Sso Authorize Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/sso/callback":{"post":{"summary":"Sso Callback","operationId":"sso_callback_v1_sso_callback_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SSOCallbackRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Sso Callback V1 Sso Callback Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/specialize/jobs":{"post":{"summary":"Create Job","operationId":"create_job_v1_specialize_jobs_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Job V1 Specialize Jobs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Jobs","operationId":"list_jobs_v1_specialize_jobs_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Jobs V1 Specialize Jobs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/specialize/jobs/{job_id}":{"get":{"summary":"Get Job","operationId":"get_job_v1_specialize_jobs__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"integer","title":"Job Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Job V1 Specialize Jobs  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/specialize/jobs/{job_id}/data":{"post":{"summary":"Job Data","operationId":"job_data_v1_specialize_jobs__job_id__data_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"integer","title":"Job Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataReadyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Job Data V1 Specialize Jobs  Job Id  Data Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/specialize/jobs/{job_id}/train":{"post":{"summary":"Job Train","operationId":"job_train_v1_specialize_jobs__job_id__train_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"integer","title":"Job Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Job Train V1 Specialize Jobs  Job Id  Train Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/specialize/jobs/{job_id}/eval":{"post":{"summary":"Job Eval","description":"Record a caller-supplied eval score. This does NOT satisfy the\nregistration gate (measured=False); it exists for recording only. Use\nPOST .../evaluate to produce a measured score the gate accepts.","operationId":"job_eval_v1_specialize_jobs__job_id__eval_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"integer","title":"Job Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvalRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Job Eval V1 Specialize Jobs  Job Id  Eval Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/specialize/jobs/{job_id}/evaluate":{"post":{"summary":"Job Evaluate","description":"Measure the job's candidate model against its specialization corpus\n(SUB-27 step 2) and record a *measured* score that the registration gate\naccepts. Every corpus call is routed and metered through SID (BYOK-policy\ncompliant) using the job's base_model when set, else auto.","operationId":"job_evaluate_v1_specialize_jobs__job_id__evaluate_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"integer","title":"Job Id"}},{"name":"X-Provider-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Provider-Key"}},{"name":"X-Routing-Profile","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Routing-Profile"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Job Evaluate V1 Specialize Jobs  Job Id  Evaluate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/specialize/jobs/{job_id}/register":{"post":{"summary":"Job Register","operationId":"job_register_v1_specialize_jobs__job_id__register_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"integer","title":"Job Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterModelRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Job Register V1 Specialize Jobs  Job Id  Register Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/models/owned":{"get":{"summary":"Owned Models","operationId":"owned_models_v1_models_owned_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response Owned Models V1 Models Owned Get"}}}}}}},"/admin/providers/{provider}/terms":{"post":{"summary":"Set Provider Terms","operationId":"set_provider_terms_admin_providers__provider__terms_post","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TermsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Provider Terms Admin Providers  Provider  Terms Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Get Provider Terms","operationId":"get_provider_terms_admin_providers__provider__terms_get","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Provider Terms Admin Providers  Provider  Terms Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/providers/{provider}/arbitrage":{"get":{"summary":"Provider Arbitrage","operationId":"provider_arbitrage_admin_providers__provider__arbitrage_get","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Provider Arbitrage Admin Providers  Provider  Arbitrage Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/plans/{key_id}":{"post":{"summary":"Assign Plan","operationId":"assign_plan_admin_plans__key_id__post","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"integer","title":"Key Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanAssignRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Assign Plan Admin Plans  Key Id  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/plan":{"get":{"summary":"My Plan","operationId":"my_plan_v1_plan_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response My Plan V1 Plan Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/subscription":{"get":{"summary":"My Subscription","description":"The caller's subscription state: plan, price, included credit, overage,\nand whether a real paid checkout is live yet.","operationId":"my_subscription_v1_subscription_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response My Subscription V1 Subscription Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/subscription/checkout":{"post":{"summary":"Subscription Checkout","description":"Start a paid subscription checkout.\n\nbc_mor (BC merchant of record): delegates to the BC-hosted SID checkout.\nUntil that URL is configured this is dark and returns the exact dependency\ninstead of a broken flow.","operationId":"subscription_checkout_v1_subscription_checkout_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Subscription Checkout V1 Subscription Checkout Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/plans/{key_id}/grant-allowance":{"post":{"summary":"Admin Grant Allowance","description":"Grant a subscriber's included per-period credit (idempotent). The\nbilling webhook/cron calls this; exposed for operators too.","operationId":"admin_grant_allowance_admin_plans__key_id__grant_allowance_post","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"integer","title":"Key Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Grant Allowance Admin Plans  Key Id  Grant Allowance Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/checkout":{"post":{"summary":"Billing Checkout","operationId":"billing_checkout_billing_checkout_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/webhook":{"post":{"summary":"Billing Webhook","operationId":"billing_webhook_billing_webhook_post","parameters":[{"name":"Stripe-Signature","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe-Signature"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Billing Webhook Billing Webhook Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/deposits":{"get":{"summary":"My Deposits","operationId":"my_deposits_billing_deposits_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response My Deposits Billing Deposits Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/reconcile/{provider}":{"post":{"summary":"Admin Reconcile","operationId":"admin_reconcile_admin_reconcile__provider__post","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReconcileRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Reconcile Admin Reconcile  Provider  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/reconcile":{"get":{"summary":"Admin Reconcile History","operationId":"admin_reconcile_history_admin_reconcile_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Admin Reconcile History Admin Reconcile Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/documents/import":{"post":{"summary":"Documents Import","operationId":"documents_import_v1_documents_import_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Documents Import V1 Documents Import Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/documents/export":{"post":{"summary":"Documents Export","operationId":"documents_export_v1_documents_export_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/documents/save":{"post":{"summary":"Documents Save","operationId":"documents_save_v1_documents_save_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__documents__SaveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Documents Save V1 Documents Save Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/documents/google/config":{"get":{"summary":"Google Docs Config","operationId":"google_docs_config_v1_documents_google_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Google Docs Config V1 Documents Google Config Get"}}}}}}},"/v1/documents/google/connect":{"get":{"summary":"Google Docs Connect","operationId":"google_docs_connect_v1_documents_google_connect_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Google Docs Connect V1 Documents Google Connect Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/documents/google/exchange":{"post":{"summary":"Google Docs Exchange","operationId":"google_docs_exchange_v1_documents_google_exchange_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExchangeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Google Docs Exchange V1 Documents Google Exchange Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/documents/google/whoami":{"get":{"summary":"Google Docs Whoami","operationId":"google_docs_whoami_v1_documents_google_whoami_get","parameters":[{"name":"X-Google-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Google-Token"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Google Docs Whoami V1 Documents Google Whoami Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/documents/google/open":{"post":{"summary":"Google Docs Open","operationId":"google_docs_open_v1_documents_google_open_post","parameters":[{"name":"X-Google-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Google-Token"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Google Docs Open V1 Documents Google Open Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/documents/google/save":{"post":{"summary":"Google Docs Save","operationId":"google_docs_save_v1_documents_google_save_post","parameters":[{"name":"X-Google-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Google-Token"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__google_docs__SaveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Google Docs Save V1 Documents Google Save Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AgentCreate":{"properties":{"name":{"type":"string","title":"Name"},"system_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"System Prompt"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"base_model":{"type":"string","title":"Base Model","default":"auto"},"mode":{"type":"string","title":"Mode","default":"single"},"temperature":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Temperature"},"max_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Tokens"},"tools":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Tools"},"expert_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expert Slug"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"}},"type":"object","required":["name"],"title":"AgentCreate"},"AgentCriteriaApprovalRequest":{"properties":{"acceptance_criteria":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Acceptance Criteria"},"test_argv":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Test Argv"}},"type":"object","title":"AgentCriteriaApprovalRequest","description":"Explicit approval, with optional edits to the proposed criteria/tests."},"AgentCriteriaRequest":{"properties":{"repo_path":{"type":"string","title":"Repo Path"},"task":{"type":"string","title":"Task"},"project_id":{"type":"string","title":"Project Id","default":"sid-agent"},"stack":{"type":"string","title":"Stack","default":"supabase"},"workspace_files":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Workspace Files"},"test_argv":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Test Argv"},"model":{"type":"string","title":"Model","default":"auto"},"reviewer_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reviewer Model"},"engine":{"type":"string","title":"Engine","default":"native"},"reasoning_effort":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reasoning Effort"}},"type":"object","required":["repo_path","task"],"title":"AgentCriteriaRequest","description":"First phase of SID's spec-first agent workflow."},"AgentOut":{"properties":{"id":{"type":"integer","title":"Id"},"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"system_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"System Prompt"},"base_model":{"type":"string","title":"Base Model"},"mode":{"type":"string","title":"Mode"},"temperature":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Temperature"},"max_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Tokens"},"tools":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Tools"},"expert_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expert Slug"}},"type":"object","required":["id","slug","name","base_model","mode"],"title":"AgentOut"},"AgentRunRequest":{"properties":{"repo_path":{"type":"string","title":"Repo Path"},"task":{"type":"string","title":"Task"},"diff":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Diff"},"project_id":{"type":"string","title":"Project Id","default":"sid-agent"},"stack":{"type":"string","title":"Stack","default":"supabase"},"test_argv":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Test Argv"},"workspace_files":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Workspace Files"},"model":{"type":"string","title":"Model","default":"auto"},"reviewer_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reviewer Model"},"engine":{"type":"string","title":"Engine","default":"native"},"criteria_proposal_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Criteria Proposal Id"},"reasoning_effort":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reasoning Effort"}},"type":"object","required":["repo_path","task"],"title":"AgentRunRequest","description":"Headless agent service run (SUB-26 step 3/4)."},"AgentUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"system_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"System Prompt"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"base_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Model"},"mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mode"},"temperature":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Temperature"},"max_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Tokens"},"tools":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Tools"},"expert_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expert Slug"}},"type":"object","title":"AgentUpdate"},"BalanceResponse":{"properties":{"api_key_id":{"type":"integer","title":"Api Key Id"},"balance_usd":{"type":"number","title":"Balance Usd"}},"type":"object","required":["api_key_id","balance_usd"],"title":"BalanceResponse"},"ChatAttachment":{"properties":{"path":{"type":"string","title":"Path"},"content":{"type":"string","title":"Content","default":""},"kind":{"type":"string","title":"Kind","default":"file"}},"additionalProperties":true,"type":"object","required":["path"],"title":"ChatAttachment","description":"A file the user attached to a chat turn (BC-151).\n\n``content`` is text (binary is out of scope). ``path`` is a display label\nand a workspace-relative key for the agent path — never a host path."},"ChatCompletionRequest":{"properties":{"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"models":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Models"},"messages":{"items":{"$ref":"#/components/schemas/ChatMessage"},"type":"array","title":"Messages"},"temperature":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Temperature"},"top_p":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Top P"},"max_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Tokens"},"max_completion_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Completion Tokens"},"stop":{"title":"Stop"},"stream":{"type":"boolean","title":"Stream","default":false},"stream_options":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Stream Options"},"tools":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Tools"},"tool_choice":{"title":"Tool Choice"},"presence_penalty":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Presence Penalty"},"frequency_penalty":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Frequency Penalty"},"user":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User"},"n":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"N"},"response_format":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Response Format"}},"additionalProperties":true,"type":"object","required":["messages"],"title":"ChatCompletionRequest","description":"OpenAI-compatible request. Unknown fields are passed through."},"ChatMessage":{"properties":{"role":{"type":"string","title":"Role"},"content":{"title":"Content"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"tool_calls":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Tool Calls"},"tool_call_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tool Call Id"}},"additionalProperties":true,"type":"object","required":["role"],"title":"ChatMessage"},"ChatMessageCreate":{"properties":{"content":{"type":"string","title":"Content"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"mode":{"type":"string","title":"Mode","default":"single"},"profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"},"stream":{"type":"boolean","title":"Stream","default":false},"attachments":{"items":{"$ref":"#/components/schemas/ChatAttachment"},"type":"array","title":"Attachments"},"tools":{"items":{"type":"string"},"type":"array","title":"Tools"}},"type":"object","required":["content"],"title":"ChatMessageCreate"},"CheckoutRequest":{"properties":{"amount_usd":{"type":"number","title":"Amount Usd"},"success_url":{"type":"string","title":"Success Url"},"cancel_url":{"type":"string","title":"Cancel Url"}},"type":"object","required":["amount_usd","success_url","cancel_url"],"title":"CheckoutRequest"},"CheckoutResponse":{"properties":{"configured":{"type":"boolean","title":"Configured"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"},"delegated":{"type":"boolean","title":"Delegated","default":false}},"type":"object","required":["configured"],"title":"CheckoutResponse"},"ConversationCreate":{"properties":{"title":{"type":"string","title":"Title","default":"Untitled"},"project_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"},"model":{"type":"string","title":"Model","default":"auto"}},"type":"object","title":"ConversationCreate"},"ConversationOut":{"properties":{"id":{"type":"integer","title":"Id"},"title":{"type":"string","title":"Title"},"project_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"},"model":{"type":"string","title":"Model"},"messages":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Messages"}},"type":"object","required":["id","title","model"],"title":"ConversationOut"},"CreateKeyRequest":{"properties":{"name":{"type":"string","title":"Name","default":"default"},"scopes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Scopes"},"expires_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expires At"}},"type":"object","title":"CreateKeyRequest"},"CreateKeyResponse":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"key":{"type":"string","title":"Key","description":"Plaintext key, shown once."},"key_prefix":{"type":"string","title":"Key Prefix"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"},"expires_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expires At"}},"type":"object","required":["id","name","key","key_prefix"],"title":"CreateKeyResponse"},"DataReadyRequest":{"properties":{"rows":{"type":"integer","title":"Rows"}},"type":"object","required":["rows"],"title":"DataReadyRequest"},"DocumentCreate":{"properties":{"title":{"type":"string","title":"Title"},"content":{"type":"string","title":"Content"},"project_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"}},"type":"object","required":["title","content"],"title":"DocumentCreate"},"EmbeddingsRequest":{"properties":{"model":{"type":"string","title":"Model"},"input":{"title":"Input"},"dimensions":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Dimensions"},"encoding_format":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Encoding Format"},"user":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User"}},"additionalProperties":true,"type":"object","required":["model","input"],"title":"EmbeddingsRequest","description":"OpenAI-compatible /v1/embeddings request. Unknown fields are dropped\nexcept the standard optional knobs, which pass through."},"EvalRequest":{"properties":{"score":{"type":"number","title":"Score"}},"type":"object","required":["score"],"title":"EvalRequest"},"ExchangeRequest":{"properties":{"code":{"type":"string","title":"Code"},"state":{"type":"string","title":"State","default":""}},"type":"object","required":["code"],"title":"ExchangeRequest"},"ExpertCreate":{"properties":{"name":{"type":"string","title":"Name"},"system_prompt":{"type":"string","title":"System Prompt"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"base_model":{"type":"string","title":"Base Model","default":"auto"},"preferred_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preferred Model"},"capabilities":{"items":{"type":"string"},"type":"array","title":"Capabilities"},"tools":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Tools"},"is_public":{"type":"boolean","title":"Is Public","default":false},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"}},"type":"object","required":["name","system_prompt"],"title":"ExpertCreate"},"ExpertOut":{"properties":{"id":{"type":"integer","title":"Id"},"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"system_prompt":{"type":"string","title":"System Prompt"},"base_model":{"type":"string","title":"Base Model"},"preferred_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preferred Model"},"capabilities":{"items":{"type":"string"},"type":"array","title":"Capabilities"},"tools":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Tools"},"is_public":{"type":"boolean","title":"Is Public","default":false}},"type":"object","required":["id","slug","name","system_prompt","base_model"],"title":"ExpertOut"},"ExportRequest":{"properties":{"document":{"additionalProperties":true,"type":"object","title":"Document"},"format":{"type":"string","title":"Format","default":"docx"}},"type":"object","title":"ExportRequest"},"FeedbackRequest":{"properties":{"request_id":{"type":"string","title":"Request Id"},"verdict":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Verdict"},"rating":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rating"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"}},"type":"object","required":["request_id"],"title":"FeedbackRequest"},"FeedbackResponse":{"properties":{"recorded":{"type":"boolean","title":"Recorded"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"intent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Intent"}},"type":"object","required":["recorded"],"title":"FeedbackResponse"},"FimCompletionRequest":{"properties":{"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model","default":"auto"},"prompt":{"type":"string","title":"Prompt","default":""},"suffix":{"type":"string","title":"Suffix","default":""},"max_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Tokens"},"temperature":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Temperature"},"stop":{"title":"Stop"},"user":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User"},"stream":{"type":"boolean","title":"Stream","default":false}},"additionalProperties":true,"type":"object","title":"FimCompletionRequest","description":"OpenAI-compatible completion request, narrowed to the FIM shape."},"GrantCreditsRequest":{"properties":{"amount":{"type":"number","title":"Amount"}},"type":"object","required":["amount"],"title":"GrantCreditsRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ImportRequest":{"properties":{"filename":{"type":"string","title":"Filename"},"content_base64":{"type":"string","title":"Content Base64"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"}},"type":"object","required":["filename","content_base64"],"title":"ImportRequest"},"InternalEntitlementRequest":{"properties":{"bc_user_id":{"type":"string","minLength":1,"title":"Bc User Id"},"plan":{"type":"string","title":"Plan"},"period":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Period"},"stripe_subscription_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Subscription Id"},"stripe_checkout_session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Checkout Session Id"},"seats":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seats"}},"type":"object","required":["bc_user_id","plan"],"title":"InternalEntitlementRequest","description":"BC-99 paid-to-key join: BC's webhook/poller calls this after a real\nSID grant lands on the BC side. Shared-secret header auth, fail-closed."},"InternalEntitlementResponse":{"properties":{"key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key"},"key_prefix":{"type":"string","title":"Key Prefix"},"api_key_id":{"type":"integer","title":"Api Key Id"},"plan":{"type":"string","title":"Plan"},"granted_usd":{"type":"number","title":"Granted Usd"},"renewal":{"type":"boolean","title":"Renewal"},"org_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Org Id"},"seats":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seats"}},"type":"object","required":["key","key_prefix","api_key_id","plan","granted_usd","renewal"],"title":"InternalEntitlementResponse"},"InternalRevokeRequest":{"properties":{"bc_user_id":{"type":"string","minLength":1,"title":"Bc User Id"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["bc_user_id"],"title":"InternalRevokeRequest","description":"BC-authoritative deactivation: the buyer's SID subscription ended\n(canceled / unpaid / fully refunded on the BC side), so the bound key\ndies with it. Shared-secret header auth, fail-closed."},"JobCreate":{"properties":{"capability":{"type":"string","title":"Capability"},"base_model":{"type":"string","title":"Base Model"},"provider":{"type":"string","title":"Provider","default":"openai_compatible"},"target_model_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Model Id"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["capability","base_model"],"title":"JobCreate"},"KeyOut":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"key_prefix":{"type":"string","title":"Key Prefix"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"},"is_active":{"type":"boolean","title":"Is Active"},"revoked_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revoked At"},"expires_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expires At"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"balance_usd":{"type":"number","title":"Balance Usd","default":0.0},"spend_cap_usd":{"type":"number","title":"Spend Cap Usd","default":0.0},"has_provider_key":{"type":"boolean","title":"Has Provider Key","default":false},"provider_key_last4":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Key Last4"}},"type":"object","required":["id","name","key_prefix","is_active"],"title":"KeyOut","description":"The caller's own key as the keys surface shows it. No secret material:\nthe plaintext is never stored and the stored BYOK key is never returned —\nonly the boolean and the last four characters it was stored with."},"KeysResponse":{"properties":{"keys":{"items":{"$ref":"#/components/schemas/KeyOut"},"type":"array","title":"Keys"},"plan_snapshot":{"additionalProperties":true,"type":"object","title":"Plan Snapshot"}},"type":"object","title":"KeysResponse"},"ListingCreate":{"properties":{"expert_id":{"type":"integer","title":"Expert Id"},"title":{"type":"string","title":"Title"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"price_usd":{"type":"number","title":"Price Usd","default":0.0},"revenue_share":{"type":"number","title":"Revenue Share","default":0.7}},"type":"object","required":["expert_id","title"],"title":"ListingCreate"},"LoginRequest":{"properties":{"key":{"type":"string","title":"Key"},"next":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next"}},"type":"object","required":["key"],"title":"LoginRequest","description":"BC-144 account session layer: sign in with a credential.\n\nToday the credential is the EXISTING sk-sid API key (one identity system —\nno second account store). The identity-provider choice (email magic-link /\npassword / BC SSO) is a JB decision and drops in at this seam without a\nrewrite; the session cookie it mints is provider-agnostic."},"LoginResponse":{"properties":{"ok":{"type":"boolean","title":"Ok","default":true},"key_prefix":{"type":"string","title":"Key Prefix"},"plan":{"type":"string","title":"Plan"}},"type":"object","required":["key_prefix","plan"],"title":"LoginResponse"},"MagicLinkRequest":{"properties":{"email":{"type":"string","title":"Email"},"purpose":{"type":"string","enum":["login","recovery"],"title":"Purpose","default":"login"}},"type":"object","required":["email"],"title":"MagicLinkRequest","description":"SUB-88: request an emailed sign-in link.\n\nThe response is identical for every valid address — the request path never\nasks whether an account exists, so this can never be an enumeration oracle."},"MagicLinkResponse":{"properties":{"ok":{"type":"boolean","title":"Ok","default":true},"message":{"type":"string","title":"Message","default":"If that address can sign in, a sign-in link is on its way."}},"type":"object","title":"MagicLinkResponse"},"MagicLinkVerifyRequest":{"properties":{"token":{"type":"string","title":"Token"},"next":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next"}},"type":"object","required":["token"],"title":"MagicLinkVerifyRequest"},"MagicLinkVerifyResponse":{"properties":{"ok":{"type":"boolean","title":"Ok","default":true},"next":{"type":"string","title":"Next","default":"/app"},"key_prefix":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key Prefix"},"plan":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan"}},"type":"object","title":"MagicLinkVerifyResponse"},"MeResponse":{"properties":{"api_key_id":{"type":"integer","title":"Api Key Id"},"name":{"type":"string","title":"Name"},"balance_usd":{"type":"number","title":"Balance Usd"},"spend_cap_usd":{"type":"number","title":"Spend Cap Usd"},"plan":{"type":"string","title":"Plan","default":"free"},"requests":{"type":"integer","title":"Requests"},"prompt_tokens":{"type":"integer","title":"Prompt Tokens"},"completion_tokens":{"type":"integer","title":"Completion Tokens"},"spent_usd":{"type":"number","title":"Spent Usd"},"by_day":{"items":{"$ref":"#/components/schemas/UsageDay"},"type":"array","title":"By Day","default":[]},"by_model":{"items":{"$ref":"#/components/schemas/UsageModel"},"type":"array","title":"By Model","default":[]},"by_app":{"items":{"$ref":"#/components/schemas/UsageApp"},"type":"array","title":"By App","default":[]},"verified_fixes":{"anyOf":[{"$ref":"#/components/schemas/VerifiedFixMeter"},{"type":"null"}]},"credit_balance_usd":{"type":"number","title":"Credit Balance Usd","default":0.0},"effective_cap_usd":{"type":"number","title":"Effective Cap Usd","default":0.0},"spend_remaining_usd":{"type":"number","title":"Spend Remaining Usd","default":0.0},"spend_pct":{"type":"number","title":"Spend Pct","default":0.0},"spend_basis":{"type":"string","title":"Spend Basis","default":"balance"},"spend_warning":{"type":"boolean","title":"Spend Warning","default":false},"spend_hard_stop":{"type":"boolean","title":"Spend Hard Stop","default":false},"spend_next_step":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Spend Next Step"}},"type":"object","required":["api_key_id","name","balance_usd","spend_cap_usd","requests","prompt_tokens","completion_tokens","spent_usd"],"title":"MeResponse"},"MemberAdd":{"properties":{"api_key_id":{"type":"integer","title":"Api Key Id"},"role":{"type":"string","title":"Role","default":"member"}},"type":"object","required":["api_key_id"],"title":"MemberAdd"},"MemoryCreate":{"properties":{"content":{"type":"string","title":"Content"},"project_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"},"pinned":{"type":"boolean","title":"Pinned","default":false}},"type":"object","required":["content"],"title":"MemoryCreate"},"MessageAppend":{"properties":{"role":{"type":"string","title":"Role","default":"user"},"content":{"type":"string","title":"Content"}},"type":"object","required":["content"],"title":"MessageAppend"},"ModelCardOut":{"properties":{"id":{"type":"string","title":"Id"},"object":{"type":"string","title":"Object","default":"model"},"owned_by":{"type":"string","title":"Owned By"},"context_window":{"type":"integer","title":"Context Window"},"modalities":{"items":{"type":"string"},"type":"array","title":"Modalities"},"capabilities":{"items":{"type":"string"},"type":"array","title":"Capabilities"},"input_price_per_mtok":{"type":"number","title":"Input Price Per Mtok"},"output_price_per_mtok":{"type":"number","title":"Output Price Per Mtok"},"rate_provenance":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Rate Provenance"},"endpoint_class":{"type":"string","title":"Endpoint Class","default":"external"},"upstream_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Upstream Name"},"available_on_credits":{"type":"boolean","title":"Available On Credits","default":true},"byok_only":{"type":"boolean","title":"Byok Only","default":false},"verified_as_of":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Verified As Of"},"is_champion":{"type":"boolean","title":"Is Champion","default":false}},"type":"object","required":["id","owned_by","context_window","modalities","capabilities","input_price_per_mtok","output_price_per_mtok"],"title":"ModelCardOut"},"ModelListResponse":{"properties":{"object":{"type":"string","title":"Object","default":"list"},"data":{"items":{"$ref":"#/components/schemas/ModelCardOut"},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"ModelListResponse"},"OpenPrRequest":{"properties":{"repo":{"type":"string","title":"Repo"},"base":{"type":"string","title":"Base"},"branch":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Branch"}},"type":"object","required":["repo","base"],"title":"OpenPrRequest","description":"Turn one verified run into a branch + pull request (Session B).\n\n``repo`` is ``owner/name``; ``base`` is the branch the PR targets; the\noptional ``branch`` overrides the default ``sid/run_<short-id>`` and can\nnever name a protected branch."},"OpenRequest":{"properties":{"file_id":{"type":"string","title":"File Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"}},"type":"object","required":["file_id"],"title":"OpenRequest"},"OrgCreate":{"properties":{"name":{"type":"string","title":"Name"},"seats":{"type":"integer","title":"Seats","default":5}},"type":"object","required":["name"],"title":"OrgCreate"},"PatchVerifyRequest":{"properties":{"diff":{"type":"string","title":"Diff"},"context":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Context"},"reviewer_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reviewer Model"},"model":{"type":"string","title":"Model","default":"auto"}},"type":"object","required":["diff"],"title":"PatchVerifyRequest"},"PlanAssignRequest":{"properties":{"plan":{"type":"string","title":"Plan"}},"type":"object","required":["plan"],"title":"PlanAssignRequest"},"ProjectCreate":{"properties":{"name":{"type":"string","title":"Name"},"model":{"type":"string","title":"Model","default":"auto"},"system_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"System Prompt"}},"type":"object","required":["name"],"title":"ProjectCreate"},"ProjectOut":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"model":{"type":"string","title":"Model"},"system_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"System Prompt"}},"type":"object","required":["id","name","model"],"title":"ProjectOut"},"ProviderKeyStatus":{"properties":{"stored":{"type":"boolean","title":"Stored"},"provider_key_last4":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Key Last4"}},"type":"object","required":["stored"],"title":"ProviderKeyStatus"},"ProviderKeyStoreRequest":{"properties":{"provider_key":{"type":"string","minLength":1,"title":"Provider Key"}},"type":"object","required":["provider_key"],"title":"ProviderKeyStoreRequest","description":"BC-124 self-serve BYOK: the caller's own provider key, stored once and\nreused server-side so the completion request never resends it. Encrypted\nat rest (crypto.py) before it touches the database; never returned, never\nlogged."},"ReconcileRequest":{"properties":{"invoice_usd":{"type":"number","title":"Invoice Usd"},"period_start":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Period Start"},"period_end":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Period End"}},"type":"object","required":["invoice_usd"],"title":"ReconcileRequest"},"RegisterModelRequest":{"properties":{"endpoint_base_url":{"type":"string","title":"Endpoint Base Url"},"input_price_per_mtok":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Input Price Per Mtok"},"output_price_per_mtok":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Output Price Per Mtok"},"capabilities":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Capabilities"}},"type":"object","required":["endpoint_base_url"],"title":"RegisterModelRequest"},"RotateKeyResponse":{"properties":{"id":{"type":"integer","title":"Id"},"key":{"type":"string","title":"Key","description":"Plaintext key, shown once."},"key_prefix":{"type":"string","title":"Key Prefix"},"note":{"type":"string","title":"Note","default":"Store this key now; it is shown once. The old secret is invalid."}},"type":"object","required":["id","key","key_prefix"],"title":"RotateKeyResponse"},"RouteCandidateOut":{"properties":{"model":{"type":"string","title":"Model"},"provider":{"type":"string","title":"Provider"},"utility":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Utility"},"quality":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Quality"},"est_cost_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Est Cost Usd"},"reasons":{"items":{"type":"string"},"type":"array","title":"Reasons"},"quality_samples":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Quality Samples"}},"type":"object","required":["model","provider"],"title":"RouteCandidateOut"},"RouteRequest":{"properties":{"model":{"type":"string","title":"Model","default":"auto"},"messages":{"items":{"$ref":"#/components/schemas/ChatMessage"},"type":"array","title":"Messages"},"tools":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Tools"}},"additionalProperties":true,"type":"object","required":["messages"],"title":"RouteRequest"},"RouteResponse":{"properties":{"requested_model":{"type":"string","title":"Requested Model"},"chosen_model":{"type":"string","title":"Chosen Model"},"provider":{"type":"string","title":"Provider"},"profile":{"type":"string","title":"Profile"},"task":{"additionalProperties":true,"type":"object","title":"Task"},"explanation":{"type":"string","title":"Explanation"},"candidates":{"items":{"$ref":"#/components/schemas/RouteCandidateOut"},"type":"array","title":"Candidates"},"fallback_chain":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Fallback Chain"}},"type":"object","required":["requested_model","chosen_model","provider","profile","task","explanation","candidates"],"title":"RouteResponse"},"SSOCallbackRequest":{"properties":{"id_token":{"type":"string","title":"Id Token"},"state":{"type":"string","title":"State"}},"type":"object","required":["id_token","state"],"title":"SSOCallbackRequest"},"SandboxExecRequest":{"properties":{"argv":{"items":{"type":"string"},"type":"array","title":"Argv"},"cwd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cwd"},"timeout":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Timeout"}},"type":"object","required":["argv"],"title":"SandboxExecRequest"},"SeatsSet":{"properties":{"seats":{"type":"integer","title":"Seats"}},"type":"object","required":["seats"],"title":"SeatsSet"},"SessionResponse":{"properties":{"signed_in":{"type":"boolean","title":"Signed In","default":false},"key_prefix":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key Prefix"},"plan":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","title":"SessionResponse","description":"The signed-in state the shared chrome reads (BC-145)."},"SetCapRequest":{"properties":{"amount":{"type":"number","title":"Amount"}},"type":"object","required":["amount"],"title":"SetCapRequest"},"SetScopesRequest":{"properties":{"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"}},"type":"object","required":["scopes"],"title":"SetScopesRequest"},"SignupRequest":{"properties":{"name":{"type":"string","title":"Name","default":"self-serve"},"accept_terms":{"type":"boolean","title":"Accept Terms","default":false},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"turnstile_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Turnstile Token"}},"type":"object","title":"SignupRequest"},"SignupResponse":{"properties":{"key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key"},"key_prefix":{"type":"string","title":"Key Prefix","default":""},"granted_usd":{"type":"number","title":"Granted Usd","default":0.0},"note":{"type":"string","title":"Note","default":"Store this key now; it is shown once."},"bc_linked":{"type":"boolean","title":"Bc Linked","default":false},"bc_account_created":{"type":"boolean","title":"Bc Account Created","default":false},"verification_required":{"type":"boolean","title":"Verification Required","default":false},"trial_ends_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trial Ends At"}},"type":"object","title":"SignupResponse"},"SignupVerifyRequest":{"properties":{"token":{"type":"string","title":"Token"},"name":{"type":"string","title":"Name","default":"self-serve"}},"type":"object","required":["token"],"title":"SignupVerifyRequest","description":"SUB-91: burn an emailed signup proof and finish the account."},"SpendAlertRequest":{"properties":{"threshold_usd":{"type":"number","title":"Threshold Usd"}},"type":"object","required":["threshold_usd"],"title":"SpendAlertRequest","description":"Per-key spend-alert threshold (SUB-43). <= 0 clears the key's own\nthreshold (the SID_SPEND_ALERT_USD default still applies)."},"TermsRequest":{"properties":{"list_price_multiplier":{"type":"number","title":"List Price Multiplier","default":1.0},"discount":{"type":"number","title":"Discount","default":0.0},"committed_usd":{"type":"number","title":"Committed Usd","default":0.0},"note":{"type":"string","title":"Note","default":""}},"type":"object","title":"TermsRequest"},"UsageApp":{"properties":{"app":{"type":"string","title":"App"},"requests":{"type":"integer","title":"Requests"},"spent_usd":{"type":"number","title":"Spent Usd"}},"type":"object","required":["app","requests","spent_usd"],"title":"UsageApp","description":"BC-107: spend grouped by the app that sent attribution headers.\n'(none)' is the honest bucket for requests that sent no headers."},"UsageDay":{"properties":{"day":{"type":"string","title":"Day"},"requests":{"type":"integer","title":"Requests"},"spent_usd":{"type":"number","title":"Spent Usd"}},"type":"object","required":["day","requests","spent_usd"],"title":"UsageDay"},"UsageModel":{"properties":{"model":{"type":"string","title":"Model"},"requests":{"type":"integer","title":"Requests"},"prompt_tokens":{"type":"integer","title":"Prompt Tokens"},"completion_tokens":{"type":"integer","title":"Completion Tokens"},"spent_usd":{"type":"number","title":"Spent Usd"}},"type":"object","required":["model","requests","prompt_tokens","completion_tokens","spent_usd"],"title":"UsageModel"},"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"},"VerifiedFixMeter":{"properties":{"used":{"type":"integer","title":"Used","default":0},"included":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Included"},"overage_usd":{"type":"number","title":"Overage Usd","default":0.0},"trial_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Trial Active"},"trial_expired":{"type":"boolean","title":"Trial Expired","default":false},"trial_ends_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trial Ends At"},"trial_days_left":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Trial Days Left"}},"type":"object","title":"VerifiedFixMeter","description":"SUB-74: the OUTCOME meter — executed verified fixes this period against\nthe plan's included ceiling, and the overage dollars past it. `included`\nis None when the plan carries no ceiling (enterprise, by arrangement).\nRead-only, and deliberately separate from the credits wallet\n(MeResponse.credit_balance_usd); the two meters are never merged."},"app__documents__SaveRequest":{"properties":{"document":{"additionalProperties":true,"type":"object","title":"Document"}},"type":"object","title":"SaveRequest"},"app__google_docs__SaveRequest":{"properties":{"file_id":{"type":"string","title":"File Id"},"document":{"additionalProperties":true,"type":"object","title":"Document"}},"type":"object","required":["file_id"],"title":"SaveRequest"}}}}