{"openapi":"3.1.0","info":{"title":"Model Relay Sandbox Inference API","version":"1.0.0","description":"The currently implemented sandbox text inference surface. It has OpenAI-shaped chat responses but does not claim complete OpenAI API compatibility."},"servers":[{"url":"/","description":"Current Model Relay gateway"}],"paths":{"/v1/models":{"get":{"summary":"List published customer-visible models","responses":{"200":{"description":"Published models; procurement configuration is omitted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelList"}}}},"default":{"$ref":"#/components/responses/Error"}}}},"/v1/quotes":{"post":{"summary":"Calculate a non-reserving quote","security":[{"bearerAuth":[]},{"sessionCookie":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatInput"}}}},"responses":{"200":{"description":"Versioned character or token quote","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteResponse"}}}},"default":{"$ref":"#/components/responses/Error"}}}},"/v1/chat/completions":{"post":{"summary":"Run one synchronous or streamed sandbox text completion","description":"Idempotent admission and settlement. A replay may return a request envelope with HTTP 200 or 202 instead of reconnecting to an upstream stream.","security":[{"bearerAuth":[]},{"sessionCookie":[]}],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatInput"}}}},"responses":{"200":{"description":"Completion JSON when stream=false, SSE events when stream=true, or a replay envelope","headers":{"x-request-id":{"schema":{"type":"string","format":"uuid"}},"idempotency-key":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CharacterCompletion"},{"$ref":"#/components/schemas/TokenCompletion"},{"$ref":"#/components/schemas/ReplayResponse"}]}},"text/event-stream":{"schema":{"type":"string","description":"UTF-8 SSE data frames containing chat.completion.chunk objects. A completed stream ends with data: [DONE]. Character final frames use relay_usage; token final frames use usage. Error frames can report provider_unavailable, settlement_pending, or needs_reconciliation before the stream ends."}}}},"202":{"description":"Settlement pending or non-terminal replay","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/PendingCompletion"},{"$ref":"#/components/schemas/ReplayResponse"}]}}}},"default":{"$ref":"#/components/responses/Error"}}}},"/v1/tasks":{"post":{"summary":"Queue an asynchronous token-metered text task","security":[{"bearerAuth":[]},{"sessionCookie":[]}],"parameters":[{"$ref":"#/components/parameters/RequiredIdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskCreate"}}}},"responses":{"200":{"description":"Idempotent replay","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskCreated"}}}},"202":{"description":"New task queued","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskCreated"}}}},"default":{"$ref":"#/components/responses/Error"}}},"get":{"summary":"List up to 50 visible tasks, newest first","security":[{"bearerAuth":[]},{"sessionCookie":[]}],"responses":{"200":{"description":"Authorized records, ordered by creation time and ID descending; up to limit records and a nextCursor.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","maxItems":100,"items":{"$ref":"#/components/schemas/Task"}},"nextCursor":{"type":["string","null"],"format":"uuid","description":"Pass this value as after for older records; null means there are no further records."}},"additionalProperties":false}}}},"default":{"$ref":"#/components/responses/Error"}},"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":50},"description":"Maximum records per page."},{"name":"after","in":"query","required":false,"schema":{"type":"string","format":"uuid"},"description":"Use the previous nextCursor. The cursor must identify a currently authorized record in this list. Sort order is creation time and ID descending; refresh page one for new records."}]}},"/v1/tasks/{taskId}":{"get":{"summary":"Get one visible task","security":[{"bearerAuth":[]},{"sessionCookie":[]}],"parameters":[{"$ref":"#/components/parameters/TaskId"}],"responses":{"200":{"description":"Task state and customer-visible metering","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"}}}},"default":{"$ref":"#/components/responses/Error"}}}},"/v1/tasks/{taskId}/cancel":{"post":{"summary":"Request cancellation","description":"Queued tasks become cancelled and release their hold. Running work becomes cancel_requested and retains its hold until definite non-dispatch or settlement evidence arrives.","security":[{"bearerAuth":[]},{"sessionCookie":[]}],"parameters":[{"$ref":"#/components/parameters/TaskId"}],"responses":{"200":{"description":"Current task after the idempotent cancellation request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"}}}},"default":{"$ref":"#/components/responses/Error"}}}},"/v1/models/{provider}/{slug}":{"get":{"summary":"Read one published customer-visible model","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","pattern":"^(?!private$)[a-z0-9][a-z0-9.-]{0,63}$"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9.-]{0,63}$"}}],"responses":{"200":{"description":"The same public model view and sales pricing version returned in the model list; procurement configuration is omitted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicModel"}}}},"404":{"$ref":"#/components/responses/Error"},"default":{"$ref":"#/components/responses/Error"}},"description":"Public provider/model identifier. Existing sandbox/slug URLs continue to work. The private namespace is reserved for authenticated private-model APIs. Local catalog publication does not attest real supplier readiness."}},"/requests/{id}/routing":{"get":{"operationId":"getRequestRoute","tags":["inference"],"summary":"Read owned request supply, saved routing policy and authorized fallback lineage","description":"Read-only. Reports the admitted supply snapshot and confirmed/unknown/pending measurement; does not fabricate provider-side verification, recompute selection with today's policy, reveal supplier cost/credentials, or retry generation.","security":[{"bearerAuth":[]},{"sessionCookie":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Original request route evidence","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestRouteExplanation"}}}},"404":{"description":"Missing, purged or inaccessible request"},"409":{"description":"Original routing evidence missing; no read-time repair"}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Customer API key or session token"},"sessionCookie":{"type":"apiKey","in":"cookie","name":"relay_session","description":"Browser session; state-changing browser requests are also origin-checked"}},"parameters":{"IdempotencyKey":{"name":"idempotency-key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9_.:-]+$"},"description":"Generated by the gateway when omitted"},"RequiredIdempotencyKey":{"name":"idempotency-key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9_.:-]+$"}},"TaskId":{"name":"taskId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}},"responses":{"Error":{"description":"Validation, authentication, authorization, conflict, capacity, provider, or internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"schemas":{"Message":{"type":"object","properties":{"role":{"type":"string","enum":["system","user","assistant","tool"]},"content":{"default":"","type":["string","null"],"maxLength":65536,"description":"null and omitted content normalize to an empty string; system/user still require non-empty text, and assistant requires text or tool calls."},"tool_calls":{"minItems":1,"maxItems":4,"type":"array","items":{"$ref":"#/components/schemas/ToolCall"},"x-runtime-constraints":["Tool call IDs must be unique within the message."]},"tool_call_id":{"type":"string","pattern":"^(?:call_|toolu_)[A-Za-z0-9_-]{1,100}$"}},"required":["role"],"additionalProperties":false,"allOf":[{"if":{"properties":{"role":{"enum":["system","user"]}}},"then":{"required":["content"],"properties":{"content":{"type":"string","minLength":1}}}},{"if":{"required":["tool_calls"]},"then":{"properties":{"role":{"const":"assistant"}}}},{"if":{"properties":{"role":{"const":"tool"}}},"then":{"required":["tool_call_id"]},"else":{"not":{"required":["tool_call_id"]}}},{"if":{"properties":{"role":{"const":"assistant"}}},"then":{"anyOf":[{"required":["content"],"properties":{"content":{"type":"string","minLength":1}}},{"required":["tool_calls"]}]}}]},"ChatInput":{"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,"description":"Optional maximum authorized charge in integer USD micro-units. Admission rejects quotes above this amount."},"messages":{"minItems":1,"maxItems":64,"type":"array","items":{"$ref":"#/components/schemas/Message"}},"tools":{"minItems":1,"maxItems":8,"type":"array","items":{"$ref":"#/components/schemas/ToolDefinition"},"x-runtime-constraints":["Function names must be unique within tools."]},"tool_choice":{"$ref":"#/components/schemas/ToolChoice"},"max_tokens":{"default":256,"type":"integer","minimum":1,"maximum":8192},"stream":{"default":false,"type":"boolean"},"response_format":{"$ref":"#/components/schemas/ResponseFormat"},"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)$"},"uniqueItems":true,"description":"Optional private text asset IDs. Current authorization and content integrity are checked before admission. Text is appended as user messages and included in the quote; expanded input still obeys the message length/count limits. The accepted text snapshot is immutable and replay does not reread the files."},"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":{"$ref":"#/components/schemas/RequestRoutingPolicy"}},"required":["model","messages"],"additionalProperties":false,"allOf":[{"if":{"properties":{"messages":{"minItems":17}}},"then":{"required":["plugins"],"properties":{"plugins":{"items":{"required":["id"],"properties":{"id":{"const":"context-compression"},"enabled":{"not":{"const":false}}}}}}}}],"description":"Strict input shared by quote, chat completion and asynchronous text tasks. Unknown fields are rejected. Defaults apply only when omitted. Model capabilities, configuration bounds and current workspace permissions are checked at admission.","x-runtime-constraints":["Submitted normalized JSON is at most 80000 UTF-8 bytes; more than 16 messages (at most 64) requires an explicitly enabled context-compression plugin. Execution remains at most 16 messages. Compression may only remove complete middle turns; failure to fit protected content is rejected before reserve.","Tool call IDs must never repeat in the conversation; each call needs exactly one tool result before the next non-tool message, and no calls may remain pending before generation.","tool_choice other than none requires tools; a named choice must name a declared function.","Tools cannot be combined with a response_format other than text in this version.","Function names must be unique in tools; tool call IDs must be unique within each message.","Structured parameter schemas enforce the restricted schema subset, safe property names, depth, node and byte limits described by StructuredJsonSchema."]},"TokenRates":{"type":"object","required":["currency","unit","input","cachedInput","output"],"properties":{"currency":{"const":"USD"},"unit":{"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})$"},"output":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$"},"cacheWriteInput5m":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$","description":"Optional five-minute cache-write input subset or its price; included in total input tokens."},"cacheWriteInput1h":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$","description":"Optional one-hour cache-write input subset or its price; included in total input tokens."}},"additionalProperties":false},"CharacterQuote":{"type":"object","required":["version","currency","unit","inputRate","outputRate","inputUnits","maxOutputUnits","maximumMicros","publicationSnapshotId","publicationSnapshotHash","publicationValidUntil"],"properties":{"version":{"type":"string","format":"uuid"},"currency":{"const":"USD"},"unit":{"const":"unicode_character"},"inputRate":{"type":"integer"},"outputRate":{"type":"integer"},"inputUnits":{"type":"integer"},"maxOutputUnits":{"type":"integer"},"maximumMicros":{"type":"integer"},"publicationSnapshotId":{"type":"string","format":"uuid"},"publicationSnapshotHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"publicationValidUntil":{"type":"string","format":"date-time"}},"additionalProperties":false},"TokenQuote":{"type":"object","required":["version","currency","unit","rates","inputUnits","maxOutputUnits","maximumMicros","source","publicationSnapshotId","publicationSnapshotHash","publicationValidUntil"],"properties":{"version":{"type":"string","format":"uuid"},"currency":{"const":"USD"},"unit":{"const":"token"},"rates":{"$ref":"#/components/schemas/TokenRates"},"inputUnits":{"type":"integer"},"maxOutputUnits":{"type":"integer"},"maximumMicros":{"type":"integer"},"source":{"enum":["mock_token_fixture_v1","declared_context_bound_v1"]},"publicationSnapshotId":{"type":"string","format":"uuid"},"publicationSnapshotHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"publicationValidUntil":{"type":"string","format":"date-time"}},"additionalProperties":false},"Quote":{"oneOf":[{"$ref":"#/components/schemas/CharacterQuote"},{"$ref":"#/components/schemas/TokenQuote"}]},"QuoteResponse":{"type":"object","required":["model","quote"],"properties":{"model":{"type":"string"},"quote":{"$ref":"#/components/schemas/Quote"},"contextCompression":{"$ref":"#/components/schemas/ContextCompressionReceipt"}},"additionalProperties":false},"TokenUsage":{"type":"object","required":["unit","input","cachedInput","output","reasoningOutput"],"properties":{"unit":{"const":"token"},"input":{"type":"integer","minimum":0},"cachedInput":{"type":"integer","minimum":0,"description":"Subset of input"},"output":{"type":"integer","minimum":0},"reasoningOutput":{"type":"integer","minimum":0,"description":"Subset of output; not billed twice"},"cacheWriteInput5m":{"type":"integer","minimum":0,"description":"Optional five-minute cache-write input subset or its price; included in total input tokens."},"cacheWriteInput1h":{"type":"integer","minimum":0,"description":"Optional one-hour cache-write input subset or its price; included in total input tokens."}},"additionalProperties":false},"CharacterUsage":{"type":"object","required":["unit","input","output"],"properties":{"unit":{"const":"unicode_character"},"input":{"type":"integer"},"output":{"type":"integer"}},"additionalProperties":false},"Choice":{"type":"object","required":["index","message","finish_reason"],"properties":{"index":{"const":0},"message":{"type":"object","required":["role","content"],"properties":{"role":{"const":"assistant"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","minItems":1,"maxItems":4,"items":{"$ref":"#/components/schemas/ToolCall"}}},"additionalProperties":false},"finish_reason":{"enum":["stop","tool_calls"]}},"additionalProperties":false},"CharacterCompletion":{"type":"object","required":["id","object","model","choices","relay_usage"],"properties":{"id":{"type":"string","format":"uuid"},"object":{"const":"chat.completion"},"model":{"type":"string"},"choices":{"type":"array","items":{"$ref":"#/components/schemas/Choice"}},"relay_usage":{"$ref":"#/components/schemas/CharacterUsage"},"contextCompression":{"$ref":"#/components/schemas/ContextCompressionReceipt"}},"additionalProperties":false},"TokenCompletion":{"type":"object","required":["id","object","model","choices","usage"],"properties":{"id":{"type":"string","format":"uuid"},"object":{"const":"chat.completion"},"model":{"type":"string"},"choices":{"type":"array","items":{"$ref":"#/components/schemas/Choice"}},"usage":{"$ref":"#/components/schemas/TokenUsage"},"contextCompression":{"$ref":"#/components/schemas/ContextCompressionReceipt"}},"additionalProperties":false},"ReplayResponse":{"type":"object","required":["replayed","request"],"properties":{"replayed":{"const":true},"request":{"type":"object"},"contextCompression":{"$ref":"#/components/schemas/ContextCompressionReceipt"}},"additionalProperties":false},"PendingCompletion":{"type":"object","required":["request_id","state","error"],"properties":{"request_id":{"type":"string","format":"uuid"},"state":{"const":"needs_reconciliation"},"error":{"$ref":"#/components/schemas/ErrorDetail"},"contextCompression":{"$ref":"#/components/schemas/ContextCompressionReceipt"}},"additionalProperties":false},"Evidence":{"type":["object","null"],"description":"Customer-visible sales evidence. Procurement cost and upstream configuration are never included","properties":{"status":{"enum":["unknown","confirmed"]},"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":[{"$ref":"#/components/schemas/TokenUsage"},{"type":"null"}]}},"additionalProperties":false},"Task":{"type":"object","required":["id","kind","state","cancelRequested","output","quote","usage","createdAt","model","error"],"properties":{"id":{"type":"string","format":"uuid"},"kind":{"const":"text"},"state":{"enum":["queued","running","cancel_requested","succeeded","failed","needs_reconciliation","cancelled"]},"cancelRequested":{"type":"boolean"},"output":{"type":["string","null"]},"quote":{"$ref":"#/components/schemas/Quote"},"usage":{"$ref":"#/components/schemas/Evidence"},"createdAt":{"type":"string","format":"date-time"},"model":{"type":"string"},"error":{"type":["string","null"],"description":"Public failure code; cancelled_before_dispatch confirms zero-charge cancellation."},"inputAssets":{"type":"array","minItems":1,"maxItems":4,"uniqueItems":true,"items":{"type":"string","format":"uuid"},"description":"The asset IDs captured with the accepted task, in request order."},"toolCalls":{"type":"array","minItems":1,"maxItems":4,"items":{"$ref":"#/components/schemas/ToolCall"}},"jsonRepair":{"$ref":"#/components/schemas/JsonRepairReceipt"}},"additionalProperties":false},"TaskCreate":{"type":"object","required":["kind","input"],"properties":{"kind":{"const":"text"},"input":{"allOf":[{"$ref":"#/components/schemas/ChatInput"},{"type":"object","properties":{"stream":{"const":false,"default":false}}}]}},"additionalProperties":false,"example":{"kind":"text","input":{"model":"sandbox/task-token","messages":[{"role":"user","content":"后台任务"}],"max_tokens":32,"stream":false}}},"TaskCreated":{"type":"object","required":["task","created"],"properties":{"task":{"$ref":"#/components/schemas/Task"},"created":{"type":"boolean"}},"additionalProperties":false},"ModelList":{"type":"object","required":["object","data"],"properties":{"object":{"const":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/PublicModel"}}},"additionalProperties":false},"ErrorDetail":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}},"additionalProperties":false},"Error":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/ErrorDetail"}},"additionalProperties":false},"PublicModel":{"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":["text","image","audio","video","embedding","rerank","vision"]},"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":{"oneOf":[{"type":"object","properties":{"currency":{"type":"string","const":"USD"},"unit":{"type":"string","const":"unicode_character"},"inputRate":{"type":"integer","minimum":0,"maximum":10000},"outputRate":{"type":"integer","minimum":0,"maximum":10000}},"required":["currency","unit","inputRate","outputRate"],"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},"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},{"type":"object","properties":{"currency":{"type":"string","const":"USD"},"unit":{"type":"string","const":"image"},"perImageMicros":{"type":"integer","minimum":1,"maximum":250000000}},"required":["currency","unit","perImageMicros"],"additionalProperties":false}]},"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)$"},"snapshotHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"validFrom":{"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)))$"},"validUntil":{"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)))$"},"publicationCapabilities":{"minItems":1,"type":"array","items":{"type":"string","enum":["text_input","text_output","image_input","pdf_input","document_input","audio_input","streaming","tools","structured_output","batch","query","cancel"]}},"customerRegions":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}},"salePriceVersionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"availability":{"type":"string","const":"sandbox"},"commerciallySaleable":{"type":"boolean","const":false}},"required":["id","name","provider","description","contextLength","maxOutputUnits","enabled","version","status","pricing","publicationSnapshotId","snapshotHash","validFrom","validUntil","publicationCapabilities","customerRegions","salePriceVersionId","availability","commerciallySaleable"],"additionalProperties":false,"description":"Customer-visible text model backed by one active immutable publication snapshot. Sensitive supply, procurement and credential fields are never exposed."},"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":{"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":{"$ref":"#/components/schemas/StructuredRootJsonSchema"}},"required":["name","strict","schema"],"additionalProperties":false}},"required":["type","json_schema"],"additionalProperties":false}],"description":"Optional text or strict structured output format. Structured fixtures must fit the 4000-character output limit. repair: syntax is opt-in bounded deterministic syntax repair, not a second model request or a relaxation of the requested schema."},"ToolCall":{"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},"ToolDefinition":{"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":{"$ref":"#/components/schemas/StructuredRootJsonSchema"},"strict":{"default":true,"type":"boolean","const":true}},"required":["name","parameters"],"additionalProperties":false}},"required":["type","function"],"additionalProperties":false},"ToolChoice":{"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}]},"RequestRoutingPolicy":{"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,"description":"Request restrictions are combined with workspace policy and cannot loosen workspace restrictions. Channel IDs refer to configured channels; no upstream credentials are accepted here."},"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},"RequestRouteExplanation":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"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)$"},"state":{"type":"string","enum":["accepted","running","needs_reconciliation","succeeded","failed"]},"model":{"type":"string"},"channelId":{"type":"string"},"provider":{"type":"string"},"evidence":{"type":"string","const":"admitted_supply_snapshot"},"measurement":{"type":"string","enum":["confirmed","unknown","pending"]},"strategy":{"type":"string","enum":["priority","lowest_cost","lowest_latency","highest_throughput"]},"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},"serviceTier":{"type":"object","properties":{"requested":{"type":"string","enum":["default","flex","priority"]},"actual":{"anyOf":[{"type":"string","pattern":"^[a-z0-9_-]{1,32}$"},{"type":"null"}]},"status":{"type":"string","enum":["pending","confirmed","unknown","not_executed"]},"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},"evidence":{"type":"string","const":"provider_reported_processing_tier"}},"required":["requested","actual","status","priceVersion","maximumMicros","evidence"],"additionalProperties":false},"performanceEvidence":{"type":"object","properties":{"source":{"type":"string","const":"workspace_confirmed_request_end_to_end"},"sampleCount":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"averageLatencyMs":{"type":"number","exclusiveMinimum":0},"outputTokensPerSecond":{"type":"number","minimum":0},"observedAt":{"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":["source","sampleCount","averageLatencyMs","outputTokensPerSecond","observedAt"],"additionalProperties":false},"qualityEvidence":{"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)$"},"version":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"datasetHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"method":{"type":"string","const":"customer_dataset_exact_contains_v1"},"registrationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"cases":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"passed":{"type":"integer","minimum":0,"maximum":9007199254740991},"passFraction":{"type":"number","minimum":0,"maximum":1},"source":{"type":"string","enum":["fixture","http_execution"]},"oldestRequestAt":{"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":["seriesId","version","datasetHash","method","registrationId","cases","passed","passFraction","source","oldestRequestAt"],"additionalProperties":false},"stickySession":{"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)$"},"preferredChannelId":{"type":"string"},"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))$"},"applied":{"type":"boolean"}},"required":["sessionId","preferredChannelId","expiresAt","applied"],"additionalProperties":false},"policyRevision":{"type":"integer","minimum":0,"maximum":9007199254740991},"fallback":{"anyOf":[{"type":"object","properties":{"originalRequestId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"originalModel":{"type":"string"},"fallbackModel":{"type":"string"}},"required":["originalRequestId","originalModel","fallbackModel"],"additionalProperties":false},{"type":"null"}]}},"required":["requestId","state","model","channelId","provider","evidence","measurement","strategy","policyRevision","fallback"],"additionalProperties":false},"JsonRepairReceipt":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"mode":{"type":"string","const":"syntax"},"status":{"type":"string","enum":["pending","not_needed","repaired","schema_invalid","unrepairable","limit_exceeded","not_applied","unavailable"]},"trailingCommasRemoved":{"type":"integer","minimum":0,"maximum":64},"codeFenceRemoved":{"type":"boolean"}},"required":["mode","status","trailingCommasRemoved","codeFenceRemoved"],"additionalProperties":false}}},"x-input-schema-source":"packages/contracts/src/index.ts; generated by node --import tsx scripts/sync-inference-openapi.ts"}