{"openapi":"3.1.0","info":{"title":"Model Relay Non-Payment API","version":"1.0.0","description":"Implemented local non-payment customer and protected operator APIs. Offline audio produces deterministic WAV test files and is not TTS."},"servers":[{"url":"/"}],"tags":[{"name":"account"},{"name":"mfa"},{"name":"conversations"},{"name":"presets"},{"name":"comparisons"},{"name":"batches"},{"name":"audio"},{"name":"retrieval"},{"name":"routing"},{"name":"budget"},{"name":"support"},{"name":"scim"},{"name":"notifications"},{"name":"classifiers"},{"name":"files"}],"paths":{"/account/email/verification-requests":{"post":{"operationId":"requestEmailVerification","tags":["account"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Accepted"}}}},"default":{"description":"Structured error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"email":{"type":"string","format":"email","maxLength":254}},"required":["email"]}}}},"security":[{"sessionCookie":[]},{"bearerAuth":[]}]}},"/auth/email-verifications":{"post":{"operationId":"verifyEmail","tags":["account"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Verified"}}}},"default":{"description":"Structured error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"token":{"type":"string","minLength":32,"maxLength":256}},"required":["token"]}}}},"security":[]}},"/auth/password-reset-requests":{"post":{"operationId":"requestPasswordReset","tags":["account"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Accepted"}}}},"default":{"description":"Structured error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"email":{"type":"string","format":"email","maxLength":254}},"required":["email"]}}}},"security":[]}},"/auth/password-resets":{"post":{"operationId":"resetPassword","tags":["account"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordReset"}}}},"default":{"description":"Structured error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"token":{"type":"string","minLength":32,"maxLength":256},"newPassword":{"type":"string","minLength":12,"maxLength":128}},"required":["token","newPassword"]}}}},"security":[]}},"/account/mfa":{"get":{"operationId":"getMfaStatus","tags":["mfa"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MfaStatus"}}}},"default":{"description":"Structured error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"sessionCookie":[]},{"bearerAuth":[]}]},"delete":{"operationId":"disableMfa","tags":["mfa"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MfaStatus"}}}},"default":{"description":"Structured error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"currentPassword":{"type":"string"},"otp":{"type":"string","pattern":"^[0-9]{6}$"}},"required":["currentPassword","otp"]}}}},"security":[{"sessionCookie":[]},{"bearerAuth":[]}]}},"/account/mfa/enrollment":{"post":{"operationId":"beginMfaEnrollment","tags":["mfa"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MfaEnrollment"}}}},"default":{"description":"Structured error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"currentPassword":{"type":"string","minLength":1,"maxLength":128}},"required":["currentPassword"]}}}},"security":[{"sessionCookie":[]},{"bearerAuth":[]}]}},"/account/mfa/enable":{"post":{"operationId":"enableMfa","tags":["mfa"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MfaStatus"}}}},"default":{"description":"Structured error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"currentPassword":{"type":"string"},"otp":{"type":"string","pattern":"^[0-9]{6}$"}},"required":["currentPassword","otp"]}}}},"security":[{"sessionCookie":[]},{"bearerAuth":[]}]}},"/auth/mfa/challenges/verify":{"post":{"operationId":"verifyMfaChallenge","tags":["mfa"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Session"}}}},"default":{"description":"Structured error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"challengeToken":{"type":"string","minLength":32,"maxLength":256},"code":{"type":"string","minLength":6,"maxLength":32}},"required":["challengeToken","code"]}}}},"security":[]}},"/v1/chat/quotes":{"post":{"operationId":"quoteChatTurn","tags":["conversations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatTurnQuoteInput"}}}},"responses":{"200":{"description":"Bound Chat Turn quote","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatTurnQuote"}}}},"default":{"description":"Structured error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"sessionCookie":[]},{"bearerAuth":[]}]}},"/v1/chat/turns":{"post":{"operationId":"createFirstChatTurn","tags":["conversations"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FirstChatTurnInput"}}}},"responses":{"200":{"description":"Idempotent replay","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatTurnSubmitResult"}}}},"201":{"description":"Chat Room and first Turn created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatTurnSubmitResult"}}}},"default":{"description":"Structured error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"sessionCookie":[]},{"bearerAuth":[]}]}},"/v1/chat/resume":{"post":{"operationId":"resumeChatTurnAfterPayment","tags":["conversations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"resumeKey":{"type":"string","minLength":32,"maxLength":128}},"required":["resumeKey"]}}}},"responses":{"200":{"description":"Original Generation admitted exactly once","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatTurnAdmittedResult"}}}},"202":{"description":"Server has not authoritatively credited payment","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatPaymentConfirmationPendingResult"}}}},"default":{"description":"Structured error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"sessionCookie":[]}]}},"/v1/studio/conversations":{"get":{"operationId":"listConversations","tags":["conversations"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationPage"}}}},"default":{"description":"Structured error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"sessionCookie":[]},{"bearerAuth":[]}],"parameters":[{"name":"search","in":"query","schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"view","in":"query","schema":{"type":"string","enum":["active","archived"],"default":"active"}},{"name":"favorite","in":"query","schema":{"type":"boolean"}}]},"post":{"operationId":"createConversation","tags":["conversations"],"responses":{"200":{"description":"Idempotent replay","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationCreateResult"}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationCreateResult"}}}},"default":{"description":"Structured error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"title":{"type":"string","minLength":1,"maxLength":100},"model":{"type":"string"},"maxTokens":{"type":"integer","minimum":1,"maximum":512}},"required":["title","model","maxTokens"]}}}},"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"sessionCookie":[]},{"bearerAuth":[]}]}},"/v1/studio/conversations/{id}":{"get":{"operationId":"getConversation","tags":["conversations"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationDetail"}}}},"default":{"description":"Structured error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"$ref":"#/components/parameters/Id"}],"security":[{"sessionCookie":[]},{"bearerAuth":[]}]},"delete":{"operationId":"deleteConversation","tags":["conversations"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conversation"}}}},"default":{"description":"Structured error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"revision":{"type":"integer","minimum":1}},"required":["revision"]}}}},"parameters":[{"$ref":"#/components/parameters/Id"}],"security":[{"sessionCookie":[]},{"bearerAuth":[]}]}},"/v1/studio/conversations/{id}/messages":{"post":{"operationId":"appendConversationMessage","tags":["conversations"],"responses":{"200":{"description":"Success or idempotent replay","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatTurnSubmitResult"}}}},"default":{"description":"Structured error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"revision":{"type":"integer","minimum":1,"maximum":2147483646},"content":{"type":"string","minLength":1,"maxLength":4000},"attachmentIds":{"maxItems":4,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"contextMessageIds":{"maxItems":16,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"memoryEntryIds":{"maxItems":8,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"compressionPreviewId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"quoteId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["revision","content","quoteId"],"additionalProperties":false}}}},"parameters":[{"$ref":"#/components/parameters/Id"},{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"sessionCookie":[]},{"bearerAuth":[]}]}},"/v1/studio/conversations/branches":{"post":{"operationId":"branchConversation","tags":["conversations"],"responses":{"200":{"description":"Idempotent replay","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationCreateResult"}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationCreateResult"}}}},"default":{"description":"Structured error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"conversationId":{"type":"string","format":"uuid"},"messageId":{"type":"string","format":"uuid"},"title":{"type":"string","minLength":1,"maxLength":100}},"required":["conversationId","messageId","title"]}}}},"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"sessionCookie":[]},{"bearerAuth":[]}]}},"/v1/studio/presets":{"get":{"operationId":"listPresets","tags":["presets"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PresetPage"}}}},"default":{"description":"Structured error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"sessionCookie":[]},{"bearerAuth":[]}]},"post":{"operationId":"createPreset","tags":["presets"],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Preset"}}}},"default":{"description":"Structured error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string"},"description":{"type":"string"},"template":{"$ref":"#/components/schemas/ChatTemplate"}},"required":["name","description","template"]}}}},"security":[{"sessionCookie":[]},{"bearerAuth":[]}]}},"/v1/studio/presets/{id}":{"get":{"operationId":"getPreset","tags":["presets"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Preset"}}}},"default":{"description":"Structured error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"$ref":"#/components/parameters/Id"}],"security":[{"sessionCookie":[]},{"bearerAuth":[]}]},"patch":{"operationId":"updatePreset","tags":["presets"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Preset"}}}},"default":{"description":"Structured error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string"},"description":{"type":"string"},"template":{"$ref":"#/components/schemas/ChatTemplate"},"revision":{"type":"integer"}},"required":["name","description","template","revision"]}}}},"parameters":[{"$ref":"#/components/parameters/Id"}],"security":[{"sessionCookie":[]},{"bearerAuth":[]}]},"delete":{"operationId":"deletePreset","tags":["presets"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Preset"}}}},"default":{"description":"Structured error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"revision":{"type":"integer"}},"required":["revision"]}}}},"parameters":[{"$ref":"#/components/parameters/Id"}],"security":[{"sessionCookie":[]},{"bearerAuth":[]}]}},"/v1/studio/presets/{id}/input":{"get":{"operationId":"materializePreset","tags":["presets"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatTemplate"}}}},"default":{"description":"Structured error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"$ref":"#/components/parameters/Id"}],"security":[{"sessionCookie":[]},{"bearerAuth":[]}]}},"/v1/batches":{"get":{"operationId":"listBatches","tags":["batches"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchPage"}}}},"default":{"description":"Structured error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"sessionCookie":[]},{"bearerAuth":[]}]},"post":{"operationId":"createBatch","tags":["batches"],"responses":{"200":{"description":"Idempotent replay","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchCreateResult"}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchCreateResult"}}}},"default":{"description":"Structured error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string"},"items":{"type":"array","minItems":1,"maxItems":20,"items":{"type":"object","additionalProperties":false,"properties":{"itemKey":{"type":"string"},"input":{"$ref":"#/components/schemas/ChatTemplate"}},"required":["itemKey","input"]}}},"required":["name","items"]}}}},"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"sessionCookie":[]},{"bearerAuth":[]}]}},"/v1/batches/{id}":{"get":{"operationId":"getBatch","tags":["batches"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Batch"}}}},"default":{"description":"Structured error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"$ref":"#/components/parameters/Id"}],"security":[{"sessionCookie":[]},{"bearerAuth":[]}]}},"/v1/batches/{id}/resume":{"post":{"operationId":"resumeBatch","tags":["batches"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Batch"}}}},"default":{"description":"Structured error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"itemIds":{"type":"array","minItems":1,"maxItems":20,"items":{"type":"string","format":"uuid"}}},"required":[]}}}},"parameters":[{"$ref":"#/components/parameters/Id"}],"security":[{"sessionCookie":[]},{"bearerAuth":[]}]}},"/v1/batches/{id}/cancel":{"post":{"operationId":"cancelBatch","tags":["batches"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Batch"}}}},"default":{"description":"Structured error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{},"required":[]}}}},"parameters":[{"$ref":"#/components/parameters/Id"}],"security":[{"sessionCookie":[]},{"bearerAuth":[]}]}},"/v1/audio/models":{"get":{"operationId":"listAudioModels","tags":["audio"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioModels"}}}},"default":{"description":"Structured error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"sessionCookie":[]},{"bearerAuth":[]}]}},"/v1/audio/quotes":{"post":{"operationId":"quoteAudio","tags":["audio"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioQuote"}}}},"default":{"description":"Structured error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioInput"}}}},"security":[{"sessionCookie":[]},{"bearerAuth":[]}]}},"/v1/audio/tasks":{"get":{"operationId":"listAudioTasks","tags":["audio"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioPage"}}}},"default":{"description":"Structured error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"sessionCookie":[]},{"bearerAuth":[]}]},"post":{"operationId":"createAudioTask","tags":["audio"],"responses":{"200":{"description":"Idempotent replay","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioTaskCreateResult"}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioTaskCreateResult"}}}},"default":{"description":"Structured error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioInput"}}}},"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"sessionCookie":[]},{"bearerAuth":[]}],"description":"Create one idempotent audio task. duration_seconds is the reservation ceiling, not a guaranteed generated length. Operator-controlled Speech channels explicitly bill verified WAV duration (ceil per request). Unknown execution and over-budget output retain the reservation for reconciliation; no automatic second provider POST."}},"/v1/audio/tasks/{id}":{"get":{"operationId":"getAudioTask","tags":["audio"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioTask"}}}},"default":{"description":"Structured error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"$ref":"#/components/parameters/Id"}],"security":[{"sessionCookie":[]},{"bearerAuth":[]}]}},"/v1/audio/tasks/{id}/cancel":{"post":{"operationId":"cancelAudioTask","tags":["audio"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioTask"}}}},"default":{"description":"Structured error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"$ref":"#/components/parameters/Id"}],"security":[{"sessionCookie":[]},{"bearerAuth":[]}]}},"/v1/retrieval/models":{"get":{"operationId":"listRetrievalModels","responses":{"200":{"description":"Local simulation and published retrieval models; no procurement fields","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetrievalModels"}}}}}}},"/v1/retrieval/quotes":{"post":{"operationId":"quoteRetrieval","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/EmbeddingInput"},{"$ref":"#/components/schemas/RerankInput"}]}}}},"responses":{"200":{"description":"Published context bound reservation; actual input tokens settle later","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetrievalQuote"}}}},"409":{"description":"Price or confirmed maximum changed"}}}},"/v1/embeddings":{"post":{"operationId":"createEmbedding","security":[{"bearerAuth":[]}],"parameters":[{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string","minLength":1,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmbeddingInput"}}}},"responses":{"200":{"description":"Terminal receipt","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Retrieval"}}}},"202":{"description":"Pending or unknown; preserve original request, never repost upstream","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Retrieval"}}}},"400":{"description":"Published input limit or capability mismatch"},"409":{"description":"Original operation conflict or price changed"}}}},"/v1/rerank":{"post":{"operationId":"rerank","security":[{"bearerAuth":[]}],"parameters":[{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string","minLength":1,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RerankInput"}}}},"responses":{"200":{"description":"Terminal receipt","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Retrieval"}}}},"202":{"description":"Pending or unknown; preserve original request, never repost upstream","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Retrieval"}}}},"400":{"description":"Published input limit or capability mismatch"},"409":{"description":"Original operation conflict or price changed"}}}},"/v1/retrieval/{id}":{"get":{"operationId":"getRetrieval","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Authorized frozen request receipt","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Retrieval"}}}},"404":{"description":"Request not visible"}}}},"/v1/routing-policy":{"get":{"operationId":"getRoutingPolicy","tags":["routing"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Routing"}}}},"default":{"description":"Structured error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"sessionCookie":[]},{"bearerAuth":[]}]},"patch":{"operationId":"updateRoutingPolicy","tags":["routing"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Routing"}}}},"default":{"description":"Structured error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"expectedRevision":{"type":"integer"},"allowedRegion":{"enum":["local","ap-southeast-1","eu-central-1","us-east-1"]},"strategy":{"enum":["priority","lowest_cost"]},"allowedChannelIds":{"type":"array","maxItems":100,"items":{"type":"string"}},"blockedChannelIds":{"type":"array","maxItems":100,"items":{"type":"string"}},"maximumRetention":{"enum":["unknown","none","up_to_30_days"]},"allowTraining":{"type":"boolean"},"requireDeclaredRegion":{"type":"boolean"},"crossModelFallback":{"type":"boolean"},"allowedFallbackModelIds":{"type":"array","maxItems":100,"items":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"}}},"required":["expectedRevision","allowedRegion","strategy","allowedChannelIds","blockedChannelIds","maximumRetention","allowTraining","requireDeclaredRegion","crossModelFallback","allowedFallbackModelIds"]},"example":{"expectedRevision":0,"allowedRegion":"local","strategy":"priority","allowedChannelIds":[],"blockedChannelIds":[],"maximumRetention":"none","allowTraining":false,"requireDeclaredRegion":true,"crossModelFallback":false,"allowedFallbackModelIds":[]}}}},"security":[{"sessionCookie":[]},{"bearerAuth":[]}]}},"/v1/budget":{"get":{"operationId":"getBudget","tags":["budget"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Budget"}}}},"default":{"description":"Structured error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"sessionCookie":[]},{"bearerAuth":[]}]},"patch":{"operationId":"updateBudget","tags":["budget"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Budget"}}}},"default":{"description":"Structured error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"revision":{"type":"integer"},"limitMicros":{"type":"integer","minimum":0},"dailyLimitMicros":{"type":["integer","null"]},"monthlyLimitMicros":{"type":["integer","null"]}},"required":["revision","limitMicros"]}}}},"security":[{"sessionCookie":[]},{"bearerAuth":[]}]}},"/v1/support/tickets":{"get":{"operationId":"listSupportTickets","tags":["support"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketPage"}}}},"default":{"description":"Structured error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"sessionCookie":[]},{"bearerAuth":[]}]},"post":{"operationId":"createSupportTicket","tags":["support"],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Ticket"}}}},"default":{"description":"Structured error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":160},"message":{"type":"string","minLength":1,"maxLength":10000},"requestId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"attachmentIds":{"maxItems":4,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"uniqueItems":true}},"required":["subject","message"],"additionalProperties":false}}}},"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"sessionCookie":[]},{"bearerAuth":[]}]}},"/v1/support/tickets/{id}":{"get":{"operationId":"getSupportTicket","tags":["support"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Ticket"}}}},"default":{"description":"Structured error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"$ref":"#/components/parameters/Id"}],"security":[{"sessionCookie":[]},{"bearerAuth":[]}]}},"/v1/support/tickets/{id}/messages":{"post":{"operationId":"appendSupportMessage","tags":["support"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Ticket"}}}},"default":{"description":"Structured error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","minLength":1,"maxLength":10000},"expectedRevision":{"type":"integer","minimum":0,"maximum":9007199254740991},"attachmentIds":{"maxItems":4,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"uniqueItems":true}},"required":["message","expectedRevision"],"additionalProperties":false}}}},"parameters":[{"$ref":"#/components/parameters/Id"},{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"sessionCookie":[]},{"bearerAuth":[]}]}},"/v1/support/tickets/{id}/close":{"post":{"operationId":"closeSupportTicket","tags":["support"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Ticket"}}}},"default":{"description":"Structured error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedRevision":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["expectedRevision"],"additionalProperties":false}}}},"parameters":[{"$ref":"#/components/parameters/Id"},{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"sessionCookie":[]},{"bearerAuth":[]}]}},"/_operator/support/tickets":{"get":{"operationId":"operatorListSupportTickets","tags":["support"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketPage"}}}},"default":{"description":"Structured error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"operatorAuth":[]}]}},"/_operator/support/tickets/{id}":{"get":{"operationId":"operatorGetSupportTicket","tags":["support"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Ticket"}}}},"default":{"description":"Structured error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"$ref":"#/components/parameters/Id"}],"security":[{"operatorAuth":[]}]}},"/_operator/support/tickets/{id}/messages":{"post":{"operationId":"operatorReplySupportTicket","tags":["support"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Ticket"}}}},"default":{"description":"Structured error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","minLength":1,"maxLength":10000},"expectedRevision":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["message","expectedRevision"],"additionalProperties":false}}}},"parameters":[{"$ref":"#/components/parameters/Id"},{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"operatorAuth":[]}]}},"/_operator/support/tickets/{id}/status":{"post":{"operationId":"operatorSetSupportStatus","tags":["support"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Ticket"}}}},"default":{"description":"Structured error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["open","waiting_customer","resolved","closed"]},"expectedRevision":{"type":"integer","minimum":0,"maximum":9007199254740991},"note":{"type":"string","maxLength":1000}},"required":["status","expectedRevision"],"additionalProperties":false}}}},"parameters":[{"$ref":"#/components/parameters/Id"},{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"operatorAuth":[]}]}},"/v1/tools":{"get":{"operationId":"listTools","responses":{"200":{"description":"Registered controlled tools"}}}},"/v1/tools/executions":{"post":{"operationId":"executeTool","responses":{"200":{"description":"Idempotent controlled tool result"}}}},"/v1/video/models":{"get":{"operationId":"videoModels","responses":{"200":{"description":"Published video models and executable limits","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoModels"}}}}}}},"/v1/video/quotes":{"post":{"operationId":"videoQuote","security":[{"sessionCookie":[]},{"bearerAuth":[]}],"description":"Requires invoke permission. Quote the selected published model: legacy WebM uses 2 seconds; controlled Runway MP4 uses 5 seconds and a prompt limit at most 1000 UTF-16 units. Pricing is operator-published USD micros per verified video second.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoInput"}}}},"responses":{"200":{"description":"Current model and quote","content":{"application/json":{"schema":{"type":"object","required":["model","quote"],"properties":{"model":{"type":"string"},"quote":{"$ref":"#/components/schemas/VideoQuote"}}}}}},"400":{"description":"Request exceeds model limits"},"409":{"description":"price_changed; refresh quote"}}}},"/v1/video/tasks":{"get":{"operationId":"videoTasks","security":[{"sessionCookie":[]},{"bearerAuth":[]}],"responses":{"200":{"description":"Current scope task history","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoTasks"}}}}}},"post":{"operationId":"createVideoTask","security":[{"sessionCookie":[]},{"bearerAuth":[]}],"description":"Requires invoke permission and a stable idempotency key. Reserve USD and supply capacity before asynchronous execution. Unknown dispatch never triggers another provider POST; reservations remain until confirmed or reconciled. Output assets belong to the same workspace and credential.","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoInput"}}}},"responses":{"200":{"description":"Existing original task","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoTaskResponse"}}}},"201":{"description":"New queued task","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoTaskResponse"}}}}}}},"/v1/video/tasks/{id}":{"get":{"operationId":"videoTask","security":[{"sessionCookie":[]},{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Original task state and private asset metadata","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoTask"}}}},"404":{"description":"Task not owned by the current credential"}}}},"/v1/video/tasks/{id}/cancel":{"post":{"operationId":"cancelVideoTask","security":[{"sessionCookie":[]},{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"description":"Cancels before dispatch. Accepted controlled HTTP work is preserved and continues to reconciliation or completion; a cancellation request is not confirmation of upstream cancellation or refund. This adapter never issues Runway DELETE, which can delete completed output.","responses":{"200":{"description":"Original task after cancellation request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoTask"}}}}}}},"/v1/audio/transcriptions":{"post":{"operationId":"transcribeAudio","security":[{"sessionCookie":[]},{"bearerAuth":[]}],"description":"Requires invoke permission and ownership of an available verified PCM16 mono WAV asset. Freezes published rates and reserves ceil(WAV seconds) before provider execution. OpenAI-compatible multipart verbose_json suppliers must report matching duration. A successful response may be running, needs_reconciliation or failed; inspect result.state. Unknown sends retain funds and must not be resubmitted with a new key. Replaying the original key returns or recovers that attempt. The request body uses an asset ID, not multipart file bytes.","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[\\w.:-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranscriptionInput"}}}},"responses":{"200":{"description":"Original request state; no second supplier dispatch","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranscriptionResponse"}}}},"201":{"description":"New admitted request state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranscriptionResponse"}}}},"400":{"description":"Invalid model, WAV or duration"},"401":{"description":"Authentication required"},"403":{"description":"Invoke permission denied"},"404":{"description":"Asset unavailable to this credential"},"409":{"description":"Idempotency key reused with different input"}}}},"/v1/showcase":{"get":{"operationId":"publicShowcase","responses":{"200":{"description":"Published external apps"}}}},"/v1/showcase/submissions":{"get":{"operationId":"showcaseSubmissions","tags":["Showcase"],"security":[{"sessionCookie":[]},{"bearerAuth":[]}],"description":"Requires a registered session through the session cookie or a registered-session Bearer token; ordinary API keys and management keys are not accepted. Metadata is scoped to the current customer and workspace and excludes operator, customer and workspace identifiers. All workspace member roles may read. Returns one bounded page ordered by immutable created_at DESC, id DESC. Default limit 50, maximum 100. Follow nextCursor explicitly; this is not a snapshot across pages. Updating a record does not change its position. A cursor outside the current scope returns 400 invalid_cursor. An empty first page or no matching item in loaded pages does not prove an uncertain submission failed.","responses":{"200":{"description":"Customer-safe application metadata","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowcaseCustomerList"}}}},"400":{"description":"Invalid input, UUID or revision"},"401":{"description":"Authentication required"},"403":{"description":"Registered session and required workspace permission unavailable"},"404":{"description":"Submission does not belong to this customer and workspace"}},"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string","format":"uuid"},"description":"Last application ID from the previous page, scoped to this customer and workspace."}]},"post":{"operationId":"submitShowcase","tags":["Showcase"],"security":[{"sessionCookie":[]},{"bearerAuth":[]}],"description":"Requires a registered session through the session cookie or a registered-session Bearer token; ordinary API keys and management keys are not accepted. Metadata is scoped to the current customer and workspace and excludes operator, customer and workspace identifiers. Requires keys permission (owner/admin). Creates a submitted application at revision 1, with no automatic replay. The linked key must be active, unexpired and match the requested purpose in this workspace. HTTPS URLs must not contain embedded credentials. This does not approve or publish the application.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowcaseSubmitInput"}}}},"responses":{"201":{"description":"Customer-safe application metadata","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowcaseCustomerView"}}}},"400":{"description":"Invalid input, UUID or revision"},"401":{"description":"Authentication required"},"403":{"description":"Registered session and required workspace permission unavailable"},"404":{"description":"Submission does not belong to this customer and workspace"},"409":{"description":"showcase_conflict: stale revision, disallowed state or revision limit; credential_purpose_mismatch: linked key unavailable or mismatched. No write was applied; read current state and explicitly review before another change."}}}},"/v1/oauth/clients":{"get":{"operationId":"v2OAuthClients","summary":"OAuthClients","tags":["V2"],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"201":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"202":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"403":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"409":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"429":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"503":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}}}},"post":{"operationId":"v2OAuthRegister","summary":"OAuthRegister","tags":["V2"],"security":[{"sessionCookie":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2OAuthRegistration"}}}},"responses":{"200":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"201":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"202":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"403":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"409":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"429":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"503":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/oauth/clients/revoke":{"post":{"operationId":"v2OAuthClientRevoke","summary":"OAuthClientRevoke","tags":["V2"],"security":[{"sessionCookie":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2OAuthClientRevoke"}}}},"responses":{"200":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"201":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"202":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"403":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"409":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"429":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"503":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/oauth/authorizations":{"post":{"operationId":"v2OAuthAuthorize","summary":"OAuthAuthorize","tags":["V2"],"security":[{"sessionCookie":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2OAuthAuthorization"}}}},"responses":{"200":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"201":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"202":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"403":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"409":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"429":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"503":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/oauth/exchange":{"post":{"operationId":"v2OAuthExchange","summary":"OAuthExchange","tags":["V2"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2OAuthCodeExchange"}}}},"responses":{"200":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"201":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"202":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"403":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"409":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"429":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"503":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/management-keys":{"post":{"operationId":"v2CreateManagementKey","summary":"CreateManagementKey","tags":["V2"],"security":[{"sessionCookie":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ManagementKeyCreate"}}}},"responses":{"200":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"201":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"202":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"403":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"409":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"429":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"503":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}}},"description":"Registered session with keys permission creates an explicit bounded policy: issued_keys resource scope, declared list/create/revoke actions, grantable models, per-child lifetime limit, cumulative issuance ceiling and 60–604800 second TTL. create requires nonempty models and positive ceilings; zero/empty read-only policies are not unlimited. Management credentials cannot infer, self-elevate or renew. Revocation never cascades to issued children; legacy existing credentials remain workspace-scoped and unconfigured."},"get":{"operationId":"v2ManagementKeys","summary":"List workspace management key metadata","description":"Requires a registered user session with keys permission. Only management credentials belonging to this customer and workspace are returned. Secrets and hashes are never returned. Includes revoked and expired records. Stable createdAt/credentialId ordering; after must be a key in this same scope.","tags":["V2"],"security":[{"sessionCookie":[]}],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"after","in":"query","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Management key metadata page; nextCursor is null at the end","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ManagementKeyPage"}}}},"400":{"description":"Invalid, duplicated or unsupported query parameters"},"401":{"description":"Authentication required or session expired"},"403":{"description":"Registered session with keys permission required"},"404":{"description":"Cursor does not belong to this scope"}}}},"/v1/managed-keys":{"get":{"operationId":"v2ManagedKeys","summary":"ManagedKeys","tags":["V2"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"201":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"202":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"403":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"409":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"429":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"503":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}}},"description":"Requires the parent's declared list action and current issuer keys permission. A bounded parent sees only its issued children, including immutable operationId, lifetime high-water and explicit expiry; no secrets. Legacy credentials retain their workspace authority."},"post":{"operationId":"v2CreateManagedKey","summary":"CreateManagedKey","tags":["V2"],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ManagedKeyCreate"}}}},"responses":{"200":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"201":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"202":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"403":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"409":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"429":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"503":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}}},"description":"Requires declared create action, current issuer keys permission and a live parent secret revalidated after locks using DB realtime. Bounded issuance requires operationId and expiresAt in the future no later than parent expiry, models within parent set, per-child and cumulative ceilings. Historical high-water is never refunded or reset. Same parent/operation/content returns metadata with key=null,replayed=true without another grant; changed content returns 409. Unknown results must first be resolved through metadata; recover a lost secret only by explicit rotation. Failed transactions leave no child, grant or audit residue and do not alter cash/holds."}},"/v1/managed-keys/revoke":{"post":{"operationId":"v2RevokeManagedKey","summary":"RevokeManagedKey","tags":["V2"],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ManagedKeyRevoke"}}}},"responses":{"200":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"201":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"202":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"403":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"409":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"429":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"503":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/cache/completions":{"post":{"operationId":"cachedInvoke","responses":{"200":{"description":"Persisted hit, miss or bypass completion"},"409":{"description":"Idempotency conflict"}}}},"/v1/cache/byok-completions":{"post":{"operationId":"cachedByokInvoke","description":"Explicit BYOK cache invocation. Requires workspace byokEnabled and request cache.enabled; credentials are revalidated and cache keys bind the current credential version.","parameters":[{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string","minLength":8,"maxLength":128,"pattern":"^[A-Za-z0-9._:-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CachedByokCompletionInput"}}}},"responses":{"200":{"description":"Persisted BYOK cache hit, successful miss, or known pre-execution failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CachedCompletionResult"}}}},"202":{"description":"Original BYOK execution still needs reconciliation; provider is not redispatched","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CachedCompletionResult"}}}},"409":{"description":"Idempotency conflict, disabled BYOK cache, revoked credential or credential version changed"}},"security":[{"sessionCookie":[]},{"bearerAuth":[]}]}},"/v1/vision/models":{"get":{"operationId":"visionModels","description":"Enabled published vision-only token models and an explicitly labeled local image-count fixture. No secrets or private supplier endpoints.","responses":{"200":{"description":"Vision catalog","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VisionModels"}}}}}}},"/v1/vision/quotes":{"post":{"operationId":"visionQuote","security":[{"sessionCookie":[]},{"bearerAuth":[]}],"description":"Invoke and model permission. Token reservation is based on declared maximum input tokens including images, plus requested output tokens, ceil total to integer USD micros; real final usage comes from supplier. This quote does not verify image content; submission validates owned private PNGs.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VisionInput"}}}},"responses":{"200":{"description":"Maximum and immutable price version","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VisionQuote"}}}},"400":{"description":"Invalid input or model capability"},"401":{"description":"Authentication required"},"403":{"description":"Permission denied"},"404":{"description":"Owned model, asset or request unavailable"},"409":{"description":"Idempotency, price or accepted maximum conflict"}}}},"/v1/byok/credentials":{"get":{"operationId":"byokCredentials","responses":{"200":{"description":"Credential metadata"}}},"post":{"operationId":"byokCreateCredential","responses":{"201":{"description":"Encrypted credential created"},"403":{"description":"Permission denied"}}}},"/v1/byok/credentials/{id}/rotate":{"post":{"operationId":"byokRotateCredential","responses":{"200":{"description":"New immutable version active"},"409":{"description":"CAS conflict or revoked"}}}},"/v1/byok/credentials/{id}/revoke":{"post":{"operationId":"byokRevokeCredential","responses":{"200":{"description":"Credential revoked"},"409":{"description":"CAS conflict"}}}},"/v1/byok/quote":{"post":{"operationId":"byokQuote","responses":{"200":{"description":"USD service and fallback maximum quote"}}}},"/v1/byok/invocations":{"get":{"operationId":"byokInvocations","responses":{"200":{"description":"Owned invocation page"}}},"post":{"operationId":"byokInvoke","responses":{"200":{"description":"Idempotent invocation"},"402":{"description":"Wallet or budget insufficient"},"409":{"description":"Idempotency or credential conflict"}}}},"/v1/byok/invocations/{id}":{"get":{"operationId":"byokInvocation","responses":{"200":{"description":"Owned invocation"},"404":{"description":"Not found"}}}},"/_operator/byok/pending":{"get":{"operationId":"operatorByokPending","responses":{"200":{"description":"Claims requiring evidence review"}}}},"/_operator/byok/invocations/{id}/reconcile":{"post":{"operationId":"operatorReconcileByok","responses":{"200":{"description":"Audited idempotent evidence reconciliation"},"409":{"description":"Conflicting or unsafe evidence"}}}},"/v1/cache/policy":{"get":{"operationId":"cachePolicy","description":"Read the current workspace policy. Requires calls permission. First read may initialize the default row at revision 1.","responses":{"200":{"description":"Current opt-in policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CachePolicy"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CachePolicyError"},"example":{"error":{"code":"unauthorized","message":"Authentication required"}}}}},"403":{"description":"Current role lacks read access","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CachePolicyError"},"example":{"error":{"code":"permission_denied","message":"Current role lacks read access"}}}}}}},"patch":{"operationId":"cacheUpdatePolicy","description":"Requires keys permission. Atomically update only when expectedRevision matches this workspace policy. Success increments revision by exactly one, even for unchanged values. A stale request returns 409 without changing the policy. No automatic retry or idempotent replay is provided.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CachePolicyUpdate"},"example":{"enabled":true,"defaultTtlSeconds":300,"byokEnabled":false,"expectedRevision":1}}}},"responses":{"200":{"description":"Updated policy with revision expectedRevision + 1","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CachePolicy"},"example":{"enabled":true,"defaultTtlSeconds":300,"byokEnabled":false,"revision":2,"updatedAt":"2026-09-17T16:00:00.000Z"}}}},"400":{"description":"Missing or invalid expectedRevision or policy fields","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CachePolicyError"},"example":{"error":{"code":"invalid_request","message":"Missing or invalid expectedRevision or policy fields"}}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CachePolicyError"},"example":{"error":{"code":"unauthorized","message":"Authentication required"}}}}},"403":{"description":"Current role lacks write access","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CachePolicyError"},"example":{"error":{"code":"permission_denied","message":"Current role lacks write access"}}}}},"409":{"description":"Policy changed. Read the current state and explicitly review your draft before submitting again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CachePolicyError"},"example":{"error":{"code":"cache_policy_revision_conflict","message":"Policy changed. Read the current state and explicitly review your draft before submitting again."}}}}}}}},"/v1/cache/entries":{"get":{"operationId":"cacheEntries","responses":{"200":{"description":"Credential-isolated entries"}}}},"/v1/cache/entries/{id}/invalidate":{"post":{"operationId":"cacheInvalidate","responses":{"200":{"description":"Invalidated entry"}}}},"/v1/cache/metrics":{"get":{"operationId":"cacheMetrics","responses":{"200":{"description":"Zero-cost hit metering"}}}},"/v1/vision/completions":{"post":{"operationId":"visionCompletion","security":[{"sessionCookie":[]},{"bearerAuth":[]}],"description":"Invoke permission. Binds 1–4 owned available verified PNG assets by immutable SHA, model/version and maximum before a single native OpenAI vision POST outside SQL transaction. Published model limits may be smaller. Rechecks private inputs and permission before dispatch and authorization before returning results. Unknown/usage-missing responses retain reservations and supply slot; original key replay or GET reads original receipt only, never re-POSTs. Only nonstreamed plain text output is supported; no remote image URL, tool invocation or local reasoning claim.","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[\\w.:-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VisionInput"}}}},"responses":{"200":{"description":"Original state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VisionResponse"}}}},"201":{"description":"New admitted state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VisionResponse"}}}},"400":{"description":"Invalid input or model capability"},"401":{"description":"Authentication required"},"403":{"description":"Permission denied"},"404":{"description":"Owned model, asset or request unavailable"},"409":{"description":"Idempotency, price or accepted maximum conflict"}}}},"/v1/fallback-plans":{"post":{"operationId":"createFallbackPlan","responses":{"200":{"description":"Explicit fallback authorization"}}}},"/v1/fallback-plans/{id}/submit":{"post":{"operationId":"executeFallbackPlan","responses":{"200":{"description":"Submit authorized fallback once"}}}},"/v1/enterprise/oidc":{"get":{"operationId":"enterpriseConfiguration","responses":{"200":{"description":"OIDC metadata without secret"}}},"patch":{"operationId":"configureEnterprise","responses":{"200":{"description":"OIDC configuration"}}}},"/v1/enterprise/oidc/login":{"post":{"operationId":"beginEnterpriseLogin","responses":{"200":{"description":"Browser-bound PKCE authorization"}}}},"/v1/enterprise/oidc/callback":{"post":{"operationId":"completeEnterpriseLogin","responses":{"200":{"description":"Verified callback or MFA challenge"}}}},"/v1/enterprise/sync-tokens":{"get":{"operationId":"enterpriseSyncTokens","responses":{"200":{"description":"Sync token metadata"}}},"post":{"operationId":"createEnterpriseSyncToken","responses":{"201":{"description":"One-time sync secret"}}}},"/v1/enterprise/sync-tokens/rotate":{"post":{"operationId":"rotateEnterpriseSyncToken","responses":{"200":{"description":"Rotated sync token"}}}},"/v1/enterprise/sync-tokens/revoke":{"post":{"operationId":"revokeEnterpriseSyncToken","responses":{"200":{"description":"Revoked sync token"}}}},"/v1/enterprise/member-sync":{"post":{"operationId":"syncEnterpriseMember","responses":{"200":{"description":"Versioned member sync"}}}},"/v1/guardrails":{"get":{"operationId":"listGuardrails","responses":{"200":{"description":"Workspace guardrails"}}},"post":{"operationId":"createGuardrail","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuardrailDefinition"}}}},"responses":{"201":{"description":"Created"}}}},"/v1/guardrails/{id}":{"patch":{"operationId":"updateGuardrail","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"CAS updated"},"409":{"description":"Revision conflict"}}},"delete":{"operationId":"deleteGuardrail","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"revision","in":"query","required":true,"schema":{"type":"integer","minimum":0}}],"responses":{"200":{"description":"Deleted"}}}},"/v1/guardrail-assignments":{"put":{"operationId":"assignGuardrail","responses":{"200":{"description":"Workspace, member, or API key assignment updated with CAS"}}},"get":{"operationId":"listGuardrailAssignments","description":"Requires a registered session with keys permission. Lists only the current workspace. Always includes a workspace row; never-assigned is guardrailId null and revision 0. Reading does not create an assignment. Use the returned revision as expectedRevision on PUT.","responses":{"200":{"description":"Current assignment revisions","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/GuardrailAssignmentView"}}}},"example":{"data":[{"scope":"workspace","guardrailId":null,"revision":0}]}}}},"401":{"description":"Authentication required"},"403":{"description":"Registered management session with keys permission required"}}}},"/v1/guardrails/preview":{"post":{"operationId":"previewGuardrail","responses":{"200":{"description":"Deterministic evaluation; block is represented by decision=block"}}}},"/v1/guardrail-events":{"get":{"operationId":"listGuardrailEvents","responses":{"200":{"description":"Private category-only evidence"}}}},"/scim/v2/Users":{"get":{"operationId":"listScimUsers","tags":["scim"],"parameters":[{"name":"filter","in":"query","schema":{"type":"string","maxLength":500}},{"name":"startIndex","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"count","in":"query","schema":{"type":"integer","minimum":0,"maximum":100,"default":100}}],"responses":{"200":{"description":"Success","content":{"application/scim+json":{"schema":{"$ref":"#/components/schemas/ScimUserList"}}}},"default":{"description":"SCIM error","content":{"application/scim+json":{"schema":{"$ref":"#/components/schemas/ScimError"}}}}}},"post":{"operationId":"createScimUser","tags":["scim"],"requestBody":{"required":true,"content":{"application/scim+json":{"schema":{"$ref":"#/components/schemas/ScimUserWrite"}}}},"responses":{"201":{"description":"Success","content":{"application/scim+json":{"schema":{"$ref":"#/components/schemas/ScimUser"}}}},"default":{"description":"SCIM error","content":{"application/scim+json":{"schema":{"$ref":"#/components/schemas/ScimError"}}}}}}},"/scim/v2/Users/{id}":{"get":{"operationId":"getScimUser","tags":["scim"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Success","content":{"application/scim+json":{"schema":{"$ref":"#/components/schemas/ScimUser"}}}},"default":{"description":"SCIM error","content":{"application/scim+json":{"schema":{"$ref":"#/components/schemas/ScimError"}}}}}},"put":{"operationId":"replaceScimUser","tags":["scim"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"If-Match","in":"header","required":true,"schema":{"type":"string","pattern":"^W/\"[1-9][0-9]*\"$"}}],"requestBody":{"required":true,"content":{"application/scim+json":{"schema":{"$ref":"#/components/schemas/ScimUserWrite"}}}},"responses":{"200":{"description":"Success","content":{"application/scim+json":{"schema":{"$ref":"#/components/schemas/ScimUser"}}}},"default":{"description":"SCIM error","content":{"application/scim+json":{"schema":{"$ref":"#/components/schemas/ScimError"}}}}}},"patch":{"operationId":"patchScimUser","tags":["scim"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"If-Match","in":"header","required":true,"schema":{"type":"string","pattern":"^W/\"[1-9][0-9]*\"$"}}],"requestBody":{"required":true,"content":{"application/scim+json":{"schema":{"$ref":"#/components/schemas/ScimPatch"}}}},"responses":{"200":{"description":"Success","content":{"application/scim+json":{"schema":{"$ref":"#/components/schemas/ScimUser"}}}},"default":{"description":"SCIM error","content":{"application/scim+json":{"schema":{"$ref":"#/components/schemas/ScimError"}}}}}},"delete":{"operationId":"deleteScimUser","tags":["scim"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"If-Match","in":"header","required":true,"schema":{"type":"string","pattern":"^W/\"[1-9][0-9]*\"$"}}],"responses":{"204":{"description":"Deleted"},"default":{"description":"SCIM error","content":{"application/scim+json":{"schema":{"$ref":"#/components/schemas/ScimError"}}}}}}},"/scim/v2/Groups":{"get":{"operationId":"listScimGroups","tags":["scim"],"parameters":[{"name":"filter","in":"query","schema":{"type":"string","maxLength":500}},{"name":"startIndex","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"count","in":"query","schema":{"type":"integer","minimum":0,"maximum":100,"default":100}}],"responses":{"200":{"description":"Success","content":{"application/scim+json":{"schema":{"$ref":"#/components/schemas/ScimGroupList"}}}},"default":{"description":"SCIM error","content":{"application/scim+json":{"schema":{"$ref":"#/components/schemas/ScimError"}}}}}},"post":{"operationId":"createScimGroup","tags":["scim"],"requestBody":{"required":true,"content":{"application/scim+json":{"schema":{"$ref":"#/components/schemas/ScimGroupWrite"}}}},"responses":{"201":{"description":"Success","content":{"application/scim+json":{"schema":{"$ref":"#/components/schemas/ScimGroup"}}}},"default":{"description":"SCIM error","content":{"application/scim+json":{"schema":{"$ref":"#/components/schemas/ScimError"}}}}}}},"/scim/v2/Groups/{id}":{"get":{"operationId":"getScimGroup","tags":["scim"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Success","content":{"application/scim+json":{"schema":{"$ref":"#/components/schemas/ScimGroup"}}}},"default":{"description":"SCIM error","content":{"application/scim+json":{"schema":{"$ref":"#/components/schemas/ScimError"}}}}}},"put":{"operationId":"replaceScimGroup","tags":["scim"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"If-Match","in":"header","required":true,"schema":{"type":"string","pattern":"^W/\"[1-9][0-9]*\"$"}}],"requestBody":{"required":true,"content":{"application/scim+json":{"schema":{"$ref":"#/components/schemas/ScimGroupWrite"}}}},"responses":{"200":{"description":"Success","content":{"application/scim+json":{"schema":{"$ref":"#/components/schemas/ScimGroup"}}}},"default":{"description":"SCIM error","content":{"application/scim+json":{"schema":{"$ref":"#/components/schemas/ScimError"}}}}}},"patch":{"operationId":"patchScimGroup","tags":["scim"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"If-Match","in":"header","required":true,"schema":{"type":"string","pattern":"^W/\"[1-9][0-9]*\"$"}}],"requestBody":{"required":true,"content":{"application/scim+json":{"schema":{"$ref":"#/components/schemas/ScimPatch"}}}},"responses":{"200":{"description":"Success","content":{"application/scim+json":{"schema":{"$ref":"#/components/schemas/ScimGroup"}}}},"default":{"description":"SCIM error","content":{"application/scim+json":{"schema":{"$ref":"#/components/schemas/ScimError"}}}}}},"delete":{"operationId":"deleteScimGroup","tags":["scim"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"If-Match","in":"header","required":true,"schema":{"type":"string","pattern":"^W/\"[1-9][0-9]*\"$"}}],"responses":{"204":{"description":"Deleted"},"default":{"description":"SCIM error","content":{"application/scim+json":{"schema":{"$ref":"#/components/schemas/ScimError"}}}}}}},"/v1/scim-management":{"get":{"operationId":"scimDirectory","tags":["scim"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScimDirectory"}}}},"default":{"description":"Structured error"}}}},"/v1/scim-management/role-mappings":{"get":{"operationId":"scimRoleMappings","tags":["scim"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["groupId","displayName","role","revision"],"properties":{"groupId":{"type":"string","format":"uuid"},"displayName":{"type":"string"},"role":{"type":["string","null"],"enum":["admin","developer","viewer","billing",null]},"revision":{"type":["integer","null"]}}}}}}}}}}},"post":{"operationId":"setScimRoleMapping","tags":["scim"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScimRoleMappingInput"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["groupId","role","revision"],"properties":{"groupId":{"type":"string","format":"uuid"},"role":{"enum":["admin","developer","viewer","billing"]},"revision":{"type":"integer","minimum":1}}}}}}}}},"/v1/notifications/preference":{"get":{"operationId":"getNotificationPreference","tags":["notifications"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}}},"patch":{"operationId":"updateNotificationPreference","tags":["notifications"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}}}},"/v1/notifications/rules":{"get":{"operationId":"listNotificationRules","tags":["notifications"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}}},"post":{"operationId":"createNotificationRule","tags":["notifications"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}}}},"/v1/notifications/rules/{id}":{"patch":{"operationId":"updateNotificationRule","tags":["notifications"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}]}},"/v1/notifications/events":{"get":{"operationId":"listNotificationEvents","tags":["notifications"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}}}},"/v1/classifiers":{"get":{"operationId":"listClassifiers","tags":["classifiers"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}}},"post":{"operationId":"createClassifier","tags":["classifiers"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}}}},"/v1/classifiers/{id}":{"patch":{"operationId":"updateClassifier","tags":["classifiers"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}]}},"/v1/classifications":{"get":{"operationId":"listClassificationResults","tags":["classifiers"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}}}},"/v1/private-models":{"get":{"operationId":"listPrivateModels","responses":{"200":{"description":"Granted published private models"}}}},"/v1/private-models/owned":{"get":{"operationId":"listOwnedPrivateModels","responses":{"200":{"description":"Onboarding records owned by this workspace"}}},"post":{"operationId":"createPrivateModel","responses":{"201":{"description":"Draft created"}}}},"/v1/private-models/{id}":{"patch":{"operationId":"updatePrivateModel","responses":{"200":{"description":"Draft updated with revision CAS"},"409":{"description":"Revision or state conflict"}}}},"/v1/private-models/{id}/submit":{"post":{"operationId":"submitPrivateModel","responses":{"200":{"description":"Submitted for review"}}}},"/v1/private-models/{id}/revisions":{"post":{"operationId":"beginPrivateModelRevision","responses":{"200":{"description":"New draft revision opened; previous release remains callable"}}}},"/v1/private-models/quotes":{"post":{"operationId":"quotePrivateModel","responses":{"200":{"description":"Maximum customer quote; no reservation"}}}},"/v1/private-models/invocations":{"post":{"operationId":"invokePrivateModel","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"responses":{"200":{"description":"Terminal or reconciliation receipt without procurement details"}}}},"/v1/private-models/invocations/{id}":{"get":{"operationId":"getPrivateModelInvocation","responses":{"200":{"description":"Caller-owned receipt"},"404":{"description":"Not visible or missing"}}}},"/v1/files":{"get":{"tags":["files"],"operationId":"listPdfFiles","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"after","in":"query","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"PDF files","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["data","nextCursor"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PdfFile"}},"nextCursor":{"type":["string","null"],"format":"uuid"}}}}}},"401":{"description":"Error"}}},"post":{"tags":["files"],"operationId":"createPdfFile","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PdfFileDeclaration"}}}},"responses":{"201":{"description":"Declared","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["file","created"],"properties":{"file":{"$ref":"#/components/schemas/PdfFile"},"created":{"type":"boolean"}}}}}},"409":{"description":"Error"}}}},"/v1/files/{id}":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"get":{"tags":["files"],"operationId":"getPdfFile","responses":{"200":{"description":"File","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PdfFile"}}}},"404":{"description":"Error"}}},"delete":{"tags":["files"],"operationId":"deletePdfFile","responses":{"200":{"description":"Deleted file","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PdfFile"}}}},"404":{"description":"Error"}}}},"/v1/files/{id}/content":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"put":{"tags":["files"],"operationId":"uploadPdfContent","requestBody":{"required":true,"content":{"application/pdf":{"schema":{"type":"string","format":"binary","maxLength":10485760}}}},"responses":{"200":{"description":"Parsed file","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PdfFile"}}}},"409":{"description":"Error"},"413":{"description":"Error"},"415":{"description":"Error"}}},"get":{"tags":["files"],"operationId":"downloadPdfContent","responses":{"200":{"description":"PDF bytes","content":{"application/pdf":{"schema":{"type":"string","format":"binary"}}}},"404":{"description":"Error"}}}},"/v1/pdf/quotes":{"post":{"tags":["files"],"operationId":"quotePdfCompletion","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PdfQuoteInput"}}}},"responses":{"200":{"description":"Existing text quote","content":{"application/json":{"schema":{"type":"object","required":["quote"],"properties":{"quote":{"type":"object"}}}}}},"409":{"description":"Error"},"413":{"description":"Error"},"415":{"description":"Error"}}}},"/v1/pdf/completions":{"post":{"tags":["files"],"operationId":"invokePdfCompletion","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PdfCompletionInput"}}}},"responses":{"200":{"description":"Existing asynchronous task result","content":{"application/json":{"schema":{"type":"object"}}}},"409":{"description":"Error"},"413":{"description":"Error"},"415":{"description":"Error"}}}},"/v1/studio/presets/import":{"post":{"operationId":"importPreset","tags":["presets"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}}}},"/v1/studio/presets/{id}/versions":{"get":{"operationId":"listPresetVersions","tags":["presets"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}}}},"/v1/studio/presets/{id}/rollback":{"post":{"operationId":"rollbackPreset","tags":["presets"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}}}},"/v1/studio/presets/{id}/execute":{"post":{"operationId":"executePreset","tags":["presets"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}}}},"/v1/responses":{"post":{"operationId":"v2ResponsesInputCreate","summary":"ResponsesInputCreate","tags":["V2"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","pattern":"^[\\w.:-]{1,128}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ResponsesInput"}}}},"responses":{"200":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}},"text/event-stream":{"schema":{"type":"string"}}}},"201":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"202":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"403":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"409":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"429":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"503":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/responses/quotes":{"post":{"operationId":"v2ResponsesInputQuote","summary":"ResponsesInputQuote","tags":["V2"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ResponsesInput"}}}},"responses":{"200":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"201":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"202":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"403":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"409":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"429":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"503":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/messages":{"post":{"operationId":"v2MessagesInputCreate","summary":"MessagesInputCreate","tags":["V2"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","pattern":"^[\\w.:-]{1,128}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2MessagesInput"}}}},"responses":{"200":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}},"text/event-stream":{"schema":{"type":"string"}}}},"201":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"202":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"403":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"409":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"429":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"503":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/messages/quotes":{"post":{"operationId":"v2MessagesInputQuote","summary":"MessagesInputQuote","tags":["V2"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2MessagesInput"}}}},"responses":{"200":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"201":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"202":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"403":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"409":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"429":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"503":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/oauth/clients/visibility":{"post":{"operationId":"v2OAuthVisibility","summary":"OAuthVisibility","tags":["V2"],"security":[{"sessionCookie":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2OAuthVisibility"}}}},"responses":{"200":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"201":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"202":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"403":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"409":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"429":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"503":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/oauth/clients/{id}/consent":{"get":{"operationId":"v2OAuthConsentClient","summary":"OAuthConsentClient","tags":["V2"],"security":[{"sessionCookie":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"201":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"202":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"403":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"409":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"429":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"503":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/oauth/grants":{"get":{"operationId":"v2OAuthGrants","summary":"OAuthGrants","tags":["V2"],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"201":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"202":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"403":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"409":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"429":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"503":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/oauth/grants/revoke":{"post":{"operationId":"v2OAuthGrantRevoke","summary":"OAuthGrantRevoke","tags":["V2"],"security":[{"sessionCookie":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2OAuthGrantRevoke"}}}},"responses":{"200":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"201":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"202":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"403":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"409":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"429":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"503":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/workload-identity/policies":{"get":{"operationId":"v2WorkloadPolicies","summary":"WorkloadPolicies","tags":["V2"],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"201":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"202":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"403":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"409":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"429":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"503":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}}}},"post":{"operationId":"v2CreateWorkloadPolicy","summary":"CreateWorkloadPolicy","tags":["V2"],"security":[{"sessionCookie":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2WorkloadPolicy"}}}},"responses":{"200":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"201":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"202":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"403":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"409":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"429":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"503":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/workload-identity/policies/{id}":{"post":{"operationId":"v2UpdateWorkloadPolicy","summary":"UpdateWorkloadPolicy","tags":["V2"],"security":[{"sessionCookie":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2WorkloadPolicyUpdate"}}}},"responses":{"200":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"201":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"202":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"403":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"409":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"429":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"503":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/workload-identity/token":{"post":{"operationId":"v2ExchangeWorkloadToken","summary":"ExchangeWorkloadToken","tags":["V2"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2WorkloadExchange"}}}},"responses":{"200":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"201":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"202":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"403":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"409":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"429":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"503":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/server-tool-runs":{"get":{"operationId":"v2ServerToolRuns","summary":"ServerToolRuns","tags":["V2"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"responses":{"200":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"201":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"202":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"403":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"409":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"429":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"503":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}}}},"post":{"operationId":"v2CreateServerToolRun","summary":"CreateServerToolRun","tags":["V2"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","pattern":"^[\\w.:-]{1,128}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ServerRunInput"}}}},"responses":{"200":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"201":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"202":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"403":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"409":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"429":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"503":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/server-tool-runs/{id}":{"get":{"operationId":"v2ServerToolRun","summary":"ServerToolRun","tags":["V2"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"201":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"202":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"403":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"409":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"429":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"503":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/server-tool-runs/{id}/resume":{"post":{"operationId":"v2ResumeServerToolRun","summary":"ResumeServerToolRun","tags":["V2"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"201":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"202":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"403":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"409":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"429":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"503":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/server-tool-runs/{id}/cancel":{"post":{"operationId":"v2CancelServerToolRun","summary":"CancelServerToolRun","tags":["V2"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"201":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"202":{"description":"Controlled result; see capability guide for precise lifecycle and unsupported fields","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"403":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"409":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"429":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}},"503":{"description":"Domain error","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/mcp":{"post":{"operationId":"v2McpJsonRpc","summary":"McpJsonRpc","tags":["V2"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"responses":{"200":{"description":"Authenticated JSON-RPC 2.0 reply"},"202":{"description":"Notification accepted, no response body"},"400":{"description":"Unsupported protocol version or malformed request"},"401":{"description":"Credential required"}},"description":"MCP 2025-06-18 JSON-RPC: initialize, ping, tools/list, tools/call, resources/list, resources/templates/list, resources/read, prompts/list and prompts/get. Every method revalidates credentials. Read-only fixed resources and prompt templates do not invoke models. send-message requires an explicit budget and stable idempotency key. No subscriptions, server push, arbitrary URI loading or remote server proxy.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["jsonrpc","method"],"properties":{"jsonrpc":{"const":"2.0"},"id":{"type":["string","integer"]},"method":{"type":"string","maxLength":100},"params":{"type":"object"}},"additionalProperties":false}}}}}},"/v1/management-keys/revoke":{"post":{"operationId":"v2RevokeManagementKey","summary":"Revoke a workspace management key at its observed secret version","description":"Requires a registered user session with keys permission. expectedVersion must match the key secret version; revocation does not increment it. Repeating revocation of the same inactive version succeeds. Stale versions are rejected and must not be automatically retried. Other invocation keys previously created by the manager remain independent and active.","tags":["V2"],"security":[{"sessionCookie":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ManagementKeyRevoke"}}}},"responses":{"200":{"description":"Revocation confirmed for this credential and version","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ManagementKeyRevokeResult"}}}},"400":{"description":"Malformed credentialId or expectedVersion"},"401":{"description":"Authentication required or session expired"},"403":{"description":"Registered session with keys permission required"},"404":{"description":"Management key does not belong to this scope"},"409":{"description":"key_version_conflict: refresh and explicitly review the new version"}}}},"/v1/showcase/submissions/{id}":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"get":{"operationId":"showcaseSubmission","tags":["Showcase"],"security":[{"sessionCookie":[]},{"bearerAuth":[]}],"description":"Requires a registered session through the session cookie or a registered-session Bearer token; ordinary API keys and management keys are not accepted. Metadata is scoped to the current customer and workspace and excludes operator, customer and workspace identifiers. All member roles may read this target to verify an uncertain mutation; observed state alone is not proof of which request caused it.","responses":{"200":{"description":"Customer-safe application metadata","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowcaseCustomerView"}}}},"400":{"description":"Invalid input, UUID or revision"},"401":{"description":"Authentication required"},"403":{"description":"Registered session and required workspace permission unavailable"},"404":{"description":"Submission does not belong to this customer and workspace"}}},"patch":{"operationId":"editShowcase","tags":["Showcase"],"security":[{"sessionCookie":[]},{"bearerAuth":[]}],"description":"Requires a registered session through the session cookie or a registered-session Bearer token; ordinary API keys and management keys are not accepted. Metadata is scoped to the current customer and workspace and excludes operator, customer and workspace identifiers. Requires keys permission (owner/admin). The submitted revision must match; no automatic replay, rebasing or customer publication. Replace all editable fields on submitted, rejected, unpublished or withdrawn applications and resubmit at revision+1. Approved and published applications must first be explicitly withdrawn. Validate the linked key on every edit; reset the current review reason. Prior snapshots are retained in internal events from this feature onward.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowcaseEditInput"}}}},"responses":{"200":{"description":"Customer-safe application metadata","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowcaseCustomerView"}}}},"400":{"description":"Invalid input, UUID or revision"},"401":{"description":"Authentication required"},"403":{"description":"Registered session and required workspace permission unavailable"},"404":{"description":"Submission does not belong to this customer and workspace"},"409":{"description":"showcase_conflict: stale revision, disallowed state or revision limit; credential_purpose_mismatch: linked key unavailable or mismatched. No write was applied; read current state and explicitly review before another change."}}}},"/v1/showcase/submissions/{id}/withdraw":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"post":{"operationId":"withdrawShowcase","tags":["Showcase"],"security":[{"sessionCookie":[]},{"bearerAuth":[]}],"description":"Requires a registered session through the session cookie or a registered-session Bearer token; ordinary API keys and management keys are not accepted. Metadata is scoped to the current customer and workspace and excludes operator, customer and workspace identifiers. Requires keys permission (owner/admin). The submitted revision must match; no automatic replay, rebasing or customer publication. Withdraw a submitted, approved or published application at revision+1. Published applications disappear from subsequent public reads. Revoked or expired linked keys do not prevent withdrawal. Credentials, request history and metering remain unchanged. Repeated withdrawal is a conflict, not an idempotent success.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowcaseWithdrawInput"}}}},"responses":{"200":{"description":"Customer-safe application metadata","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowcaseCustomerView"}}}},"400":{"description":"Invalid input, UUID or revision"},"401":{"description":"Authentication required"},"403":{"description":"Registered session and required workspace permission unavailable"},"404":{"description":"Submission does not belong to this customer and workspace"},"409":{"description":"showcase_conflict: stale revision, disallowed state or revision limit; credential_purpose_mismatch: linked key unavailable or mismatched. No write was applied; read current state and explicitly review before another change."}}}},"/v1/showcase/submissions/{id}/events":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"get":{"operationId":"showcaseSubmissionEvents","tags":["Showcase"],"security":[{"sessionCookie":[]},{"bearerAuth":[]}],"description":"Requires a registered session through the session cookie or a registered-session Bearer token; ordinary API keys and management keys are not accepted. Metadata is scoped to the current customer and workspace and excludes operator, customer and workspace identifiers. All member roles may read recorded application history. Events are ordered by to_revision DESC; beforeRevision is an exclusive cursor. Default limit 20, maximum 100. historyStartRevision is the first recorded revision across all events, or null when no events exist; historical changes before tracking began are not reconstructed. Snapshots exclude raw actor IDs, reviewer IDs, customer/workspace IDs and secrets. This read-only history does not grant rollback, edit or approval rights; always read current application details before editing.","responses":{"200":{"description":"Customer-safe application metadata","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowcaseEventPage"}}}},"400":{"description":"Invalid input, UUID or revision"},"401":{"description":"Authentication required"},"403":{"description":"Registered session and required workspace permission unavailable"},"404":{"description":"Submission does not belong to this customer and workspace"}},"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"beforeRevision","in":"query","schema":{"type":"integer","minimum":1,"maximum":2147483647}}]}},"/workspaces":{"get":{"operationId":"listWorkspaces","summary":"List workspaces accessible to the current session","tags":["Workspaces"],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Accessible workspaces, including the current revision; sandbox sessions return an empty directory","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceDirectory"}}}},"401":{"description":"Missing, expired or revoked session"},"403":{"description":"Registered session and current authorization required; API keys and sandbox sessions cannot mutate workspaces"}}},"post":{"operationId":"createWorkspace","summary":"Create another workspace within the current customer account","description":"Only the registered account owner can create a workspace. The creator becomes its owner. Balance remains customer-scoped: creation neither creates a customer nor grants credit. The browser session remains in its original workspace. Retry an uncertain request with the original operationId and unchanged body; successful operations are durably replayed.","tags":["Workspaces"],"security":[{"sessionCookie":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceCreateInput"}}}},"responses":{"200":{"description":"Previously committed operation replayed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceMutationResult"}}}},"201":{"description":"Workspace created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceMutationResult"}}}},"400":{"description":"Invalid body, UUID, revision or workspace name. Names are NFKC-normalized and trimmed, must contain 1–80 characters after normalization, and cannot contain control or formatting characters."},"401":{"description":"Missing, expired or revoked session"},"403":{"description":"Registered session and current authorization required; API keys and sandbox sessions cannot mutate workspaces"},"409":{"description":"Stale workspace revision or operationId reused with different input. Refresh and explicitly review changes; never automatically replace the revision."}}}},"/workspaces/{id}":{"patch":{"operationId":"renameWorkspace","summary":"Rename the current workspace at its observed revision","description":"Requires a registered owner or admin in the current workspace. The path must identify the current workspace; switch first to edit another workspace. expectedRevision prevents overwriting another administrator's edit. Retry unknown outcomes with the same operationId, original name and revision. Replays return the original committed result and do not append another audit event.","tags":["Workspaces"],"security":[{"sessionCookie":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceRenameInput"}}}},"responses":{"200":{"description":"Rename committed or its original result replayed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceMutationResult"}}}},"400":{"description":"Invalid body, UUID, revision or workspace name. Names are NFKC-normalized and trimmed, must contain 1–80 characters after normalization, and cannot contain control or formatting characters."},"401":{"description":"Missing, expired or revoked session"},"403":{"description":"Registered session and current authorization required; API keys and sandbox sessions cannot mutate workspaces"},"409":{"description":"Stale workspace revision or operationId reused with different input. Refresh and explicitly review changes; never automatically replace the revision."}}}},"/v1/audio/transcription-models":{"get":{"operationId":"transcriptionModels","description":"Public transcription-only catalog, including enabled published controlled HTTP models. Rates are USD micros per rounded-up audio second. No credentials or supplier endpoints are exposed.","responses":{"200":{"description":"Available transcription models","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranscriptionModels"}}}}}}},"/v1/audio/transcriptions/{id}":{"get":{"operationId":"getTranscription","security":[{"sessionCookie":[]},{"bearerAuth":[]}],"description":"Requires calls permission and request ownership. Reads the original task and can settle an existing durable supplier receipt; never sends another provider POST. Foreign workspace or API-key results return 404.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Original transcription state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranscriptionTask"}}}},"401":{"description":"Authentication required"},"403":{"description":"Calls permission denied"},"404":{"description":"Task unavailable to this credential"}}}},"/v1/vision/tasks/{id}":{"get":{"operationId":"getVision","security":[{"sessionCookie":[]},{"bearerAuth":[]}],"description":"Requires calls permission and current request ownership/model scope; private key ownership enforced. Reads original receipt only and may settle confirmed usage. Never performs supplier POST. Missing or expired dispatch evidence remains unknown.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Original task state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VisionTask"}}}},"400":{"description":"Invalid input or model capability"},"401":{"description":"Authentication required"},"403":{"description":"Permission denied"},"404":{"description":"Owned model, asset or request unavailable"},"409":{"description":"Idempotency, price or accepted maximum conflict"}}}},"/v1/vision/by-key/{key}":{"get":{"operationId":"visionByKey","security":[{"sessionCookie":[]},{"bearerAuth":[]}],"description":"Requires invoke permission and current request ownership/model scope; private key ownership enforced. Reads original receipt only and may settle confirmed usage. Never performs supplier POST. Missing or expired dispatch evidence remains unknown.","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[\\w.:-]+$"}}],"responses":{"200":{"description":"Original task state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VisionTask"}}}},"400":{"description":"Invalid input or model capability"},"401":{"description":"Authentication required"},"403":{"description":"Permission denied"},"404":{"description":"Owned model, asset or request unavailable"},"409":{"description":"Idempotency, price or accepted maximum conflict"}}}},"/v1/studio/conversations/{id}/history":{"patch":{"operationId":"updateConversationHistory","tags":["conversations"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conversation"}}}},"default":{"description":"Structured error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationHistoryActionInput"}}}},"parameters":[{"$ref":"#/components/parameters/Id"}],"security":[{"sessionCookie":[]},{"bearerAuth":[]}],"summary":"Favorite, unfavorite, archive or restore a conversation"}},"/v1/chat/compression-previews":{"post":{"operationId":"previewConversationCompression","tags":["conversations"],"summary":"Persist an explicit, user-reviewable context compression preview","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationCompressionPreviewInput"}}}},"responses":{"200":{"description":"Frozen compression preview and conservative quote facts","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationCompressionPreview"}}}},"default":{"description":"Structured error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"sessionCookie":[]},{"bearerAuth":[]}]}},"/v1/studio/conversation-memory":{"get":{"operationId":"getConversationMemoryProfile","tags":["conversations"],"summary":"Read the registered user's workspace-scoped memory profile","responses":{"200":{"description":"Memory profile","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationMemoryProfile"}}}},"default":{"description":"Structured error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"sessionCookie":[]},{"bearerAuth":[]}]},"patch":{"operationId":"changeConversationMemoryProfile","tags":["conversations"],"summary":"Enable, close, clear, or close and clear long-term memory","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationMemoryProfileActionInput"}}}},"responses":{"200":{"description":"Updated memory profile","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationMemoryProfile"}}}},"default":{"description":"Structured error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"sessionCookie":[]},{"bearerAuth":[]}]}},"/v1/studio/conversation-memory/entries":{"post":{"operationId":"createConversationMemoryEntry","tags":["conversations"],"summary":"Remember one owned conversation message","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationMemoryCreateInput"}}}},"responses":{"200":{"description":"Idempotent existing entry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationMemoryCreateResult"}}}},"201":{"description":"Created memory entry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationMemoryCreateResult"}}}},"default":{"description":"Structured error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"sessionCookie":[]},{"bearerAuth":[]}]}},"/v1/studio/conversation-memory/entries/{entryId}":{"patch":{"operationId":"updateConversationMemoryEntry","tags":["conversations"],"summary":"CAS edit one memory entry","parameters":[{"name":"entryId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationMemoryUpdateInput"}}}},"responses":{"200":{"description":"Updated memory entry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationMemoryUpdateResult"}}}},"default":{"description":"Structured error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"sessionCookie":[]},{"bearerAuth":[]}]},"delete":{"operationId":"deleteConversationMemoryEntry","tags":["conversations"],"summary":"CAS delete one memory entry","parameters":[{"name":"entryId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationMemoryDeleteInput"}}}},"responses":{"200":{"description":"Updated memory profile","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationMemoryProfile"}}}},"default":{"description":"Structured error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"sessionCookie":[]},{"bearerAuth":[]}]}},"/v1/studio/comparisons":{"get":{"operationId":"listComparisons","tags":["comparisons"],"security":[{"CustomerBearer":[]}],"description":"Read-only scoped history","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"after","in":"query","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Authorized public comparison state; no supplier costs or credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComparisonPage"}}}},"400":{"description":"Invalid or unsupported input"},"401":{"description":"Authentication required"},"402":{"description":"Confirmed maximum or wallet/budget exceeded"},"403":{"description":"Current permission required"},"404":{"description":"Not found in actor scope"},"409":{"description":"Conflicting key, changed Generation, non-failed retry, or pending admission"}}},"post":{"operationId":"createComparison","tags":["comparisons"],"security":[{"CustomerBearer":[]}],"description":"Confirm total maximum; freeze server per-model price versions and caps. Replay repairs original admission, never starts a new Generation.","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[\\w.:-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComparisonCreate"}}}},"responses":{"200":{"description":"Authorized public comparison state; no supplier costs or credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComparisonCreateResult"}}}},"201":{"description":"Authorized public comparison state; no supplier costs or credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComparisonCreateResult"}}}},"400":{"description":"Invalid or unsupported input"},"401":{"description":"Authentication required"},"402":{"description":"Confirmed maximum or wallet/budget exceeded"},"403":{"description":"Current permission required"},"404":{"description":"Not found in actor scope"},"409":{"description":"Conflicting key, changed Generation, non-failed retry, or pending admission"}}}},"/v1/studio/comparisons/quote":{"post":{"operationId":"quoteComparison","tags":["comparisons"],"security":[{"CustomerBearer":[]}],"description":"Quote only; no Generation or wallet reservation. Deterministically unsupported candidates are separately identified.","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComparisonQuoteInput"}}}},"responses":{"200":{"description":"Authorized public comparison state; no supplier costs or credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComparisonQuote"}}}},"400":{"description":"Invalid or unsupported input"},"401":{"description":"Authentication required"},"402":{"description":"Confirmed maximum or wallet/budget exceeded"},"403":{"description":"Current permission required"},"404":{"description":"Not found in actor scope"},"409":{"description":"Conflicting key, changed Generation, non-failed retry, or pending admission"}}}},"/v1/studio/comparisons/{id}":{"get":{"operationId":"getComparison","tags":["comparisons"],"security":[{"CustomerBearer":[]}],"description":"Read current Generation and immutable previous Generation results, charges and unknown usage; no resubmission.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Authorized public comparison state; no supplier costs or credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Comparison"}}}},"400":{"description":"Invalid or unsupported input"},"401":{"description":"Authentication required"},"402":{"description":"Confirmed maximum or wallet/budget exceeded"},"403":{"description":"Current permission required"},"404":{"description":"Not found in actor scope"},"409":{"description":"Conflicting key, changed Generation, non-failed retry, or pending admission"}}}},"/v1/studio/comparisons/{comparisonId}/items/{itemId}/cancel":{"post":{"operationId":"cancelComparisonItem","tags":["comparisons"],"security":[{"CustomerBearer":[]}],"description":"Cancel the expected Generation only; stale cancellation cannot target a new retry. Late authoritative completion still wins.","parameters":[{"name":"comparisonId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"itemId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComparisonCancel"}}}},"responses":{"200":{"description":"Authorized public comparison state; no supplier costs or credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Comparison"}}}},"400":{"description":"Invalid or unsupported input"},"401":{"description":"Authentication required"},"402":{"description":"Confirmed maximum or wallet/budget exceeded"},"403":{"description":"Current permission required"},"404":{"description":"Not found in actor scope"},"409":{"description":"Conflicting key, changed Generation, non-failed retry, or pending admission"}}}},"/v1/studio/comparisons/{comparisonId}/items/{itemId}/retry/quote":{"post":{"operationId":"quoteComparisonItemRetry","tags":["comparisons"],"security":[{"CustomerBearer":[]}],"description":"Quote an extra Generation only for an explicitly failed item. No inference.","parameters":[{"name":"comparisonId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"itemId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Authorized public comparison state; no supplier costs or credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComparisonRetryQuote"}}}},"400":{"description":"Invalid or unsupported input"},"401":{"description":"Authentication required"},"402":{"description":"Confirmed maximum or wallet/budget exceeded"},"403":{"description":"Current permission required"},"404":{"description":"Not found in actor scope"},"409":{"description":"Conflicting key, changed Generation, non-failed retry, or pending admission"}}}},"/v1/studio/comparisons/{comparisonId}/items/{itemId}/retry":{"post":{"operationId":"retryComparisonItem","tags":["comparisons"],"security":[{"CustomerBearer":[]}],"description":"Explicit additional billed Generation with confirmed maximum and expected previous Generation. Replaying the same key repairs this retry; old outputs and charges remain. Cancelled/unknown/successful tasks cannot be retried.","parameters":[{"name":"comparisonId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"itemId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[\\w.:-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComparisonRetry"}}}},"responses":{"200":{"description":"Authorized public comparison state; no supplier costs or credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Comparison"}}}},"400":{"description":"Invalid or unsupported input"},"401":{"description":"Authentication required"},"402":{"description":"Confirmed maximum or wallet/budget exceeded"},"403":{"description":"Current permission required"},"404":{"description":"Not found in actor scope"},"409":{"description":"Conflicting key, changed Generation, non-failed retry, or pending admission"}}}},"/v1/studio/comparisons/{comparisonId}/items/{itemId}/continue":{"post":{"operationId":"continueComparisonItem","tags":["comparisons"],"security":[{"CustomerBearer":[]}],"description":"Create or reopen one Room per selected successful item and actor. Imports original prompt and authoritative answer; no Generation, provider call, hold or charge.","parameters":[{"name":"comparisonId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"itemId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[\\w.:-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComparisonContinuation"}}}},"responses":{"200":{"description":"Authorized public comparison state; no supplier costs or credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComparisonContinuationResult"}}}},"201":{"description":"Authorized public comparison state; no supplier costs or credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComparisonContinuationResult"}}}},"400":{"description":"Invalid or unsupported input"},"401":{"description":"Authentication required"},"402":{"description":"Confirmed maximum or wallet/budget exceeded"},"403":{"description":"Current permission required"},"404":{"description":"Not found in actor scope"},"409":{"description":"Conflicting key, changed Generation, non-failed retry, or pending admission"}}}},"/v1/fusions":{"get":{"operationId":"listFusions","tags":["fusions"],"security":[{"CustomerBearer":[]}],"description":"Read-only owned history","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"after","in":"query","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Owned Fusion state, actual source provenance and customer money projection only","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FusionPage"}}}},"400":{"description":"Invalid plan"},"401":{"description":"Login required"},"402":{"description":"Frozen per-step cap or balance exceeded"},"403":{"description":"Current scoped permission required"},"404":{"description":"Not owned in this scope"},"409":{"description":"Stale revision, changed key payload or unresolved admission"},"422":{"description":"Context limit exceeded; never silently clipped"}}},"post":{"operationId":"createFusion","tags":["fusions"],"security":[{"CustomerBearer":[]}],"description":"Confirm immutable total and step caps. Starts discussions only; replay repairs stable admissions, never new Generations.","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9_.:-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FusionCreate"}}}},"responses":{"200":{"description":"Owned Fusion state, actual source provenance and customer money projection only","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FusionCreateResult"}}}},"201":{"description":"Owned Fusion state, actual source provenance and customer money projection only","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FusionCreateResult"}}}},"400":{"description":"Invalid plan"},"401":{"description":"Login required"},"402":{"description":"Frozen per-step cap or balance exceeded"},"403":{"description":"Current scoped permission required"},"404":{"description":"Not owned in this scope"},"409":{"description":"Stale revision, changed key payload or unresolved admission"},"422":{"description":"Context limit exceeded; never silently clipped"}}}},"/v1/fusions/{id}":{"get":{"operationId":"getFusion","tags":["fusions"],"security":[{"CustomerBearer":[]}],"description":"Read-only actual outputs, snapshots and provenance. Run/step confirmedSalesMicros come from settled ledger charges including definite zero; heldMicros are actual holds. Owner-scoped durable manifests attribute accepted unlinked requests without repair writes. Quotes never replace ledger amounts; unresolved workflow links remain unresolved.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Owned Fusion state, actual source provenance and customer money projection only","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FusionDetail"}}}},"400":{"description":"Invalid plan"},"401":{"description":"Login required"},"402":{"description":"Frozen per-step cap or balance exceeded"},"403":{"description":"Current scoped permission required"},"404":{"description":"Not owned in this scope"},"409":{"description":"Stale revision, changed key payload or unresolved admission"},"422":{"description":"Context limit exceeded; never silently clipped"}}}},"/v1/fusions/{id}/resume":{"post":{"operationId":"resumeFusion","tags":["fusions"],"security":[{"CustomerBearer":[]}],"description":"Explicitly advance eligible stage under revision CAS. Same-key replay targets original positions only. Unknown/failed/cancelled stop downstream; accepted unlinked request restores original operation and guardrail snapshot.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9_.:-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FusionResume"}}}},"responses":{"200":{"description":"Owned Fusion state, actual source provenance and customer money projection only","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FusionResumeResult"}}}},"400":{"description":"Invalid plan"},"401":{"description":"Login required"},"402":{"description":"Frozen per-step cap or balance exceeded"},"403":{"description":"Current scoped permission required"},"404":{"description":"Not owned in this scope"},"409":{"description":"Stale revision, changed key payload or unresolved admission"},"422":{"description":"Context limit exceeded; never silently clipped"}}}},"/v1/fusions/{id}/steps/{stepId}/cancel":{"post":{"operationId":"cancelFusionStep","tags":["fusions"],"security":[{"CustomerBearer":[]}],"description":"Cancel only the original expected Generation. Unknown in-flight holds remain until authoritative settlement; no replacement Generation.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"stepId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FusionCancel"}}}},"responses":{"200":{"description":"Owned Fusion state, actual source provenance and customer money projection only","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FusionDetail"}}}},"400":{"description":"Invalid plan"},"401":{"description":"Login required"},"402":{"description":"Frozen per-step cap or balance exceeded"},"403":{"description":"Current scoped permission required"},"404":{"description":"Not owned in this scope"},"409":{"description":"Stale revision, changed key payload or unresolved admission"},"422":{"description":"Context limit exceeded; never silently clipped"}}}},"/v1/audio/tasks/{id}/stream":{"get":{"tags":["Audio"],"operationId":"readOriginalAudioStreamFrame","description":"Read exactly one bounded JSON frame (<=4096 bytes). Each chunk is at most 1600 PCM bytes, committed by the original owner before disclosure. after=0 starts; duplicate cursor is repeatable; ahead/gap 409; original fixed 15-minute expiry 410 after authorization. Pending replies finish immediately; poll/reconnect GET only. No create, reserve, dispatch or settlement. Client fetched and rendered positions remain separate.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"after","in":"query","schema":{"type":"integer","minimum":0,"maximum":300,"default":0}}],"responses":{"200":{"description":"Original bounded frame","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioStreamFrame"}}}},"401":{"description":"Sign in required"},"403":{"description":"Permission denied, identity retained"},"409":{"description":"Unsupported stream or invalid/gap cursor"},"410":{"description":"Transient stream cursor expired; Task/Asset keep their own retention"}},"security":[{"sessionCookie":[]},{"bearerAuth":[]}]}},"/v1/audio/tasks/by-key/{key}":{"get":{"tags":["Audio"],"operationId":"lookupOriginalAudioTaskByKey","description":"Read-only lookup in the authenticated original customer/workspace/credential scope. No prompt in URL; no create/reserve/dispatch. A 404 is read-time not-found, not proof of non-dispatch. Ambiguous 409 is not safe to resubmit. A lost key is not recovered by copying browser storage.","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":180}}],"responses":{"200":{"description":"Original audio task","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioTask"}}}},"401":{"description":"Sign in required"},"403":{"description":"Permission denied"},"404":{"description":"Read-time not found, submission state remains unconfirmed"},"409":{"description":"Ambiguous scoped key"}},"security":[{"sessionCookie":[]},{"bearerAuth":[]}]}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"},"sessionCookie":{"type":"apiKey","in":"cookie","name":"relay_session"},"operatorAuth":{"type":"apiKey","in":"header","name":"x-relay-operator"}},"parameters":{"IdempotencyKey":{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":200}},"Id":{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}},"schemas":{"CachedByokCompletionInput":{"type":"object","additionalProperties":false,"required":["input","cache"],"properties":{"input":{"type":"object","additionalProperties":false,"required":["credentialId","model","messages"],"properties":{"credentialId":{"type":"string","format":"uuid"},"model":{"const":"sandbox/echo"},"messages":{"type":"array","minItems":1,"maxItems":16,"items":{"type":"object","additionalProperties":false,"required":["role","content"],"properties":{"role":{"enum":["system","user","assistant"]},"content":{"type":["string","null"]}}}},"max_tokens":{"type":"integer","minimum":1,"maximum":512,"default":256},"allowPlatformFallback":{"type":"boolean","default":false},"response_format":{"$ref":"#/components/schemas/ResponseFormat"}}},"cache":{"type":"object","additionalProperties":false,"required":["enabled"],"properties":{"enabled":{"const":true},"ttlSeconds":{"type":"integer","minimum":60,"maximum":86400}}}}},"CachedCompletionResult":{"type":"object","additionalProperties":false,"required":["requestId","cacheStatus","completion"],"properties":{"requestId":{"type":"string","format":"uuid"},"cacheStatus":{"enum":["hit","miss","bypass"]},"completion":{"type":"object","additionalProperties":false,"required":["state","output","error","usage"],"properties":{"state":{"enum":["succeeded","failed","needs_reconciliation"]},"output":{"type":"string"},"error":{"type":["string","null"]},"usage":{"oneOf":[{"type":"null"},{"type":"object","additionalProperties":false,"required":["input","output"],"properties":{"input":{"type":"integer","minimum":0},"output":{"type":"integer","minimum":0}}}]},"toolCalls":{"type":"array","maxItems":0},"finishReason":{"type":"string","enum":["stop","length","content_filter","tool_calls","end_turn","max_tokens","stop_sequence","tool_use"]}}},"contextCompression":{"$ref":"#/components/schemas/ContextCompressionReceipt"}}},"Error":{"type":"object","additionalProperties":false,"properties":{"error":{"type":"object","additionalProperties":false,"properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]},"Accepted":{"type":"object","additionalProperties":false,"properties":{"accepted":{"const":true}},"required":["accepted"]},"Verified":{"type":"object","additionalProperties":false,"properties":{"verified":{"const":true}},"required":["verified"]},"PasswordReset":{"type":"object","additionalProperties":false,"properties":{"changed":{"const":true},"revokedSessions":{"type":"integer","minimum":0}},"required":["changed","revokedSessions"]},"MfaStatus":{"type":"object","additionalProperties":false,"properties":{"enabled":{"type":"boolean"}},"required":["enabled"]},"MfaEnrollment":{"type":"object","additionalProperties":false,"properties":{"secret":{"type":"string"},"otpauthUri":{"type":"string","format":"uri"},"recoveryCodes":{"type":"array","minItems":10,"maxItems":10,"items":{"type":"string"}}},"required":["secret","otpauthUri","recoveryCodes"]},"Session":{"type":"object","additionalProperties":false,"properties":{"customerId":{"type":"string","format":"uuid"},"workspaceId":{"type":"string","format":"uuid"},"environment":{"const":"sandbox"}},"required":["customerId","workspaceId","environment"]},"PageQuery":{"type":"object","additionalProperties":false,"properties":{"limit":{"type":"integer","minimum":1,"maximum":100,"default":50},"after":{"type":"string","format":"uuid"}},"required":[]},"Message":{"type":"object","additionalProperties":false,"properties":{"role":{"enum":["system","user","assistant"]},"content":{"type":"string"}},"required":["role","content"]},"ChatTemplate":{"type":"object","additionalProperties":false,"properties":{"model":{"type":"string"},"messages":{"type":"array","minItems":1,"items":{"$ref":"#/components/schemas/Message"}},"max_tokens":{"type":"integer","minimum":1},"stream":{"const":false},"response_format":{"$ref":"#/components/schemas/ResponseFormat"}},"required":["model","messages","max_tokens"]},"ChatTurnQuoteInput":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":100},"model":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"maxTokens":{"default":256,"type":"integer","minimum":1,"maximum":8192},"kind":{"type":"string","const":"first"},"content":{"type":"string","minLength":1,"maxLength":4000},"attachmentIds":{"maxItems":4,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"memoryEntryIds":{"maxItems":8,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"compressionPreviewId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"persistenceConfirmationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["title","model","kind","content"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"append"},"conversationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"revision":{"type":"integer","minimum":1,"maximum":2147483646},"content":{"type":"string","minLength":1,"maxLength":4000},"attachmentIds":{"maxItems":4,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"contextMessageIds":{"maxItems":16,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"memoryEntryIds":{"maxItems":8,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"compressionPreviewId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["kind","conversationId","revision","content"],"additionalProperties":false}]},"ChatTurnQuote":{"type":"object","properties":{"quoteId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"priceVersion":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"publicationSnapshotId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"publicationSnapshotHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"publicationValidUntil":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"maximumMicros":{"type":"integer","minimum":0,"maximum":9007199254740991},"currency":{"type":"string","const":"USD"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"requestFingerprint":{"type":"string","pattern":"^[a-f0-9]{64}$"},"includedMessageIds":{"maxItems":16,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"includedAttachmentIds":{"maxItems":4,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"attachments":{"maxItems":4,"type":"array","items":{"type":"object","properties":{"assetId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"filename":{"type":"string","minLength":1,"maxLength":180},"mediaType":{"type":"string","enum":["text/plain","text/markdown","application/pdf","image/png","audio/wav"]},"bytes":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"safetyStatus":{"type":"string","const":"synthetic_clean"}},"required":["assetId","filename","mediaType","bytes","sha256","safetyStatus"],"additionalProperties":false}},"contextCharacters":{"type":"integer","minimum":0,"maximum":9007199254740991},"includedMemoryEntries":{"maxItems":8,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"content":{"type":"string","minLength":1,"maxLength":4000},"sourceConversationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"sourceMessageId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"version":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"lastUsedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]}},"required":["id","content","sourceConversationId","sourceMessageId","version","createdAt","updatedAt","lastUsedAt"],"additionalProperties":false}},"memoryProfileEpoch":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"contextCompression":{"default":null,"anyOf":[{"type":"object","properties":{"strategy":{"type":"string","const":"middle-out-turns-v1"},"changed":{"type":"boolean"},"originalMessages":{"type":"integer","minimum":1,"maximum":64},"executedMessages":{"type":"integer","minimum":1,"maximum":16},"removedTurns":{"type":"integer","minimum":0,"maximum":62},"removedMessageIndices":{"maxItems":63,"type":"array","items":{"type":"integer","minimum":0,"maximum":63}},"inputEstimateBefore":{"type":"integer","minimum":0,"maximum":9007199254740991},"inputEstimateAfter":{"type":"integer","minimum":0,"maximum":9007199254740991},"inputEstimateBudget":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"estimateMethod":{"type":"string","const":"utf8-envelope-estimate-v1"},"model":{"type":"string","minLength":1,"maxLength":200},"modelVersion":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"priceVersion":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"originalFingerprint":{"type":"string","pattern":"^[0-9a-f]{64}$"},"executionFingerprint":{"type":"string","pattern":"^[0-9a-f]{64}$"}},"required":["strategy","changed","originalMessages","executedMessages","removedTurns","removedMessageIndices","inputEstimateBefore","inputEstimateAfter","inputEstimateBudget","estimateMethod","model","modelVersion","priceVersion","originalFingerprint","executionFingerprint"],"additionalProperties":false},{"type":"null"}]}},"required":["quoteId","priceVersion","publicationSnapshotId","publicationSnapshotHash","publicationValidUntil","maximumMicros","currency","expiresAt","requestFingerprint","includedMessageIds","includedAttachmentIds","attachments","contextCharacters"],"additionalProperties":false},"FirstChatTurnInput":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":100},"model":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"maxTokens":{"default":256,"type":"integer","minimum":1,"maximum":8192},"content":{"type":"string","minLength":1,"maxLength":4000},"attachmentIds":{"maxItems":4,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"memoryEntryIds":{"maxItems":8,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"compressionPreviewId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"persistenceConfirmationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"quoteId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["title","model","content","quoteId"],"additionalProperties":false},"Conversation":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"model":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"maxTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"revision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"state":{"type":"string","enum":["active","deleted"]},"favorite":{"type":"boolean"},"archivedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"branchFromMessageId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"pendingTurn":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","title","model","maxTokens","revision","state","favorite","archivedAt","branchFromMessageId","pendingTurn","createdAt","updatedAt"],"additionalProperties":false},"ConversationDetail":{"type":"object","properties":{"conversation":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"model":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"maxTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"revision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"state":{"type":"string","enum":["active","deleted"]},"favorite":{"type":"boolean"},"archivedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"branchFromMessageId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"pendingTurn":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","title","model","maxTokens","revision","state","favorite","archivedAt","branchFromMessageId","pendingTurn","createdAt","updatedAt"],"additionalProperties":false},"messages":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"role":{"type":"string","enum":["user","assistant"]},"content":{"type":"string"},"requestId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"sourceMessageId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"attachments":{"maxItems":4,"type":"array","items":{"type":"object","properties":{"assetId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"filename":{"type":"string","minLength":1,"maxLength":180},"mediaType":{"type":"string","enum":["text/plain","text/markdown","application/pdf","image/png","audio/wav"]},"bytes":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"safetyStatus":{"type":"string","const":"synthetic_clean"}},"required":["assetId","filename","mediaType","bytes","sha256","safetyStatus"],"additionalProperties":false}},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","role","content","requestId","sourceMessageId","attachments","createdAt"],"additionalProperties":false}},"turns":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"userMessageId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"requestId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"quoteId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"topupOrderId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"state":{"type":"string","enum":["pending","awaiting_funds","succeeded","failed"]},"error":{"type":["string","null"]},"contextMessageIds":{"maxItems":16,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"memoryEntryIds":{"maxItems":8,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"memoryProfileEpoch":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"contextCompression":{"default":null,"anyOf":[{"type":"object","properties":{"strategy":{"type":"string","const":"middle-out-turns-v1"},"changed":{"type":"boolean"},"originalMessages":{"type":"integer","minimum":1,"maximum":64},"executedMessages":{"type":"integer","minimum":1,"maximum":16},"removedTurns":{"type":"integer","minimum":0,"maximum":62},"removedMessageIndices":{"maxItems":63,"type":"array","items":{"type":"integer","minimum":0,"maximum":63}},"inputEstimateBefore":{"type":"integer","minimum":0,"maximum":9007199254740991},"inputEstimateAfter":{"type":"integer","minimum":0,"maximum":9007199254740991},"inputEstimateBudget":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"estimateMethod":{"type":"string","const":"utf8-envelope-estimate-v1"},"model":{"type":"string","minLength":1,"maxLength":200},"modelVersion":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"priceVersion":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"originalFingerprint":{"type":"string","pattern":"^[0-9a-f]{64}$"},"executionFingerprint":{"type":"string","pattern":"^[0-9a-f]{64}$"}},"required":["strategy","changed","originalMessages","executedMessages","removedTurns","removedMessageIndices","inputEstimateBefore","inputEstimateAfter","inputEstimateBudget","estimateMethod","model","modelVersion","priceVersion","originalFingerprint","executionFingerprint"],"additionalProperties":false},{"type":"null"}]}},"required":["id","userMessageId","requestId","quoteId","topupOrderId","state","error","contextMessageIds"],"additionalProperties":false}}},"required":["conversation","messages","turns"],"additionalProperties":false},"Preset":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"description":{"type":"string"},"template":{"$ref":"#/components/schemas/ChatTemplate"},"revision":{"type":"integer"},"state":{"enum":["active","deleted"]},"createdByUserId":{"type":"string","format":"uuid"},"updatedByUserId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","description","template","revision","state","createdByUserId","updatedByUserId","createdAt","updatedAt"]},"Comparison":{"type":"object","properties":{"comparison":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"prompt":{"type":"string"},"models":{"minItems":2,"maxItems":4,"type":"array","items":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"}},"maxTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"maximumMicros":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"quotedMaximumMicros":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","title","prompt","models","maxTokens","maximumMicros","quotedMaximumMicros","createdAt"],"additionalProperties":false},"items":{"minItems":2,"maxItems":4,"type":"array","items":{"type":"object","properties":{"state":{"type":"string","enum":["submitting","accepted","running","cancel_requested","cancelled","needs_reconciliation","succeeded","failed"]},"output":{"type":["string","null"]},"error":{"type":["string","null"]},"maximumMicros":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"usage":{"anyOf":[{"type":"object","properties":{"status":{"type":"string","enum":["confirmed","unknown"]},"input_units":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"output_units":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"sales_micros":{"type":["string","null"]},"unit":{"type":"string","enum":["unicode_character","token"]},"source":{"type":"string","enum":["sandbox_adapter","mock_token_fixture_v1","declared_context_bound_v1"]},"token_usage":{"anyOf":[{},{"type":"null"}]}},"required":["status","input_units","output_units","sales_micros","unit","source","token_usage"],"additionalProperties":false},{"type":"null"}]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"model":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"requestId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"generationId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"generations":{"type":"array","items":{"type":"object","properties":{"generationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"state":{"type":"string","enum":["submitting","accepted","running","cancel_requested","cancelled","needs_reconciliation","succeeded","failed"]},"output":{"type":["string","null"]},"error":{"type":["string","null"]},"maximumMicros":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"usage":{"anyOf":[{"type":"object","properties":{"status":{"type":"string","enum":["confirmed","unknown"]},"input_units":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"output_units":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"sales_micros":{"type":["string","null"]},"unit":{"type":"string","enum":["unicode_character","token"]},"source":{"type":"string","enum":["sandbox_adapter","mock_token_fixture_v1","declared_context_bound_v1"]},"token_usage":{"anyOf":[{},{"type":"null"}]}},"required":["status","input_units","output_units","sales_micros","unit","source","token_usage"],"additionalProperties":false},{"type":"null"}]}},"required":["generationId","state","output","error","maximumMicros","usage"],"additionalProperties":false}},"retryPending":{"type":"boolean"}},"required":["state","output","error","maximumMicros","usage","id","model","requestId","generationId","generations","retryPending"],"additionalProperties":false}}},"required":["comparison","items"],"additionalProperties":false},"Batch":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"state":{"enum":["submitting","active","completed","cancel_requested"]},"items":{"type":"array","minItems":1,"maxItems":20,"items":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","format":"uuid"},"position":{"type":"integer"},"itemKey":{"type":"string"},"input":{"$ref":"#/components/schemas/ChatTemplate"},"admission":{"enum":["pending","admitted","not_admitted","unknown"]},"taskId":{"type":["string","null"],"format":"uuid"},"error":{"type":["string","null"]},"task":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/TextTask"}]},"salesMicros":{"type":["string","null"]}},"required":["id","position","itemKey","input","admission","taskId","error","task","salesMicros"]}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","state","items","createdAt","updatedAt"]},"AudioQuote":{"type":"object","additionalProperties":false,"properties":{"version":{"type":"string","format":"uuid"},"currency":{"const":"USD"},"unit":{"const":"audio_second"},"perSecondMicros":{"type":"integer"},"maximumSeconds":{"type":"integer"},"maximumMicros":{"type":"integer"},"confirmation":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"inputSha256":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["id","expiresAt","inputSha256"],"additionalProperties":false}},"required":["version","currency","unit","perSecondMicros","maximumSeconds","maximumMicros"]},"AudioTask":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","format":"uuid"},"kind":{"const":"audio"},"model":{"type":"string"},"state":{"enum":["queued","running","cancel_requested","succeeded","failed","cancelled","needs_reconciliation"]},"cancelRequested":{"type":"boolean"},"error":{"type":["string","null"]},"input":{"type":"object","properties":{"prompt":{"type":"string","minLength":1,"maxLength":4000},"duration_seconds":{"type":"integer","minimum":1,"maximum":30}},"required":["prompt","duration_seconds"],"additionalProperties":false},"quote":{"$ref":"#/components/schemas/AudioQuote"},"usage":{"oneOf":[{"type":"null"},{"type":"object","additionalProperties":false,"properties":{"unit":{"const":"audio_second"},"seconds":{"type":"integer","minimum":0}},"required":["unit","seconds"]}]},"output":{"anyOf":[{"type":"object","properties":{"assetId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"filename":{"type":"string","minLength":1,"maxLength":180},"mediaType":{"type":"string","const":"audio/wav"},"bytes":{"type":"integer","minimum":45,"maximum":3000000},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"durationSeconds":{"type":"integer","minimum":1,"maximum":30},"sampleRate":{"anyOf":[{"type":"number","const":8000},{"type":"number","const":16000},{"type":"number","const":24000},{"type":"number","const":48000}]},"channels":{"type":"number","const":1}},"required":["assetId","filename","mediaType","bytes","sha256","durationSeconds","sampleRate","channels"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"},"generation":{"type":"object","properties":{"content":{"type":"string","enum":["test_tone","speech"]},"voice":{"anyOf":[{"type":"string","enum":["alloy","ash","ballad","coral","echo","fable","onyx","nova","sage","shimmer","verse","marin","cedar"]},{"type":"null"}]},"format":{"type":"string","const":"wav"},"outputMode":{"type":"string","enum":["file","stream"]}},"required":["content","voice","format","outputMode"],"additionalProperties":false},"submissionBinding":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[\\w.:-]+$"},"requestId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"inputSha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"admittedPromptSha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"legacyQuoteToken":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["key","requestId","inputSha256","admittedPromptSha256"],"additionalProperties":false}},"required":["id","kind","model","state","cancelRequested","error","input","quote","usage","output","createdAt"]},"RetrievalQuote":{"anyOf":[{"type":"object","properties":{"currency":{"type":"string","const":"USD"},"unit":{"type":"string","const":"simulated_token"},"inputUnits":{"type":"integer","minimum":0,"maximum":9007199254740991},"maximumMicros":{"type":"integer","minimum":0,"maximum":9007199254740991},"salesRateMicros":{"type":"integer","minimum":0,"maximum":9007199254740991},"source":{"type":"string","const":"local_mock_retrieval_v1"}},"required":["currency","unit","inputUnits","maximumMicros","salesRateMicros","source"],"additionalProperties":false},{"type":"object","properties":{"currency":{"type":"string","const":"USD"},"unit":{"type":"string","const":"token"},"inputUnits":{"type":"integer","exclusiveMinimum":0,"maximum":64000},"maximumMicros":{"type":"integer","minimum":0,"maximum":9007199254740991},"rates":{"type":"object","properties":{"currency":{"type":"string","const":"USD"},"unit":{"type":"string","const":"microusd_per_million_tokens"},"input":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$"},"cachedInput":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$"},"cacheWriteInput5m":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$"},"cacheWriteInput1h":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$"},"output":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$"}},"required":["currency","unit","input","cachedInput","output"],"additionalProperties":false},"version":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"source":{"type":"string","const":"declared_retrieval_input_bound_v1"}},"required":["currency","unit","inputUnits","maximumMicros","rates","version","source"],"additionalProperties":false}]},"Retrieval":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"model":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"state":{"type":"string","enum":["accepted","running","needs_reconciliation","succeeded","failed"]},"error":{"type":["string","null"]},"quote":{"anyOf":[{"type":"object","properties":{"currency":{"type":"string","const":"USD"},"unit":{"type":"string","const":"simulated_token"},"inputUnits":{"type":"integer","minimum":0,"maximum":9007199254740991},"maximumMicros":{"type":"integer","minimum":0,"maximum":9007199254740991},"salesRateMicros":{"type":"integer","minimum":0,"maximum":9007199254740991},"source":{"type":"string","const":"local_mock_retrieval_v1"}},"required":["currency","unit","inputUnits","maximumMicros","salesRateMicros","source"],"additionalProperties":false},{"type":"object","properties":{"currency":{"type":"string","const":"USD"},"unit":{"type":"string","const":"token"},"inputUnits":{"type":"integer","exclusiveMinimum":0,"maximum":64000},"maximumMicros":{"type":"integer","minimum":0,"maximum":9007199254740991},"rates":{"type":"object","properties":{"currency":{"type":"string","const":"USD"},"unit":{"type":"string","const":"microusd_per_million_tokens"},"input":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$"},"cachedInput":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$"},"cacheWriteInput5m":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$"},"cacheWriteInput1h":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$"},"output":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$"}},"required":["currency","unit","input","cachedInput","output"],"additionalProperties":false},"version":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"source":{"type":"string","const":"declared_retrieval_input_bound_v1"}},"required":["currency","unit","inputUnits","maximumMicros","rates","version","source"],"additionalProperties":false}]},"usage":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["simulated_token","token"]},"input":{"type":"integer","minimum":0,"maximum":9007199254740991},"salesMicros":{"type":"string","pattern":"^(0|[1-9]\\d*)$"}},"required":["unit","input","salesMicros"]},{"type":"null"}]},"result":{"anyOf":[{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","const":"embedding"},"vectors":{"minItems":1,"maxItems":16,"type":"array","items":{"minItems":1,"maxItems":4096,"type":"array","items":{"type":"number"}}}},"required":["kind","vectors"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"rerank"},"results":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":0,"maximum":9007199254740991},"score":{"type":"number"}},"required":["index","score"],"additionalProperties":false}}},"required":["kind","results"],"additionalProperties":false}]},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","model","state","error","quote","usage","result","createdAt"],"additionalProperties":false},"Routing":{"type":"object","additionalProperties":false,"example":{"allowedRegion":"local","strategy":"priority","allowedChannelIds":[],"blockedChannelIds":[],"maximumRetention":"none","allowTraining":false,"requireDeclaredRegion":true,"crossModelFallback":false,"allowedFallbackModelIds":[],"revision":1,"regionEvidence":"configured_channel_declaration_only"},"properties":{"allowedRegion":{"enum":["local","ap-southeast-1","eu-central-1","us-east-1"]},"strategy":{"enum":["priority","lowest_cost"]},"allowedChannelIds":{"type":"array","items":{"type":"string"}},"blockedChannelIds":{"type":"array","maxItems":100,"items":{"type":"string"}},"maximumRetention":{"enum":["unknown","none","up_to_30_days"]},"allowTraining":{"type":"boolean"},"requireDeclaredRegion":{"type":"boolean"},"crossModelFallback":{"type":"boolean"},"allowedFallbackModelIds":{"type":"array","maxItems":100,"items":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"}},"revision":{"type":"integer"},"regionEvidence":{"const":"configured_channel_declaration_only"}},"required":["allowedRegion","strategy","allowedChannelIds","blockedChannelIds","maximumRetention","allowTraining","requireDeclaredRegion","crossModelFallback","allowedFallbackModelIds","revision","regionEvidence"]},"BudgetPeriod":{"type":"object","additionalProperties":false,"properties":{"limitMicros":{"type":["string","null"]},"usedMicros":{"type":"string"},"reservedMicros":{"type":"string"},"availableMicros":{"type":["string","null"]},"periodStart":{"type":"string","format":"date-time"},"periodEnd":{"type":"string","format":"date-time"}},"required":["limitMicros","usedMicros","reservedMicros","availableMicros","periodStart","periodEnd"]},"Budget":{"type":"object","additionalProperties":false,"properties":{"limitMicros":{"type":"string"},"usedMicros":{"type":"string"},"reservedMicros":{"type":"string"},"availableMicros":{"type":"string"},"revision":{"type":"integer"},"daily":{"$ref":"#/components/schemas/BudgetPeriod"},"monthly":{"$ref":"#/components/schemas/BudgetPeriod"}},"required":["limitMicros","usedMicros","reservedMicros","availableMicros","revision","daily","monthly"]},"Ticket":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"workspaceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"subject":{"type":"string"},"status":{"type":"string","enum":["open","waiting_customer","resolved","closed"]},"revision":{"type":"integer","minimum":0,"maximum":9007199254740991},"request":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"model":{"type":"string"},"state":{"type":"string"}},"required":["id","model","state"],"additionalProperties":false},{"type":"null"}]},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"actorType":{"type":"string","enum":["customer","operator"]},"actorId":{"type":"string"},"body":{"type":"string"},"attachments":{"maxItems":4,"type":"array","items":{"type":"object","properties":{"assetId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"filename":{"type":"string","minLength":1,"maxLength":180},"mediaType":{"type":"string","minLength":1,"maxLength":100},"bytes":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["assetId","filename","mediaType","bytes","sha256"],"additionalProperties":false}},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","actorType","actorId","body","createdAt"],"additionalProperties":false}},"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"type":{"type":"string","enum":["created","message_added","status_changed"]},"actorType":{"type":"string","enum":["customer","operator"]},"actorId":{"type":"string"},"fromStatus":{"anyOf":[{"type":"string","enum":["open","waiting_customer","resolved","closed"]},{"type":"null"}]},"toStatus":{"anyOf":[{"type":"string","enum":["open","waiting_customer","resolved","closed"]},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","type","actorType","actorId","fromStatus","toStatus","createdAt"],"additionalProperties":false}},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","customerId","workspaceId","subject","status","revision","request","messages","events","createdAt","updatedAt"],"additionalProperties":false},"ConversationPage":{"type":"object","additionalProperties":false,"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Conversation"}},"nextCursor":{"type":["string","null"],"format":"uuid"}},"required":["data","nextCursor"]},"PresetPage":{"type":"object","additionalProperties":false,"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Preset"}},"nextCursor":{"type":["string","null"],"format":"uuid"}},"required":["data","nextCursor"]},"ComparisonPage":{"type":"object","properties":{"data":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"prompt":{"type":"string"},"models":{"minItems":2,"maxItems":4,"type":"array","items":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"}},"maxTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"maximumMicros":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"quotedMaximumMicros":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","title","prompt","models","maxTokens","maximumMicros","quotedMaximumMicros","createdAt"],"additionalProperties":false}},"nextCursor":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["data","nextCursor"],"additionalProperties":false},"BatchPage":{"type":"object","additionalProperties":false,"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Batch"}},"nextCursor":{"type":["string","null"],"format":"uuid"}},"required":["data","nextCursor"]},"AudioPage":{"type":"object","additionalProperties":false,"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AudioTask"}},"nextCursor":{"type":["string","null"],"format":"uuid"}},"required":["data","nextCursor"]},"TicketPage":{"type":"object","properties":{"data":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"workspaceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"subject":{"type":"string"},"status":{"type":"string","enum":["open","waiting_customer","resolved","closed"]},"revision":{"type":"integer","minimum":0,"maximum":9007199254740991},"request":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"model":{"type":"string"},"state":{"type":"string"}},"required":["id","model","state"],"additionalProperties":false},{"type":"null"}]},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"actorType":{"type":"string","enum":["customer","operator"]},"actorId":{"type":"string"},"body":{"type":"string"},"attachments":{"maxItems":4,"type":"array","items":{"type":"object","properties":{"assetId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"filename":{"type":"string","minLength":1,"maxLength":180},"mediaType":{"type":"string","minLength":1,"maxLength":100},"bytes":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["assetId","filename","mediaType","bytes","sha256"],"additionalProperties":false}},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","actorType","actorId","body","createdAt"],"additionalProperties":false}},"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"type":{"type":"string","enum":["created","message_added","status_changed"]},"actorType":{"type":"string","enum":["customer","operator"]},"actorId":{"type":"string"},"fromStatus":{"anyOf":[{"type":"string","enum":["open","waiting_customer","resolved","closed"]},{"type":"null"}]},"toStatus":{"anyOf":[{"type":"string","enum":["open","waiting_customer","resolved","closed"]},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","type","actorType","actorId","fromStatus","toStatus","createdAt"],"additionalProperties":false}},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","customerId","workspaceId","subject","status","revision","request","messages","events","createdAt","updatedAt"],"additionalProperties":false}},"nextCursor":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["data","nextCursor"],"additionalProperties":false},"AudioModels":{"type":"object","additionalProperties":false,"properties":{"data":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"name":{"type":"string"},"provider":{"type":"string"},"description":{"type":"string"},"maxDurationSeconds":{"type":"integer","minimum":1,"maximum":30},"version":{"type":"string","format":"uuid"},"status":{"const":"sandbox"},"pricing":{"type":"object","additionalProperties":false,"properties":{"currency":{"const":"USD"},"unit":{"const":"audio_second"},"perSecondMicros":{"type":"integer"}},"required":["currency","unit","perSecondMicros"]},"maxPromptCharacters":{"type":"integer","minimum":1,"maximum":4000},"capabilities":{"type":"object","properties":{"content":{"type":"string","enum":["test_tone","speech"]},"voices":{"maxItems":4,"type":"array","items":{"type":"string","enum":["alloy","ash","ballad","coral","echo","fable","onyx","nova","sage","shimmer","verse","marin","cedar"]}},"formats":{"type":"array","prefixItems":[{"type":"string","const":"wav"}],"items":false,"minItems":1,"maxItems":1},"outputModes":{"minItems":1,"maxItems":2,"type":"array","items":{"type":"string","enum":["file","stream"]}}},"required":["content","voices","formats","outputModes"],"additionalProperties":false}},"required":["id","name","provider","description","maxDurationSeconds","version","status","pricing"]}}},"required":["data"]},"RetrievalModels":{"type":"object","properties":{"data":{"type":"array","items":{"anyOf":[{"anyOf":[{"type":"object","properties":{"id":{"type":"string","const":"sandbox/embed-demo"},"modality":{"type":"string","const":"embedding"},"status":{"type":"string","const":"sandbox"},"maxInputs":{"type":"number","const":16},"maxCharactersPerInput":{"type":"number","const":4000},"unit":{"type":"string","const":"simulated_token"},"salesRateMicros":{"type":"number","const":2}},"required":["id","modality","status","maxInputs","maxCharactersPerInput","unit","salesRateMicros"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","const":"sandbox/rerank-demo"},"modality":{"type":"string","const":"rerank"},"status":{"type":"string","const":"sandbox"},"maxDocuments":{"type":"number","const":50},"maxCharactersPerDocument":{"type":"number","const":4000},"unit":{"type":"string","const":"simulated_token"},"salesRateMicros":{"type":"number","const":3}},"required":["id","modality","status","maxDocuments","maxCharactersPerDocument","unit","salesRateMicros"],"additionalProperties":false}]},{"type":"object","properties":{"id":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"name":{"type":"string","minLength":1,"maxLength":80},"provider":{"type":"string","minLength":1,"maxLength":80},"description":{"type":"string","maxLength":500},"capability":{"type":"string","enum":["embedding","rerank"]},"retrieval":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"embedding"},"maxInputs":{"type":"integer","minimum":1,"maximum":16},"maxCharactersPerInput":{"type":"integer","minimum":1,"maximum":4000},"dimensions":{"type":"integer","minimum":1,"maximum":4096}},"required":["kind","maxInputs","maxCharactersPerInput","dimensions"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"rerank"},"maxDocuments":{"type":"integer","minimum":2,"maximum":50},"maxCharactersPerDocument":{"type":"integer","minimum":1,"maximum":4000},"maxQueryCharacters":{"type":"integer","minimum":1,"maximum":4000}},"required":["kind","maxDocuments","maxCharactersPerDocument","maxQueryCharacters"],"additionalProperties":false}]},"audioTaskKind":{"type":"string","enum":["speech","transcription"]},"contextLength":{"type":"integer","minimum":1,"maximum":64000},"maxOutputUnits":{"type":"integer","minimum":1,"maximum":8192},"enabled":{"type":"boolean"},"features":{"type":"object","properties":{"tools":{"type":"boolean"},"structuredOutput":{"type":"boolean"},"streaming":{"type":"boolean"},"sampling":{"type":"object","properties":{"temperature":{"type":"object","properties":{"min":{"type":"number","minimum":0,"maximum":2},"max":{"type":"number","minimum":0,"maximum":2}},"required":["min","max"],"additionalProperties":false},"top_p":{"type":"object","properties":{"min":{"type":"number","minimum":0,"maximum":1},"max":{"type":"number","minimum":0,"maximum":1}},"required":["min","max"],"additionalProperties":false},"seed":{"type":"object","properties":{"min":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"max":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["min","max"],"additionalProperties":false},"presence_penalty":{"type":"object","properties":{"min":{"type":"number","minimum":-2,"maximum":2},"max":{"type":"number","minimum":-2,"maximum":2}},"required":["min","max"],"additionalProperties":false},"frequency_penalty":{"type":"object","properties":{"min":{"type":"number","minimum":-2,"maximum":2},"max":{"type":"number","minimum":-2,"maximum":2}},"required":["min","max"],"additionalProperties":false},"top_k":{"type":"object","properties":{"min":{"type":"integer","minimum":0,"maximum":9007199254740991},"max":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["min","max"],"additionalProperties":false},"stop":{"type":"object","properties":{"maxSequences":{"type":"integer","minimum":1,"maximum":4},"maxSequenceLength":{"type":"integer","minimum":1,"maximum":200}},"required":["maxSequences","maxSequenceLength"],"additionalProperties":false},"temperatureTopPExclusive":{"type":"boolean"}},"additionalProperties":false},"reasoning":{"type":"object","properties":{"efforts":{"minItems":1,"maxItems":7,"type":"array","items":{"type":"string","enum":["none","minimal","low","medium","high","xhigh","max"]}}},"required":["efforts"],"additionalProperties":false},"serviceTiers":{"minItems":1,"maxItems":3,"type":"array","items":{"type":"string","enum":["default","flex","priority"]}}},"required":["tools","structuredOutput","streaming"],"additionalProperties":false},"attachmentInputs":{"maxItems":4,"type":"array","items":{"type":"string","enum":["image_input","pdf_input","document_input","audio_input"]}},"imageSize":{"anyOf":[{"type":"number","const":64},{"type":"number","const":256},{"type":"number","const":512},{"type":"number","const":1024}]},"videoSize":{"type":"string","enum":["720x1280","1280x720"]},"version":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","const":"sandbox"},"pricing":{"type":"object","properties":{"currency":{"type":"string","const":"USD"},"unit":{"type":"string","const":"token"},"rates":{"type":"object","properties":{"currency":{"type":"string","const":"USD"},"unit":{"type":"string","const":"microusd_per_million_tokens"},"input":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$"},"cachedInput":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$"},"cacheWriteInput5m":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$"},"cacheWriteInput1h":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$"},"output":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$"}},"required":["currency","unit","input","cachedInput","output"],"additionalProperties":false}},"required":["currency","unit","rates"],"additionalProperties":false}},"required":["id","name","provider","description","capability","retrieval","contextLength","maxOutputUnits","enabled","version","status","pricing"],"additionalProperties":false}]}}},"required":["data"],"additionalProperties":false},"ConversationCreateResult":{"type":"object","additionalProperties":false,"properties":{"conversation":{"$ref":"#/components/schemas/Conversation"},"created":{"type":"boolean"}},"required":["conversation","created"]},"ConversationAppendResult":{"type":"object","additionalProperties":false,"properties":{"detail":{"$ref":"#/components/schemas/ConversationDetail"},"created":{"type":"boolean"}},"required":["detail","created"]},"ChatTurnSubmitResult":{"oneOf":[{"$ref":"#/components/schemas/ChatTurnAdmittedResult"},{"$ref":"#/components/schemas/ChatTurnAwaitingFundsResult"}]},"ChatTurnAdmittedResult":{"type":"object","additionalProperties":false,"properties":{"detail":{"$ref":"#/components/schemas/ConversationDetail"},"created":{"type":"boolean"},"roomId":{"type":"string","format":"uuid"},"turnId":{"type":"string","format":"uuid"},"generationId":{"type":"string","format":"uuid"},"state":{"enum":["accepted","running","succeeded","failed"]},"eventsUrl":{"type":"string"}},"required":["detail","created","roomId","turnId","generationId","state","eventsUrl"]},"ChatTurnAwaitingFundsResult":{"type":"object","additionalProperties":false,"properties":{"detail":{"$ref":"#/components/schemas/ConversationDetail"},"created":{"type":"boolean"},"roomId":{"type":"string","format":"uuid"},"turnId":{"type":"string","format":"uuid"},"generationId":{"type":"null"},"state":{"const":"awaiting_funds"},"eventsUrl":{"type":"null"},"topupOrder":{"$ref":"#/components/schemas/ChatCheckoutOrder"},"resumeKey":{"type":["string","null"]}},"required":["detail","created","roomId","turnId","generationId","state","eventsUrl","topupOrder","resumeKey"]},"ChatPaymentConfirmationPendingResult":{"type":"object","additionalProperties":false,"properties":{"state":{"const":"payment_confirmation_pending"},"roomId":{"type":"string","format":"uuid"},"turnId":{"type":"string","format":"uuid"},"generationId":{"type":"null"},"topupOrder":{"$ref":"#/components/schemas/ChatCheckoutOrder"}},"required":["state","roomId","turnId","generationId","topupOrder"]},"ChatCheckoutOrder":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","format":"uuid"},"amountCents":{"type":"integer"},"currency":{"const":"USD"},"environment":{"const":"stripe_test"},"state":{"enum":["creating","ready","unknown","failed","expired","credited"]},"checkoutUrl":{"type":["string","null"]},"providerSessionId":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","amountCents","currency","environment","state","checkoutUrl","providerSessionId","createdAt","updatedAt"]},"ComparisonCreateResult":{"type":"object","properties":{"detail":{"type":"object","properties":{"comparison":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"prompt":{"type":"string"},"models":{"minItems":2,"maxItems":4,"type":"array","items":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"}},"maxTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"maximumMicros":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"quotedMaximumMicros":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","title","prompt","models","maxTokens","maximumMicros","quotedMaximumMicros","createdAt"],"additionalProperties":false},"items":{"minItems":2,"maxItems":4,"type":"array","items":{"type":"object","properties":{"state":{"type":"string","enum":["submitting","accepted","running","cancel_requested","cancelled","needs_reconciliation","succeeded","failed"]},"output":{"type":["string","null"]},"error":{"type":["string","null"]},"maximumMicros":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"usage":{"anyOf":[{"type":"object","properties":{"status":{"type":"string","enum":["confirmed","unknown"]},"input_units":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"output_units":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"sales_micros":{"type":["string","null"]},"unit":{"type":"string","enum":["unicode_character","token"]},"source":{"type":"string","enum":["sandbox_adapter","mock_token_fixture_v1","declared_context_bound_v1"]},"token_usage":{"anyOf":[{},{"type":"null"}]}},"required":["status","input_units","output_units","sales_micros","unit","source","token_usage"],"additionalProperties":false},{"type":"null"}]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"model":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"requestId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"generationId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"generations":{"type":"array","items":{"type":"object","properties":{"generationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"state":{"type":"string","enum":["submitting","accepted","running","cancel_requested","cancelled","needs_reconciliation","succeeded","failed"]},"output":{"type":["string","null"]},"error":{"type":["string","null"]},"maximumMicros":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"usage":{"anyOf":[{"type":"object","properties":{"status":{"type":"string","enum":["confirmed","unknown"]},"input_units":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"output_units":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"sales_micros":{"type":["string","null"]},"unit":{"type":"string","enum":["unicode_character","token"]},"source":{"type":"string","enum":["sandbox_adapter","mock_token_fixture_v1","declared_context_bound_v1"]},"token_usage":{"anyOf":[{},{"type":"null"}]}},"required":["status","input_units","output_units","sales_micros","unit","source","token_usage"],"additionalProperties":false},{"type":"null"}]}},"required":["generationId","state","output","error","maximumMicros","usage"],"additionalProperties":false}},"retryPending":{"type":"boolean"}},"required":["state","output","error","maximumMicros","usage","id","model","requestId","generationId","generations","retryPending"],"additionalProperties":false}}},"required":["comparison","items"],"additionalProperties":false},"created":{"type":"boolean"}},"required":["detail","created"],"additionalProperties":false},"BatchCreateResult":{"type":"object","additionalProperties":false,"properties":{"batch":{"$ref":"#/components/schemas/Batch"},"created":{"type":"boolean"}},"required":["batch","created"]},"AudioTaskCreateResult":{"type":"object","additionalProperties":false,"properties":{"task":{"$ref":"#/components/schemas/AudioTask"},"created":{"type":"boolean"}},"required":["task","created"]},"TextTask":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","format":"uuid"},"kind":{"const":"text"},"model":{"type":"string"},"state":{"enum":["queued","running","cancel_requested","succeeded","failed","cancelled","needs_reconciliation"]},"cancelRequested":{"type":"boolean"},"error":{"type":["string","null"]},"output":{"type":["string","null"]},"quote":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"unit":{"const":"token"},"rates":{"type":"object","additionalProperties":false,"properties":{"unit":{"const":"microusd_per_million_tokens"},"input":{"type":"string"},"output":{"type":"string"},"currency":{"const":"USD"},"cachedInput":{"type":"string"},"cacheWriteInput5m":{"type":"string","description":"Optional five-minute cache-write input subset or its price; included in total input tokens."},"cacheWriteInput1h":{"type":"string","description":"Optional one-hour cache-write input subset or its price; included in total input tokens."}},"required":["unit","input","output","currency","cachedInput"]},"source":{"enum":["mock_token_fixture_v1","declared_context_bound_v1"]},"version":{"type":"string","format":"uuid"},"currency":{"const":"USD"},"inputUnits":{"type":"integer"},"maximumMicros":{"type":"integer"},"maxOutputUnits":{"type":"integer"},"publicationSnapshotId":{"type":"string","format":"uuid"},"publicationSnapshotHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"publicationValidUntil":{"type":"string","format":"date-time"}},"required":["unit","rates","source","version","currency","inputUnits","maximumMicros","maxOutputUnits","publicationSnapshotId","publicationSnapshotHash","publicationValidUntil"]},{"type":"object","additionalProperties":false,"properties":{"unit":{"const":"unicode_character"},"rateMicros":{"type":"integer"},"currency":{"const":"USD"},"inputUnits":{"type":"integer"},"maximumMicros":{"type":"integer"},"maxOutputUnits":{"type":"integer"},"version":{"type":"string","format":"uuid"},"publicationSnapshotId":{"type":"string","format":"uuid"},"publicationSnapshotHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"publicationValidUntil":{"type":"string","format":"date-time"}},"required":["unit","rateMicros","currency","inputUnits","maximumMicros","maxOutputUnits","version","publicationSnapshotId","publicationSnapshotHash","publicationValidUntil"]}]},"usage":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/TextUsage"}]},"createdAt":{"type":"string","format":"date-time"}},"required":["id","kind","model","state","cancelRequested","error","output","quote","usage","createdAt"]},"TextUsage":{"type":"object","additionalProperties":false,"properties":{"status":{"enum":["confirmed","unknown"]},"input_units":{"type":["integer","null"]},"output_units":{"type":["integer","null"]},"sales_micros":{"type":["string","null"]},"unit":{"enum":["unicode_character","token"]},"source":{"enum":["sandbox_adapter","mock_token_fixture_v1","declared_context_bound_v1"]},"token_usage":{"oneOf":[{"type":"null"},{"type":"object","additionalProperties":false,"properties":{"inputTokens":{"type":"integer"},"cachedInputTokens":{"type":"integer"},"outputTokens":{"type":"integer"},"reasoningOutputTokens":{"type":"integer"}},"required":["inputTokens","cachedInputTokens","outputTokens","reasoningOutputTokens"]}]}},"required":["status","input_units","output_units","sales_micros","unit","source","token_usage"]},"StructuredJsonSchema":{"description":"One node in the supported JSON Schema subset. Unknown keywords and $ref are rejected. Maximum depth 8, 128 nodes, 32 properties per object, and 12000 UTF-8 bytes for the complete schema.","oneOf":[{"type":"object","additionalProperties":false,"required":["type"],"properties":{"type":{"const":"string"},"enum":{"type":"array","minItems":1,"maxItems":32,"items":{"type":"string"}}}},{"type":"object","additionalProperties":false,"required":["type"],"properties":{"type":{"const":"number"},"enum":{"type":"array","minItems":1,"maxItems":32,"items":{"type":"number"}}}},{"type":"object","additionalProperties":false,"required":["type"],"properties":{"type":{"const":"integer"},"enum":{"type":"array","minItems":1,"maxItems":32,"items":{"type":"integer"}}}},{"type":"object","additionalProperties":false,"required":["type"],"properties":{"type":{"const":"boolean"},"enum":{"type":"array","minItems":1,"maxItems":32,"items":{"type":"boolean"}}}},{"type":"object","additionalProperties":false,"required":["type"],"properties":{"type":{"const":"null"},"enum":{"type":"array","minItems":1,"maxItems":32,"items":{"type":"null"}}}},{"type":"object","additionalProperties":false,"required":["type","items"],"properties":{"type":{"const":"array"},"items":{"$ref":"#/components/schemas/StructuredJsonSchema"}}},{"type":"object","additionalProperties":false,"required":["type","properties","required","additionalProperties"],"properties":{"type":{"const":"object"},"properties":{"type":"object","maxProperties":32,"additionalProperties":{"$ref":"#/components/schemas/StructuredJsonSchema"},"description":"Property names are 1-100 characters; __proto__, prototype, and constructor are rejected."},"required":{"type":"array","maxItems":32,"uniqueItems":true,"items":{"type":"string"},"description":"Strict mode requires this list to contain every declared property exactly once."},"additionalProperties":{"const":false}}}]},"StructuredRootJsonSchema":{"type":"object","additionalProperties":false,"required":["type","properties","required","additionalProperties"],"properties":{"type":{"const":"object"},"properties":{"type":"object","maxProperties":32,"additionalProperties":{"$ref":"#/components/schemas/StructuredJsonSchema"}},"required":{"type":"array","maxItems":32,"uniqueItems":true,"items":{"type":"string"},"description":"Must contain every key in properties; optional properties are not supported."},"additionalProperties":{"const":false}}},"ResponseFormat":{"description":"Optional text or strict structured output format. Structured fixtures must fit the 4000-character output limit.","oneOf":[{"type":"object","additionalProperties":false,"required":["type"],"properties":{"type":{"const":"text"}}},{"type":"object","additionalProperties":false,"required":["type"],"properties":{"type":{"const":"json_object"}}},{"type":"object","additionalProperties":false,"required":["type","json_schema"],"properties":{"type":{"const":"json_schema"},"json_schema":{"type":"object","additionalProperties":false,"required":["name","strict","schema"],"properties":{"name":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"},"strict":{"const":true},"schema":{"$ref":"#/components/schemas/StructuredRootJsonSchema"}}}}}]},"GuardrailDefinition":{"type":"object","required":["name","enabled","rules","allowlist"],"additionalProperties":false,"properties":{"name":{"type":"string","minLength":1,"maxLength":80},"enabled":{"type":"boolean","default":false},"allowlist":{"type":"array","maxItems":100,"items":{"type":"string","minLength":1,"maxLength":1000}},"rules":{"type":"array","maxItems":30,"items":{"oneOf":[{"type":"object","required":["kind","detector","action"],"additionalProperties":false,"properties":{"kind":{"const":"builtin"},"detector":{"enum":["email","phone","credit_card","ip_address","prompt_injection"]},"action":{"enum":["flag","redact","block"]}}},{"type":"object","required":["kind","label","terms","action"],"additionalProperties":false,"properties":{"kind":{"const":"classifier"},"label":{"type":"string","minLength":1,"maxLength":60},"terms":{"type":"array","minItems":1,"maxItems":20,"items":{"type":"string","minLength":2,"maxLength":100}},"action":{"enum":["flag","redact","block"]}}}]}}}},"ScimMeta":{"type":"object","additionalProperties":false,"required":["resourceType","created","lastModified","version","location"],"properties":{"resourceType":{"enum":["User","Group"]},"created":{"type":"string","format":"date-time"},"lastModified":{"type":"string","format":"date-time"},"version":{"type":"string","pattern":"^W/\"[1-9][0-9]*\"$"},"location":{"type":"string"}}},"ScimEmail":{"type":"object","additionalProperties":false,"required":["value"],"properties":{"value":{"type":"string","format":"email","maxLength":320},"primary":{"type":"boolean"}}},"ScimUserWrite":{"type":"object","additionalProperties":false,"required":["schemas","userName"],"properties":{"schemas":{"type":"array","prefixItems":[{"const":"urn:ietf:params:scim:schemas:core:2.0:User"}],"minItems":1,"maxItems":1},"externalId":{"type":"string","minLength":1,"maxLength":200},"userName":{"type":"string","format":"email","maxLength":320},"displayName":{"type":"string","minLength":1,"maxLength":200},"active":{"type":"boolean","default":true},"emails":{"type":"array","minItems":1,"maxItems":10,"items":{"$ref":"#/components/schemas/ScimEmail"}}}},"ScimUser":{"type":"object","additionalProperties":false,"required":["schemas","id","userName","displayName","active","emails","meta"],"properties":{"schemas":{"type":"array","prefixItems":[{"const":"urn:ietf:params:scim:schemas:core:2.0:User"}],"minItems":1,"maxItems":1},"externalId":{"type":["string","null"],"minLength":1,"maxLength":200},"userName":{"type":"string","format":"email","maxLength":320},"displayName":{"type":"string","minLength":1,"maxLength":200},"active":{"type":"boolean","default":true},"emails":{"type":"array","minItems":1,"maxItems":10,"items":{"$ref":"#/components/schemas/ScimEmail"}},"id":{"type":"string","format":"uuid"},"meta":{"$ref":"#/components/schemas/ScimMeta"}}},"ScimMember":{"type":"object","additionalProperties":false,"required":["value"],"properties":{"value":{"type":"string","format":"uuid"}}},"ScimGroupWrite":{"type":"object","additionalProperties":false,"required":["schemas","displayName"],"properties":{"schemas":{"type":"array","prefixItems":[{"const":"urn:ietf:params:scim:schemas:core:2.0:Group"}],"minItems":1,"maxItems":1},"externalId":{"type":"string","minLength":1,"maxLength":200},"displayName":{"type":"string","minLength":1,"maxLength":200},"members":{"type":"array","maxItems":1000,"items":{"$ref":"#/components/schemas/ScimMember"}}}},"ScimGroup":{"type":"object","additionalProperties":false,"required":["schemas","id","displayName","members","meta"],"properties":{"schemas":{"type":"array","prefixItems":[{"const":"urn:ietf:params:scim:schemas:core:2.0:Group"}],"minItems":1,"maxItems":1},"externalId":{"type":["string","null"],"minLength":1,"maxLength":200},"displayName":{"type":"string","minLength":1,"maxLength":200},"members":{"type":"array","maxItems":1000,"items":{"$ref":"#/components/schemas/ScimMember"}},"id":{"type":"string","format":"uuid"},"meta":{"$ref":"#/components/schemas/ScimMeta"}}},"ScimPatch":{"type":"object","additionalProperties":false,"required":["schemas","Operations"],"properties":{"schemas":{"type":"array","prefixItems":[{"const":"urn:ietf:params:scim:api:messages:2.0:PatchOp"}],"minItems":1,"maxItems":1},"Operations":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","additionalProperties":false,"required":["op"],"properties":{"op":{"enum":["add","remove","replace"]},"path":{"type":"string","minLength":1,"maxLength":500},"value":{}}}}}},"ScimUserList":{"type":"object","additionalProperties":false,"required":["schemas","totalResults","startIndex","itemsPerPage","Resources"],"properties":{"schemas":{"type":"array","prefixItems":[{"const":"urn:ietf:params:scim:api:messages:2.0:ListResponse"}],"minItems":1,"maxItems":1},"totalResults":{"type":"integer","minimum":0},"startIndex":{"type":"integer","minimum":1},"itemsPerPage":{"type":"integer","minimum":0,"maximum":100},"Resources":{"type":"array","items":{"$ref":"#/components/schemas/ScimUser"}}}},"ScimGroupList":{"type":"object","additionalProperties":false,"required":["schemas","totalResults","startIndex","itemsPerPage","Resources"],"properties":{"schemas":{"type":"array","prefixItems":[{"const":"urn:ietf:params:scim:api:messages:2.0:ListResponse"}],"minItems":1,"maxItems":1},"totalResults":{"type":"integer","minimum":0},"startIndex":{"type":"integer","minimum":1},"itemsPerPage":{"type":"integer","minimum":0,"maximum":100},"Resources":{"type":"array","items":{"$ref":"#/components/schemas/ScimGroup"}}}},"ScimError":{"type":"object","additionalProperties":false,"required":["schemas","status","detail"],"properties":{"schemas":{"type":"array","prefixItems":[{"const":"urn:ietf:params:scim:api:messages:2.0:Error"}],"minItems":1,"maxItems":1},"status":{"type":"string","pattern":"^[45][0-9]{2}$"},"scimType":{"enum":["invalidFilter","uniqueness","invalidValue"]},"detail":{"type":"string"}}},"ScimRoleMappingInput":{"type":"object","additionalProperties":false,"required":["groupId","role"],"properties":{"groupId":{"type":"string","format":"uuid"},"role":{"enum":["admin","developer","viewer","billing"]},"expectedRevision":{"type":"integer","minimum":1}}},"ScimDirectory":{"type":"object","additionalProperties":false,"required":["users","groups","mappings"],"properties":{"users":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["id","externalId","userName","displayName","email","active","baseRole","revision"],"properties":{"id":{"type":"string","format":"uuid"},"externalId":{"type":["string","null"]},"userName":{"type":"string"},"displayName":{"type":"string"},"email":{"type":"string"},"active":{"type":"boolean"},"baseRole":{"enum":["admin","developer","viewer","billing"]},"revision":{"type":"integer"}}}},"groups":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["id","externalId","displayName","revision","memberCount"],"properties":{"id":{"type":"string","format":"uuid"},"externalId":{"type":["string","null"]},"displayName":{"type":"string"},"revision":{"type":"integer"},"memberCount":{"type":"integer","minimum":0}}}},"mappings":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["groupId","displayName","role","revision"],"properties":{"groupId":{"type":"string","format":"uuid"},"displayName":{"type":"string"},"role":{"type":["string","null"],"enum":["admin","developer","viewer","billing",null]},"revision":{"type":["integer","null"]}}}}}},"PdfFileDeclaration":{"type":"object","additionalProperties":false,"required":["filename","mediaType","bytes","sha256"],"properties":{"filename":{"type":"string","minLength":1,"maxLength":180,"pattern":"\\.pdf$"},"mediaType":{"const":"application/pdf"},"bytes":{"type":"integer","minimum":5,"maximum":10485760},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"}}},"PdfFile":{"type":"object","additionalProperties":false,"required":["id","filename","mediaType","bytes","sha256","state","pages","createdAt"],"properties":{"id":{"type":"string","format":"uuid"},"filename":{"type":"string"},"mediaType":{"const":"application/pdf"},"bytes":{"type":"integer"},"sha256":{"type":"string"},"state":{"enum":["pending","available","unavailable","deleted"]},"pages":{"type":["integer","null"]},"createdAt":{"type":"string","format":"date-time"}}},"PdfQuoteInput":{"type":"object","additionalProperties":false,"required":["fileId","model","prompt","max_tokens","pageStart","pageEnd"],"properties":{"fileId":{"type":"string","format":"uuid"},"model":{"type":"string"},"prompt":{"type":"string","minLength":1,"maxLength":2000},"max_tokens":{"type":"integer","minimum":1,"maximum":512},"pageStart":{"type":"integer","minimum":1},"pageEnd":{"type":"integer","minimum":1},"sourceUrl":{"type":"string","format":"uri"}}},"PdfCompletionInput":{"allOf":[{"$ref":"#/components/schemas/PdfQuoteInput"},{"type":"object","required":["price_version","maximum_micros"],"properties":{"price_version":{"type":"string","format":"uuid"},"maximum_micros":{"type":"integer","minimum":0}}}]},"V2ResponsesInput":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"reasoning":{"type":"object","properties":{"effort":{"type":"string","enum":["none","minimal","low","medium","high","xhigh","max"]}},"required":["effort"],"additionalProperties":false},"service_tier":{"type":"string","enum":["default","flex","priority"]},"temperature":{"type":"number","minimum":0,"maximum":2},"top_p":{"type":"number","minimum":0,"maximum":1},"model":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"model_resolution":{"type":"object","properties":{"requestedModelId":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"canonicalModelId":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"governanceRevision":{"type":"integer","minimum":0,"maximum":9007199254740991},"priceVersion":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["requestedModelId","canonicalModelId","governanceRevision","priceVersion"],"additionalProperties":false},"plugins":{"minItems":1,"maxItems":1,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","const":"context-compression"},"enabled":{"type":"boolean"}},"required":["id"],"additionalProperties":false}},"input":{"anyOf":[{"type":"string","minLength":1,"maxLength":65536},{"minItems":1,"maxItems":32,"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"default":"message","type":"string","const":"message"},"role":{"type":"string","enum":["system","developer","user","assistant"]},"id":{"type":"string","maxLength":128},"status":{"type":"string","const":"completed"},"content":{"anyOf":[{"type":"string","maxLength":65536},{"minItems":1,"maxItems":16,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["input_text","output_text"]},"text":{"type":"string","maxLength":65536},"annotations":{"type":"array","items":{"not":{}}}},"required":["type","text"],"additionalProperties":false}}]}},"required":["role","content"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"function_call"},"id":{"type":"string","maxLength":128},"status":{"type":"string","const":"completed"},"call_id":{"type":"string","pattern":"^call_[A-Za-z0-9_-]{1,100}$"},"name":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_-]{0,63}$"},"arguments":{"type":"string","minLength":2,"maxLength":4000}},"required":["type","call_id","name","arguments"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"function_call_output"},"call_id":{"type":"string","pattern":"^call_[A-Za-z0-9_-]{1,100}$"},"output":{"type":"string","maxLength":65536}},"required":["type","call_id","output"],"additionalProperties":false}]}}]},"instructions":{"type":"string","maxLength":65536},"text":{"type":"object","properties":{"format":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"text"}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"json_object"},"repair":{"type":"string","const":"syntax"}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"json_schema"},"repair":{"type":"string","const":"syntax"},"name":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"},"strict":{"type":"boolean","const":true},"schema":{}},"required":["type","name","strict","schema"],"additionalProperties":false}]}},"required":["format"],"additionalProperties":false},"max_output_tokens":{"default":256,"type":"integer","minimum":1,"maximum":8192},"stream":{"default":false,"type":"boolean"},"store":{"default":false,"type":"boolean"},"previous_response_id":{"type":"string","pattern":"^resp_[a-f0-9-]{36}$"},"price_version":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"maximum_micros":{"type":"integer","minimum":0,"maximum":9007199254740991},"routing":{"type":"object","properties":{"sessionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"quality":{"type":"object","properties":{"seriesId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"minimumPassFraction":{"type":"number","minimum":0,"maximum":1},"minimumCases":{"default":3,"type":"integer","minimum":1,"maximum":20},"maxAgeSeconds":{"default":86400,"type":"integer","minimum":60,"maximum":604800},"allowFixtureEvidence":{"default":false,"type":"boolean"}},"required":["seriesId","minimumPassFraction"],"additionalProperties":false},"allowedSupplierIds":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,63}$"}},"blockedSupplierIds":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,63}$"}},"supplierOrder":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,63}$"}},"allowedQuantizations":{"maxItems":5,"type":"array","items":{"type":"string","enum":["fp32","fp16","bf16","int8","int4"]}},"maximumPriceMicros":{"type":"integer","minimum":0,"maximum":9007199254740991},"maximumLatencyMs":{"type":"integer","minimum":1,"maximum":86400000},"minimumOutputTokensPerSecond":{"type":"number","minimum":0,"maximum":1000000},"evidenceMaxAgeSeconds":{"type":"integer","minimum":60,"maximum":604800},"minimumEvidenceSamples":{"type":"integer","minimum":1,"maximum":1000},"allowedRegion":{"type":"string","enum":["local","ap-southeast-1","eu-central-1","us-east-1"]},"strategy":{"type":"string","enum":["priority","lowest_cost","lowest_latency","highest_throughput"]},"allowedChannelIds":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,63}$"}},"blockedChannelIds":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,63}$"}},"maximumRetention":{"type":"string","enum":["unknown","none","up_to_30_days"]},"allowTraining":{"type":"boolean"},"requireDeclaredRegion":{"type":"boolean"},"metadata":{"default":false,"type":"boolean"}},"additionalProperties":false},"tools":{"minItems":1,"maxItems":8,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","const":"function"},"name":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_-]{0,63}$"},"description":{"type":"string","maxLength":1000},"parameters":{},"strict":{"default":true,"type":"boolean","const":true}},"required":["type","name","parameters"],"additionalProperties":false}},"tool_choice":{"anyOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object","properties":{"type":{"type":"string","const":"function"},"name":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_-]{0,63}$"}},"required":["type","name"],"additionalProperties":false}]}},"required":["model","input"],"additionalProperties":false},"V2MessagesInput":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":1},"top_p":{"type":"number","minimum":0,"maximum":1},"top_k":{"type":"integer","minimum":0,"maximum":9007199254740991},"stop_sequences":{"minItems":1,"maxItems":4,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"model":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"model_resolution":{"type":"object","properties":{"requestedModelId":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"canonicalModelId":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"governanceRevision":{"type":"integer","minimum":0,"maximum":9007199254740991},"priceVersion":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["requestedModelId","canonicalModelId","governanceRevision","priceVersion"],"additionalProperties":false},"plugins":{"minItems":1,"maxItems":1,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","const":"context-compression"},"enabled":{"type":"boolean"}},"required":["id"],"additionalProperties":false}},"output_config":{"type":"object","properties":{"format":{"type":"object","properties":{"type":{"type":"string","const":"json_schema"},"schema":{},"repair":{"type":"string","const":"syntax"}},"required":["type","schema"],"additionalProperties":false}},"required":["format"],"additionalProperties":false},"max_tokens":{"type":"integer","minimum":1,"maximum":8192},"stream":{"default":false,"type":"boolean"},"price_version":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"maximum_micros":{"type":"integer","minimum":0,"maximum":9007199254740991},"routing":{"type":"object","properties":{"sessionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"quality":{"type":"object","properties":{"seriesId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"minimumPassFraction":{"type":"number","minimum":0,"maximum":1},"minimumCases":{"default":3,"type":"integer","minimum":1,"maximum":20},"maxAgeSeconds":{"default":86400,"type":"integer","minimum":60,"maximum":604800},"allowFixtureEvidence":{"default":false,"type":"boolean"}},"required":["seriesId","minimumPassFraction"],"additionalProperties":false},"allowedSupplierIds":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,63}$"}},"blockedSupplierIds":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,63}$"}},"supplierOrder":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,63}$"}},"allowedQuantizations":{"maxItems":5,"type":"array","items":{"type":"string","enum":["fp32","fp16","bf16","int8","int4"]}},"maximumPriceMicros":{"type":"integer","minimum":0,"maximum":9007199254740991},"maximumLatencyMs":{"type":"integer","minimum":1,"maximum":86400000},"minimumOutputTokensPerSecond":{"type":"number","minimum":0,"maximum":1000000},"evidenceMaxAgeSeconds":{"type":"integer","minimum":60,"maximum":604800},"minimumEvidenceSamples":{"type":"integer","minimum":1,"maximum":1000},"allowedRegion":{"type":"string","enum":["local","ap-southeast-1","eu-central-1","us-east-1"]},"strategy":{"type":"string","enum":["priority","lowest_cost","lowest_latency","highest_throughput"]},"allowedChannelIds":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,63}$"}},"blockedChannelIds":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,63}$"}},"maximumRetention":{"type":"string","enum":["unknown","none","up_to_30_days"]},"allowTraining":{"type":"boolean"},"requireDeclaredRegion":{"type":"boolean"},"metadata":{"default":false,"type":"boolean"}},"additionalProperties":false},"system":{"anyOf":[{"type":"string","maxLength":65536},{"minItems":1,"maxItems":8,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","const":"text"},"text":{"type":"string","maxLength":65536}},"required":["type","text"],"additionalProperties":false}}]},"messages":{"minItems":1,"maxItems":64,"type":"array","items":{"type":"object","properties":{"role":{"type":"string","enum":["user","assistant"]},"content":{"anyOf":[{"type":"string","maxLength":65536},{"minItems":1,"maxItems":16,"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"text"},"text":{"type":"string","maxLength":65536}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"tool_use"},"id":{"type":"string","pattern":"^call_[A-Za-z0-9_-]{1,100}$"},"name":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_-]{0,63}$"},"input":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["type","id","name","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"tool_result"},"tool_use_id":{"type":"string","pattern":"^call_[A-Za-z0-9_-]{1,100}$"},"content":{"anyOf":[{"type":"string","maxLength":65536},{"minItems":1,"maxItems":8,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","const":"text"},"text":{"type":"string","maxLength":65536}},"required":["type","text"],"additionalProperties":false}}]}},"required":["type","tool_use_id","content"],"additionalProperties":false}]}}]}},"required":["role","content"],"additionalProperties":false}},"tools":{"minItems":1,"maxItems":8,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_-]{0,63}$"},"description":{"type":"string","maxLength":1000},"input_schema":{}},"required":["name","input_schema"],"additionalProperties":false}},"tool_choice":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["auto","any","none"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"tool"},"name":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_-]{0,63}$"}},"required":["type","name"],"additionalProperties":false}]}},"required":["model","max_tokens","messages"],"additionalProperties":false},"V2ServerRunInput":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"model":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"prompt":{"type":"string","minLength":1,"maxLength":2000},"tools":{"minItems":1,"maxItems":4,"type":"array","items":{"type":"string","enum":["calculator","text_transform","datetime","web_fetch"]}},"maxSteps":{"default":3,"type":"integer","minimum":1,"maximum":4},"maxToolCalls":{"default":4,"type":"integer","minimum":0,"maximum":8},"maximumMicros":{"type":"integer","minimum":0,"maximum":1000000000},"maxOutputTokens":{"default":128,"type":"integer","minimum":1,"maximum":512}},"required":["model","prompt","tools","maximumMicros"],"additionalProperties":false},"V2OAuthRegistration":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"redirectUris":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string","format":"uri"}}},"required":["name","redirectUris"],"additionalProperties":false},"V2OAuthVisibility":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"clientId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"expectedRevision":{"type":"integer","minimum":1,"maximum":9007199254740991},"public":{"type":"boolean"}},"required":["clientId","expectedRevision","public"],"additionalProperties":false},"V2OAuthClientRevoke":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"clientId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["clientId"],"additionalProperties":false},"V2OAuthAuthorization":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"clientId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"redirectUri":{"type":"string","format":"uri"},"codeChallenge":{"type":"string","pattern":"^[A-Za-z0-9_-]{43}$"},"codeChallengeMethod":{"type":"string","const":"S256"},"allowedModels":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"}},"limitMicros":{"type":"integer","minimum":0,"maximum":1000000000},"ttlSeconds":{"default":604800,"type":"integer","minimum":60,"maximum":604800}},"required":["clientId","redirectUri","codeChallenge","codeChallengeMethod","allowedModels","limitMicros"],"additionalProperties":false},"V2OAuthCodeExchange":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"clientId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"redirectUri":{"type":"string","format":"uri"},"code":{"type":"string","minLength":32,"maxLength":256},"codeVerifier":{"type":"string","pattern":"^[A-Za-z0-9._~-]{43,128}$"}},"required":["clientId","redirectUri","code","codeVerifier"],"additionalProperties":false},"V2OAuthGrantRevoke":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"credentialId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["credentialId"],"additionalProperties":false},"V2ManagementKeyCreate":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"ttlSeconds":{"type":"integer","minimum":60,"maximum":604800},"policy":{"type":"object","properties":{"resourceScope":{"type":"string","const":"issued_keys"},"actions":{"minItems":1,"maxItems":3,"type":"array","items":{"type":"string","enum":["list","create","revoke"]}},"allowedModels":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"}},"perChildLimitMicros":{"type":"integer","minimum":0,"maximum":1000000000},"issuanceLimitMicros":{"type":"integer","minimum":0,"maximum":1000000000}},"required":["resourceScope","actions","allowedModels","perChildLimitMicros","issuanceLimitMicros"],"additionalProperties":false,"description":"Explicit issued-key management policy. create requires nonempty grantable models and positive per-child/cumulative ceilings. Empty models and zero ceilings for list/revoke are explicit restrictions, never unlimited. Grants are lifetime high-water and never refunded on reduction, revocation, expiry or secret rotation."}},"required":["name","ttlSeconds","policy"],"additionalProperties":false},"V2ManagedKeyCreate":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"allowedModels":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"}},"limitMicros":{"type":"integer","minimum":0,"maximum":1000000000},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"operationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["name","allowedModels","limitMicros"],"additionalProperties":false},"V2ManagedKeyRevoke":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"credentialId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["credentialId"],"additionalProperties":false},"V2WorkloadPolicy":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"issuer":{"type":"string","format":"uri"},"audience":{"type":"string","minLength":1,"maxLength":200},"subjectPattern":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[A-Za-z0-9._:@\\/-]+\\*?$"},"allowedModels":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"}},"limitMicros":{"type":"integer","minimum":0,"maximum":1000000000},"ttlSeconds":{"type":"integer","minimum":60,"maximum":900}},"required":["issuer","audience","subjectPattern","allowedModels","limitMicros","ttlSeconds"],"additionalProperties":false},"V2WorkloadPolicyUpdate":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"issuer":{"type":"string","format":"uri"},"audience":{"type":"string","minLength":1,"maxLength":200},"subjectPattern":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[A-Za-z0-9._:@\\/-]+\\*?$"},"allowedModels":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"}},"limitMicros":{"type":"integer","minimum":0,"maximum":1000000000},"ttlSeconds":{"type":"integer","minimum":60,"maximum":900},"expectedRevision":{"type":"integer","minimum":1,"maximum":9007199254740991},"enabled":{"type":"boolean"}},"required":["issuer","audience","subjectPattern","allowedModels","limitMicros","ttlSeconds","expectedRevision","enabled"],"additionalProperties":false},"V2WorkloadExchange":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"grant_type":{"type":"string","const":"urn:ietf:params:oauth:grant-type:token-exchange"},"subject_token_type":{"type":"string","const":"urn:ietf:params:oauth:token-type:jwt"},"subject_token":{"type":"string","minLength":20,"maxLength":20000},"policyId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["grant_type","subject_token_type","subject_token","policyId"],"additionalProperties":false},"GuardrailAssignmentView":{"oneOf":[{"type":"object","additionalProperties":false,"required":["scope","guardrailId","revision"],"properties":{"scope":{"const":"workspace"},"guardrailId":{"type":["string","null"],"format":"uuid"},"revision":{"type":"integer","minimum":0}}},{"type":"object","additionalProperties":false,"required":["scope","guardrailId","revision","userId"],"properties":{"scope":{"const":"member"},"guardrailId":{"type":["string","null"],"format":"uuid"},"revision":{"type":"integer","minimum":0},"userId":{"type":"string","format":"uuid"}}},{"type":"object","additionalProperties":false,"required":["scope","guardrailId","revision","credentialId"],"properties":{"scope":{"const":"api_key"},"guardrailId":{"type":["string","null"],"format":"uuid"},"revision":{"type":"integer","minimum":0},"credentialId":{"type":"string","format":"uuid"}}}]},"CachePolicyUpdate":{"type":"object","additionalProperties":false,"required":["enabled","defaultTtlSeconds","expectedRevision"],"properties":{"enabled":{"type":"boolean"},"defaultTtlSeconds":{"type":"integer","minimum":60,"maximum":86400},"byokEnabled":{"type":"boolean","default":false},"expectedRevision":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"Revision read before editing. Required; never substitute the latest revision automatically.","examples":[1]}}},"CachePolicy":{"type":"object","additionalProperties":false,"required":["enabled","defaultTtlSeconds","byokEnabled","revision","updatedAt"],"properties":{"enabled":{"type":"boolean"},"defaultTtlSeconds":{"type":"integer","minimum":60,"maximum":86400},"byokEnabled":{"type":"boolean","default":false},"revision":{"type":"integer","minimum":1},"updatedAt":{"type":"string","format":"date-time"}}},"CachePolicyError":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}},"V2ManagementKeyView":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"credentialId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"prefix":{"type":["string","null"]},"active":{"type":"boolean"},"version":{"type":"integer","minimum":0,"maximum":2147483647},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"workspaceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"creatorUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"policyMode":{"type":"string","enum":["bounded","legacy"]},"policyVersion":{"anyOf":[{"type":"integer","minimum":1,"maximum":9007199254740991},{"type":"null"}]},"policy":{"anyOf":[{"type":"object","properties":{"resourceScope":{"type":"string","const":"issued_keys"},"actions":{"minItems":1,"maxItems":3,"type":"array","items":{"type":"string","enum":["list","create","revoke"]}},"allowedModels":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"}},"perChildLimitMicros":{"type":"integer","minimum":0,"maximum":1000000000},"issuanceLimitMicros":{"type":"integer","minimum":0,"maximum":1000000000}},"required":["resourceScope","actions","allowedModels","perChildLimitMicros","issuanceLimitMicros"],"additionalProperties":false,"description":"Explicit issued-key management policy. create requires nonempty grantable models and positive per-child/cumulative ceilings. Empty models and zero ceilings for list/revoke are explicit restrictions, never unlimited. Grants are lifetime high-water and never refunded on reduction, revocation, expiry or secret rotation."},{"type":"null"}]},"allocatedMicros":{"anyOf":[{"type":"string","pattern":"^\\d+$"},{"type":"null"}]},"remainingIssuanceMicros":{"anyOf":[{"type":"string","pattern":"^\\d+$"},{"type":"null"}]},"revocationCascades":{"type":"boolean","const":false}},"required":["credentialId","name","prefix","active","version","createdAt","expiresAt"],"additionalProperties":false},"V2ManagementKeyPage":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"credentialId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"prefix":{"type":["string","null"]},"active":{"type":"boolean"},"version":{"type":"integer","minimum":0,"maximum":2147483647},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"workspaceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"creatorUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"policyMode":{"type":"string","enum":["bounded","legacy"]},"policyVersion":{"anyOf":[{"type":"integer","minimum":1,"maximum":9007199254740991},{"type":"null"}]},"policy":{"anyOf":[{"type":"object","properties":{"resourceScope":{"type":"string","const":"issued_keys"},"actions":{"minItems":1,"maxItems":3,"type":"array","items":{"type":"string","enum":["list","create","revoke"]}},"allowedModels":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"}},"perChildLimitMicros":{"type":"integer","minimum":0,"maximum":1000000000},"issuanceLimitMicros":{"type":"integer","minimum":0,"maximum":1000000000}},"required":["resourceScope","actions","allowedModels","perChildLimitMicros","issuanceLimitMicros"],"additionalProperties":false,"description":"Explicit issued-key management policy. create requires nonempty grantable models and positive per-child/cumulative ceilings. Empty models and zero ceilings for list/revoke are explicit restrictions, never unlimited. Grants are lifetime high-water and never refunded on reduction, revocation, expiry or secret rotation."},{"type":"null"}]},"allocatedMicros":{"anyOf":[{"type":"string","pattern":"^\\d+$"},{"type":"null"}]},"remainingIssuanceMicros":{"anyOf":[{"type":"string","pattern":"^\\d+$"},{"type":"null"}]},"revocationCascades":{"type":"boolean","const":false}},"required":["credentialId","name","prefix","active","version","createdAt","expiresAt"],"additionalProperties":false}},"nextCursor":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["data","nextCursor"],"additionalProperties":false},"V2ManagementKeyRevoke":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"credentialId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"expectedVersion":{"type":"integer","minimum":0,"maximum":2147483647}},"required":["credentialId","expectedVersion"],"additionalProperties":false},"V2ManagementKeyRevokeResult":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"revoked":{"type":"boolean","const":true},"credentialId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"version":{"type":"integer","minimum":0,"maximum":2147483647}},"required":["revoked","credentialId","version"],"additionalProperties":false},"ShowcaseCustomerView":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1,"maxLength":100},"description":{"type":"string","minLength":1,"maxLength":1000},"url":{"type":"string","format":"uri"},"credential_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"purpose":{"type":"string","enum":["external","internal"]},"state":{"type":"string","enum":["submitted","approved","rejected","published","unpublished","withdrawn"]},"revision":{"type":"integer","minimum":1,"maximum":2147483647},"review_reason":{"type":["string","null"]},"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updated_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","name","description","url","credential_id","purpose","state","revision","review_reason","created_at","updated_at"],"additionalProperties":false},"ShowcaseSubmitInput":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"description":{"type":"string","minLength":1,"maxLength":1000},"url":{"type":"string","format":"uri"},"credentialId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"purpose":{"type":"string","enum":["external","internal"]}},"required":["name","description","url","credentialId","purpose"],"additionalProperties":false},"ShowcaseEditInput":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"description":{"type":"string","minLength":1,"maxLength":1000},"url":{"type":"string","format":"uri"},"credentialId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"purpose":{"type":"string","enum":["external","internal"]},"revision":{"type":"integer","minimum":1,"maximum":2147483647}},"required":["name","description","url","credentialId","purpose","revision"],"additionalProperties":false},"ShowcaseWithdrawInput":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"revision":{"type":"integer","minimum":1,"maximum":2147483647}},"required":["revision"],"additionalProperties":false},"ShowcaseCustomerList":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1,"maxLength":100},"description":{"type":"string","minLength":1,"maxLength":1000},"url":{"type":"string","format":"uri"},"credential_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"purpose":{"type":"string","enum":["external","internal"]},"state":{"type":"string","enum":["submitted","approved","rejected","published","unpublished","withdrawn"]},"revision":{"type":"integer","minimum":1,"maximum":2147483647},"review_reason":{"type":["string","null"]},"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updated_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","name","description","url","credential_id","purpose","state","revision","review_reason","created_at","updated_at"],"additionalProperties":false}},"nextCursor":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["data","nextCursor"],"additionalProperties":false},"ShowcaseCustomerEvent":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"action":{"type":"string","enum":["created","edit","withdraw","review","publish","unpublish"]},"from_revision":{"anyOf":[{"type":"integer","minimum":1,"maximum":2147483647},{"type":"null"}]},"to_revision":{"type":"integer","minimum":1,"maximum":2147483647},"from_state":{"anyOf":[{"type":"string","enum":["submitted","approved","rejected","published","unpublished","withdrawn"]},{"type":"null"}]},"to_state":{"type":"string","enum":["submitted","approved","rejected","published","unpublished","withdrawn"]},"actor_type":{"type":"string","enum":["customer","operator","system"]},"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"before":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1,"maxLength":100},"description":{"type":"string","minLength":1,"maxLength":1000},"url":{"type":"string","format":"uri"},"credential_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"purpose":{"type":"string","enum":["external","internal"]},"state":{"type":"string","enum":["submitted","approved","rejected","published","unpublished","withdrawn"]},"revision":{"type":"integer","minimum":1,"maximum":2147483647},"review_reason":{"type":["string","null"]},"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updated_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","name","description","url","credential_id","purpose","state","revision","review_reason","created_at","updated_at"],"additionalProperties":false},{"type":"null"}]},"after":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1,"maxLength":100},"description":{"type":"string","minLength":1,"maxLength":1000},"url":{"type":"string","format":"uri"},"credential_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"purpose":{"type":"string","enum":["external","internal"]},"state":{"type":"string","enum":["submitted","approved","rejected","published","unpublished","withdrawn"]},"revision":{"type":"integer","minimum":1,"maximum":2147483647},"review_reason":{"type":["string","null"]},"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updated_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","name","description","url","credential_id","purpose","state","revision","review_reason","created_at","updated_at"],"additionalProperties":false}},"required":["id","action","from_revision","to_revision","from_state","to_state","actor_type","created_at","before","after"],"additionalProperties":false},"ShowcaseEventPage":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"action":{"type":"string","enum":["created","edit","withdraw","review","publish","unpublish"]},"from_revision":{"anyOf":[{"type":"integer","minimum":1,"maximum":2147483647},{"type":"null"}]},"to_revision":{"type":"integer","minimum":1,"maximum":2147483647},"from_state":{"anyOf":[{"type":"string","enum":["submitted","approved","rejected","published","unpublished","withdrawn"]},{"type":"null"}]},"to_state":{"type":"string","enum":["submitted","approved","rejected","published","unpublished","withdrawn"]},"actor_type":{"type":"string","enum":["customer","operator","system"]},"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"before":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1,"maxLength":100},"description":{"type":"string","minLength":1,"maxLength":1000},"url":{"type":"string","format":"uri"},"credential_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"purpose":{"type":"string","enum":["external","internal"]},"state":{"type":"string","enum":["submitted","approved","rejected","published","unpublished","withdrawn"]},"revision":{"type":"integer","minimum":1,"maximum":2147483647},"review_reason":{"type":["string","null"]},"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updated_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","name","description","url","credential_id","purpose","state","revision","review_reason","created_at","updated_at"],"additionalProperties":false},{"type":"null"}]},"after":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1,"maxLength":100},"description":{"type":"string","minLength":1,"maxLength":1000},"url":{"type":"string","format":"uri"},"credential_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"purpose":{"type":"string","enum":["external","internal"]},"state":{"type":"string","enum":["submitted","approved","rejected","published","unpublished","withdrawn"]},"revision":{"type":"integer","minimum":1,"maximum":2147483647},"review_reason":{"type":["string","null"]},"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updated_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","name","description","url","credential_id","purpose","state","revision","review_reason","created_at","updated_at"],"additionalProperties":false}},"required":["id","action","from_revision","to_revision","from_state","to_state","actor_type","created_at","before","after"],"additionalProperties":false}},"nextCursor":{"anyOf":[{"type":"integer","minimum":1,"maximum":2147483647},{"type":"null"}]},"historyStartRevision":{"anyOf":[{"type":"integer","minimum":1,"maximum":2147483647},{"type":"null"}]}},"required":["data","nextCursor","historyStartRevision"],"additionalProperties":false},"WorkspaceCreateInput":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","maxLength":1000},"operationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["name","operationId"],"additionalProperties":false},"WorkspaceRenameInput":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","maxLength":1000},"operationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"expectedRevision":{"type":"integer","minimum":1,"maximum":2147483647}},"required":["name","operationId","expectedRevision"],"additionalProperties":false},"WorkspaceView":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customer_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"role":{"type":"string","enum":["owner","admin","developer","viewer","billing"]},"revision":{"type":"integer","minimum":1,"maximum":2147483647}},"required":["id","customer_id","name","role","revision"],"additionalProperties":false},"WorkspaceMutationResult":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"workspace":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customer_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"role":{"type":"string","enum":["owner","admin","developer","viewer","billing"]},"revision":{"type":"integer","minimum":1,"maximum":2147483647}},"required":["id","customer_id","name","role","revision"],"additionalProperties":false},"replayed":{"type":"boolean"}},"required":["workspace","replayed"],"additionalProperties":false},"WorkspaceDirectory":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customer_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"role":{"type":"string","enum":["owner","admin","developer","viewer","billing"]},"revision":{"type":"integer","minimum":1,"maximum":2147483647}},"required":["id","customer_id","name","role","revision"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false},"AudioInput":{"type":"object","properties":{"model":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"model_resolution":{"type":"object","properties":{"requestedModelId":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"canonicalModelId":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"governanceRevision":{"type":"integer","minimum":0,"maximum":9007199254740991},"priceVersion":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["requestedModelId","canonicalModelId","governanceRevision","priceVersion"],"additionalProperties":false},"prompt":{"type":"string","minLength":1,"maxLength":4000},"duration_seconds":{"type":"integer","minimum":1,"maximum":30},"price_version":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"output_mode":{"type":"string","enum":["file","stream"]},"quote_token":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["model","prompt","duration_seconds"],"additionalProperties":false},"TranscriptionInput":{"type":"object","properties":{"model":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"price_version":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"string","const":"sandbox-transcription-v1"}]},"model_resolution":{"type":"object","properties":{"requestedModelId":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"canonicalModelId":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"governanceRevision":{"type":"integer","minimum":0,"maximum":9007199254740991},"priceVersion":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["requestedModelId","canonicalModelId","governanceRevision","priceVersion"],"additionalProperties":false},"asset_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"language":{"type":"string","pattern":"^[a-z]{2}(?:-[A-Z]{2})?$"}},"required":["model","asset_id"],"additionalProperties":false},"TranscriptionTask":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"model":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"state":{"type":"string","const":"succeeded"},"text":{"type":"string","maxLength":4000},"usage":{"type":"object","properties":{"unit":{"type":"string","const":"audio_second"},"seconds":{"type":"integer","minimum":1,"maximum":30}},"required":["unit","seconds"],"additionalProperties":false},"createdAt":{"type":"string"}},"required":["id","model","state","text","usage","createdAt"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"model":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"state":{"type":"string","enum":["running","needs_reconciliation","failed"]},"text":{"type":"null"},"usage":{"type":"null"},"code":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","model","state","text","usage","code","createdAt"],"additionalProperties":false}]},"TranscriptionResponse":{"type":"object","properties":{"result":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"model":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"state":{"type":"string","const":"succeeded"},"text":{"type":"string","maxLength":4000},"usage":{"type":"object","properties":{"unit":{"type":"string","const":"audio_second"},"seconds":{"type":"integer","minimum":1,"maximum":30}},"required":["unit","seconds"],"additionalProperties":false},"createdAt":{"type":"string"}},"required":["id","model","state","text","usage","createdAt"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"model":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"state":{"type":"string","enum":["running","needs_reconciliation","failed"]},"text":{"type":"null"},"usage":{"type":"null"},"code":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","model","state","text","usage","code","createdAt"],"additionalProperties":false}]},"created":{"type":"boolean"}},"required":["result","created"],"additionalProperties":false},"TranscriptionModels":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"name":{"type":"string"},"version":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"string","const":"sandbox-transcription-v1"}]},"status":{"type":"string","const":"sandbox"},"maxDurationSeconds":{"default":30,"type":"integer","minimum":1,"maximum":30},"pricing":{"type":"object","properties":{"currency":{"type":"string","const":"USD"},"unit":{"type":"string","const":"audio_second"},"perSecondMicros":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["currency","unit","perSecondMicros"],"additionalProperties":false}},"required":["id","name","status","maxDurationSeconds","pricing"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false},"VideoInput":{"type":"object","properties":{"model":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"model_resolution":{"type":"object","properties":{"requestedModelId":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"canonicalModelId":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"governanceRevision":{"type":"integer","minimum":0,"maximum":9007199254740991},"priceVersion":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["requestedModelId","canonicalModelId","governanceRevision","priceVersion"],"additionalProperties":false},"prompt":{"type":"string","minLength":1,"maxLength":4000},"duration_seconds":{"anyOf":[{"type":"number","const":2},{"type":"number","const":5}]},"price_version":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["model","prompt","duration_seconds"],"additionalProperties":false},"VideoModel":{"type":"object","properties":{"id":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"name":{"type":"string"},"provider":{"type":"string"},"description":{"type":"string"},"maxDurationSeconds":{"anyOf":[{"type":"number","const":2},{"type":"number","const":5}]},"supportedDurationsSeconds":{"minItems":1,"type":"array","items":{"anyOf":[{"type":"number","const":2},{"type":"number","const":5}]}},"maxPromptCharacters":{"type":"integer","minimum":1,"maximum":4000},"width":{"anyOf":[{"type":"number","const":64},{"type":"number","const":720},{"type":"number","const":1280}]},"height":{"anyOf":[{"type":"number","const":64},{"type":"number","const":720},{"type":"number","const":1280}]},"mediaType":{"type":"string","enum":["video/webm","video/mp4"]},"version":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","const":"sandbox"},"pricing":{"type":"object","properties":{"currency":{"type":"string","const":"USD"},"unit":{"type":"string","const":"video_second"},"perSecondMicros":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["currency","unit","perSecondMicros"],"additionalProperties":false}},"required":["id","name","provider","description","maxDurationSeconds","supportedDurationsSeconds","maxPromptCharacters","width","height","mediaType","version","status","pricing"],"additionalProperties":false},"VideoOutput":{"type":"object","properties":{"assetId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"filename":{"type":"string","minLength":1,"maxLength":180},"mediaType":{"type":"string","enum":["video/webm","video/mp4"]},"bytes":{"type":"integer","minimum":45,"maximum":10485760},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"durationSeconds":{"anyOf":[{"type":"number","const":2},{"type":"number","const":5}]},"width":{"anyOf":[{"type":"number","const":64},{"type":"number","const":720},{"type":"number","const":1280}]},"height":{"anyOf":[{"type":"number","const":64},{"type":"number","const":720},{"type":"number","const":1280}]}},"required":["assetId","filename","mediaType","bytes","sha256","durationSeconds","width","height"],"additionalProperties":false},"VideoTask":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","const":"video"},"model":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"state":{"type":"string","enum":["queued","running","cancel_requested","succeeded","failed","cancelled","needs_reconciliation"]},"cancelRequested":{"type":"boolean"},"error":{"type":["string","null"]},"input":{"type":"object","properties":{"prompt":{"type":"string","minLength":1,"maxLength":4000},"duration_seconds":{"anyOf":[{"type":"number","const":2},{"type":"number","const":5}]}},"required":["prompt","duration_seconds"],"additionalProperties":false},"quote":{"type":"object","properties":{"version":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"currency":{"type":"string","const":"USD"},"unit":{"type":"string","const":"video_second"},"perSecondMicros":{"type":"integer","minimum":0,"maximum":9007199254740991},"maximumSeconds":{"anyOf":[{"type":"number","const":2},{"type":"number","const":5}]},"maximumMicros":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["version","currency","unit","perSecondMicros","maximumSeconds","maximumMicros"],"additionalProperties":false},"usage":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","const":"video_second"},"seconds":{"type":"integer","minimum":0,"maximum":5}},"required":["unit","seconds"],"additionalProperties":false},{"type":"null"}]},"output":{"anyOf":[{"type":"object","properties":{"assetId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"filename":{"type":"string","minLength":1,"maxLength":180},"mediaType":{"type":"string","enum":["video/webm","video/mp4"]},"bytes":{"type":"integer","minimum":45,"maximum":10485760},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"durationSeconds":{"anyOf":[{"type":"number","const":2},{"type":"number","const":5}]},"width":{"anyOf":[{"type":"number","const":64},{"type":"number","const":720},{"type":"number","const":1280}]},"height":{"anyOf":[{"type":"number","const":64},{"type":"number","const":720},{"type":"number","const":1280}]}},"required":["assetId","filename","mediaType","bytes","sha256","durationSeconds","width","height"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["id","kind","model","state","cancelRequested","error","input","quote","usage","output","createdAt"],"additionalProperties":false},"VideoQuote":{"type":"object","properties":{"version":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"currency":{"type":"string","const":"USD"},"unit":{"type":"string","const":"video_second"},"perSecondMicros":{"type":"integer","minimum":0,"maximum":9007199254740991},"maximumSeconds":{"anyOf":[{"type":"number","const":2},{"type":"number","const":5}]},"maximumMicros":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["version","currency","unit","perSecondMicros","maximumSeconds","maximumMicros"],"additionalProperties":false},"VideoModels":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"name":{"type":"string"},"provider":{"type":"string"},"description":{"type":"string"},"maxDurationSeconds":{"anyOf":[{"type":"number","const":2},{"type":"number","const":5}]},"supportedDurationsSeconds":{"minItems":1,"type":"array","items":{"anyOf":[{"type":"number","const":2},{"type":"number","const":5}]}},"maxPromptCharacters":{"type":"integer","minimum":1,"maximum":4000},"width":{"anyOf":[{"type":"number","const":64},{"type":"number","const":720},{"type":"number","const":1280}]},"height":{"anyOf":[{"type":"number","const":64},{"type":"number","const":720},{"type":"number","const":1280}]},"mediaType":{"type":"string","enum":["video/webm","video/mp4"]},"version":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","const":"sandbox"},"pricing":{"type":"object","properties":{"currency":{"type":"string","const":"USD"},"unit":{"type":"string","const":"video_second"},"perSecondMicros":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["currency","unit","perSecondMicros"],"additionalProperties":false}},"required":["id","name","provider","description","maxDurationSeconds","supportedDurationsSeconds","maxPromptCharacters","width","height","mediaType","version","status","pricing"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false},"VideoTaskResponse":{"type":"object","properties":{"task":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","const":"video"},"model":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"state":{"type":"string","enum":["queued","running","cancel_requested","succeeded","failed","cancelled","needs_reconciliation"]},"cancelRequested":{"type":"boolean"},"error":{"type":["string","null"]},"input":{"type":"object","properties":{"prompt":{"type":"string","minLength":1,"maxLength":4000},"duration_seconds":{"anyOf":[{"type":"number","const":2},{"type":"number","const":5}]}},"required":["prompt","duration_seconds"],"additionalProperties":false},"quote":{"type":"object","properties":{"version":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"currency":{"type":"string","const":"USD"},"unit":{"type":"string","const":"video_second"},"perSecondMicros":{"type":"integer","minimum":0,"maximum":9007199254740991},"maximumSeconds":{"anyOf":[{"type":"number","const":2},{"type":"number","const":5}]},"maximumMicros":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["version","currency","unit","perSecondMicros","maximumSeconds","maximumMicros"],"additionalProperties":false},"usage":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","const":"video_second"},"seconds":{"type":"integer","minimum":0,"maximum":5}},"required":["unit","seconds"],"additionalProperties":false},{"type":"null"}]},"output":{"anyOf":[{"type":"object","properties":{"assetId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"filename":{"type":"string","minLength":1,"maxLength":180},"mediaType":{"type":"string","enum":["video/webm","video/mp4"]},"bytes":{"type":"integer","minimum":45,"maximum":10485760},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"durationSeconds":{"anyOf":[{"type":"number","const":2},{"type":"number","const":5}]},"width":{"anyOf":[{"type":"number","const":64},{"type":"number","const":720},{"type":"number","const":1280}]},"height":{"anyOf":[{"type":"number","const":64},{"type":"number","const":720},{"type":"number","const":1280}]}},"required":["assetId","filename","mediaType","bytes","sha256","durationSeconds","width","height"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["id","kind","model","state","cancelRequested","error","input","quote","usage","output","createdAt"],"additionalProperties":false},"created":{"type":"boolean"}},"required":["task","created"],"additionalProperties":false},"VideoTasks":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","const":"video"},"model":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"state":{"type":"string","enum":["queued","running","cancel_requested","succeeded","failed","cancelled","needs_reconciliation"]},"cancelRequested":{"type":"boolean"},"error":{"type":["string","null"]},"input":{"type":"object","properties":{"prompt":{"type":"string","minLength":1,"maxLength":4000},"duration_seconds":{"anyOf":[{"type":"number","const":2},{"type":"number","const":5}]}},"required":["prompt","duration_seconds"],"additionalProperties":false},"quote":{"type":"object","properties":{"version":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"currency":{"type":"string","const":"USD"},"unit":{"type":"string","const":"video_second"},"perSecondMicros":{"type":"integer","minimum":0,"maximum":9007199254740991},"maximumSeconds":{"anyOf":[{"type":"number","const":2},{"type":"number","const":5}]},"maximumMicros":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["version","currency","unit","perSecondMicros","maximumSeconds","maximumMicros"],"additionalProperties":false},"usage":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","const":"video_second"},"seconds":{"type":"integer","minimum":0,"maximum":5}},"required":["unit","seconds"],"additionalProperties":false},{"type":"null"}]},"output":{"anyOf":[{"type":"object","properties":{"assetId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"filename":{"type":"string","minLength":1,"maxLength":180},"mediaType":{"type":"string","enum":["video/webm","video/mp4"]},"bytes":{"type":"integer","minimum":45,"maximum":10485760},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"durationSeconds":{"anyOf":[{"type":"number","const":2},{"type":"number","const":5}]},"width":{"anyOf":[{"type":"number","const":64},{"type":"number","const":720},{"type":"number","const":1280}]},"height":{"anyOf":[{"type":"number","const":64},{"type":"number","const":720},{"type":"number","const":1280}]}},"required":["assetId","filename","mediaType","bytes","sha256","durationSeconds","width","height"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["id","kind","model","state","cancelRequested","error","input","quote","usage","output","createdAt"],"additionalProperties":false}},"nextCursor":{"type":["string","null"]}},"required":["data","nextCursor"],"additionalProperties":false},"ContextCompressionReceipt":{"type":"object","properties":{"strategy":{"type":"string","const":"middle-out-turns-v1"},"changed":{"type":"boolean"},"originalMessages":{"type":"integer","minimum":1,"maximum":64},"executedMessages":{"type":"integer","minimum":1,"maximum":16},"removedTurns":{"type":"integer","minimum":0,"maximum":62},"removedMessageIndices":{"maxItems":63,"type":"array","items":{"type":"integer","minimum":0,"maximum":63}},"inputEstimateBefore":{"type":"integer","minimum":0,"maximum":9007199254740991},"inputEstimateAfter":{"type":"integer","minimum":0,"maximum":9007199254740991},"inputEstimateBudget":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"estimateMethod":{"type":"string","const":"utf8-envelope-estimate-v1"},"model":{"type":"string","minLength":1,"maxLength":200},"modelVersion":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"priceVersion":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"originalFingerprint":{"type":"string","pattern":"^[0-9a-f]{64}$"},"executionFingerprint":{"type":"string","pattern":"^[0-9a-f]{64}$"}},"required":["strategy","changed","originalMessages","executedMessages","removedTurns","removedMessageIndices","inputEstimateBefore","inputEstimateAfter","inputEstimateBudget","estimateMethod","model","modelVersion","priceVersion","originalFingerprint","executionFingerprint"],"additionalProperties":false},"VisionInput":{"type":"object","properties":{"model":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"model_resolution":{"type":"object","properties":{"requestedModelId":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"canonicalModelId":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"governanceRevision":{"type":"integer","minimum":0,"maximum":9007199254740991},"priceVersion":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["requestedModelId","canonicalModelId","governanceRevision","priceVersion"],"additionalProperties":false},"prompt":{"type":"string","minLength":1,"maxLength":4000},"image_asset_ids":{"minItems":1,"maxItems":4,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"content_order":{"minItems":2,"maxItems":5,"type":"array","items":{"type":"integer","minimum":-1,"maximum":3}},"max_tokens":{"type":"integer","minimum":1,"maximum":512},"price_version":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"maximum_micros":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["model","prompt","image_asset_ids"],"additionalProperties":false},"VisionTask":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"model":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"state":{"type":"string","enum":["running","succeeded","failed","needs_reconciliation"]},"output":{"type":"string","maxLength":100000},"usage":{"anyOf":[{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","const":"token"},"input":{"type":"integer","minimum":0,"maximum":1000000000},"cachedInput":{"type":"integer","minimum":0,"maximum":1000000000},"cacheWriteInput5m":{"type":"integer","minimum":0,"maximum":1000000000},"cacheWriteInput1h":{"type":"integer","minimum":0,"maximum":1000000000},"output":{"type":"integer","minimum":0,"maximum":1000000000},"reasoningOutput":{"type":"integer","minimum":0,"maximum":1000000000}},"required":["unit","input","cachedInput","output","reasoningOutput"],"additionalProperties":false},{"type":"object","properties":{"unit":{"type":"string","const":"image"},"count":{"type":"integer","minimum":1,"maximum":4}},"required":["unit","count"],"additionalProperties":false}]},{"type":"null"}]},"code":{"type":["string","null"]},"createdAt":{"type":"string"},"finishReason":{"type":"string"}},"required":["id","model","state","output","usage","createdAt"],"additionalProperties":false},"VisionResponse":{"type":"object","properties":{"result":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"model":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"state":{"type":"string","enum":["running","succeeded","failed","needs_reconciliation"]},"output":{"type":"string","maxLength":100000},"usage":{"anyOf":[{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","const":"token"},"input":{"type":"integer","minimum":0,"maximum":1000000000},"cachedInput":{"type":"integer","minimum":0,"maximum":1000000000},"cacheWriteInput5m":{"type":"integer","minimum":0,"maximum":1000000000},"cacheWriteInput1h":{"type":"integer","minimum":0,"maximum":1000000000},"output":{"type":"integer","minimum":0,"maximum":1000000000},"reasoningOutput":{"type":"integer","minimum":0,"maximum":1000000000}},"required":["unit","input","cachedInput","output","reasoningOutput"],"additionalProperties":false},{"type":"object","properties":{"unit":{"type":"string","const":"image"},"count":{"type":"integer","minimum":1,"maximum":4}},"required":["unit","count"],"additionalProperties":false}]},{"type":"null"}]},"code":{"type":["string","null"]},"createdAt":{"type":"string"},"finishReason":{"type":"string"}},"required":["id","model","state","output","usage","createdAt"],"additionalProperties":false},"created":{"type":"boolean"}},"required":["result","created"],"additionalProperties":false},"VisionModels":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"name":{"type":"string"},"status":{"type":"string","const":"sandbox"},"version":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"maxImages":{"type":"integer","minimum":1,"maximum":4},"maxInputTokens":{"type":"integer","minimum":1,"maximum":64000},"maxOutputTokens":{"type":"integer","minimum":1,"maximum":512},"pricing":{"oneOf":[{"type":"object","properties":{"currency":{"type":"string","const":"USD"},"unit":{"type":"string","const":"image"},"perImageMicros":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["currency","unit","perImageMicros"],"additionalProperties":false},{"type":"object","properties":{"currency":{"type":"string","const":"USD"},"unit":{"type":"string","const":"token"},"rates":{"type":"object","properties":{"currency":{"type":"string","const":"USD"},"unit":{"type":"string","const":"microusd_per_million_tokens"},"input":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$"},"cachedInput":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$"},"cacheWriteInput5m":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$"},"cacheWriteInput1h":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$"},"output":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$"}},"required":["currency","unit","input","cachedInput","output"],"additionalProperties":false}},"required":["currency","unit","rates"],"additionalProperties":false}]}},"required":["id","name","status","maxImages","pricing"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false},"VisionQuote":{"type":"object","properties":{"model":{"type":"string"},"quote":{"anyOf":[{"type":"object","properties":{"currency":{"type":"string","const":"USD"},"unit":{"type":"string","const":"image"},"count":{"type":"integer","minimum":1,"maximum":4},"maximumMicros":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["currency","unit","count","maximumMicros"],"additionalProperties":false},{"type":"object","properties":{"currency":{"type":"string","const":"USD"},"unit":{"type":"string","const":"token"},"count":{"type":"integer","minimum":1,"maximum":4},"version":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"rates":{"type":"object","properties":{"currency":{"type":"string","const":"USD"},"unit":{"type":"string","const":"microusd_per_million_tokens"},"input":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$"},"cachedInput":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$"},"cacheWriteInput5m":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$"},"cacheWriteInput1h":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$"},"output":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$"}},"required":["currency","unit","input","cachedInput","output"],"additionalProperties":false},"inputUnits":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"maxOutputUnits":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"maximumMicros":{"type":"integer","minimum":0,"maximum":9007199254740991},"source":{"type":"string","const":"declared_vision_input_bound_v1"}},"required":["currency","unit","count","version","rates","inputUnits","maxOutputUnits","maximumMicros","source"],"additionalProperties":false}]}},"required":["model","quote"],"additionalProperties":false},"EmbeddingInput":{"type":"object","properties":{"model":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"price_version":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"maximum_micros":{"type":"integer","minimum":0,"maximum":9007199254740991},"input":{"anyOf":[{"type":"string","minLength":1,"maxLength":4000},{"minItems":1,"maxItems":16,"type":"array","items":{"type":"string","minLength":1,"maxLength":4000}}]}},"required":["model","input"],"additionalProperties":false},"RerankInput":{"type":"object","properties":{"model":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"price_version":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"maximum_micros":{"type":"integer","minimum":0,"maximum":9007199254740991},"query":{"type":"string","minLength":1,"maxLength":4000},"documents":{"minItems":2,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":4000}},"topN":{"type":"integer","minimum":1,"maximum":50}},"required":["model","query","documents"],"additionalProperties":false},"RetrievalConfiguration":{"type":"object","properties":{"basedOn":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"model":{"type":"object","properties":{"id":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"name":{"type":"string","minLength":1,"maxLength":80},"provider":{"type":"string","minLength":1,"maxLength":80},"description":{"type":"string","maxLength":500},"capability":{"type":"string","enum":["embedding","rerank"]},"retrieval":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"embedding"},"maxInputs":{"type":"integer","minimum":1,"maximum":16},"maxCharactersPerInput":{"type":"integer","minimum":1,"maximum":4000},"dimensions":{"type":"integer","minimum":1,"maximum":4096}},"required":["kind","maxInputs","maxCharactersPerInput","dimensions"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"rerank"},"maxDocuments":{"type":"integer","minimum":2,"maximum":50},"maxCharactersPerDocument":{"type":"integer","minimum":1,"maximum":4000},"maxQueryCharacters":{"type":"integer","minimum":1,"maximum":4000}},"required":["kind","maxDocuments","maxCharactersPerDocument","maxQueryCharacters"],"additionalProperties":false}]},"audioTaskKind":{"type":"string","enum":["speech","transcription"]},"contextLength":{"type":"integer","minimum":1,"maximum":64000},"maxOutputUnits":{"type":"integer","minimum":1,"maximum":8192},"enabled":{"type":"boolean"},"features":{"type":"object","properties":{"tools":{"type":"boolean"},"structuredOutput":{"type":"boolean"},"streaming":{"type":"boolean"},"sampling":{"type":"object","properties":{"temperature":{"type":"object","properties":{"min":{"type":"number","minimum":0,"maximum":2},"max":{"type":"number","minimum":0,"maximum":2}},"required":["min","max"],"additionalProperties":false},"top_p":{"type":"object","properties":{"min":{"type":"number","minimum":0,"maximum":1},"max":{"type":"number","minimum":0,"maximum":1}},"required":["min","max"],"additionalProperties":false},"seed":{"type":"object","properties":{"min":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"max":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["min","max"],"additionalProperties":false},"presence_penalty":{"type":"object","properties":{"min":{"type":"number","minimum":-2,"maximum":2},"max":{"type":"number","minimum":-2,"maximum":2}},"required":["min","max"],"additionalProperties":false},"frequency_penalty":{"type":"object","properties":{"min":{"type":"number","minimum":-2,"maximum":2},"max":{"type":"number","minimum":-2,"maximum":2}},"required":["min","max"],"additionalProperties":false},"top_k":{"type":"object","properties":{"min":{"type":"integer","minimum":0,"maximum":9007199254740991},"max":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["min","max"],"additionalProperties":false},"stop":{"type":"object","properties":{"maxSequences":{"type":"integer","minimum":1,"maximum":4},"maxSequenceLength":{"type":"integer","minimum":1,"maximum":200}},"required":["maxSequences","maxSequenceLength"],"additionalProperties":false},"temperatureTopPExclusive":{"type":"boolean"}},"additionalProperties":false},"reasoning":{"type":"object","properties":{"efforts":{"minItems":1,"maxItems":7,"type":"array","items":{"type":"string","enum":["none","minimal","low","medium","high","xhigh","max"]}}},"required":["efforts"],"additionalProperties":false},"serviceTiers":{"minItems":1,"maxItems":3,"type":"array","items":{"type":"string","enum":["default","flex","priority"]}}},"required":["tools","structuredOutput","streaming"],"additionalProperties":false},"attachmentInputs":{"maxItems":4,"type":"array","items":{"type":"string","enum":["image_input","pdf_input","document_input","audio_input"]}},"imageSize":{"anyOf":[{"type":"number","const":64},{"type":"number","const":256},{"type":"number","const":512},{"type":"number","const":1024}]},"videoSize":{"type":"string","enum":["720x1280","1280x720"]}},"required":["id","name","provider","description","capability","retrieval","contextLength","maxOutputUnits","enabled"],"additionalProperties":false},"sale":{"type":"object","properties":{"currency":{"type":"string","const":"USD"},"unit":{"type":"string","const":"token"},"rates":{"type":"object","properties":{"currency":{"type":"string","const":"USD"},"unit":{"type":"string","const":"microusd_per_million_tokens"},"input":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$"},"cachedInput":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$"},"cacheWriteInput5m":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$"},"cacheWriteInput1h":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$"},"output":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$"}},"required":["currency","unit","input","cachedInput","output"],"additionalProperties":false},"serviceTierRates":{"minItems":1,"maxItems":3,"type":"array","items":{"type":"object","properties":{"tier":{"type":"string","enum":["default","flex","priority"]},"rates":{"type":"object","properties":{"currency":{"type":"string","const":"USD"},"unit":{"type":"string","const":"microusd_per_million_tokens"},"input":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$"},"cachedInput":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$"},"cacheWriteInput5m":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$"},"cacheWriteInput1h":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$"},"output":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$"}},"required":["currency","unit","input","cachedInput","output"],"additionalProperties":false}},"required":["tier","rates"],"additionalProperties":false}}},"required":["currency","unit","rates"],"additionalProperties":false},"channel":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,63}$"},"upstreamModel":{"type":"string","minLength":1,"maxLength":100},"regions":{"minItems":1,"maxItems":4,"type":"array","items":{"type":"string","enum":["local","eu-central-1","us-east-1","ap-southeast-1"]}},"quotaPoolId":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,63}$"},"maxConcurrent":{"type":"integer","minimum":1,"maximum":1000000},"requestsPerMinute":{"type":"integer","minimum":1,"maximum":1000000},"unitsPerMinute":{"type":"integer","minimum":1,"maximum":1000000000000},"dataPolicy":{"type":"object","properties":{"retention":{"type":"string","enum":["unknown","none","up_to_30_days"]},"training":{"type":"string","enum":["unknown","not_used","may_be_used"]},"regionHandling":{"type":"string","enum":["unknown","declared_regions_only"]}},"required":["retention","training","regionHandling"],"additionalProperties":false},"supplierDeclaration":{"type":"object","properties":{"supplierId":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,63}$"},"quantization":{"type":"string","enum":["fp32","fp16","bf16","int8","int4","unknown"]},"evidence":{"type":"string","const":"published_operator_declaration"}},"required":["supplierId","quantization","evidence"],"additionalProperties":false},"unit":{"type":"string","const":"token"},"rates":{"type":"object","properties":{"currency":{"type":"string","const":"USD"},"unit":{"type":"string","const":"microusd_per_million_tokens"},"input":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$"},"cachedInput":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$"},"cacheWriteInput5m":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$"},"cacheWriteInput1h":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$"},"output":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$"}},"required":["currency","unit","input","cachedInput","output"],"additionalProperties":false},"endpoint":{"type":"string","maxLength":2048,"format":"uri"},"credentialRef":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"usageBasis":{"type":"string","const":"provider_input_tokens"},"adapter":{"type":"string","const":"http-openai-embedding"}},"required":["id","upstreamModel","regions","quotaPoolId","maxConcurrent","requestsPerMinute","unitsPerMinute","unit","rates","endpoint","credentialRef","usageBasis","adapter"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,63}$"},"upstreamModel":{"type":"string","minLength":1,"maxLength":100},"regions":{"minItems":1,"maxItems":4,"type":"array","items":{"type":"string","enum":["local","eu-central-1","us-east-1","ap-southeast-1"]}},"quotaPoolId":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,63}$"},"maxConcurrent":{"type":"integer","minimum":1,"maximum":1000000},"requestsPerMinute":{"type":"integer","minimum":1,"maximum":1000000},"unitsPerMinute":{"type":"integer","minimum":1,"maximum":1000000000000},"dataPolicy":{"type":"object","properties":{"retention":{"type":"string","enum":["unknown","none","up_to_30_days"]},"training":{"type":"string","enum":["unknown","not_used","may_be_used"]},"regionHandling":{"type":"string","enum":["unknown","declared_regions_only"]}},"required":["retention","training","regionHandling"],"additionalProperties":false},"supplierDeclaration":{"type":"object","properties":{"supplierId":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,63}$"},"quantization":{"type":"string","enum":["fp32","fp16","bf16","int8","int4","unknown"]},"evidence":{"type":"string","const":"published_operator_declaration"}},"required":["supplierId","quantization","evidence"],"additionalProperties":false},"unit":{"type":"string","const":"token"},"rates":{"type":"object","properties":{"currency":{"type":"string","const":"USD"},"unit":{"type":"string","const":"microusd_per_million_tokens"},"input":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$"},"cachedInput":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$"},"cacheWriteInput5m":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$"},"cacheWriteInput1h":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$"},"output":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$"}},"required":["currency","unit","input","cachedInput","output"],"additionalProperties":false},"endpoint":{"type":"string","maxLength":2048,"format":"uri"},"credentialRef":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"usageBasis":{"type":"string","const":"provider_input_tokens"},"adapter":{"type":"string","const":"http-jina-rerank"}},"required":["id","upstreamModel","regions","quotaPoolId","maxConcurrent","requestsPerMinute","unitsPerMinute","unit","rates","endpoint","credentialRef","usageBasis","adapter"],"additionalProperties":false}]},"additionalChannels":{"maxItems":3,"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,63}$"},"upstreamModel":{"type":"string","minLength":1,"maxLength":100},"regions":{"minItems":1,"maxItems":4,"type":"array","items":{"type":"string","enum":["local","eu-central-1","us-east-1","ap-southeast-1"]}},"quotaPoolId":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,63}$"},"maxConcurrent":{"type":"integer","minimum":1,"maximum":1000000},"requestsPerMinute":{"type":"integer","minimum":1,"maximum":1000000},"unitsPerMinute":{"type":"integer","minimum":1,"maximum":1000000000000},"dataPolicy":{"type":"object","properties":{"retention":{"type":"string","enum":["unknown","none","up_to_30_days"]},"training":{"type":"string","enum":["unknown","not_used","may_be_used"]},"regionHandling":{"type":"string","enum":["unknown","declared_regions_only"]}},"required":["retention","training","regionHandling"],"additionalProperties":false},"supplierDeclaration":{"type":"object","properties":{"supplierId":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,63}$"},"quantization":{"type":"string","enum":["fp32","fp16","bf16","int8","int4","unknown"]},"evidence":{"type":"string","const":"published_operator_declaration"}},"required":["supplierId","quantization","evidence"],"additionalProperties":false},"unit":{"type":"string","const":"token"},"rates":{"type":"object","properties":{"currency":{"type":"string","const":"USD"},"unit":{"type":"string","const":"microusd_per_million_tokens"},"input":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$"},"cachedInput":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$"},"cacheWriteInput5m":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$"},"cacheWriteInput1h":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$"},"output":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$"}},"required":["currency","unit","input","cachedInput","output"],"additionalProperties":false},"endpoint":{"type":"string","maxLength":2048,"format":"uri"},"credentialRef":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"usageBasis":{"type":"string","const":"provider_input_tokens"},"adapter":{"type":"string","const":"http-openai-embedding"}},"required":["id","upstreamModel","regions","quotaPoolId","maxConcurrent","requestsPerMinute","unitsPerMinute","unit","rates","endpoint","credentialRef","usageBasis","adapter"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,63}$"},"upstreamModel":{"type":"string","minLength":1,"maxLength":100},"regions":{"minItems":1,"maxItems":4,"type":"array","items":{"type":"string","enum":["local","eu-central-1","us-east-1","ap-southeast-1"]}},"quotaPoolId":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,63}$"},"maxConcurrent":{"type":"integer","minimum":1,"maximum":1000000},"requestsPerMinute":{"type":"integer","minimum":1,"maximum":1000000},"unitsPerMinute":{"type":"integer","minimum":1,"maximum":1000000000000},"dataPolicy":{"type":"object","properties":{"retention":{"type":"string","enum":["unknown","none","up_to_30_days"]},"training":{"type":"string","enum":["unknown","not_used","may_be_used"]},"regionHandling":{"type":"string","enum":["unknown","declared_regions_only"]}},"required":["retention","training","regionHandling"],"additionalProperties":false},"supplierDeclaration":{"type":"object","properties":{"supplierId":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,63}$"},"quantization":{"type":"string","enum":["fp32","fp16","bf16","int8","int4","unknown"]},"evidence":{"type":"string","const":"published_operator_declaration"}},"required":["supplierId","quantization","evidence"],"additionalProperties":false},"unit":{"type":"string","const":"token"},"rates":{"type":"object","properties":{"currency":{"type":"string","const":"USD"},"unit":{"type":"string","const":"microusd_per_million_tokens"},"input":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$"},"cachedInput":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$"},"cacheWriteInput5m":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$"},"cacheWriteInput1h":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$"},"output":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$"}},"required":["currency","unit","input","cachedInput","output"],"additionalProperties":false},"endpoint":{"type":"string","maxLength":2048,"format":"uri"},"credentialRef":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"usageBasis":{"type":"string","const":"provider_input_tokens"},"adapter":{"type":"string","const":"http-jina-rerank"}},"required":["id","upstreamModel","regions","quotaPoolId","maxConcurrent","requestsPerMinute","unitsPerMinute","unit","rates","endpoint","credentialRef","usageBasis","adapter"],"additionalProperties":false}]}}},"required":["basedOn","model","sale","channel"],"additionalProperties":false},"ConversationHistoryActionInput":{"type":"object","properties":{"revision":{"type":"integer","minimum":1,"maximum":2147483646},"action":{"type":"string","enum":["favorite","unfavorite","archive","restore"]}},"required":["revision","action"],"additionalProperties":false},"ConversationCompressionPreviewInput":{"type":"object","properties":{"operationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"turn":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":100},"model":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"maxTokens":{"default":256,"type":"integer","minimum":1,"maximum":8192},"kind":{"type":"string","const":"first"},"content":{"type":"string","minLength":1,"maxLength":4000},"attachmentIds":{"maxItems":4,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"memoryEntryIds":{"maxItems":8,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"compressionPreviewId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"persistenceConfirmationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["title","model","kind","content"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"append"},"conversationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"revision":{"type":"integer","minimum":1,"maximum":2147483646},"content":{"type":"string","minLength":1,"maxLength":4000},"attachmentIds":{"maxItems":4,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"contextMessageIds":{"maxItems":16,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"memoryEntryIds":{"maxItems":8,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"compressionPreviewId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["kind","conversationId","revision","content"],"additionalProperties":false}]}},"required":["operationId","turn"],"additionalProperties":false},"ConversationCompressionPreview":{"type":"object","properties":{"operationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"requestFingerprint":{"type":"string","pattern":"^[a-f0-9]{64}$"},"includedMessageIds":{"maxItems":16,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"includedAttachmentIds":{"maxItems":4,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"attachments":{"maxItems":4,"type":"array","items":{"type":"object","properties":{"assetId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"filename":{"type":"string","minLength":1,"maxLength":180},"mediaType":{"type":"string","enum":["text/plain","text/markdown","application/pdf","image/png","audio/wav"]},"bytes":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"safetyStatus":{"type":"string","const":"synthetic_clean"}},"required":["assetId","filename","mediaType","bytes","sha256","safetyStatus"],"additionalProperties":false}},"includedMemoryEntries":{"maxItems":8,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"content":{"type":"string","minLength":1,"maxLength":4000},"sourceConversationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"sourceMessageId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"version":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"lastUsedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]}},"required":["id","content","sourceConversationId","sourceMessageId","version","createdAt","updatedAt","lastUsedAt"],"additionalProperties":false}},"memoryProfileEpoch":{"type":"integer","minimum":0,"maximum":9007199254740991},"contextCharacters":{"type":"integer","minimum":0,"maximum":9007199254740991},"contextCompression":{"type":"object","properties":{"strategy":{"type":"string","const":"middle-out-turns-v1"},"changed":{"type":"boolean"},"originalMessages":{"type":"integer","minimum":1,"maximum":64},"executedMessages":{"type":"integer","minimum":1,"maximum":16},"removedTurns":{"type":"integer","minimum":0,"maximum":62},"removedMessageIndices":{"maxItems":63,"type":"array","items":{"type":"integer","minimum":0,"maximum":63}},"inputEstimateBefore":{"type":"integer","minimum":0,"maximum":9007199254740991},"inputEstimateAfter":{"type":"integer","minimum":0,"maximum":9007199254740991},"inputEstimateBudget":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"estimateMethod":{"type":"string","const":"utf8-envelope-estimate-v1"},"model":{"type":"string","minLength":1,"maxLength":200},"modelVersion":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"priceVersion":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"originalFingerprint":{"type":"string","pattern":"^[0-9a-f]{64}$"},"executionFingerprint":{"type":"string","pattern":"^[0-9a-f]{64}$"}},"required":["strategy","changed","originalMessages","executedMessages","removedTurns","removedMessageIndices","inputEstimateBefore","inputEstimateAfter","inputEstimateBudget","estimateMethod","model","modelVersion","priceVersion","originalFingerprint","executionFingerprint"],"additionalProperties":false},"messages":{"maxItems":64,"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":0,"maximum":63},"turn":{"type":"integer","exclusiveMinimum":0,"maximum":64},"role":{"type":"string","enum":["system","user","assistant","tool"]},"content":{"type":"string","maxLength":80000},"disposition":{"type":"string","enum":["kept","removed"]},"protection":{"anyOf":[{"type":"string","enum":["system_instruction","first_user_turn","latest_user_turn","attachment_turn","kept_by_budget"]},{"type":"null"}]}},"required":["index","turn","role","content","disposition","protection"],"additionalProperties":false}},"confirmationAllowed":{"type":"boolean"},"priceVersion":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"publicationSnapshotId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"publicationSnapshotHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"publicationValidUntil":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"maximumMicros":{"type":"integer","minimum":0,"maximum":9007199254740991},"maximumMicrosBefore":{"type":"integer","minimum":0,"maximum":9007199254740991},"maximumMicrosAfter":{"type":"integer","minimum":0,"maximum":9007199254740991},"currency":{"type":"string","const":"USD"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["operationId","requestFingerprint","includedMessageIds","includedAttachmentIds","attachments","includedMemoryEntries","memoryProfileEpoch","contextCharacters","contextCompression","messages","confirmationAllowed","priceVersion","publicationSnapshotId","publicationSnapshotHash","publicationValidUntil","maximumMicros","maximumMicrosBefore","maximumMicrosAfter","currency","expiresAt"],"additionalProperties":false},"ConversationMemoryProfile":{"type":"object","properties":{"enabled":{"type":"boolean"},"memoryEpoch":{"type":"integer","minimum":0,"maximum":9007199254740991},"revision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"entries":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"content":{"type":"string","minLength":1,"maxLength":4000},"sourceConversationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"sourceMessageId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"version":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"lastUsedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]}},"required":["id","content","sourceConversationId","sourceMessageId","version","createdAt","updatedAt","lastUsedAt"],"additionalProperties":false}}},"required":["enabled","memoryEpoch","revision","entries"],"additionalProperties":false},"ConversationMemoryProfileActionInput":{"type":"object","properties":{"revision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"action":{"type":"string","enum":["enable","close","clear","close_and_clear"]},"confirmation":{"type":"string","const":"CLEAR_MEMORY"}},"required":["revision","action"],"additionalProperties":false},"ConversationMemoryCreateInput":{"type":"object","properties":{"sourceMessageId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["sourceMessageId"],"additionalProperties":false},"ConversationMemoryCreateResult":{"type":"object","properties":{"profile":{"type":"object","properties":{"enabled":{"type":"boolean"},"memoryEpoch":{"type":"integer","minimum":0,"maximum":9007199254740991},"revision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"entries":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"content":{"type":"string","minLength":1,"maxLength":4000},"sourceConversationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"sourceMessageId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"version":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"lastUsedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]}},"required":["id","content","sourceConversationId","sourceMessageId","version","createdAt","updatedAt","lastUsedAt"],"additionalProperties":false}}},"required":["enabled","memoryEpoch","revision","entries"],"additionalProperties":false},"entry":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"content":{"type":"string","minLength":1,"maxLength":4000},"sourceConversationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"sourceMessageId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"version":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"lastUsedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]}},"required":["id","content","sourceConversationId","sourceMessageId","version","createdAt","updatedAt","lastUsedAt"],"additionalProperties":false},"created":{"type":"boolean"}},"required":["profile","entry","created"],"additionalProperties":false},"ConversationMemoryUpdateInput":{"type":"object","properties":{"version":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"content":{"type":"string","minLength":1,"maxLength":4000}},"required":["version","content"],"additionalProperties":false},"ConversationMemoryUpdateResult":{"type":"object","properties":{"profile":{"type":"object","properties":{"enabled":{"type":"boolean"},"memoryEpoch":{"type":"integer","minimum":0,"maximum":9007199254740991},"revision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"entries":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"content":{"type":"string","minLength":1,"maxLength":4000},"sourceConversationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"sourceMessageId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"version":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"lastUsedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]}},"required":["id","content","sourceConversationId","sourceMessageId","version","createdAt","updatedAt","lastUsedAt"],"additionalProperties":false}}},"required":["enabled","memoryEpoch","revision","entries"],"additionalProperties":false},"entry":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"content":{"type":"string","minLength":1,"maxLength":4000},"sourceConversationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"sourceMessageId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"version":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"lastUsedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]}},"required":["id","content","sourceConversationId","sourceMessageId","version","createdAt","updatedAt","lastUsedAt"],"additionalProperties":false}},"required":["profile","entry"],"additionalProperties":false},"ConversationMemoryDeleteInput":{"type":"object","properties":{"version":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["version"],"additionalProperties":false},"ComparisonCreate":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":100},"prompt":{"type":"string","minLength":1,"maxLength":4000},"models":{"minItems":2,"maxItems":4,"type":"array","items":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"}},"maxTokens":{"default":256,"type":"integer","minimum":1,"maximum":8192},"maximumMicros":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["title","prompt","models","maximumMicros"],"additionalProperties":false},"ComparisonQuoteInput":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":100},"prompt":{"type":"string","minLength":1,"maxLength":4000},"models":{"minItems":2,"maxItems":4,"type":"array","items":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"}},"maxTokens":{"default":256,"type":"integer","minimum":1,"maximum":8192}},"required":["title","prompt","models"],"additionalProperties":false},"ComparisonQuote":{"type":"object","properties":{"items":{"minItems":2,"maxItems":4,"type":"array","items":{"type":"object","properties":{"model":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"priceVersion":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"maximumMicros":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"error":{"type":["string","null"]}},"required":["model","priceVersion","maximumMicros","error"],"additionalProperties":false}},"totalMaximumMicros":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["items","totalMaximumMicros"],"additionalProperties":false},"ComparisonRetry":{"type":"object","properties":{"expectedGenerationId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"maximumMicros":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["expectedGenerationId","maximumMicros"],"additionalProperties":false},"ComparisonRetryQuote":{"type":"object","properties":{"expectedGenerationId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"model":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"priceVersion":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"maximumMicros":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["expectedGenerationId","model","priceVersion","maximumMicros"],"additionalProperties":false},"ComparisonContinuation":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":100}},"required":["title"],"additionalProperties":false},"ComparisonContinuationResult":{"type":"object","properties":{"conversation":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"model":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"maxTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"revision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"state":{"type":"string","enum":["active","deleted"]},"favorite":{"type":"boolean"},"archivedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"branchFromMessageId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"pendingTurn":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","title","model","maxTokens","revision","state","favorite","archivedAt","branchFromMessageId","pendingTurn","createdAt","updatedAt"],"additionalProperties":false},"created":{"type":"boolean"}},"required":["conversation","created"],"additionalProperties":false},"ComparisonCancel":{"type":"object","properties":{"expectedGenerationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["expectedGenerationId"],"additionalProperties":false},"FusionCreate":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":100},"prompt":{"type":"string","minLength":1,"maxLength":4000},"maximumMicros":{"type":"integer","minimum":0,"maximum":9007199254740991},"steps":{"minItems":4,"maxItems":6,"type":"array","items":{"type":"object","properties":{"stage":{"type":"string","enum":["discussion","analysis","synthesis"]},"model":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"maxTokens":{"type":"integer","minimum":1,"maximum":512},"maximumMicros":{"type":"integer","minimum":0,"maximum":9007199254740991},"instruction":{"default":"","type":"string","maxLength":1000}},"required":["stage","model","maxTokens","maximumMicros"],"additionalProperties":false}}},"required":["title","prompt","maximumMicros","steps"],"additionalProperties":false},"FusionResume":{"type":"object","properties":{"expectedRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["expectedRevision"],"additionalProperties":false},"FusionDetail":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"plan":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":100},"prompt":{"type":"string","minLength":1,"maxLength":4000},"maximumMicros":{"type":"integer","minimum":0,"maximum":9007199254740991},"steps":{"minItems":4,"maxItems":6,"type":"array","items":{"type":"object","properties":{"stage":{"type":"string","enum":["discussion","analysis","synthesis"]},"model":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"maxTokens":{"type":"integer","minimum":1,"maximum":512},"maximumMicros":{"type":"integer","minimum":0,"maximum":9007199254740991},"instruction":{"default":"","type":"string","maxLength":1000}},"required":["stage","model","maxTokens","maximumMicros"],"additionalProperties":false}}},"required":["title","prompt","maximumMicros","steps"],"additionalProperties":false},"revision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"progress":{"type":"object","properties":{"state":{"type":"string","enum":["ready","waiting","blocked","completed"]},"positions":{"type":"array","items":{"type":"integer","minimum":0,"maximum":5}},"reason":{"type":["string","null"]}},"required":["state","positions","reason"],"additionalProperties":false},"confirmedSalesMicros":{"type":"string","pattern":"^\\d+$"},"heldMicros":{"type":"string","pattern":"^\\d+$"},"unconfirmedGenerations":{"type":"integer","minimum":0,"maximum":9007199254740991},"unresolvedAdmissions":{"type":"array","items":{"type":"object","properties":{"stepId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"quotedMaximumMicros":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]}},"required":["stepId","quotedMaximumMicros"],"additionalProperties":false}},"finalOutput":{"type":["string","null"]},"steps":{"minItems":4,"maxItems":6,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"position":{"type":"integer","minimum":0,"maximum":5},"model":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"stage":{"type":"string","enum":["discussion","analysis","synthesis"]},"state":{"type":"string","enum":["planned","submitting","awaiting_funds","accepted","running","cancel_requested","cancelled","needs_reconciliation","completed","failed"]},"generationId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"input":{"anyOf":[{"type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"top_p":{"type":"number","minimum":0,"maximum":1},"stop":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"minItems":1,"maxItems":4,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}}]},"seed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"presence_penalty":{"type":"number","minimum":-2,"maximum":2},"frequency_penalty":{"type":"number","minimum":-2,"maximum":2},"top_k":{"type":"integer","minimum":0,"maximum":9007199254740991},"reasoning_effort":{"type":"string","enum":["none","minimal","low","medium","high","xhigh","max"]},"service_tier":{"type":"string","enum":["default","flex","priority"]},"plugins":{"minItems":1,"maxItems":1,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","const":"context-compression"},"enabled":{"type":"boolean"}},"required":["id"],"additionalProperties":false}},"model":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"model_resolution":{"type":"object","properties":{"requestedModelId":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"canonicalModelId":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"governanceRevision":{"type":"integer","minimum":0,"maximum":9007199254740991},"priceVersion":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["requestedModelId","canonicalModelId","governanceRevision","priceVersion"],"additionalProperties":false},"price_version":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"publication_snapshot_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"publication_snapshot_hash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"maximum_micros":{"type":"integer","minimum":0,"maximum":9007199254740991},"messages":{"minItems":1,"maxItems":16,"type":"array","items":{"type":"object","properties":{"role":{"type":"string","enum":["system","user","assistant","tool"]},"content":{"default":"","type":"string","maxLength":65536},"tool_calls":{"minItems":1,"maxItems":4,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^(?:call_|toolu_)[A-Za-z0-9_-]{1,100}$"},"type":{"type":"string","const":"function"},"function":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_-]{0,63}$"},"arguments":{"type":"string","minLength":2,"maxLength":4000}},"required":["name","arguments"],"additionalProperties":false}},"required":["id","type","function"],"additionalProperties":false}},"tool_call_id":{"type":"string","pattern":"^(?:call_|toolu_)[A-Za-z0-9_-]{1,100}$"}},"required":["role"],"additionalProperties":false}},"tools":{"minItems":1,"maxItems":8,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","const":"function"},"function":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_-]{0,63}$"},"description":{"type":"string","maxLength":1000},"parameters":{},"strict":{"default":true,"type":"boolean","const":true}},"required":["name","parameters"],"additionalProperties":false}},"required":["type","function"],"additionalProperties":false}},"tool_choice":{"anyOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object","properties":{"type":{"type":"string","const":"function"},"function":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_-]{0,63}$"}},"required":["name"],"additionalProperties":false}},"required":["type","function"],"additionalProperties":false}]},"max_tokens":{"default":256,"type":"integer","minimum":1,"maximum":8192},"stream":{"default":false,"type":"boolean"},"response_format":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"text"}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"json_object"},"repair":{"type":"string","const":"syntax"}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"json_schema"},"repair":{"type":"string","const":"syntax"},"json_schema":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"},"strict":{"type":"boolean","const":true},"schema":{}},"required":["name","strict","schema"],"additionalProperties":false}},"required":["type","json_schema"],"additionalProperties":false}]},"input_assets":{"minItems":1,"maxItems":4,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"attachment_modalities":{"maxItems":4,"type":"array","items":{"type":"string","enum":["image_input","pdf_input","document_input","audio_input"]}},"attachment_payloads":{"maxItems":4,"type":"array","items":{"type":"object","properties":{"assetId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"filename":{"type":"string","minLength":1,"maxLength":180},"mediaType":{"type":"string","enum":["text/plain","text/markdown","application/pdf","image/png","audio/wav"]},"bytes":{"type":"integer","exclusiveMinimum":0,"maximum":65536},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"contentBase64":{"type":"string","minLength":1,"maxLength":87384}},"required":["assetId","filename","mediaType","bytes","sha256","contentBase64"],"additionalProperties":false}},"routing":{"type":"object","properties":{"sessionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"quality":{"type":"object","properties":{"seriesId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"minimumPassFraction":{"type":"number","minimum":0,"maximum":1},"minimumCases":{"default":3,"type":"integer","minimum":1,"maximum":20},"maxAgeSeconds":{"default":86400,"type":"integer","minimum":60,"maximum":604800},"allowFixtureEvidence":{"default":false,"type":"boolean"}},"required":["seriesId","minimumPassFraction"],"additionalProperties":false},"allowedSupplierIds":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,63}$"}},"blockedSupplierIds":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,63}$"}},"supplierOrder":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,63}$"}},"allowedQuantizations":{"maxItems":5,"type":"array","items":{"type":"string","enum":["fp32","fp16","bf16","int8","int4"]}},"maximumPriceMicros":{"type":"integer","minimum":0,"maximum":9007199254740991},"maximumLatencyMs":{"type":"integer","minimum":1,"maximum":86400000},"minimumOutputTokensPerSecond":{"type":"number","minimum":0,"maximum":1000000},"evidenceMaxAgeSeconds":{"type":"integer","minimum":60,"maximum":604800},"minimumEvidenceSamples":{"type":"integer","minimum":1,"maximum":1000},"allowedRegion":{"type":"string","enum":["local","ap-southeast-1","eu-central-1","us-east-1"]},"strategy":{"type":"string","enum":["priority","lowest_cost","lowest_latency","highest_throughput"]},"allowedChannelIds":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,63}$"}},"blockedChannelIds":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,63}$"}},"maximumRetention":{"type":"string","enum":["unknown","none","up_to_30_days"]},"allowTraining":{"type":"boolean"},"requireDeclaredRegion":{"type":"boolean"},"metadata":{"default":false,"type":"boolean"}},"additionalProperties":false}},"required":["model","messages"],"additionalProperties":false},{"type":"null"}]},"preparedInput":{"anyOf":[{"type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"top_p":{"type":"number","minimum":0,"maximum":1},"stop":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"minItems":1,"maxItems":4,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}}]},"seed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"presence_penalty":{"type":"number","minimum":-2,"maximum":2},"frequency_penalty":{"type":"number","minimum":-2,"maximum":2},"top_k":{"type":"integer","minimum":0,"maximum":9007199254740991},"reasoning_effort":{"type":"string","enum":["none","minimal","low","medium","high","xhigh","max"]},"service_tier":{"type":"string","enum":["default","flex","priority"]},"plugins":{"minItems":1,"maxItems":1,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","const":"context-compression"},"enabled":{"type":"boolean"}},"required":["id"],"additionalProperties":false}},"model":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"model_resolution":{"type":"object","properties":{"requestedModelId":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"canonicalModelId":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"governanceRevision":{"type":"integer","minimum":0,"maximum":9007199254740991},"priceVersion":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["requestedModelId","canonicalModelId","governanceRevision","priceVersion"],"additionalProperties":false},"price_version":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"publication_snapshot_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"publication_snapshot_hash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"maximum_micros":{"type":"integer","minimum":0,"maximum":9007199254740991},"messages":{"minItems":1,"maxItems":16,"type":"array","items":{"type":"object","properties":{"role":{"type":"string","enum":["system","user","assistant","tool"]},"content":{"default":"","type":"string","maxLength":65536},"tool_calls":{"minItems":1,"maxItems":4,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^(?:call_|toolu_)[A-Za-z0-9_-]{1,100}$"},"type":{"type":"string","const":"function"},"function":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_-]{0,63}$"},"arguments":{"type":"string","minLength":2,"maxLength":4000}},"required":["name","arguments"],"additionalProperties":false}},"required":["id","type","function"],"additionalProperties":false}},"tool_call_id":{"type":"string","pattern":"^(?:call_|toolu_)[A-Za-z0-9_-]{1,100}$"}},"required":["role"],"additionalProperties":false}},"tools":{"minItems":1,"maxItems":8,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","const":"function"},"function":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_-]{0,63}$"},"description":{"type":"string","maxLength":1000},"parameters":{},"strict":{"default":true,"type":"boolean","const":true}},"required":["name","parameters"],"additionalProperties":false}},"required":["type","function"],"additionalProperties":false}},"tool_choice":{"anyOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object","properties":{"type":{"type":"string","const":"function"},"function":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_-]{0,63}$"}},"required":["name"],"additionalProperties":false}},"required":["type","function"],"additionalProperties":false}]},"max_tokens":{"default":256,"type":"integer","minimum":1,"maximum":8192},"stream":{"default":false,"type":"boolean"},"response_format":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"text"}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"json_object"},"repair":{"type":"string","const":"syntax"}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"json_schema"},"repair":{"type":"string","const":"syntax"},"json_schema":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"},"strict":{"type":"boolean","const":true},"schema":{}},"required":["name","strict","schema"],"additionalProperties":false}},"required":["type","json_schema"],"additionalProperties":false}]},"input_assets":{"minItems":1,"maxItems":4,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"attachment_modalities":{"maxItems":4,"type":"array","items":{"type":"string","enum":["image_input","pdf_input","document_input","audio_input"]}},"attachment_payloads":{"maxItems":4,"type":"array","items":{"type":"object","properties":{"assetId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"filename":{"type":"string","minLength":1,"maxLength":180},"mediaType":{"type":"string","enum":["text/plain","text/markdown","application/pdf","image/png","audio/wav"]},"bytes":{"type":"integer","exclusiveMinimum":0,"maximum":65536},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"contentBase64":{"type":"string","minLength":1,"maxLength":87384}},"required":["assetId","filename","mediaType","bytes","sha256","contentBase64"],"additionalProperties":false}},"routing":{"type":"object","properties":{"sessionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"quality":{"type":"object","properties":{"seriesId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"minimumPassFraction":{"type":"number","minimum":0,"maximum":1},"minimumCases":{"default":3,"type":"integer","minimum":1,"maximum":20},"maxAgeSeconds":{"default":86400,"type":"integer","minimum":60,"maximum":604800},"allowFixtureEvidence":{"default":false,"type":"boolean"}},"required":["seriesId","minimumPassFraction"],"additionalProperties":false},"allowedSupplierIds":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,63}$"}},"blockedSupplierIds":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,63}$"}},"supplierOrder":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,63}$"}},"allowedQuantizations":{"maxItems":5,"type":"array","items":{"type":"string","enum":["fp32","fp16","bf16","int8","int4"]}},"maximumPriceMicros":{"type":"integer","minimum":0,"maximum":9007199254740991},"maximumLatencyMs":{"type":"integer","minimum":1,"maximum":86400000},"minimumOutputTokensPerSecond":{"type":"number","minimum":0,"maximum":1000000},"evidenceMaxAgeSeconds":{"type":"integer","minimum":60,"maximum":604800},"minimumEvidenceSamples":{"type":"integer","minimum":1,"maximum":1000},"allowedRegion":{"type":"string","enum":["local","ap-southeast-1","eu-central-1","us-east-1"]},"strategy":{"type":"string","enum":["priority","lowest_cost","lowest_latency","highest_throughput"]},"allowedChannelIds":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,63}$"}},"blockedChannelIds":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,63}$"}},"maximumRetention":{"type":"string","enum":["unknown","none","up_to_30_days"]},"allowTraining":{"type":"boolean"},"requireDeclaredRegion":{"type":"boolean"},"metadata":{"default":false,"type":"boolean"}},"additionalProperties":false}},"required":["model","messages"],"additionalProperties":false},{"type":"null"}]},"sources":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":0,"maximum":5},"generationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["position","generationId"],"additionalProperties":false}},"error":{"type":["string","null"]},"output":{"type":["string","null"]},"usage":{"anyOf":[{"type":"object","properties":{"status":{"type":"string","enum":["confirmed","unknown"]},"input_units":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"output_units":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"sales_micros":{"type":["string","null"]},"unit":{"type":"string","enum":["unicode_character","token"]},"source":{"type":"string","enum":["sandbox_adapter","mock_token_fixture_v1","declared_context_bound_v1"]},"token_usage":{"anyOf":[{},{"type":"null"}]}},"required":["status","input_units","output_units","sales_micros","unit","source","token_usage"],"additionalProperties":false},{"type":"null"}]},"heldMicros":{"type":"string","pattern":"^\\d+$"},"confirmedSalesMicros":{"anyOf":[{"type":"string","pattern":"^\\d+$"},{"type":"null"}]},"priceVersion":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"quotedMaximumMicros":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]}},"required":["id","position","model","stage","state","generationId","input","preparedInput","sources","error","output","usage","heldMicros","confirmedSalesMicros","priceVersion","quotedMaximumMicros"],"additionalProperties":false}}},"required":["id","plan","revision","createdAt","progress","confirmedSalesMicros","heldMicros","unconfirmedGenerations","unresolvedAdmissions","finalOutput","steps"],"additionalProperties":false},"FusionCreateResult":{"type":"object","properties":{"created":{"type":"boolean"},"detail":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"plan":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":100},"prompt":{"type":"string","minLength":1,"maxLength":4000},"maximumMicros":{"type":"integer","minimum":0,"maximum":9007199254740991},"steps":{"minItems":4,"maxItems":6,"type":"array","items":{"type":"object","properties":{"stage":{"type":"string","enum":["discussion","analysis","synthesis"]},"model":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"maxTokens":{"type":"integer","minimum":1,"maximum":512},"maximumMicros":{"type":"integer","minimum":0,"maximum":9007199254740991},"instruction":{"default":"","type":"string","maxLength":1000}},"required":["stage","model","maxTokens","maximumMicros"],"additionalProperties":false}}},"required":["title","prompt","maximumMicros","steps"],"additionalProperties":false},"revision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"progress":{"type":"object","properties":{"state":{"type":"string","enum":["ready","waiting","blocked","completed"]},"positions":{"type":"array","items":{"type":"integer","minimum":0,"maximum":5}},"reason":{"type":["string","null"]}},"required":["state","positions","reason"],"additionalProperties":false},"confirmedSalesMicros":{"type":"string","pattern":"^\\d+$"},"heldMicros":{"type":"string","pattern":"^\\d+$"},"unconfirmedGenerations":{"type":"integer","minimum":0,"maximum":9007199254740991},"unresolvedAdmissions":{"type":"array","items":{"type":"object","properties":{"stepId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"quotedMaximumMicros":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]}},"required":["stepId","quotedMaximumMicros"],"additionalProperties":false}},"finalOutput":{"type":["string","null"]},"steps":{"minItems":4,"maxItems":6,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"position":{"type":"integer","minimum":0,"maximum":5},"model":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"stage":{"type":"string","enum":["discussion","analysis","synthesis"]},"state":{"type":"string","enum":["planned","submitting","awaiting_funds","accepted","running","cancel_requested","cancelled","needs_reconciliation","completed","failed"]},"generationId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"input":{"anyOf":[{"type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"top_p":{"type":"number","minimum":0,"maximum":1},"stop":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"minItems":1,"maxItems":4,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}}]},"seed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"presence_penalty":{"type":"number","minimum":-2,"maximum":2},"frequency_penalty":{"type":"number","minimum":-2,"maximum":2},"top_k":{"type":"integer","minimum":0,"maximum":9007199254740991},"reasoning_effort":{"type":"string","enum":["none","minimal","low","medium","high","xhigh","max"]},"service_tier":{"type":"string","enum":["default","flex","priority"]},"plugins":{"minItems":1,"maxItems":1,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","const":"context-compression"},"enabled":{"type":"boolean"}},"required":["id"],"additionalProperties":false}},"model":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"model_resolution":{"type":"object","properties":{"requestedModelId":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"canonicalModelId":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"governanceRevision":{"type":"integer","minimum":0,"maximum":9007199254740991},"priceVersion":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["requestedModelId","canonicalModelId","governanceRevision","priceVersion"],"additionalProperties":false},"price_version":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"publication_snapshot_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"publication_snapshot_hash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"maximum_micros":{"type":"integer","minimum":0,"maximum":9007199254740991},"messages":{"minItems":1,"maxItems":16,"type":"array","items":{"type":"object","properties":{"role":{"type":"string","enum":["system","user","assistant","tool"]},"content":{"default":"","type":"string","maxLength":65536},"tool_calls":{"minItems":1,"maxItems":4,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^(?:call_|toolu_)[A-Za-z0-9_-]{1,100}$"},"type":{"type":"string","const":"function"},"function":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_-]{0,63}$"},"arguments":{"type":"string","minLength":2,"maxLength":4000}},"required":["name","arguments"],"additionalProperties":false}},"required":["id","type","function"],"additionalProperties":false}},"tool_call_id":{"type":"string","pattern":"^(?:call_|toolu_)[A-Za-z0-9_-]{1,100}$"}},"required":["role"],"additionalProperties":false}},"tools":{"minItems":1,"maxItems":8,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","const":"function"},"function":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_-]{0,63}$"},"description":{"type":"string","maxLength":1000},"parameters":{},"strict":{"default":true,"type":"boolean","const":true}},"required":["name","parameters"],"additionalProperties":false}},"required":["type","function"],"additionalProperties":false}},"tool_choice":{"anyOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object","properties":{"type":{"type":"string","const":"function"},"function":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_-]{0,63}$"}},"required":["name"],"additionalProperties":false}},"required":["type","function"],"additionalProperties":false}]},"max_tokens":{"default":256,"type":"integer","minimum":1,"maximum":8192},"stream":{"default":false,"type":"boolean"},"response_format":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"text"}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"json_object"},"repair":{"type":"string","const":"syntax"}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"json_schema"},"repair":{"type":"string","const":"syntax"},"json_schema":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"},"strict":{"type":"boolean","const":true},"schema":{}},"required":["name","strict","schema"],"additionalProperties":false}},"required":["type","json_schema"],"additionalProperties":false}]},"input_assets":{"minItems":1,"maxItems":4,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"attachment_modalities":{"maxItems":4,"type":"array","items":{"type":"string","enum":["image_input","pdf_input","document_input","audio_input"]}},"attachment_payloads":{"maxItems":4,"type":"array","items":{"type":"object","properties":{"assetId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"filename":{"type":"string","minLength":1,"maxLength":180},"mediaType":{"type":"string","enum":["text/plain","text/markdown","application/pdf","image/png","audio/wav"]},"bytes":{"type":"integer","exclusiveMinimum":0,"maximum":65536},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"contentBase64":{"type":"string","minLength":1,"maxLength":87384}},"required":["assetId","filename","mediaType","bytes","sha256","contentBase64"],"additionalProperties":false}},"routing":{"type":"object","properties":{"sessionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"quality":{"type":"object","properties":{"seriesId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"minimumPassFraction":{"type":"number","minimum":0,"maximum":1},"minimumCases":{"default":3,"type":"integer","minimum":1,"maximum":20},"maxAgeSeconds":{"default":86400,"type":"integer","minimum":60,"maximum":604800},"allowFixtureEvidence":{"default":false,"type":"boolean"}},"required":["seriesId","minimumPassFraction"],"additionalProperties":false},"allowedSupplierIds":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,63}$"}},"blockedSupplierIds":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,63}$"}},"supplierOrder":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,63}$"}},"allowedQuantizations":{"maxItems":5,"type":"array","items":{"type":"string","enum":["fp32","fp16","bf16","int8","int4"]}},"maximumPriceMicros":{"type":"integer","minimum":0,"maximum":9007199254740991},"maximumLatencyMs":{"type":"integer","minimum":1,"maximum":86400000},"minimumOutputTokensPerSecond":{"type":"number","minimum":0,"maximum":1000000},"evidenceMaxAgeSeconds":{"type":"integer","minimum":60,"maximum":604800},"minimumEvidenceSamples":{"type":"integer","minimum":1,"maximum":1000},"allowedRegion":{"type":"string","enum":["local","ap-southeast-1","eu-central-1","us-east-1"]},"strategy":{"type":"string","enum":["priority","lowest_cost","lowest_latency","highest_throughput"]},"allowedChannelIds":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,63}$"}},"blockedChannelIds":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,63}$"}},"maximumRetention":{"type":"string","enum":["unknown","none","up_to_30_days"]},"allowTraining":{"type":"boolean"},"requireDeclaredRegion":{"type":"boolean"},"metadata":{"default":false,"type":"boolean"}},"additionalProperties":false}},"required":["model","messages"],"additionalProperties":false},{"type":"null"}]},"preparedInput":{"anyOf":[{"type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"top_p":{"type":"number","minimum":0,"maximum":1},"stop":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"minItems":1,"maxItems":4,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}}]},"seed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"presence_penalty":{"type":"number","minimum":-2,"maximum":2},"frequency_penalty":{"type":"number","minimum":-2,"maximum":2},"top_k":{"type":"integer","minimum":0,"maximum":9007199254740991},"reasoning_effort":{"type":"string","enum":["none","minimal","low","medium","high","xhigh","max"]},"service_tier":{"type":"string","enum":["default","flex","priority"]},"plugins":{"minItems":1,"maxItems":1,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","const":"context-compression"},"enabled":{"type":"boolean"}},"required":["id"],"additionalProperties":false}},"model":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"model_resolution":{"type":"object","properties":{"requestedModelId":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"canonicalModelId":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"governanceRevision":{"type":"integer","minimum":0,"maximum":9007199254740991},"priceVersion":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["requestedModelId","canonicalModelId","governanceRevision","priceVersion"],"additionalProperties":false},"price_version":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"publication_snapshot_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"publication_snapshot_hash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"maximum_micros":{"type":"integer","minimum":0,"maximum":9007199254740991},"messages":{"minItems":1,"maxItems":16,"type":"array","items":{"type":"object","properties":{"role":{"type":"string","enum":["system","user","assistant","tool"]},"content":{"default":"","type":"string","maxLength":65536},"tool_calls":{"minItems":1,"maxItems":4,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^(?:call_|toolu_)[A-Za-z0-9_-]{1,100}$"},"type":{"type":"string","const":"function"},"function":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_-]{0,63}$"},"arguments":{"type":"string","minLength":2,"maxLength":4000}},"required":["name","arguments"],"additionalProperties":false}},"required":["id","type","function"],"additionalProperties":false}},"tool_call_id":{"type":"string","pattern":"^(?:call_|toolu_)[A-Za-z0-9_-]{1,100}$"}},"required":["role"],"additionalProperties":false}},"tools":{"minItems":1,"maxItems":8,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","const":"function"},"function":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_-]{0,63}$"},"description":{"type":"string","maxLength":1000},"parameters":{},"strict":{"default":true,"type":"boolean","const":true}},"required":["name","parameters"],"additionalProperties":false}},"required":["type","function"],"additionalProperties":false}},"tool_choice":{"anyOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object","properties":{"type":{"type":"string","const":"function"},"function":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_-]{0,63}$"}},"required":["name"],"additionalProperties":false}},"required":["type","function"],"additionalProperties":false}]},"max_tokens":{"default":256,"type":"integer","minimum":1,"maximum":8192},"stream":{"default":false,"type":"boolean"},"response_format":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"text"}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"json_object"},"repair":{"type":"string","const":"syntax"}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"json_schema"},"repair":{"type":"string","const":"syntax"},"json_schema":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"},"strict":{"type":"boolean","const":true},"schema":{}},"required":["name","strict","schema"],"additionalProperties":false}},"required":["type","json_schema"],"additionalProperties":false}]},"input_assets":{"minItems":1,"maxItems":4,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"attachment_modalities":{"maxItems":4,"type":"array","items":{"type":"string","enum":["image_input","pdf_input","document_input","audio_input"]}},"attachment_payloads":{"maxItems":4,"type":"array","items":{"type":"object","properties":{"assetId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"filename":{"type":"string","minLength":1,"maxLength":180},"mediaType":{"type":"string","enum":["text/plain","text/markdown","application/pdf","image/png","audio/wav"]},"bytes":{"type":"integer","exclusiveMinimum":0,"maximum":65536},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"contentBase64":{"type":"string","minLength":1,"maxLength":87384}},"required":["assetId","filename","mediaType","bytes","sha256","contentBase64"],"additionalProperties":false}},"routing":{"type":"object","properties":{"sessionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"quality":{"type":"object","properties":{"seriesId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"minimumPassFraction":{"type":"number","minimum":0,"maximum":1},"minimumCases":{"default":3,"type":"integer","minimum":1,"maximum":20},"maxAgeSeconds":{"default":86400,"type":"integer","minimum":60,"maximum":604800},"allowFixtureEvidence":{"default":false,"type":"boolean"}},"required":["seriesId","minimumPassFraction"],"additionalProperties":false},"allowedSupplierIds":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,63}$"}},"blockedSupplierIds":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,63}$"}},"supplierOrder":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,63}$"}},"allowedQuantizations":{"maxItems":5,"type":"array","items":{"type":"string","enum":["fp32","fp16","bf16","int8","int4"]}},"maximumPriceMicros":{"type":"integer","minimum":0,"maximum":9007199254740991},"maximumLatencyMs":{"type":"integer","minimum":1,"maximum":86400000},"minimumOutputTokensPerSecond":{"type":"number","minimum":0,"maximum":1000000},"evidenceMaxAgeSeconds":{"type":"integer","minimum":60,"maximum":604800},"minimumEvidenceSamples":{"type":"integer","minimum":1,"maximum":1000},"allowedRegion":{"type":"string","enum":["local","ap-southeast-1","eu-central-1","us-east-1"]},"strategy":{"type":"string","enum":["priority","lowest_cost","lowest_latency","highest_throughput"]},"allowedChannelIds":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,63}$"}},"blockedChannelIds":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,63}$"}},"maximumRetention":{"type":"string","enum":["unknown","none","up_to_30_days"]},"allowTraining":{"type":"boolean"},"requireDeclaredRegion":{"type":"boolean"},"metadata":{"default":false,"type":"boolean"}},"additionalProperties":false}},"required":["model","messages"],"additionalProperties":false},{"type":"null"}]},"sources":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":0,"maximum":5},"generationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["position","generationId"],"additionalProperties":false}},"error":{"type":["string","null"]},"output":{"type":["string","null"]},"usage":{"anyOf":[{"type":"object","properties":{"status":{"type":"string","enum":["confirmed","unknown"]},"input_units":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"output_units":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"sales_micros":{"type":["string","null"]},"unit":{"type":"string","enum":["unicode_character","token"]},"source":{"type":"string","enum":["sandbox_adapter","mock_token_fixture_v1","declared_context_bound_v1"]},"token_usage":{"anyOf":[{},{"type":"null"}]}},"required":["status","input_units","output_units","sales_micros","unit","source","token_usage"],"additionalProperties":false},{"type":"null"}]},"heldMicros":{"type":"string","pattern":"^\\d+$"},"confirmedSalesMicros":{"anyOf":[{"type":"string","pattern":"^\\d+$"},{"type":"null"}]},"priceVersion":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"quotedMaximumMicros":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]}},"required":["id","position","model","stage","state","generationId","input","preparedInput","sources","error","output","usage","heldMicros","confirmedSalesMicros","priceVersion","quotedMaximumMicros"],"additionalProperties":false}}},"required":["id","plan","revision","createdAt","progress","confirmedSalesMicros","heldMicros","unconfirmedGenerations","unresolvedAdmissions","finalOutput","steps"],"additionalProperties":false}},"required":["created","detail"],"additionalProperties":false},"FusionResumeResult":{"type":"object","properties":{"detail":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"plan":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":100},"prompt":{"type":"string","minLength":1,"maxLength":4000},"maximumMicros":{"type":"integer","minimum":0,"maximum":9007199254740991},"steps":{"minItems":4,"maxItems":6,"type":"array","items":{"type":"object","properties":{"stage":{"type":"string","enum":["discussion","analysis","synthesis"]},"model":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"maxTokens":{"type":"integer","minimum":1,"maximum":512},"maximumMicros":{"type":"integer","minimum":0,"maximum":9007199254740991},"instruction":{"default":"","type":"string","maxLength":1000}},"required":["stage","model","maxTokens","maximumMicros"],"additionalProperties":false}}},"required":["title","prompt","maximumMicros","steps"],"additionalProperties":false},"revision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"progress":{"type":"object","properties":{"state":{"type":"string","enum":["ready","waiting","blocked","completed"]},"positions":{"type":"array","items":{"type":"integer","minimum":0,"maximum":5}},"reason":{"type":["string","null"]}},"required":["state","positions","reason"],"additionalProperties":false},"confirmedSalesMicros":{"type":"string","pattern":"^\\d+$"},"heldMicros":{"type":"string","pattern":"^\\d+$"},"unconfirmedGenerations":{"type":"integer","minimum":0,"maximum":9007199254740991},"unresolvedAdmissions":{"type":"array","items":{"type":"object","properties":{"stepId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"quotedMaximumMicros":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]}},"required":["stepId","quotedMaximumMicros"],"additionalProperties":false}},"finalOutput":{"type":["string","null"]},"steps":{"minItems":4,"maxItems":6,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"position":{"type":"integer","minimum":0,"maximum":5},"model":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"stage":{"type":"string","enum":["discussion","analysis","synthesis"]},"state":{"type":"string","enum":["planned","submitting","awaiting_funds","accepted","running","cancel_requested","cancelled","needs_reconciliation","completed","failed"]},"generationId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"input":{"anyOf":[{"type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"top_p":{"type":"number","minimum":0,"maximum":1},"stop":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"minItems":1,"maxItems":4,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}}]},"seed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"presence_penalty":{"type":"number","minimum":-2,"maximum":2},"frequency_penalty":{"type":"number","minimum":-2,"maximum":2},"top_k":{"type":"integer","minimum":0,"maximum":9007199254740991},"reasoning_effort":{"type":"string","enum":["none","minimal","low","medium","high","xhigh","max"]},"service_tier":{"type":"string","enum":["default","flex","priority"]},"plugins":{"minItems":1,"maxItems":1,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","const":"context-compression"},"enabled":{"type":"boolean"}},"required":["id"],"additionalProperties":false}},"model":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"model_resolution":{"type":"object","properties":{"requestedModelId":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"canonicalModelId":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"governanceRevision":{"type":"integer","minimum":0,"maximum":9007199254740991},"priceVersion":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["requestedModelId","canonicalModelId","governanceRevision","priceVersion"],"additionalProperties":false},"price_version":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"publication_snapshot_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"publication_snapshot_hash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"maximum_micros":{"type":"integer","minimum":0,"maximum":9007199254740991},"messages":{"minItems":1,"maxItems":16,"type":"array","items":{"type":"object","properties":{"role":{"type":"string","enum":["system","user","assistant","tool"]},"content":{"default":"","type":"string","maxLength":65536},"tool_calls":{"minItems":1,"maxItems":4,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^(?:call_|toolu_)[A-Za-z0-9_-]{1,100}$"},"type":{"type":"string","const":"function"},"function":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_-]{0,63}$"},"arguments":{"type":"string","minLength":2,"maxLength":4000}},"required":["name","arguments"],"additionalProperties":false}},"required":["id","type","function"],"additionalProperties":false}},"tool_call_id":{"type":"string","pattern":"^(?:call_|toolu_)[A-Za-z0-9_-]{1,100}$"}},"required":["role"],"additionalProperties":false}},"tools":{"minItems":1,"maxItems":8,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","const":"function"},"function":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_-]{0,63}$"},"description":{"type":"string","maxLength":1000},"parameters":{},"strict":{"default":true,"type":"boolean","const":true}},"required":["name","parameters"],"additionalProperties":false}},"required":["type","function"],"additionalProperties":false}},"tool_choice":{"anyOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object","properties":{"type":{"type":"string","const":"function"},"function":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_-]{0,63}$"}},"required":["name"],"additionalProperties":false}},"required":["type","function"],"additionalProperties":false}]},"max_tokens":{"default":256,"type":"integer","minimum":1,"maximum":8192},"stream":{"default":false,"type":"boolean"},"response_format":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"text"}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"json_object"},"repair":{"type":"string","const":"syntax"}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"json_schema"},"repair":{"type":"string","const":"syntax"},"json_schema":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"},"strict":{"type":"boolean","const":true},"schema":{}},"required":["name","strict","schema"],"additionalProperties":false}},"required":["type","json_schema"],"additionalProperties":false}]},"input_assets":{"minItems":1,"maxItems":4,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"attachment_modalities":{"maxItems":4,"type":"array","items":{"type":"string","enum":["image_input","pdf_input","document_input","audio_input"]}},"attachment_payloads":{"maxItems":4,"type":"array","items":{"type":"object","properties":{"assetId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"filename":{"type":"string","minLength":1,"maxLength":180},"mediaType":{"type":"string","enum":["text/plain","text/markdown","application/pdf","image/png","audio/wav"]},"bytes":{"type":"integer","exclusiveMinimum":0,"maximum":65536},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"contentBase64":{"type":"string","minLength":1,"maxLength":87384}},"required":["assetId","filename","mediaType","bytes","sha256","contentBase64"],"additionalProperties":false}},"routing":{"type":"object","properties":{"sessionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"quality":{"type":"object","properties":{"seriesId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"minimumPassFraction":{"type":"number","minimum":0,"maximum":1},"minimumCases":{"default":3,"type":"integer","minimum":1,"maximum":20},"maxAgeSeconds":{"default":86400,"type":"integer","minimum":60,"maximum":604800},"allowFixtureEvidence":{"default":false,"type":"boolean"}},"required":["seriesId","minimumPassFraction"],"additionalProperties":false},"allowedSupplierIds":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,63}$"}},"blockedSupplierIds":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,63}$"}},"supplierOrder":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,63}$"}},"allowedQuantizations":{"maxItems":5,"type":"array","items":{"type":"string","enum":["fp32","fp16","bf16","int8","int4"]}},"maximumPriceMicros":{"type":"integer","minimum":0,"maximum":9007199254740991},"maximumLatencyMs":{"type":"integer","minimum":1,"maximum":86400000},"minimumOutputTokensPerSecond":{"type":"number","minimum":0,"maximum":1000000},"evidenceMaxAgeSeconds":{"type":"integer","minimum":60,"maximum":604800},"minimumEvidenceSamples":{"type":"integer","minimum":1,"maximum":1000},"allowedRegion":{"type":"string","enum":["local","ap-southeast-1","eu-central-1","us-east-1"]},"strategy":{"type":"string","enum":["priority","lowest_cost","lowest_latency","highest_throughput"]},"allowedChannelIds":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,63}$"}},"blockedChannelIds":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,63}$"}},"maximumRetention":{"type":"string","enum":["unknown","none","up_to_30_days"]},"allowTraining":{"type":"boolean"},"requireDeclaredRegion":{"type":"boolean"},"metadata":{"default":false,"type":"boolean"}},"additionalProperties":false}},"required":["model","messages"],"additionalProperties":false},{"type":"null"}]},"preparedInput":{"anyOf":[{"type":"object","properties":{"temperature":{"type":"number","minimum":0,"maximum":2},"top_p":{"type":"number","minimum":0,"maximum":1},"stop":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"minItems":1,"maxItems":4,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}}]},"seed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"presence_penalty":{"type":"number","minimum":-2,"maximum":2},"frequency_penalty":{"type":"number","minimum":-2,"maximum":2},"top_k":{"type":"integer","minimum":0,"maximum":9007199254740991},"reasoning_effort":{"type":"string","enum":["none","minimal","low","medium","high","xhigh","max"]},"service_tier":{"type":"string","enum":["default","flex","priority"]},"plugins":{"minItems":1,"maxItems":1,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","const":"context-compression"},"enabled":{"type":"boolean"}},"required":["id"],"additionalProperties":false}},"model":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"model_resolution":{"type":"object","properties":{"requestedModelId":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"canonicalModelId":{"type":"string","pattern":"^(?!private\\/)[a-z0-9][a-z0-9.-]{0,63}\\/[a-z0-9][a-z0-9.-]{0,63}$"},"governanceRevision":{"type":"integer","minimum":0,"maximum":9007199254740991},"priceVersion":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["requestedModelId","canonicalModelId","governanceRevision","priceVersion"],"additionalProperties":false},"price_version":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"publication_snapshot_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"publication_snapshot_hash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"maximum_micros":{"type":"integer","minimum":0,"maximum":9007199254740991},"messages":{"minItems":1,"maxItems":16,"type":"array","items":{"type":"object","properties":{"role":{"type":"string","enum":["system","user","assistant","tool"]},"content":{"default":"","type":"string","maxLength":65536},"tool_calls":{"minItems":1,"maxItems":4,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^(?:call_|toolu_)[A-Za-z0-9_-]{1,100}$"},"type":{"type":"string","const":"function"},"function":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_-]{0,63}$"},"arguments":{"type":"string","minLength":2,"maxLength":4000}},"required":["name","arguments"],"additionalProperties":false}},"required":["id","type","function"],"additionalProperties":false}},"tool_call_id":{"type":"string","pattern":"^(?:call_|toolu_)[A-Za-z0-9_-]{1,100}$"}},"required":["role"],"additionalProperties":false}},"tools":{"minItems":1,"maxItems":8,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","const":"function"},"function":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_-]{0,63}$"},"description":{"type":"string","maxLength":1000},"parameters":{},"strict":{"default":true,"type":"boolean","const":true}},"required":["name","parameters"],"additionalProperties":false}},"required":["type","function"],"additionalProperties":false}},"tool_choice":{"anyOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object","properties":{"type":{"type":"string","const":"function"},"function":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_-]{0,63}$"}},"required":["name"],"additionalProperties":false}},"required":["type","function"],"additionalProperties":false}]},"max_tokens":{"default":256,"type":"integer","minimum":1,"maximum":8192},"stream":{"default":false,"type":"boolean"},"response_format":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"text"}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"json_object"},"repair":{"type":"string","const":"syntax"}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"json_schema"},"repair":{"type":"string","const":"syntax"},"json_schema":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"},"strict":{"type":"boolean","const":true},"schema":{}},"required":["name","strict","schema"],"additionalProperties":false}},"required":["type","json_schema"],"additionalProperties":false}]},"input_assets":{"minItems":1,"maxItems":4,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"attachment_modalities":{"maxItems":4,"type":"array","items":{"type":"string","enum":["image_input","pdf_input","document_input","audio_input"]}},"attachment_payloads":{"maxItems":4,"type":"array","items":{"type":"object","properties":{"assetId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"filename":{"type":"string","minLength":1,"maxLength":180},"mediaType":{"type":"string","enum":["text/plain","text/markdown","application/pdf","image/png","audio/wav"]},"bytes":{"type":"integer","exclusiveMinimum":0,"maximum":65536},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"contentBase64":{"type":"string","minLength":1,"maxLength":87384}},"required":["assetId","filename","mediaType","bytes","sha256","contentBase64"],"additionalProperties":false}},"routing":{"type":"object","properties":{"sessionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"quality":{"type":"object","properties":{"seriesId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"minimumPassFraction":{"type":"number","minimum":0,"maximum":1},"minimumCases":{"default":3,"type":"integer","minimum":1,"maximum":20},"maxAgeSeconds":{"default":86400,"type":"integer","minimum":60,"maximum":604800},"allowFixtureEvidence":{"default":false,"type":"boolean"}},"required":["seriesId","minimumPassFraction"],"additionalProperties":false},"allowedSupplierIds":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,63}$"}},"blockedSupplierIds":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,63}$"}},"supplierOrder":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,63}$"}},"allowedQuantizations":{"maxItems":5,"type":"array","items":{"type":"string","enum":["fp32","fp16","bf16","int8","int4"]}},"maximumPriceMicros":{"type":"integer","minimum":0,"maximum":9007199254740991},"maximumLatencyMs":{"type":"integer","minimum":1,"maximum":86400000},"minimumOutputTokensPerSecond":{"type":"number","minimum":0,"maximum":1000000},"evidenceMaxAgeSeconds":{"type":"integer","minimum":60,"maximum":604800},"minimumEvidenceSamples":{"type":"integer","minimum":1,"maximum":1000},"allowedRegion":{"type":"string","enum":["local","ap-southeast-1","eu-central-1","us-east-1"]},"strategy":{"type":"string","enum":["priority","lowest_cost","lowest_latency","highest_throughput"]},"allowedChannelIds":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,63}$"}},"blockedChannelIds":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,63}$"}},"maximumRetention":{"type":"string","enum":["unknown","none","up_to_30_days"]},"allowTraining":{"type":"boolean"},"requireDeclaredRegion":{"type":"boolean"},"metadata":{"default":false,"type":"boolean"}},"additionalProperties":false}},"required":["model","messages"],"additionalProperties":false},{"type":"null"}]},"sources":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":0,"maximum":5},"generationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["position","generationId"],"additionalProperties":false}},"error":{"type":["string","null"]},"output":{"type":["string","null"]},"usage":{"anyOf":[{"type":"object","properties":{"status":{"type":"string","enum":["confirmed","unknown"]},"input_units":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"output_units":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"sales_micros":{"type":["string","null"]},"unit":{"type":"string","enum":["unicode_character","token"]},"source":{"type":"string","enum":["sandbox_adapter","mock_token_fixture_v1","declared_context_bound_v1"]},"token_usage":{"anyOf":[{},{"type":"null"}]}},"required":["status","input_units","output_units","sales_micros","unit","source","token_usage"],"additionalProperties":false},{"type":"null"}]},"heldMicros":{"type":"string","pattern":"^\\d+$"},"confirmedSalesMicros":{"anyOf":[{"type":"string","pattern":"^\\d+$"},{"type":"null"}]},"priceVersion":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"quotedMaximumMicros":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]}},"required":["id","position","model","stage","state","generationId","input","preparedInput","sources","error","output","usage","heldMicros","confirmedSalesMicros","priceVersion","quotedMaximumMicros"],"additionalProperties":false}}},"required":["id","plan","revision","createdAt","progress","confirmedSalesMicros","heldMicros","unconfirmedGenerations","unresolvedAdmissions","finalOutput","steps"],"additionalProperties":false}},"required":["detail"],"additionalProperties":false},"FusionPage":{"type":"object","properties":{"data":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"prompt":{"type":"string"},"maximumMicros":{"type":"integer","minimum":0,"maximum":9007199254740991},"revision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","title","prompt","maximumMicros","revision","createdAt"],"additionalProperties":false}},"nextCursor":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["data","nextCursor"],"additionalProperties":false},"FusionCancel":{"type":"object","properties":{"expectedGenerationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["expectedGenerationId"],"additionalProperties":false},"AudioStreamFrame":{"oneOf":[{"type":"object","properties":{"version":{"type":"number","const":1},"taskId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"attemptId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"format":{"type":"object","properties":{"encoding":{"type":"string","const":"pcm_s16le"},"sampleRate":{"type":"number","const":8000},"channels":{"type":"number","const":1},"samplesPerChunk":{"type":"number","const":800}},"required":["encoding","sampleRate","channels","samplesPerChunk"],"additionalProperties":false},"committedCursor":{"type":"integer","minimum":0,"maximum":300},"nextCursor":{"type":"integer","minimum":0,"maximum":300},"taskState":{"type":"string","enum":["accepted","running","succeeded","failed","needs_reconciliation"]},"final":{"anyOf":[{"type":"object","properties":{"receiptId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"lastSequence":{"type":"integer","minimum":1,"maximum":300},"totalSamples":{"type":"integer","minimum":1,"maximum":240000},"pcmSha256":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["receiptId","lastSequence","totalSamples","pcmSha256"],"additionalProperties":false},{"type":"null"}]},"state":{"type":"string","const":"chunk"},"chunk":{"type":"object","properties":{"sequence":{"type":"integer","minimum":1,"maximum":300},"sampleOffset":{"type":"integer","minimum":0,"maximum":239999},"samples":{"type":"integer","minimum":1,"maximum":800},"bytes":{"type":"integer","minimum":2,"maximum":1600},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"dataBase64":{"type":"string","minLength":4,"maxLength":2136,"pattern":"^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$"}},"required":["sequence","sampleOffset","samples","bytes","sha256","dataBase64"],"additionalProperties":false}},"required":["version","taskId","attemptId","expiresAt","format","committedCursor","nextCursor","taskState","final","state","chunk"],"additionalProperties":false},{"type":"object","properties":{"version":{"type":"number","const":1},"taskId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"attemptId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"format":{"type":"object","properties":{"encoding":{"type":"string","const":"pcm_s16le"},"sampleRate":{"type":"number","const":8000},"channels":{"type":"number","const":1},"samplesPerChunk":{"type":"number","const":800}},"required":["encoding","sampleRate","channels","samplesPerChunk"],"additionalProperties":false},"committedCursor":{"type":"integer","minimum":0,"maximum":300},"nextCursor":{"type":"integer","minimum":0,"maximum":300},"taskState":{"type":"string","enum":["accepted","running","succeeded","failed","needs_reconciliation"]},"final":{"anyOf":[{"type":"object","properties":{"receiptId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"lastSequence":{"type":"integer","minimum":1,"maximum":300},"totalSamples":{"type":"integer","minimum":1,"maximum":240000},"pcmSha256":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["receiptId","lastSequence","totalSamples","pcmSha256"],"additionalProperties":false},{"type":"null"}]},"state":{"type":"string","enum":["pending","terminal"]}},"required":["version","taskId","attemptId","expiresAt","format","committedCursor","nextCursor","taskState","final","state"],"additionalProperties":false}]}}}}