{"openapi":"3.1.0","info":{"title":"Sovereign46 API","version":"unreleased","description":"Current source contract for Sovereign46 API consumers. Runtime metadata, normalized cloud protocols, independent-policy gates, session-control removal, and operator-only worker provisioning are pending release; this document does not establish deployed availability. See /docs#release-status."},"servers":[{"url":"https://api.s46.dev","description":"Production control plane"},{"url":"http://127.0.0.1:8080","description":"Local development control plane"}],"tags":[{"name":"Operations"},{"name":"Auth"},{"name":"Account"},{"name":"Teams and sessions"},{"name":"Admin"},{"name":"Models"},{"name":"Worker control"},{"name":"Internal"},{"name":"Harness gateway"},{"name":"Support"}],"paths":{"/healthz":{"get":{"tags":["Operations"],"summary":"Liveness check","operationId":"healthz","parameters":[],"responses":{"200":{"description":"Liveness check","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthResponse"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/readyz":{"get":{"tags":["Operations"],"summary":"Readiness check","operationId":"readyz","responses":{"200":{"description":"Configured database and any enabled independent registry checks passed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadyResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Database or independent registry verification unavailable; this status body is not an ErrorResponse","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadyResponse"}}}}}}},"/debug/vars":{"get":{"tags":["Operations"],"summary":"Expvar diagnostics","operationId":"debugVars","security":[{"bearerAuth":[]}],"parameters":[],"responses":{"200":{"description":"Expvar diagnostics","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/assets/auth.css":{"get":{"tags":["Support"],"summary":"Auth page stylesheet","operationId":"authCss","responses":{"200":{"description":"CSS stylesheet","content":{"text/css":{"schema":{"type":"string"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/auth/device/start":{"post":{"tags":["Auth"],"summary":"Start invite-gated device login","operationId":"startDeviceLogin","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceLoginStartRequest"}}}},"responses":{"202":{"description":"Device login challenge created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceLoginStartResponse"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/auth/login/start":{"post":{"tags":["Auth"],"summary":"Start login alias","operationId":"startLoginAlias","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceLoginStartRequest"}}}},"responses":{"202":{"description":"Device login challenge created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceLoginStartResponse"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/auth/device/poll":{"post":{"tags":["Auth"],"summary":"Poll device login for approval","operationId":"pollDeviceLogin","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceLoginPollRequest"}}}},"responses":{"200":{"description":"Approved token set","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenSet"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/auth/magic/consume":{"get":{"tags":["Auth"],"summary":"Render magic-link confirmation page","operationId":"confirmMagicLink","parameters":[{"name":"token","in":"query","required":true,"description":"Magic-link token","schema":{"type":"string"}}],"responses":{"200":{"description":"HTML confirmation page","content":{"text/html":{"schema":{"type":"string"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"tags":["Auth"],"summary":"Approve magic-link login","operationId":"approveMagicLink","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MagicLinkConsumeRequest"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/MagicLinkConsumeRequest"}}}},"responses":{"200":{"description":"HTML approval page","content":{"text/html":{"schema":{"type":"string"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/auth/token/refresh":{"post":{"tags":["Auth"],"summary":"Refresh and rotate credentials","operationId":"refreshToken","requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshTokenRequest"}}}},"responses":{"200":{"description":"Refreshed token set","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenSet"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/auth/passkeys/register/start":{"post":{"tags":["Auth"],"summary":"Start passkey registration","operationId":"startPasskeyRegistration","security":[{"bearerAuth":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmptyObject"}}}},"responses":{"200":{"description":"Start passkey registration","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebAuthnOptions"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/auth/passkeys/register/finish":{"post":{"tags":["Auth"],"summary":"Finish passkey registration","operationId":"finishPasskeyRegistration","security":[{"bearerAuth":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebAuthnRegistrationResponse"}}}},"responses":{"200":{"description":"Finish passkey registration","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasskeyRegistrationResult"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/auth/passkeys/login/start":{"post":{"tags":["Auth"],"summary":"Start passkey login","operationId":"startPasskeyLogin","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasskeyLoginStartRequest"}}}},"responses":{"200":{"description":"WebAuthn authentication options","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebAuthnOptions"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/auth/passkeys/login/finish":{"post":{"tags":["Auth"],"summary":"Finish passkey login","operationId":"finishPasskeyLogin","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebAuthnAuthenticationResponse"}}}},"responses":{"200":{"description":"Approved token set","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenSet"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/auth/logout":{"post":{"tags":["Auth"],"summary":"Clear browser auth cookies","operationId":"logout","requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmptyObject"}}}},"responses":{"200":{"description":"Logged out","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OKResponse"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/device":{"get":{"tags":["Auth"],"summary":"Check browser device-approval authentication","operationId":"deviceApprovalStatus","security":[{"bearerAuth":[]}],"parameters":[],"responses":{"200":{"description":"Check browser device-approval authentication","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceApprovalStatus"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"tags":["Auth"],"summary":"Approve a device user code","operationId":"approveDeviceCode","security":[{"bearerAuth":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceApprovalRequest"}}}},"responses":{"200":{"description":"Approve a device user code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceApprovalResponse"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/me":{"get":{"tags":["Account"],"summary":"Current authenticated user","operationId":"me","security":[{"bearerAuth":[]}],"parameters":[],"responses":{"200":{"description":"Current authenticated user","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/devices":{"get":{"tags":["Account"],"summary":"List paired devices","operationId":"listDevices","security":[{"bearerAuth":[]}],"parameters":[],"responses":{"200":{"description":"List paired devices","content":{"application/json":{"schema":{"type":"object","required":["devices"],"properties":{"devices":{"type":"array","items":{"$ref":"#/components/schemas/Device"}}}}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/devices/{deviceId}":{"delete":{"tags":["Account"],"summary":"Revoke paired device","operationId":"deleteDevice","security":[{"bearerAuth":[]}],"parameters":[{"name":"deviceId","in":"path","required":true,"description":"Device id. URL path-escape this value.","schema":{"type":"string"},"example":"dev-laptop"}],"responses":{"200":{"description":"Device revoked","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevokedDeviceResponse"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/teams/{team}":{"get":{"tags":["Teams and sessions"],"summary":"Resolve team settings and authorized cloud models","operationId":"team","security":[{"bearerAuth":[]}],"parameters":[{"name":"team","in":"path","required":true,"description":"Canonical team id. URL path-escape this value.","schema":{"type":"string"},"example":"%40s46%2Fengineering"},{"name":"endpoint","in":"query","required":false,"description":"Development endpoint override","schema":{"type":"string"}},{"name":"region","in":"query","required":false,"description":"Development region override","schema":{"type":"string"}},{"name":"mode","in":"query","required":false,"description":"Development mode override","schema":{"type":"string"}},{"name":"defaultModel","in":"query","required":false,"description":"Development default model override","schema":{"type":"string"}}],"responses":{"200":{"description":"Resolve team settings and authorized cloud models","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Team"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/sessions":{"get":{"tags":["Teams and sessions"],"summary":"List sessions for a team","operationId":"listSessions","security":[{"bearerAuth":[]}],"parameters":[{"name":"team","in":"query","required":true,"description":"Canonical team id","schema":{"type":"string"}}],"responses":{"200":{"description":"List sessions for a team","content":{"application/json":{"schema":{"type":"object","required":["sessions"],"properties":{"sessions":{"type":"array","items":{"$ref":"#/components/schemas/Session"}}}}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/admin/overview":{"get":{"tags":["Admin"],"summary":"Admin overview","operationId":"adminOverview","security":[{"bearerAuth":[]}],"parameters":[{"name":"organization","in":"query","required":false,"description":"Organization slug","schema":{"type":"string"}},{"name":"team","in":"query","required":false,"description":"Canonical team id","schema":{"type":"string"}}],"responses":{"200":{"description":"Admin overview","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Overview"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/admin/organizations":{"get":{"tags":["Admin"],"summary":"List organizations","operationId":"listOrganizations","security":[{"bearerAuth":[]}],"parameters":[],"responses":{"200":{"description":"List organizations","content":{"application/json":{"schema":{"type":"object","required":["organizations"],"properties":{"organizations":{"type":"array","items":{"$ref":"#/components/schemas/Organization"}}}}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"tags":["Admin"],"summary":"Create organization","operationId":"createOrganization","security":[{"bearerAuth":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Organization"}}}},"responses":{"201":{"description":"Create organization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Organization"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/admin/organizations/{slug}":{"get":{"tags":["Admin"],"summary":"Get organization","operationId":"getOrganization","security":[{"bearerAuth":[]}],"parameters":[{"name":"slug","in":"path","required":true,"description":"Organization slug. URL path-escape this value.","schema":{"type":"string"},"example":"s46"}],"responses":{"200":{"description":"Get organization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Organization"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"put":{"tags":["Admin"],"summary":"Update organization","operationId":"putOrganization","security":[{"bearerAuth":[]}],"parameters":[{"name":"slug","in":"path","required":true,"description":"Organization slug. URL path-escape this value.","schema":{"type":"string"},"example":"s46"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Organization"}}}},"responses":{"200":{"description":"Update organization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Organization"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"patch":{"tags":["Admin"],"summary":"Patch organization","operationId":"patchOrganization","security":[{"bearerAuth":[]}],"parameters":[{"name":"slug","in":"path","required":true,"description":"Organization slug. URL path-escape this value.","schema":{"type":"string"},"example":"s46"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Organization"}}}},"responses":{"200":{"description":"Patch organization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Organization"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/admin/organization-members":{"get":{"tags":["Admin"],"summary":"List organization members","operationId":"listOrganizationMembers","security":[{"bearerAuth":[]}],"parameters":[{"name":"organization","in":"query","required":true,"description":"Organization slug","schema":{"type":"string"}}],"responses":{"200":{"description":"List organization members","content":{"application/json":{"schema":{"type":"object","required":["organizationMembers"],"properties":{"organizationMembers":{"type":"array","items":{"$ref":"#/components/schemas/OrganizationMember"}}}}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"tags":["Admin"],"summary":"Create organization member","operationId":"createOrganizationMember","security":[{"bearerAuth":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationMember"}}}},"responses":{"200":{"description":"Create organization member","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationMember"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"put":{"tags":["Admin"],"summary":"Update organization member","operationId":"putOrganizationMember","security":[{"bearerAuth":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationMember"}}}},"responses":{"200":{"description":"Update organization member","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationMember"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"delete":{"tags":["Admin"],"summary":"Remove organization member","operationId":"deleteOrganizationMember","security":[{"bearerAuth":[]}],"parameters":[{"name":"organization","in":"query","required":true,"description":"Organization slug","schema":{"type":"string"}},{"name":"email","in":"query","required":true,"description":"Member email","schema":{"type":"string"}}],"responses":{"200":{"description":"Removed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemovedResponse"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/admin/organization-roles":{"get":{"tags":["Admin"],"summary":"List organization roles","operationId":"listOrganizationRoles","security":[{"bearerAuth":[]}],"parameters":[],"responses":{"200":{"description":"List organization roles","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RolesResponse"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/admin/people":{"get":{"tags":["Admin"],"summary":"List people","operationId":"listPeople","security":[{"bearerAuth":[]}],"parameters":[{"name":"organization","in":"query","required":true,"description":"Organization slug","schema":{"type":"string"}},{"name":"team","in":"query","required":false,"description":"Canonical team id","schema":{"type":"string"}}],"responses":{"200":{"description":"List people","content":{"application/json":{"schema":{"type":"object","required":["people"],"properties":{"people":{"type":"array","items":{"$ref":"#/components/schemas/Person"}}}}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/admin/invite":{"post":{"tags":["Admin"],"summary":"Invite person","operationId":"invitePersonLegacy","security":[{"bearerAuth":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteRequest"}}}},"responses":{"200":{"description":"Invite person","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteResponse"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/admin/people/invite":{"post":{"tags":["Admin"],"summary":"Invite person","operationId":"invitePerson","security":[{"bearerAuth":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteRequest"}}}},"responses":{"200":{"description":"Invite person","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteResponse"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/admin/invites":{"get":{"tags":["Admin"],"summary":"List invitations","operationId":"listInvites","security":[{"bearerAuth":[]}],"parameters":[{"name":"organization","in":"query","required":false,"description":"Organization slug","schema":{"type":"string"}},{"name":"team","in":"query","required":false,"description":"Canonical team id","schema":{"type":"string"}},{"name":"status","in":"query","required":false,"description":"Invitation status","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Maximum invitations","schema":{"type":"string"}}],"responses":{"200":{"description":"List invitations","content":{"application/json":{"schema":{"type":"object","required":["invitations"],"properties":{"invitations":{"type":"array","items":{"$ref":"#/components/schemas/Invitation"}}}}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/admin/invite/revoke":{"post":{"tags":["Admin"],"summary":"Revoke invitation","operationId":"revokeInvite","security":[{"bearerAuth":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevokeInviteRequest"}}}},"responses":{"200":{"description":"Revoke invitation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevokeInviteResponse"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/admin/people/{email}":{"get":{"tags":["Admin"],"summary":"Get person","operationId":"getPerson","security":[{"bearerAuth":[]}],"parameters":[{"name":"email","in":"path","required":true,"description":"Email address. URL path-escape this value.","schema":{"type":"string"},"example":"dscape%40s46.dev"},{"name":"organization","in":"query","required":true,"description":"Organization slug","schema":{"type":"string"}}],"responses":{"200":{"description":"Get person","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Person"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"put":{"tags":["Admin"],"summary":"Update person status","operationId":"putPerson","security":[{"bearerAuth":[]}],"parameters":[{"name":"email","in":"path","required":true,"description":"Email address. URL path-escape this value.","schema":{"type":"string"},"example":"dscape%40s46.dev"},{"name":"organization","in":"query","required":true,"description":"Organization slug","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonStatusRequest"}}}},"responses":{"200":{"description":"Update person status","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Person"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"patch":{"tags":["Admin"],"summary":"Patch person status","operationId":"patchPerson","security":[{"bearerAuth":[]}],"parameters":[{"name":"email","in":"path","required":true,"description":"Email address. URL path-escape this value.","schema":{"type":"string"},"example":"dscape%40s46.dev"},{"name":"organization","in":"query","required":true,"description":"Organization slug","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonStatusRequest"}}}},"responses":{"200":{"description":"Patch person status","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Person"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/admin/people/{email}/teams":{"post":{"tags":["Admin"],"summary":"Add person to team","operationId":"addPersonTeam","security":[{"bearerAuth":[]}],"parameters":[{"name":"email","in":"path","required":true,"description":"Email address. URL path-escape this value.","schema":{"type":"string"},"example":"dscape%40s46.dev"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamMembership"}}}},"responses":{"200":{"description":"Add person to team","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamMembership"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"put":{"tags":["Admin"],"summary":"Update person team membership","operationId":"putPersonTeam","security":[{"bearerAuth":[]}],"parameters":[{"name":"email","in":"path","required":true,"description":"Email address. URL path-escape this value.","schema":{"type":"string"},"example":"dscape%40s46.dev"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamMembership"}}}},"responses":{"200":{"description":"Update person team membership","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamMembership"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/admin/people/{email}/teams/{team}":{"delete":{"tags":["Admin"],"summary":"Remove person from team","operationId":"deletePersonTeam","security":[{"bearerAuth":[]}],"parameters":[{"name":"email","in":"path","required":true,"description":"Email address. URL path-escape this value.","schema":{"type":"string"},"example":"dscape%40s46.dev"},{"name":"team","in":"path","required":true,"description":"Canonical team id. URL path-escape this value.","schema":{"type":"string"},"example":"%40s46%2Fengineering"}],"responses":{"200":{"description":"Removed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemovedResponse"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/admin/people/{email}/devices/{deviceId}/revoke":{"post":{"tags":["Admin"],"summary":"Revoke person device","operationId":"revokePersonDevice","security":[{"bearerAuth":[]}],"parameters":[{"name":"email","in":"path","required":true,"description":"Email address. URL path-escape this value.","schema":{"type":"string"},"example":"dscape%40s46.dev"},{"name":"deviceId","in":"path","required":true,"description":"Device id. URL path-escape this value.","schema":{"type":"string"},"example":"dev-laptop"},{"name":"organization","in":"query","required":true,"description":"Organization slug","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmptyObject"}}}},"responses":{"200":{"description":"Revoke person device","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevokedDeviceResponse"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/admin/people/{email}/invites/resend":{"post":{"tags":["Admin"],"summary":"Resend invitation","operationId":"resendInvite","security":[{"bearerAuth":[]}],"parameters":[{"name":"email","in":"path","required":true,"description":"Email address. URL path-escape this value.","schema":{"type":"string"},"example":"dscape%40s46.dev"},{"name":"organization","in":"query","required":true,"description":"Organization slug","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmptyObject"}}}},"responses":{"200":{"description":"Resend invitation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationResponse"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/admin/people/{email}/audit":{"get":{"tags":["Admin"],"summary":"Person audit events","operationId":"personAudit","security":[{"bearerAuth":[]}],"parameters":[{"name":"email","in":"path","required":true,"description":"Email address. URL path-escape this value.","schema":{"type":"string"},"example":"dscape%40s46.dev"},{"name":"organization","in":"query","required":true,"description":"Organization slug","schema":{"type":"string"}},{"name":"team","in":"query","required":false,"description":"Canonical team id","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Maximum events","schema":{"type":"string"}}],"responses":{"200":{"description":"Person audit events","content":{"application/json":{"schema":{"type":"object","required":["auditEvents"],"properties":{"auditEvents":{"type":"array","items":{"$ref":"#/components/schemas/AuditEvent"}}}}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/admin/teams":{"get":{"tags":["Admin"],"summary":"List stored team settings, not authorized model discovery","operationId":"listAdminTeams","security":[{"bearerAuth":[]}],"parameters":[{"name":"team","in":"query","required":false,"description":"Canonical team id","schema":{"type":"string"}}],"responses":{"200":{"description":"List stored team settings, not authorized model discovery","content":{"application/json":{"schema":{"type":"object","required":["teams"],"properties":{"teams":{"type":"array","items":{"$ref":"#/components/schemas/Team"}}}}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"tags":["Admin"],"summary":"Create team","operationId":"createTeam","security":[{"bearerAuth":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Team"}}}},"responses":{"200":{"description":"Create team","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Team"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/admin/teams/{team}":{"get":{"tags":["Admin"],"summary":"Read stored team settings, not authorized model discovery","operationId":"getAdminTeam","security":[{"bearerAuth":[]}],"parameters":[{"name":"team","in":"path","required":true,"description":"Canonical team id. URL path-escape this value.","schema":{"type":"string"},"example":"%40s46%2Fengineering"}],"responses":{"200":{"description":"Read stored team settings, not authorized model discovery","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Team"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"description":"On a running service, registry verification outages do not block settings reads. Existing authentication and scope checks still apply. Use public GET /v1/teams/{team} for authorized cloud models and runtime metadata."},"put":{"tags":["Admin"],"summary":"Update team","operationId":"putTeam","security":[{"bearerAuth":[]}],"parameters":[{"name":"team","in":"path","required":true,"description":"Canonical team id. URL path-escape this value.","schema":{"type":"string"},"example":"%40s46%2Fengineering"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Team"}}}},"responses":{"200":{"description":"Update team","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Team"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"patch":{"tags":["Admin"],"summary":"Patch team","operationId":"patchTeam","security":[{"bearerAuth":[]}],"parameters":[{"name":"team","in":"path","required":true,"description":"Canonical team id. URL path-escape this value.","schema":{"type":"string"},"example":"%40s46%2Fengineering"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Team"}}}},"responses":{"200":{"description":"Patch team","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Team"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"delete":{"tags":["Admin"],"summary":"Delete team","operationId":"deleteTeam","security":[{"bearerAuth":[]}],"parameters":[{"name":"team","in":"path","required":true,"description":"Canonical team id. URL path-escape this value.","schema":{"type":"string"},"example":"%40s46%2Fengineering"}],"responses":{"200":{"description":"Deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeletedTeamResponse"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/admin/harness-policies":{"get":{"tags":["Admin"],"summary":"Get harness policy by query","operationId":"getHarnessPolicyByQuery","security":[{"bearerAuth":[]}],"parameters":[{"name":"team","in":"query","required":false,"description":"Canonical team id","schema":{"type":"string"}}],"responses":{"200":{"description":"Get harness policy by query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HarnessPolicy"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"tags":["Admin"],"summary":"Save harness policy by query","operationId":"saveHarnessPolicyByQuery","security":[{"bearerAuth":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HarnessPolicy"}}}},"responses":{"200":{"description":"Save harness policy by query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HarnessPolicy"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"put":{"tags":["Admin"],"summary":"Update harness policy by query","operationId":"putHarnessPolicyByQuery","security":[{"bearerAuth":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HarnessPolicy"}}}},"responses":{"200":{"description":"Update harness policy by query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HarnessPolicy"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/admin/harness-policies/{team}":{"get":{"tags":["Admin"],"summary":"Get harness policy","operationId":"getHarnessPolicy","security":[{"bearerAuth":[]}],"parameters":[{"name":"team","in":"path","required":true,"description":"Canonical team id. URL path-escape this value.","schema":{"type":"string"},"example":"%40s46%2Fengineering"}],"responses":{"200":{"description":"Get harness policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HarnessPolicy"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"tags":["Admin"],"summary":"Save harness policy","operationId":"saveHarnessPolicy","security":[{"bearerAuth":[]}],"parameters":[{"name":"team","in":"path","required":true,"description":"Canonical team id. URL path-escape this value.","schema":{"type":"string"},"example":"%40s46%2Fengineering"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HarnessPolicy"}}}},"responses":{"200":{"description":"Save harness policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HarnessPolicy"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"put":{"tags":["Admin"],"summary":"Update harness policy","operationId":"putHarnessPolicy","security":[{"bearerAuth":[]}],"parameters":[{"name":"team","in":"path","required":true,"description":"Canonical team id. URL path-escape this value.","schema":{"type":"string"},"example":"%40s46%2Fengineering"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HarnessPolicy"}}}},"responses":{"200":{"description":"Update harness policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HarnessPolicy"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/admin/github/installations":{"get":{"tags":["Admin"],"summary":"List GitHub installations","operationId":"listGitHubInstallations","security":[{"bearerAuth":[]}],"parameters":[],"responses":{"200":{"description":"List GitHub installations","content":{"application/json":{"schema":{"type":"object","required":["installations"],"properties":{"installations":{"type":"array","items":{"$ref":"#/components/schemas/GitHubInstallation"}}}}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"tags":["Admin"],"summary":"Save GitHub installation","operationId":"saveGitHubInstallation","security":[{"bearerAuth":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GitHubInstallation"}}}},"responses":{"200":{"description":"Save GitHub installation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GitHubInstallation"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/admin/repositories":{"get":{"tags":["Admin"],"summary":"List repositories","operationId":"listRepositories","security":[{"bearerAuth":[]}],"parameters":[{"name":"team","in":"query","required":false,"description":"Canonical team id","schema":{"type":"string"}}],"responses":{"200":{"description":"List repositories","content":{"application/json":{"schema":{"type":"object","required":["repositories"],"properties":{"repositories":{"type":"array","items":{"$ref":"#/components/schemas/TeamRepository"}}}}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"tags":["Admin"],"summary":"Save repository","operationId":"saveRepository","security":[{"bearerAuth":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamRepository"}}}},"responses":{"200":{"description":"Save repository","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamRepository"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/admin/model-releases":{"get":{"tags":["Models"],"summary":"List API-backed model releases","operationId":"listModelReleases","security":[{"bearerAuth":[]}],"parameters":[{"name":"namespace","in":"query","required":false,"description":"Model namespace","schema":{"type":"string"}},{"name":"team","in":"query","required":false,"description":"Canonical team id","schema":{"type":"string"}},{"name":"state","in":"query","required":false,"description":"Release state","schema":{"type":"string"}}],"responses":{"200":{"description":"List API-backed model releases","content":{"application/json":{"schema":{"type":"object","required":["modelReleases"],"properties":{"modelReleases":{"type":"array","items":{"$ref":"#/components/schemas/ModelRelease"}}}}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"tags":["Models"],"summary":"Create model release","operationId":"createModelRelease","security":[{"bearerAuth":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateModelReleaseRequest"}}}},"responses":{"201":{"description":"Create model release","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelRelease"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/admin/model-releases/{releaseId}":{"get":{"tags":["Models"],"summary":"Get model release","operationId":"getModelRelease","security":[{"bearerAuth":[]}],"parameters":[{"name":"releaseId","in":"path","required":true,"description":"Model release id. URL path-escape this value.","schema":{"type":"string"},"example":"rel_..."}],"responses":{"200":{"description":"Get model release","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelRelease"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/admin/model-releases/{releaseId}/upload-session":{"post":{"tags":["Models"],"summary":"Create model upload session","operationId":"createModelUploadSession","security":[{"bearerAuth":[]}],"parameters":[{"name":"releaseId","in":"path","required":true,"description":"Model release id. URL path-escape this value.","schema":{"type":"string"},"example":"rel_..."},{"name":"If-Match","in":"header","required":true,"description":"Known release ETag/revision","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelUploadSessionRequest"}}}},"responses":{"201":{"description":"Create model upload session","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelUploadSessionResponse"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/admin/model-releases/{releaseId}/finalize-upload":{"post":{"tags":["Models"],"summary":"Finalize model upload into quarantine CAS metadata","operationId":"finalizeModelUpload","security":[{"bearerAuth":[]}],"parameters":[{"name":"releaseId","in":"path","required":true,"description":"Model release id. URL path-escape this value.","schema":{"type":"string"},"example":"rel_..."},{"name":"If-Match","in":"header","required":true,"description":"Known release ETag/revision","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Idempotency key for safe retry","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinalizeModelUploadRequest"}}}},"responses":{"200":{"description":"Finalize model upload into quarantine CAS metadata","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelRelease"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/admin/model-releases/{releaseId}/validate":{"post":{"tags":["Models"],"summary":"Queue model certification","operationId":"queueModelCertification","security":[{"bearerAuth":[]}],"parameters":[{"name":"releaseId","in":"path","required":true,"description":"Model release id. URL path-escape this value.","schema":{"type":"string"},"example":"rel_..."},{"name":"If-Match","in":"header","required":true,"description":"Known release ETag/revision","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Idempotency key for safe retry","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelValidationRequest"}}}},"responses":{"202":{"description":"Queue model certification","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelRelease"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/admin/model-releases/{releaseId}/publish":{"post":{"tags":["Models"],"summary":"Queue registry publication","operationId":"queueModelPublication","security":[{"bearerAuth":[]}],"parameters":[{"name":"releaseId","in":"path","required":true,"description":"Model release id. URL path-escape this value.","schema":{"type":"string"},"example":"rel_..."},{"name":"If-Match","in":"header","required":true,"description":"Known release ETag/revision","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Idempotency key for safe retry","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelPublishRequest"}}}},"responses":{"202":{"description":"Queue registry publication","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelRelease"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/admin/model-releases/{releaseId}/yank":{"post":{"tags":["Models"],"summary":"Queue signed model yank and block serving","operationId":"queueModelYank","security":[{"bearerAuth":[]}],"parameters":[{"name":"releaseId","in":"path","required":true,"description":"Model release id. URL path-escape this value.","schema":{"type":"string"},"example":"rel_..."},{"name":"If-Match","in":"header","required":true,"description":"Known release ETag/revision","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Idempotency key for safe retry","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelYankRequest"}}}},"responses":{"202":{"description":"Queue signed model yank and block serving","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelRelease"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/admin/models":{"get":{"tags":["Models"],"summary":"Inspect registry catalog and verification state","operationId":"listModels","security":[{"bearerAuth":[]}],"parameters":[{"name":"organization","in":"query","required":false,"description":"Organization slug","schema":{"type":"string"}},{"name":"team","in":"query","required":false,"description":"Canonical team id","schema":{"type":"string"}}],"responses":{"200":{"description":"Inspect registry catalog and verification state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelCatalogResponse"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/admin/model-policies":{"get":{"tags":["Models"],"summary":"List team model policies","operationId":"listModelPolicies","security":[{"bearerAuth":[]}],"parameters":[{"name":"team","in":"query","required":true,"description":"Canonical team id","schema":{"type":"string"}}],"responses":{"200":{"description":"List team model policies","content":{"application/json":{"schema":{"type":"object","required":["modelPolicies"],"properties":{"modelPolicies":{"type":"array","items":{"$ref":"#/components/schemas/TeamModelPolicy"}}}}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"put":{"tags":["Models"],"summary":"Set team model policy","operationId":"putModelPolicy","security":[{"bearerAuth":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Idempotency key for safe retry","schema":{"type":"string"}},{"name":"If-Match","in":"header","required":false,"description":"Known policy ETag/revision","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamModelPolicyRequest"}}}},"responses":{"200":{"description":"Set team model policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamModelPolicy"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"patch":{"tags":["Models"],"summary":"Patch team model policy","operationId":"patchModelPolicy","security":[{"bearerAuth":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Idempotency key for safe retry","schema":{"type":"string"}},{"name":"If-Match","in":"header","required":false,"description":"Known policy ETag/revision","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamModelPolicyRequest"}}}},"responses":{"200":{"description":"Patch team model policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamModelPolicy"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/admin/workers":{"get":{"tags":["Admin"],"summary":"List workers","operationId":"listWorkers","security":[{"bearerAuth":[]}],"parameters":[{"name":"team","in":"query","required":false,"description":"Canonical team id","schema":{"type":"string"}},{"name":"kind","in":"query","required":false,"description":"Worker kind","schema":{"type":"string"}},{"name":"region","in":"query","required":false,"description":"Region","schema":{"type":"string"}},{"name":"state","in":"query","required":false,"description":"Worker state","schema":{"type":"string"}}],"responses":{"200":{"description":"List workers","content":{"application/json":{"schema":{"type":"object","required":["workers"],"properties":{"workers":{"type":"array","items":{"$ref":"#/components/schemas/Worker"}}}}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/admin/workers/{id}":{"get":{"tags":["Admin"],"summary":"Get worker with recent logs","operationId":"getWorker","security":[{"bearerAuth":[]},{"operatorBearerAuth":[]},{"operatorAdminHeader":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Worker id. URL path-escape this value.","schema":{"type":"string"},"example":"worker_01"}],"responses":{"200":{"description":"Get worker with recent logs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerWithLogs"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"description":"Requires admin admission, then authorization against the stored worker team, else organization. Global workers (both scopes empty) require operator credentials. Request scope hints do not replace the persisted resource scope."}},"/v1/admin/workers/{id}/logs":{"get":{"tags":["Admin"],"summary":"Read worker logs","operationId":"workerLogs","security":[{"bearerAuth":[]},{"operatorBearerAuth":[]},{"operatorAdminHeader":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Worker id. URL path-escape this value.","schema":{"type":"string"},"example":"worker_01"},{"name":"limit","in":"query","required":false,"description":"Maximum log rows","schema":{"type":"string"}}],"responses":{"200":{"description":"Read worker logs","content":{"application/json":{"schema":{"type":"object","required":["logs"],"properties":{"logs":{"type":"array","items":{"$ref":"#/components/schemas/WorkerLog"}}}}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"description":"Requires admin admission, then authorization against the stored worker team, else organization. Global workers (both scopes empty) require operator credentials. Request scope hints do not replace the persisted resource scope."}},"/v1/admin/workers/{id}/drain":{"post":{"tags":["Admin"],"summary":"Drain worker","operationId":"drainWorker","security":[{"bearerAuth":[]},{"operatorBearerAuth":[]},{"operatorAdminHeader":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Worker id. URL path-escape this value.","schema":{"type":"string"},"example":"worker_01"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmptyObject"}}}},"responses":{"200":{"description":"Drain worker","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Worker"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"description":"Requires admin admission, then authorization against the stored worker team, else organization. Global workers (both scopes empty) require operator credentials. Request scope hints do not replace the persisted resource scope."}},"/v1/admin/workers/{id}/revoke":{"post":{"tags":["Admin"],"summary":"Revoke worker","operationId":"revokeWorker","security":[{"bearerAuth":[]},{"operatorBearerAuth":[]},{"operatorAdminHeader":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Worker id. URL path-escape this value.","schema":{"type":"string"},"example":"worker_01"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmptyObject"}}}},"responses":{"200":{"description":"Revoke worker","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Worker"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"description":"Requires admin admission, then authorization against the stored worker team, else organization. Global workers (both scopes empty) require operator credentials. Request scope hints do not replace the persisted resource scope."}},"/v1/admin/jobs":{"get":{"tags":["Admin"],"summary":"List jobs","operationId":"listJobs","security":[{"bearerAuth":[]}],"parameters":[{"name":"team","in":"query","required":false,"description":"Canonical team id","schema":{"type":"string"}},{"name":"state","in":"query","required":false,"description":"Job state","schema":{"type":"string"}},{"name":"sessionId","in":"query","required":false,"description":"Session id","schema":{"type":"string"}},{"name":"kind","in":"query","required":false,"description":"Job kind","schema":{"type":"string"}}],"responses":{"200":{"description":"List jobs","content":{"application/json":{"schema":{"type":"object","required":["jobs"],"properties":{"jobs":{"type":"array","items":{"$ref":"#/components/schemas/Job"}}}}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"tags":["Admin"],"summary":"Enqueue job","operationId":"enqueueJob","security":[{"bearerAuth":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobSpec"}}}},"responses":{"202":{"description":"Enqueue job","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/admin/jobs/{id}/logs":{"get":{"tags":["Admin"],"summary":"Read job logs","operationId":"jobLogs","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Job id. URL path-escape this value.","schema":{"type":"string"},"example":"job_01"},{"name":"limit","in":"query","required":false,"description":"Maximum log rows","schema":{"type":"string"}}],"responses":{"200":{"description":"Read job logs","content":{"application/json":{"schema":{"type":"object","required":["logs"],"properties":{"logs":{"type":"array","items":{"$ref":"#/components/schemas/JobLog"}}}}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/admin/jobs/{id}/cancel":{"post":{"tags":["Admin"],"summary":"Cancel job","operationId":"cancelJob","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Job id. URL path-escape this value.","schema":{"type":"string"},"example":"job_01"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmptyObject"}}}},"responses":{"200":{"description":"Cancel job","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/admin/jobs/{id}/retry":{"post":{"tags":["Admin"],"summary":"Retry job","operationId":"retryJob","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Job id. URL path-escape this value.","schema":{"type":"string"},"example":"job_01"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetryJobRequest"}}}},"responses":{"200":{"description":"Retry job","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/admin/schedules":{"get":{"tags":["Admin"],"summary":"List scheduled jobs","operationId":"listSchedules","security":[{"bearerAuth":[]}],"parameters":[{"name":"team","in":"query","required":false,"description":"Canonical team id","schema":{"type":"string"}}],"responses":{"200":{"description":"List scheduled jobs","content":{"application/json":{"schema":{"type":"object","required":["schedules"],"properties":{"schedules":{"type":"array","items":{"$ref":"#/components/schemas/Job"}}}}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"tags":["Admin"],"summary":"Schedule job","operationId":"scheduleJob","security":[{"bearerAuth":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobSpec"}}}},"responses":{"202":{"description":"Schedule job","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/admin/usage":{"get":{"tags":["Admin"],"summary":"List usage events","operationId":"listUsage","security":[{"bearerAuth":[]}],"parameters":[{"name":"team","in":"query","required":false,"description":"Canonical team id","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Maximum events","schema":{"type":"string"}}],"responses":{"200":{"description":"List usage events","content":{"application/json":{"schema":{"type":"object","required":["usage"],"properties":{"usage":{"type":"array","items":{"$ref":"#/components/schemas/UsageEvent"}}}}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/admin/audit":{"get":{"tags":["Admin"],"summary":"List audit events","operationId":"listAudit","security":[{"bearerAuth":[]}],"parameters":[{"name":"team","in":"query","required":false,"description":"Canonical team id","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Maximum events","schema":{"type":"string"}}],"responses":{"200":{"description":"List audit events","content":{"application/json":{"schema":{"type":"object","required":["auditEvents"],"properties":{"auditEvents":{"type":"array","items":{"$ref":"#/components/schemas/AuditEvent"}}}}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/admin/leases/reconcile":{"post":{"tags":["Admin"],"summary":"Reconcile expired leases","operationId":"reconcileLeases","security":[{"bearerAuth":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmptyObject"}}}},"responses":{"200":{"description":"Reconcile expired leases","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReconcileLeasesResponse"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/admin/seed":{"post":{"tags":["Admin"],"summary":"Seed defaults","operationId":"adminSeed","security":[{"bearerAuth":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmptyObject"}}}},"responses":{"200":{"description":"Seed defaults","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeedResponse"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/worker/register":{"post":{"tags":["Worker control"],"summary":"Provision worker with operator credentials","operationId":"registerWorker","security":[{"operatorBearerAuth":[]},{"operatorAdminHeader":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerRegistration"}}}},"responses":{"201":{"description":"Worker provisioned; returned credential is for subsequent worker calls, not provisioning","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerRegistrationResult"}}}},"400":{"description":"invalid_request: invalid registration or conflicting organization/team scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"forbidden: configured operator credentials required; tenant owner/admin/team-admin/viewer and worker credentials cannot register any scope or replace any worker ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"not_found: referenced team or organization does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"service_unavailable: control service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"description":"Production provisioning requires the configured S46_ADMIN_TOKEN for every scope and worker ID, including replacements. Non-production retains bootstrap access only when no operator token is configured. The operator-only boundary does not retroactively revoke issued credentials; same-ID replacement rotates that worker credential. Provisioning is not VM, loaded-model, or certification attestation."}},"/v1/worker/heartbeat":{"post":{"tags":["Worker control"],"summary":"Heartbeat worker","operationId":"heartbeatWorker","security":[{"bearerAuth":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerHeartbeatEnvelope"}}}},"responses":{"200":{"description":"Heartbeat worker","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Worker"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/worker/jobs/lease":{"post":{"tags":["Worker control"],"summary":"Lease a job","operationId":"leaseJob","security":[{"bearerAuth":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeaseRequest"}}}},"responses":{"200":{"description":"Lease a job","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeaseResult"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"description":"Leasing checks current stored worker fields and credential under the lease lock. Nonempty organization scope and optional team scope constrain matching; both empty intentionally permit a cross-organization operator pool. Model lifecycle jobs require model_certification for model.certify or model_registry_publish for model.publish/model.yank, regardless of advertised model IDs. These checks do not attest workload execution."}},"/v1/worker/jobs/complete":{"post":{"tags":["Worker control"],"summary":"Complete a job lease","operationId":"completeJob","security":[{"bearerAuth":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompleteJobRequest"}}}},"responses":{"200":{"description":"Complete a job lease","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/internal/leases/ack":{"post":{"tags":["Internal"],"summary":"Acknowledge a lease internally","operationId":"ackLease","security":[{"bearerAuth":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeaseAckRequest"}}}},"responses":{"202":{"description":"Acknowledge a lease internally","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcknowledgedResponse"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/workers":{"get":{"tags":["Harness gateway"],"summary":"List local gateway workers","operationId":"gatewayWorkers","parameters":[],"servers":[{"url":"https://gateway.s46.dev","description":"Production harness gateway"}],"responses":{"200":{"description":"List local gateway workers","content":{"application/json":{"schema":{"type":"object","required":["workers"],"properties":{"workers":{"type":"array","items":{"$ref":"#/components/schemas/GatewayWorker"}}}}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/workers/{id}":{"get":{"tags":["Harness gateway"],"summary":"Get local gateway worker","operationId":"gatewayWorker","parameters":[{"name":"id","in":"path","required":true,"description":"Gateway worker id. URL path-escape this value.","schema":{"type":"string"},"example":"local-llamacpp"}],"servers":[{"url":"https://gateway.s46.dev","description":"Production harness gateway"}],"responses":{"200":{"description":"Get local gateway worker","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayWorker"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/models":{"get":{"tags":["Harness gateway"],"summary":"OpenAI-compatible model list","operationId":"openAIModels","parameters":[],"servers":[{"url":"https://gateway.s46.dev","description":"Production harness gateway"}],"responses":{"200":{"description":"OpenAI-compatible model list","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenAIModelList"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/responses":{"post":{"tags":["Harness gateway"],"summary":"OpenAI Responses-compatible request","operationId":"openAIResponses","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenAIResponsesRequest"}}}},"servers":[{"url":"https://gateway.s46.dev","description":"Production harness gateway"}],"responses":{"200":{"description":"OpenAI Responses-compatible request. Streaming errors are reported in the event stream after headers are sent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenAIResponse"}},"text/event-stream":{"schema":{"type":"string"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"description":"Bearer authentication and independent registry verification are required in production and verification-enabled development. The authorized public model ID is mapped to a shared Chat Completions backend. See /docs/gateway for protocol subsets and stream events."}},"/v1/chat/completions":{"post":{"tags":["Harness gateway"],"summary":"OpenAI Chat Completions-compatible request","operationId":"openAIChatCompletions","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenAIChatCompletionRequest"}}}},"servers":[{"url":"https://gateway.s46.dev","description":"Production harness gateway"}],"responses":{"200":{"description":"OpenAI Chat Completions-compatible request. Streaming errors are reported in the event stream after headers are sent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenAIChatCompletion"}},"text/event-stream":{"schema":{"type":"string"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"description":"Bearer authentication and independent registry verification are required in production and verification-enabled development. The authorized public model ID is mapped to a shared Chat Completions backend. See /docs/gateway for protocol subsets and stream events."}},"/anthropic/v1/models":{"get":{"tags":["Harness gateway"],"summary":"Anthropic-compatible model list","operationId":"anthropicModels","parameters":[],"servers":[{"url":"https://gateway.s46.dev","description":"Production harness gateway"}],"responses":{"200":{"description":"Anthropic-compatible model list","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnthropicModelList"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/anthropic/v1/messages":{"post":{"tags":["Harness gateway"],"summary":"Anthropic Messages-compatible request","operationId":"anthropicMessages","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnthropicMessageRequest"}}}},"servers":[{"url":"https://gateway.s46.dev","description":"Production harness gateway"}],"responses":{"200":{"description":"Anthropic Messages-compatible request. Streaming errors are reported in the event stream after headers are sent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnthropicMessage"}},"text/event-stream":{"schema":{"type":"string"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"description":"Bearer authentication and independent registry verification are required in production and verification-enabled development. The authorized public model ID is mapped to a shared Chat Completions backend. See /docs/gateway for protocol subsets and stream events."}},"/codex/v1/models":{"get":{"tags":["Harness gateway"],"summary":"Codex/OpenAI-compatible model list","operationId":"codexModels","parameters":[],"servers":[{"url":"https://gateway.s46.dev","description":"Production harness gateway"}],"responses":{"200":{"description":"Codex/OpenAI-compatible model list","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenAIModelList"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/codex/v1/responses":{"post":{"tags":["Harness gateway"],"summary":"Codex Responses-compatible request","operationId":"codexResponses","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenAIResponsesRequest"}}}},"servers":[{"url":"https://gateway.s46.dev","description":"Production harness gateway"}],"responses":{"200":{"description":"Codex Responses-compatible request. Streaming errors are reported in the event stream after headers are sent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenAIResponse"}},"text/event-stream":{"schema":{"type":"string"}}}},"400":{"description":"invalid_request, bad_json, or unsupported_feature (unsupported protocol feature)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"412":{"description":"Precondition failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"428":{"description":"Authorization pending or precondition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"upstream_error: model upstream request or response failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable; model_registry_unavailable means independent registry verification is unavailable, while model_unavailable means no serving upstream is configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"description":"Bearer authentication and independent registry verification are required in production and verification-enabled development. The authorized public model ID is mapped to a shared Chat Completions backend. See /docs/gateway for protocol subsets and stream events."}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"},"operatorBearerAuth":{"type":"http","scheme":"bearer","description":"Configured S46_ADMIN_TOKEN, not a tenant user token or worker credential. Keep this operator secret out of tenant clients."},"operatorAdminHeader":{"type":"apiKey","in":"header","name":"X-S46-Admin-Token","description":"Alternative transport for the configured S46_ADMIN_TOKEN; used only when no bearer credential is supplied."}},"schemas":{"EmptyObject":{"type":"object","additionalProperties":false},"ErrorResponse":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"}}}}},"HealthResponse":{"type":"object","properties":{"status":{"type":"string"}}},"ReadyResponse":{"type":"object","required":["status","database"],"properties":{"status":{"type":"string","enum":["ok","unavailable"]},"database":{"type":"string","enum":["ok","disabled","unavailable"]},"modelRegistry":{"type":"string","enum":["unavailable"],"description":"Present only when the enabled independent registry check fails, after the database check passes."}},"examples":[{"status":"ok","database":"ok"},{"status":"ok","database":"disabled"},{"status":"unavailable","database":"unavailable"},{"status":"unavailable","database":"ok","modelRegistry":"unavailable"},{"status":"unavailable","database":"disabled","modelRegistry":"unavailable"}]},"OKResponse":{"type":"object","properties":{"ok":{"type":"boolean"}}},"RemovedResponse":{"type":"object","properties":{"removed":{"type":"boolean"}}},"DeletedTeamResponse":{"type":"object","properties":{"deleted":{"type":"boolean"},"team":{"type":"string"}}},"RevokedDeviceResponse":{"type":"object","properties":{"revoked":{"type":"boolean"},"deviceId":{"type":"string"}}},"RolesResponse":{"type":"object","properties":{"roles":{"type":"array","items":{"type":"string","enum":["owner","admin","member","viewer"]}}}},"ReconcileLeasesResponse":{"type":"object","properties":{"updated":{"type":"integer"}}},"SeedResponse":{"type":"object","properties":{"ok":{"type":"boolean"},"seeded":{"type":"string"}}},"AcknowledgedResponse":{"type":"object","properties":{"acknowledged":{"type":"boolean"}}},"DeviceLoginStartRequest":{"type":"object","required":["email","deviceId"],"properties":{"email":{"type":"string","format":"email"},"deviceId":{"type":"string"},"deviceName":{"type":"string"}}},"DeviceLoginStartResponse":{"type":"object","required":["deviceCode","userCode","verificationUri","intervalSeconds","expiresAt"],"properties":{"deviceCode":{"type":"string"},"userCode":{"type":"string"},"verificationUri":{"type":"string","format":"uri"},"intervalSeconds":{"type":"integer"},"expiresAt":{"type":"string","format":"date-time"}}},"DeviceLoginPollRequest":{"type":"object","required":["deviceCode"],"properties":{"deviceCode":{"type":"string"}}},"MagicLinkConsumeRequest":{"type":"object","required":["token"],"properties":{"token":{"type":"string"}}},"RefreshTokenRequest":{"type":"object","properties":{"refreshToken":{"type":"string"},"account":{"type":"string","format":"email"}}},"PasskeyLoginStartRequest":{"type":"object","required":["email"],"properties":{"email":{"type":"string","format":"email"}}},"WebAuthnOptions":{"type":"object","additionalProperties":true},"WebAuthnRegistrationResponse":{"type":"object","additionalProperties":true},"WebAuthnAuthenticationResponse":{"type":"object","additionalProperties":true},"PasskeyRegistrationResult":{"type":"object","properties":{"ok":{"type":"boolean"},"credential":{"type":"object","additionalProperties":true}}},"TokenSet":{"type":"object","required":["account","deviceId","accessToken","refreshToken","expiresAt"],"properties":{"account":{"type":"string","format":"email"},"organization":{"type":"string"},"team":{"type":"string"},"deviceId":{"type":"string"},"accessToken":{"type":"string"},"refreshToken":{"type":"string"},"expiresAt":{"type":"string","format":"date-time"}}},"User":{"type":"object","properties":{"email":{"type":"string","format":"email"},"team":{"type":"string"},"organization":{"type":"string"},"role":{"type":"string","enum":["owner","admin","member","viewer"]}}},"DeviceApprovalStatus":{"type":"object","properties":{"authenticated":{"type":"boolean"},"user":{"$ref":"#/components/schemas/User"}}},"DeviceApprovalRequest":{"type":"object","required":["userCode"],"properties":{"userCode":{"type":"string"}}},"DeviceApprovalResponse":{"type":"object","properties":{"approved":{"type":"boolean"},"user":{"$ref":"#/components/schemas/User"}}},"Device":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"account":{"type":"string"},"organizationSlug":{"type":"string"},"team":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"lastSeenAt":{"type":"string","format":"date-time"},"lastSeenIp":{"type":"string"},"revokedAt":{"type":"string","format":"date-time"}}},"Organization":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"displayName":{"type":"string"},"legalName":{"type":"string"},"status":{"type":"string"},"plan":{"type":"string"},"primaryRegion":{"type":"string"},"regions":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"OrganizationMember":{"type":"object","properties":{"organizationSlug":{"type":"string"},"email":{"type":"string","format":"email"},"role":{"type":"string","enum":["owner","admin","member","viewer"]},"displayName":{"type":"string"},"status":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"TeamMembership":{"type":"object","properties":{"email":{"type":"string","format":"email"},"team":{"type":"string"},"organizationSlug":{"type":"string"},"slug":{"type":"string"},"displayName":{"type":"string"},"role":{"type":"string","enum":["owner","admin","member","viewer"]},"region":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}}},"Person":{"type":"object","properties":{"email":{"type":"string","format":"email"},"displayName":{"type":"string"},"status":{"type":"string"},"organizationRoles":{"type":"array","items":{"$ref":"#/components/schemas/OrganizationMember"}},"teams":{"type":"array","items":{"$ref":"#/components/schemas/TeamMembership"}},"devices":{"type":"array","items":{"$ref":"#/components/schemas/Device"}},"invitations":{"type":"array","items":{"$ref":"#/components/schemas/Invitation"}},"auditEvents":{"type":"array","items":{"$ref":"#/components/schemas/AuditEvent"}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"PersonStatusRequest":{"type":"object","properties":{"status":{"type":"string"}}},"Invitation":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string","format":"email"},"organizationSlug":{"type":"string"},"team":{"type":"string"},"teams":{"type":"array","items":{"type":"string"}},"role":{"type":"string"},"status":{"type":"string"},"usedAt":{"type":"string","format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"InviteRequest":{"type":"object","required":["email","role"],"properties":{"email":{"type":"string","format":"email"},"organizationSlug":{"type":"string"},"team":{"type":"string"},"teams":{"type":"array","items":{"type":"string"}},"role":{"type":"string","enum":["owner","admin","member","viewer"]}}},"InviteResponse":{"type":"object","properties":{"user":{"$ref":"#/components/schemas/UserRecord"},"emailSent":{"type":"boolean"}}},"InvitationResponse":{"type":"object","properties":{"invitation":{"$ref":"#/components/schemas/Invitation"},"emailSent":{"type":"boolean"}}},"RevokeInviteRequest":{"type":"object","required":["email"],"properties":{"email":{"type":"string","format":"email"},"organizationSlug":{"type":"string"},"team":{"type":"string"}}},"RevokeInviteResponse":{"type":"object","properties":{"revoked":{"type":"boolean"},"invitation":{"$ref":"#/components/schemas/Invitation"}}},"UserRecord":{"type":"object","properties":{"email":{"type":"string","format":"email"},"team":{"type":"string"},"organizationSlug":{"type":"string"},"role":{"type":"string"},"status":{"type":"string"},"displayName":{"type":"string"}}},"Team":{"type":"object","description":"Shared team settings shape. Public GET /v1/teams/{team} resolves authorized cloud models and runtime metadata under the registry gate. Admin team routes read/write configured settings instead; their model fields are not serving authority.","properties":{"id":{"type":"string"},"name":{"type":"string"},"organizationSlug":{"type":"string"},"slug":{"type":"string"},"displayName":{"type":"string"},"endpoint":{"type":"string","format":"uri"},"region":{"type":"string"},"mode":{"type":"string"},"workerHosts":{"type":"array","items":{"type":"string"}},"defaultModel":{"type":"string","description":"Configured preference; may be absent from the currently authorized model list."},"models":{"type":["array","null"],"items":{"type":"string"},"description":"Public cloud team resolution returns servable, team-allowed IDs. Admin responses contain configured IDs (possibly null), not an authorized discovery list."},"modelMetadata":{"type":["object","null"],"additionalProperties":{"$ref":"#/components/schemas/ModelRuntime"},"description":"Responses include this field. Only public cloud team resolution recomputes the authoritative authorized runtime map. Admin/local settings may return null; stored or submitted metadata does not establish serving trust."},"monthlyCapMicros":{"type":"integer"},"memberCount":{"type":"integer"},"deviceCount":{"type":"integer"},"workerCount":{"type":"integer"},"spendMicros":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"Session":{"type":"object","properties":{"id":{"type":"string"},"state":{"type":"string"},"harness":{"type":"string"},"location":{"type":"string"},"region":{"type":"string"},"model":{"type":"string"},"age":{"type":"string"},"spent":{"type":"string"},"task":{"type":"string"}}},"ModelRuntime":{"type":"object","description":"Signed registry metadata, not verification of loaded checkpoint bytes. Optional fields may be absent.","required":["reasoning"],"properties":{"engine":{"type":"string"},"version":{"type":"string"},"profileSha256":{"type":"string"},"contextWindow":{"type":"integer"},"maxTokens":{"type":"integer"},"reasoning":{"type":"boolean","description":"Model capability; does not imply adapter support for reasoning controls."},"minMemoryBytes":{"type":"integer","format":"int64"},"recommendedMemoryBytes":{"type":"integer","format":"int64"}}},"ModelCatalogEntry":{"type":"object","properties":{"format":{"type":"string","enum":["gguf","safetensors"],"description":"Native safetensors use a package.json inventory; older manifests may omit format."},"runtime":{"$ref":"#/components/schemas/ModelRuntime"},"id":{"type":"string"},"displayName":{"type":"string"},"provider":{"type":"string"},"region":{"type":"string"},"capabilities":{"type":"array","items":{"type":"string"}},"contextWindow":{"type":"integer"},"maxOutputTokens":{"type":"integer"},"inputCostMicrosPerToken":{"type":"integer"},"outputCostMicrosPerToken":{"type":"integer"},"status":{"type":"string"},"backendModel":{"type":"string"},"digest":{"type":"string"},"version":{"type":"string"},"filename":{"type":"string"},"artifactUrl":{"type":"string"},"manifestUrl":{"type":"string"},"manifestSignatureUrl":{"type":"string"},"size":{"type":"integer"},"sha256":{"type":"string"},"bundleDigest":{"type":"string"},"artifactDigest":{"type":"string"},"releaseSignatureSubjectDigest":{"type":"string"},"certified":{"type":"boolean","description":"Release/audit evidence passed for this registry entry; not an attestation of currently loaded runtime bytes."},"published":{"type":"boolean","description":"Release is represented in the verified registry; does not imply activation or serving availability."},"yanked":{"type":"boolean"},"advisoryBlocked":{"type":"boolean"},"globallyBlocked":{"type":"boolean"},"sigsumStatus":{"type":"string","description":"Transparency state observed during registry verification; not a permanent live-health or activation badge."},"verificationState":{"type":"string","description":"Registry-document verification state, separate from loaded-runtime identity and availability."},"verificationError":{"type":"string"},"advisoryUrls":{"type":"array","items":{"type":"string"}},"yankUrls":{"type":"array","items":{"type":"string"}},"registryCreatedAt":{"type":"string","format":"date-time"},"syncedAt":{"type":"string","format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"ModelCatalogResponse":{"type":"object","properties":{"models":{"type":"array","items":{"$ref":"#/components/schemas/ModelCatalogEntry"}},"modelPolicies":{"type":"array","items":{"$ref":"#/components/schemas/TeamModelPolicy"}}}},"CreateModelReleaseRequest":{"type":"object","required":["namespace","team","modelSlug"],"properties":{"namespace":{"type":"string"},"team":{"type":"string"},"modelSlug":{"type":"string"}}},"ModelArtifact":{"type":"object","properties":{"digest":{"type":"string"},"sha256":{"type":"string"},"size":{"type":"integer"},"contentType":{"type":"string"},"filename":{"type":"string"},"storageUri":{"type":"string"},"quarantineUri":{"type":"string"},"casUri":{"type":"string"},"uploadedAt":{"type":"string","format":"date-time"}}},"ModelUploadSessionRequest":{"type":"object","required":["artifact"],"properties":{"artifact":{"type":"object","required":["sha256","size"],"properties":{"sha256":{"type":"string"},"size":{"type":"integer"},"contentType":{"type":"string"},"filename":{"type":"string"},"partCount":{"type":"integer"}}}}},"ModelUploadSession":{"type":"object","properties":{"id":{"type":"string"},"releaseId":{"type":"string"},"namespace":{"type":"string"},"modelSlug":{"type":"string"},"artifactDigest":{"type":"string"},"artifactSize":{"type":"integer"},"uploadUrl":{"type":"string"},"method":{"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"state":{"type":"string"},"expiresAt":{"type":"string","format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"finalizedAt":{"type":"string","format":"date-time"}}},"ModelUploadSessionResponse":{"type":"object","properties":{"uploadSession":{"$ref":"#/components/schemas/ModelUploadSession"},"modelRelease":{"$ref":"#/components/schemas/ModelRelease"}}},"FinalizeModelUploadRequest":{"type":"object","required":["uploadSessionId","sha256","size"],"properties":{"uploadSessionId":{"type":"string"},"sha256":{"type":"string"},"size":{"type":"integer"}}},"ModelValidationRequest":{"type":"object","properties":{"estimatedGpuHours":{"type":"integer"}}},"ModelPublishRequest":{"type":"object","properties":{}},"ModelYankRequest":{"type":"object","properties":{"reason":{"type":"string"}}},"ModelCertificationRecord":{"type":"object","properties":{"schema":{"type":"string"},"releaseId":{"type":"string"},"modelId":{"type":"string"},"version":{"type":"string"},"artifactDigest":{"type":"string"},"artifactSize":{"type":"integer"},"backendModel":{"type":"string"},"result":{"type":"string"},"summary":{"type":"string"},"sigsumStatus":{"type":"string"},"transparencyLogUrl":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"verificationSuite":{"type":"object","properties":{"version":{"type":"string"},"runnerImageDigest":{"type":"string"},"policyDigest":{"type":"string"},"privateHoldoutSetId":{"type":"string"}}},"evidenceDigests":{"type":"array","items":{"type":"string"}},"thresholdSignatures":{"type":"object","properties":{"subjectDigest":{"type":"string"},"threshold":{"type":"integer"},"state":{"type":"string"},"signatures":{"type":"array","items":{"type":"object","properties":{"keyId":{"type":"string"},"signer":{"type":"string"},"signatureDigest":{"type":"string"},"signedAt":{"type":"string","format":"date-time"}}}}}}}},"ModelPublicationRecord":{"type":"object","properties":{"schema":{"type":"string"},"releaseId":{"type":"string"},"modelId":{"type":"string"},"version":{"type":"string"},"artifactUrl":{"type":"string"},"manifestUrl":{"type":"string"},"indexUrl":{"type":"string"},"registryRef":{"type":"string"},"sigsumStatus":{"type":"string"},"publishedAt":{"type":"string","format":"date-time"}}},"ModelYankRecord":{"type":"object","properties":{"schema":{"type":"string"},"releaseId":{"type":"string"},"modelId":{"type":"string"},"version":{"type":"string"},"artifactDigest":{"type":"string"},"releaseCertificateDigest":{"type":"string"},"reason":{"type":"string"},"effectiveAt":{"type":"string","format":"date-time"},"loggedAt":{"type":"string","format":"date-time"}}},"ModelRelease":{"type":"object","properties":{"id":{"type":"string"},"schema":{"type":"string"},"namespace":{"type":"string"},"organizationSlug":{"type":"string"},"teamSlug":{"type":"string"},"modelSlug":{"type":"string"},"modelId":{"type":"string"},"version":{"type":"string"},"state":{"type":"string","enum":["staged","certifying","certified","publishing","published","yanking","yanked","failed"]},"backendModel":{"type":"string"},"servingBlocked":{"type":"boolean"},"certificationJobId":{"type":"string"},"publishJobId":{"type":"string"},"yankJobId":{"type":"string"},"estimatedGpuHours":{"type":"integer"},"verificationError":{"type":"string"},"createdBy":{"type":"string"},"updatedBy":{"type":"string"},"revision":{"type":"integer"},"etag":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"certificationQueuedAt":{"type":"string","format":"date-time"},"publishQueuedAt":{"type":"string","format":"date-time"},"yankRequestedAt":{"type":"string","format":"date-time"},"artifact":{"$ref":"#/components/schemas/ModelArtifact"},"certification":{"$ref":"#/components/schemas/ModelCertificationRecord"},"publication":{"$ref":"#/components/schemas/ModelPublicationRecord"},"yank":{"$ref":"#/components/schemas/ModelYankRecord"}}},"TeamModelPolicy":{"type":"object","properties":{"team":{"type":"string"},"organizationSlug":{"type":"string"},"modelId":{"type":"string"},"allowed":{"type":"boolean"},"isDefault":{"type":"boolean"},"revision":{"type":"integer"},"etag":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"TeamModelPolicyRequest":{"type":"object","description":"Stored model grant edit. On a running service, registry verification outages do not block edits; authentication, scope, ETag, and idempotency rules still apply. Saving or enabling a grant does not reopen model serving without independent verification.","required":["team","modelId"],"properties":{"team":{"type":"string"},"modelId":{"type":"string"},"allowed":{"type":"boolean"},"isDefault":{"type":"boolean"}}},"Overview":{"type":"object","properties":{"organizations":{"type":"integer"},"teams":{"type":"integer"},"people":{"type":"integer"},"workers":{"type":"integer"},"jobs":{"type":"object","additionalProperties":{"type":"integer"}},"models":{"type":"integer"},"regions":{"type":"array","items":{"type":"string"}},"usage":{"type":"object","properties":{"costMicros":{"type":"integer"},"inputTokens":{"type":"integer"},"outputTokens":{"type":"integer"}}}}},"Capacity":{"type":"object","properties":{"slots":{"type":"integer"},"maxConcurrent":{"type":"integer"},"inUse":{"type":"integer"}}},"WorkerModel":{"type":"object","properties":{"id":{"type":"string"},"backendModel":{"type":"string"},"digest":{"type":"string"},"state":{"type":"string"},"ready":{"type":"boolean"},"updatedAt":{"type":"string","format":"date-time"}}},"WorkerRegistration":{"type":"object","description":"Operator-provisioned scope. With both organizationSlug and team empty/omitted, the worker intentionally belongs to a global cross-organization operator pool.","required":["kind","region","version","capabilities","capacity"],"properties":{"id":{"type":"string","description":"Optional worker ID. An operator may replace an existing ID, rotating that worker credential."},"organizationSlug":{"type":"string","description":"Must name an existing organization when used without team; when team is supplied, must match its derived organization."},"team":{"type":"string","description":"Optional existing canonical team ID; its organization is resolved even when organizationSlug is supplied."},"kind":{"type":"string","enum":["model_worker","execution_worker","hybrid_worker"]},"region":{"type":"string"},"version":{"type":"string"},"endpoint":{"type":"string"},"protocol":{"type":"string"},"capabilities":{"type":"array","items":{"type":"string"}},"capacity":{"type":"object","properties":{"slots":{"type":"integer"},"maxConcurrent":{"type":"integer"},"inUse":{"type":"integer"}}},"models":{"type":"array","items":{"type":"string"}},"modelDetails":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"backendModel":{"type":"string"},"digest":{"type":"string"},"state":{"type":"string"},"ready":{"type":"boolean"},"updatedAt":{"type":"string","format":"date-time"}}}}}},"Worker":{"type":"object","properties":{"id":{"type":"string"},"organizationSlug":{"type":"string"},"team":{"type":"string"},"kind":{"type":"string"},"region":{"type":"string"},"version":{"type":"string"},"endpoint":{"type":"string"},"protocol":{"type":"string"},"state":{"type":"string"},"capabilities":{"type":"array","items":{"type":"string"}},"capacity":{"type":"object","properties":{"slots":{"type":"integer"},"maxConcurrent":{"type":"integer"},"inUse":{"type":"integer"}}},"models":{"type":"array","items":{"type":"string"}},"modelDetails":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"backendModel":{"type":"string"},"digest":{"type":"string"},"state":{"type":"string"},"ready":{"type":"boolean"},"updatedAt":{"type":"string","format":"date-time"}}}},"drainRequested":{"type":"boolean"},"revokedAt":{"type":"string","format":"date-time"},"lastHeartbeatAt":{"type":"string","format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"WorkerWithLogs":{"type":"object","properties":{"worker":{"$ref":"#/components/schemas/Worker"},"logs":{"type":"array","items":{"$ref":"#/components/schemas/WorkerLog"}}}},"WorkerRegistrationResult":{"type":"object","description":"Provisioned worker and worker credential. Same-ID replacement rotates that credential; the operator-only boundary does not retroactively revoke other issued credentials. Provisioning does not attest execution, loaded weights, or certification.","properties":{"worker":{"$ref":"#/components/schemas/Worker"},"token":{"type":"string","description":"Worker credential for heartbeat, lease, acknowledgement, and completion; not authorization to register workers."}}},"WorkerHeartbeat":{"type":"object","properties":{"state":{"type":"string"},"capacity":{"type":"object","properties":{"slots":{"type":"integer"},"maxConcurrent":{"type":"integer"},"inUse":{"type":"integer"}}},"models":{"type":"array","items":{"type":"string"}},"modelDetails":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"backendModel":{"type":"string"},"digest":{"type":"string"},"state":{"type":"string"},"ready":{"type":"boolean"},"updatedAt":{"type":"string","format":"date-time"}}}}}},"WorkerHeartbeatEnvelope":{"type":"object","required":["workerId","heartbeat"],"properties":{"workerId":{"type":"string"},"heartbeat":{"$ref":"#/components/schemas/WorkerHeartbeat"}}},"Job":{"type":"object","properties":{"id":{"type":"string"},"organizationSlug":{"type":"string"},"team":{"type":"string"},"sessionId":{"type":"string"},"kind":{"type":"string","enum":["model","execution"]},"state":{"type":"string","enum":["queued","leased","succeeded","failed","canceled","timed_out"]},"priority":{"type":"integer"},"region":{"type":"string"},"harness":{"type":"string"},"model":{"type":"string"},"workerId":{"type":"string"},"leaseId":{"type":"string"},"leaseExpiresAt":{"type":"string","format":"date-time"},"runAfter":{"type":"string","format":"date-time"},"runBefore":{"type":"string","format":"date-time"},"maxRuntimeSeconds":{"type":"integer"},"maxCostMicros":{"type":"integer"},"actor":{"type":"string"},"repository":{"type":"string"},"branch":{"type":"string"},"costMicros":{"type":"integer"},"sandboxException":{"type":"string"},"payload":{"type":"object","additionalProperties":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"JobSpec":{"type":"object","required":["team","sessionId","kind"],"properties":{"team":{"type":"string"},"sessionId":{"type":"string"},"kind":{"type":"string","enum":["model","execution"]},"priority":{"type":"integer"},"region":{"type":"string"},"harness":{"type":"string"},"model":{"type":"string"},"runAfter":{"type":"string","format":"date-time"},"runBefore":{"type":"string","format":"date-time"},"maxRuntimeSeconds":{"type":"integer"},"maxCostMicros":{"type":"integer"},"actor":{"type":"string"},"repository":{"type":"string"},"branch":{"type":"string"},"payload":{"type":"object","additionalProperties":true}}},"JobLease":{"type":"object","properties":{"id":{"type":"string"},"jobId":{"type":"string"},"workerId":{"type":"string"},"state":{"type":"string"},"expiresAt":{"type":"string","format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"LeaseRequest":{"type":"object","required":["workerId"],"properties":{"workerId":{"type":"string"},"leaseSeconds":{"type":"integer"}}},"LeaseResult":{"type":"object","properties":{"job":{"$ref":"#/components/schemas/Job"},"lease":{"$ref":"#/components/schemas/JobLease"}}},"LeaseAckRequest":{"type":"object","required":["workerId","jobId","leaseId"],"properties":{"workerId":{"type":"string"},"jobId":{"type":"string"},"leaseId":{"type":"string"}}},"JobCompletion":{"type":"object","properties":{"state":{"type":"string","enum":["succeeded","failed","canceled"]},"payload":{"type":"object","additionalProperties":true},"usage":{"$ref":"#/components/schemas/UsageEvent"}}},"CompleteJobRequest":{"type":"object","required":["workerId","jobId","leaseId","completion"],"properties":{"workerId":{"type":"string"},"jobId":{"type":"string"},"leaseId":{"type":"string"},"completion":{"$ref":"#/components/schemas/JobCompletion"}}},"RetryJobRequest":{"type":"object","properties":{"runAfter":{"type":"string","format":"date-time"}}},"UsageEvent":{"type":"object","properties":{"id":{"type":"integer"},"organizationSlug":{"type":"string"},"team":{"type":"string"},"actor":{"type":"string"},"sessionId":{"type":"string"},"jobId":{"type":"string"},"model":{"type":"string"},"inputTokens":{"type":"integer"},"outputTokens":{"type":"integer"},"costMicros":{"type":"integer"},"eventType":{"type":"string"},"metadata":{"type":"object","additionalProperties":true},"at":{"type":"string","format":"date-time"}}},"HarnessPolicy":{"type":"object","description":"Stored team configuration, not CLI drift enforcement or a signed per-job sandbox policy. The example shows defaults returned when no policy is stored; saves do not merge these read defaults except for empty sandboxProfiles and forced exceptionLogging.","examples":[{"team":"@s46/engineering","allowedFunctions":["read","bash","edit","write"],"mandatoryFunctions":[],"sandboxProfiles":["vm-default"],"loopEnabled":false,"exceptionLogging":true}],"properties":{"team":{"type":"string"},"allowedFunctions":{"type":"array","items":{"type":"string"}},"mandatoryFunctions":{"type":"array","items":{"type":"string"}},"sandboxProfiles":{"type":"array","items":{"type":"string"},"description":"An empty list is saved as [\"vm-default\"]."},"loopEnabled":{"type":"boolean"},"exceptionLogging":{"type":"boolean","description":"Forced to true on save; does not itself implement an enforcement engine."},"config":{"type":"object","additionalProperties":true},"updatedAt":{"type":"string","format":"date-time"}}},"GitHubInstallation":{"type":"object","properties":{"organizationSlug":{"type":"string"},"installationId":{"type":"integer"},"accountLogin":{"type":"string"},"accountType":{"type":"string"},"permissions":{"type":"object","additionalProperties":{"type":"string"}},"events":{"type":"array","items":{"type":"string"}},"status":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"TeamRepository":{"type":"object","properties":{"team":{"type":"string"},"provider":{"type":"string"},"installationId":{"type":"integer"},"owner":{"type":"string"},"repo":{"type":"string"},"defaultBranch":{"type":"string"},"policy":{"type":"object","additionalProperties":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"WorkerLog":{"type":"object","properties":{"id":{"type":"integer"},"workerId":{"type":"string"},"level":{"type":"string"},"message":{"type":"string"},"metadata":{"type":"object","additionalProperties":true},"createdAt":{"type":"string","format":"date-time"}}},"JobLog":{"type":"object","properties":{"id":{"type":"integer"},"jobId":{"type":"string"},"workerId":{"type":"string"},"level":{"type":"string"},"message":{"type":"string"},"metadata":{"type":"object","additionalProperties":true},"createdAt":{"type":"string","format":"date-time"}}},"AuditEvent":{"type":"object","properties":{"id":{"type":"integer"},"actor":{"type":"string"},"email":{"type":"string"},"organizationSlug":{"type":"string"},"team":{"type":"string"},"action":{"type":"string"},"outcome":{"type":"string"},"deviceId":{"type":"string"},"subject":{"type":"string"},"ipAddress":{"type":"string"},"metadata":{"type":"object","additionalProperties":true},"at":{"type":"string","format":"date-time"}}},"GatewayWorkerModel":{"type":"object","properties":{"id":{"type":"string"},"backendModel":{"type":"string"},"state":{"type":"string"}}},"GatewayWorker":{"type":"object","properties":{"id":{"type":"string"},"mode":{"type":"string"},"kind":{"type":"string"},"protocol":{"type":"string"},"state":{"type":"string"},"models":{"type":"array","items":{"$ref":"#/components/schemas/GatewayWorkerModel"}},"capabilities":{"type":"array","items":{"type":"string"}}}},"OpenAIModelList":{"type":"object","properties":{"object":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"object":{"type":"string"},"created":{"type":"integer"},"owned_by":{"type":"string"},"metadata":{"$ref":"#/components/schemas/ModelCatalogEntry"}}}}}},"AnthropicModelList":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"display_name":{"type":"string"}}}},"has_more":{"type":"boolean"}}},"OutputTokenLimit":{"type":"integer","minimum":1,"maximum":2147483647,"description":"Must not exceed the effective catalog limit (maxOutputTokens bounded by contextWindow), when positive limits are available. Omitted limits default to that limit. Multiple supplied aliases must agree; invalid or excessive values return 400 invalid_request."},"OpenAIResponsesRequest":{"type":"object","additionalProperties":false,"required":["input"],"description":"Verified cloud subset: text, function tools/results, and text/JSON output. Send full history; unsupported features return 400 unsupported_feature. Cloud n_predict returns 400 invalid_request.","properties":{"model":{"type":"string","description":"Authorized public ID; omitted uses the configured team default."},"input":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"object","additionalProperties":true}}]},"instructions":{"type":["string","null"]},"stream":{"type":"boolean"},"tools":{"type":"array","items":{"type":"object","required":["type","name"],"properties":{"type":{"const":"function"},"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}},"additionalProperties":false}},"tool_choice":{"oneOf":[{"enum":["auto","none","required"]},{"type":"object","required":["type","name"],"properties":{"type":{"const":"function"},"name":{"type":"string"}},"additionalProperties":false}]},"parallel_tool_calls":{"type":"boolean"},"temperature":{"type":"number"},"top_p":{"type":"number"},"max_output_tokens":{"$ref":"#/components/schemas/OutputTokenLimit"},"max_tokens":{"$ref":"#/components/schemas/OutputTokenLimit"},"max_completion_tokens":{"$ref":"#/components/schemas/OutputTokenLimit"},"store":{"enum":[false,null]},"background":{"enum":[false,null]},"previous_response_id":{"enum":["",null]},"reasoning":{"type":"null"},"metadata":{"type":"object","maxProperties":0},"include":{"type":"array","maxItems":0},"truncation":{"const":"disabled"},"text":{"type":"object","additionalProperties":false,"properties":{"format":{"type":"object","description":"text, json_object, or json_schema output format","properties":{"type":{"enum":["text","json_object","json_schema"]}}}}},"client_metadata":{"type":"object","maxProperties":16,"additionalProperties":{"type":"string"},"description":"Diagnostic-only, not forwarded: keys 1–64 bytes, values at most 512 bytes, aggregate at most 4096 bytes."},"prompt_cache_key":{"type":"string","description":"At most 256 bytes; advisory only, not forwarded and no cache affinity promised."}}},"OpenAIChatCompletionRequest":{"type":"object","additionalProperties":true,"description":"Chat payload is forwarded to the verified backend after authorization, model mapping, and output-limit validation. max_output_tokens and n_predict are rejected with 400 invalid_request.","properties":{"model":{"type":"string","description":"Authorized public ID; omitted uses the configured team default."},"messages":{"type":"array","items":{"type":"object","additionalProperties":true}},"stream":{"type":"boolean"},"max_tokens":{"$ref":"#/components/schemas/OutputTokenLimit"},"max_completion_tokens":{"$ref":"#/components/schemas/OutputTokenLimit"},"max_output_tokens":false,"n_predict":false}},"AnthropicMessageRequest":{"type":"object","additionalProperties":false,"required":["messages"],"description":"Verified cloud text/function-tool subset. Attachments, thinking, server tools, and context management return 400 unsupported_feature. Output limits follow the catalog; max_tokens may be omitted.","properties":{"model":{"type":"string","description":"Authorized public ID; omitted uses the configured team default."},"messages":{"type":"array","minItems":1,"items":{"type":"object","properties":{"role":{"enum":["user","assistant"]},"content":{"description":"Text or text/tool_use/tool_result blocks; tool results contain text only."}}}},"system":{"description":"Text or text blocks."},"max_tokens":{"$ref":"#/components/schemas/OutputTokenLimit"},"stream":{"type":"boolean"},"temperature":{"type":"number"},"top_p":{"type":"number"},"stop_sequences":{"type":"array","items":{"type":"string"}},"tools":{"type":"array","items":{"type":"object","description":"Named function tool with input_schema; server tool types are unsupported."}},"tool_choice":{"type":"object","description":"type: auto, any, none, or tool (with name); optional disable_parallel_tool_use boolean."},"metadata":{"type":"object"}}},"OpenAIResponse":{"type":"object","additionalProperties":true},"OpenAIChatCompletion":{"type":"object","additionalProperties":true},"AnthropicMessage":{"type":"object","additionalProperties":true}}}}