{"openapi":"3.0.0","paths":{"/api/v1/catalog":{"get":{"description":"Models with display metadata, price table and the input parameter schema derived from each model's DTO.","operationId":"CatalogController_getCatalog","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CatalogModelDto"}}}}}},"summary":"Get the public model catalog","tags":["Catalog"]}},"/api/v1/catalog/exchange-rate/{currency}":{"get":{"operationId":"CatalogController_getExchangeRate","parameters":[{"name":"currency","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogExchangeRateDto"}}}},"404":{"description":"Currency not published"},"503":{"description":"No rate available"}},"summary":"Get the USD exchange rate used for local prices","tags":["Catalog"]}},"/api/v1/catalog/{id}":{"get":{"operationId":"CatalogController_getModel","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogModelDto"}}}},"404":{"description":"Model not found"}},"summary":"Get one catalog entry by model id","tags":["Catalog"]}},"/api/v1/user/me":{"get":{"operationId":"UserController_getUser","parameters":[],"responses":{"200":{"description":"Current user","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponseDto"}}}},"401":{"description":"Unauthorized - Invalid or missing API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorResponseDto"}}}},"404":{"description":"User not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorResponseDto"}}}},"500":{"description":"Internal Server Error - Server error occurred","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalServerErrorResponseDto"}}}}},"security":[{"apiKey":[]}],"summary":"Request to get current user","tags":["Account Management"]}},"/api/v1/generation/estimate":{"post":{"operationId":"GenerationController_estimateGenerationCost","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateGenerationRequestDto"}}}},"responses":{"200":{"description":"User-specific generation price in cents","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerationCostEstimateDto"}}}}},"security":[{"apiKey":[]}],"summary":"Estimate the exact balance charge for a generation request","tags":["Generations"]}},"/api/v1/generation/create":{"post":{"callbacks":{"taskStatus":{"{$request.body#/webhook}":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskStatusResponseDto"}}}},"responses":{"200":{"description":"Task notification accepted; acknowledge with a 2xx response. Repeated deliveries must be deduplicated by taskId and status."}}}}}},"operationId":"GenerationController_createGeneration[0]","parameters":[{"name":"idempotency-key","required":true,"in":"header","schema":{"type":"string"}},{"name":"x-max-cost-micro-usd","required":true,"in":"header","schema":{"type":"string"}}],"requestBody":{"required":true,"description":"Input data for creating new generation. The input structure depends on the selected model.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateGenerationRequestDto"}}}},"responses":{"200":{"description":"Success - Request completed successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateGenerationResponseDto"}}}},"400":{"description":"Bad Request - Invalid parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestErrorResponseDto"}}}},"401":{"description":"Unauthorized - Invalid or missing API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorResponseDto"}}}},"402":{"description":"Payment Required - Insufficient account balance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentRequiredErrorResponseDto"}}}},"500":{"description":"Internal Server Error - Server error occurred","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalServerErrorResponseDto"}}}}},"security":[{"apiKey":[]}],"summary":"Create generation request based on model. Returns immediately with a taskId","tags":["Generations"]}},"/api/v1/generation/create-idempotent":{"post":{"callbacks":{"taskStatus":{"{$request.body#/webhook}":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskStatusResponseDto"}}}},"responses":{"200":{"description":"Task notification accepted; acknowledge with a 2xx response. Repeated deliveries must be deduplicated by taskId and status."}}}}}},"operationId":"GenerationController_createGeneration[1]","parameters":[{"name":"idempotency-key","required":true,"in":"header","schema":{"type":"string"}},{"name":"x-max-cost-micro-usd","required":true,"in":"header","schema":{"type":"string"}}],"requestBody":{"required":true,"description":"Input data for creating new generation. The input structure depends on the selected model.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateGenerationRequestDto"}}}},"responses":{"200":{"description":"Success - Request completed successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateGenerationResponseDto"}}}},"400":{"description":"Bad Request - Invalid parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestErrorResponseDto"}}}},"401":{"description":"Unauthorized - Invalid or missing API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorResponseDto"}}}},"402":{"description":"Payment Required - Insufficient account balance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentRequiredErrorResponseDto"}}}},"500":{"description":"Internal Server Error - Server error occurred","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalServerErrorResponseDto"}}}}},"security":[{"apiKey":[]}],"summary":"Create generation request based on model. Returns immediately with a taskId","tags":["Generations"]}},"/api/v1/generation/{id}":{"get":{"operationId":"GenerationController_getGenerationById","parameters":[{"name":"id","required":true,"in":"path","description":"Generation identifier","schema":{"type":"string"}}],"responses":{"200":{"description":"Generation object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerationDto"}}}},"401":{"description":"Unauthorized - Invalid or missing API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorResponseDto"}}}},"404":{"description":"Generation not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorResponseDto"}}}},"500":{"description":"Internal Server Error - Server error occurred","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalServerErrorResponseDto"}}}}},"security":[{"apiKey":[]}],"summary":"Request to get generation by ID","tags":["Generations"]}},"/api/v1/cost":{"get":{"operationId":"CostController_getAllUserPrices","parameters":[],"responses":{"200":{"description":"Returns USD prices grouped by routing group, then model id","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"anyOf":[{"type":"string","description":"Price in USD for the named tariff"},{"type":"object","additionalProperties":true,"description":"Model-specific tariff metadata; consult the catalog pricing table"}]}}}}}}}},"summary":"Get all prices by model","tags":["Costs"]}},"/api/v1/cost/{model}":{"get":{"operationId":"CostController_getUserPricesByModel","parameters":[{"name":"model","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Returns USD prices and tariff metadata for the model","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"anyOf":[{"type":"string","description":"Price in USD for the named tariff"},{"type":"object","additionalProperties":true,"description":"Model-specific tariff metadata; consult the catalog pricing table"}]}}}}}},"summary":"Get prices for specific model","tags":["Costs"]}},"/api/v1/task/status/{taskId}":{"get":{"description":"Query the execution status of image and video generation tasks and retrieve results when complete","operationId":"TaskController_getTaskStatus","parameters":[{"name":"taskId","required":true,"in":"path","description":"Unique task identifier returned from the submit endpoint","schema":{"example":"task-unified-1757165031-uyujaw3d","type":"string"}}],"responses":{"200":{"description":"Task status retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskStatusResponseDto"}}}},"401":{"description":"Unauthorized - Check your API key"},"404":{"description":"Task not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundErrorResponseDto"},"examples":{"taskNotFound":{"value":{"code":404,"error":{"message":"Task not found","type":"NotFound","code":"task_not_found"}}}}}}}},"security":[{"apiKey":[]}],"summary":"Get task status","tags":["Task Management"]}},"/api/v1/stats":{"get":{"operationId":"StatsController_getStats","parameters":[{"name":"range","required":false,"in":"query","description":"Preset period; use `custom` together with from/to","schema":{"default":"today","type":"string","enum":["today","7d","30d","custom"]}},{"name":"from","required":false,"in":"query","description":"Start of a custom period (ISO 8601 calendar date)","schema":{"type":"string"}},{"name":"to","required":false,"in":"query","description":"End of a custom period (ISO 8601 calendar date)","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatsResponseDto"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorResponseDto"}}}}},"security":[{"apiKey":[]}],"summary":"Usage and spend statistics for the current user","tags":["Account Management"]}},"/api/v1/chat/completions":{"post":{"operationId":"LlmController_createChatCompletion","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatCompletionRequestDto"}}}},"responses":{"200":{"description":"Chat completion. When `stream` is true the response is a `text/event-stream` of deltas.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatCompletionResponseDto"}}}},"400":{"description":"Bad Request - unknown model or invalid parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestErrorResponseDto"}}}},"401":{"description":"Unauthorized - Invalid or missing API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorResponseDto"}}}},"402":{"description":"Payment Required - Insufficient account balance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentRequiredErrorResponseDto"}}}},"500":{"description":"Internal Server Error - Server error occurred","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalServerErrorResponseDto"}}}}},"security":[{"apiKey":[]}],"summary":"OpenAI-compatible chat completion. Set `stream: true` for server-sent events.","tags":["LLM"]}},"/api/v1/messages":{"post":{"operationId":"LlmController_createMessage","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnthropicMessageRequestDto"}}}},"responses":{"200":{"description":"Anthropic message. When `stream` is true the response is a `text/event-stream` of events.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnthropicMessageResponseDto"}}}},"400":{"description":"Bad Request - unknown model or invalid parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestErrorResponseDto"}}}},"401":{"description":"Unauthorized - Invalid or missing API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorResponseDto"}}}},"402":{"description":"Payment Required - Insufficient account balance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentRequiredErrorResponseDto"}}}},"500":{"description":"Internal Server Error - Server error occurred","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalServerErrorResponseDto"}}}}},"security":[{"apiKey":[]}],"summary":"Anthropic Messages API-compatible endpoint (Claude models). Set `stream: true` for server-sent events.","tags":["LLM"]}},"/api/v1/models":{"get":{"operationId":"LlmController_listModels","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelListResponseDto"}}}},"401":{"description":"Unauthorized - Invalid or missing API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorResponseDto"}}}}},"security":[{"apiKey":[]}],"summary":"List available chat models with token pricing (USD per 1M tokens)","tags":["LLM"]}},"/api/v1/agent/visibility":{"get":{"operationId":"AgentController_visibility","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_visibilityResponse"}}}},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"Get hidden-conversation permissions","tags":["Agent"]}},"/api/v1/agent/settings":{"get":{"operationId":"AgentController_getSettings","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_getSettingsResponse"}}}},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"Get saved model and budget preferences","tags":["Agent"]},"put":{"operationId":"AgentController_putSettings","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedVersion":{"type":"integer","minimum":0,"maximum":9007199254740991},"settings":{"type":"object","properties":{"routingPolicy":{"type":"string","enum":["economy","balanced","quality"]},"allowAdditionalModels":{"type":"boolean"},"defaultMaxCostMicroUsd":{"type":"string","pattern":"^(0|[1-9]\\d{0,15})$"},"orchestratorModelId":{"nullable":true,"type":"string","minLength":1,"maxLength":128},"fallbackModelIds":{"maxItems":5,"type":"array","items":{"type":"string","minLength":1,"maxLength":128}},"imageModelId":{"nullable":true,"type":"string","minLength":1,"maxLength":128},"videoModelId":{"nullable":true,"type":"string","minLength":1,"maxLength":128},"musicModelId":{"nullable":true,"type":"string","minLength":1,"maxLength":128}},"additionalProperties":false}},"required":["expectedVersion","settings"],"additionalProperties":false}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_putSettingsResponse"}}}},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"Update model and budget preferences with version checking","tags":["Agent"]}},"/api/v1/agent/projects":{"get":{"operationId":"AgentController_projectList","parameters":[{"name":"cursor","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_projectListResponse"}}}},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"List projects with cursor pagination","tags":["Agent"]},"post":{"operationId":"AgentController_projectCreate","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"brandSettings":{"default":{},"type":"object","properties":{"brandName":{"type":"string","maxLength":200},"productDescription":{"type":"string","maxLength":4000},"audience":{"type":"string","maxLength":2000},"toneOfVoice":{"type":"string","maxLength":1000},"languages":{"maxItems":20,"type":"array","items":{"type":"string","maxLength":32}},"palette":{"maxItems":20,"type":"array","items":{"type":"string","pattern":"^#[\\da-fA-F]{6}$"}},"styleGuidelines":{"type":"string","maxLength":4000},"logoAssetIds":{"maxItems":20,"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)$"}},"referenceAssetIds":{"maxItems":20,"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)$"}},"preferredAspectRatios":{"maxItems":20,"type":"array","items":{"type":"string","pattern":"^\\d{1,3}:\\d{1,3}$"}},"additionalInstructions":{"type":"string","maxLength":8000}},"additionalProperties":false},"instruction":{"default":"","type":"string","maxLength":8000},"routingDefaults":{"default":{},"type":"object","properties":{"routingPolicy":{"type":"string","enum":["economy","balanced","quality"]},"preferredModels":{"type":"object","properties":{"text":{"type":"string","maxLength":128},"image":{"type":"string","maxLength":128},"video":{"type":"string","maxLength":128},"music":{"type":"string","maxLength":128}},"additionalProperties":false},"defaultMaxCostMicroUsd":{"type":"string","pattern":"^[1-9]\\d{0,15}$"}},"additionalProperties":false},"profileId":{"nullable":true,"type":"string","maxLength":80},"profileVersion":{"nullable":true,"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"defaultWorkflowId":{"nullable":true,"type":"string","maxLength":80},"defaultWorkflowVersion":{"nullable":true,"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"name":{"type":"string","minLength":1,"maxLength":200}},"required":["name"],"additionalProperties":false}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_projectCreateResponse"}}}},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"Create a project","tags":["Agent"]}},"/api/v1/agent/projects/{id}/assets/import":{"post":{"operationId":"AgentController_importProjectArtifact","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"Idempotency-Key","required":true,"in":"header","description":"1–128 characters. Reuse only for the same operation and input.","schema":{"type":"string","minLength":1,"maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"artifactId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-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":{"default":"style","type":"string","enum":["logo","product","character","style","audio_reference"]},"displayName":{"type":"string","minLength":1,"maxLength":255}},"required":["artifactId"],"additionalProperties":false}}}},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_importProjectArtifactResponse"}}}},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"Retain an artifact as a project asset","tags":["Agent"]}},"/api/v1/agent/profiles":{"get":{"operationId":"AgentController_profiles","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_profilesResponse"}}}},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"List available agent profiles","tags":["Agent"]}},"/api/v1/agent/projects/{id}/assets":{"post":{"operationId":"AgentController_projectUpload","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_projectUploadResponse"}}}},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"Request a project asset upload URL","tags":["Agent"]}},"/api/v1/agent/attachments/{id}":{"delete":{"operationId":"AgentController_attachmentDelete","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_attachmentDeleteResponse"}}}},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"Revoke access to an attachment","tags":["Agent"]},"get":{"operationId":"AgentController_attachment","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_attachmentResponse"}}}},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"Get attachment metadata and availability","tags":["Agent"]}},"/api/v1/agent/workflows":{"get":{"operationId":"AgentController_workflows","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_workflowsResponse"}}}},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"List available workflows","tags":["Agent"]}},"/api/v1/agent/workflows/{id}":{"get":{"operationId":"AgentController_workflow","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"version","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_workflowResponse"}}}},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"Get a workflow and its versioned definition","tags":["Agent"]}},"/api/v1/agent/webhooks":{"get":{"operationId":"AgentController_webhookList","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_webhookListResponse"}}}},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"List registered lifecycle webhooks","tags":["Agent"]},"post":{"callbacks":{"lifecycleEvent":{"{$request.body#/url}":{"post":{"summary":"Deliver a subscribed agent lifecycle event","description":"Verify the HMAC-SHA256 hex signature over timestamp + '.' + eventId + '.' + the exact raw UTF-8 request body using the secret returned once during registration. Check timestamp freshness and deduplicate eventId. Deliveries are retried; any 2xx acknowledges the event. Prompts, raw provider errors and signed file URLs are excluded.","security":[],"parameters":[{"name":"X-ApiStock-Webhook-Id","description":"Stable event id, equal to body.eventId","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-ApiStock-Webhook-Timestamp","description":"Unix timestamp in seconds","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-ApiStock-Webhook-Key-Version","description":"Signing key version","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-ApiStock-Webhook-Signature","description":"HMAC-SHA256 hexadecimal signature","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentWebhookEnvelopeDto"}}}},"responses":{"200":{"description":"Event accepted; any 2xx response acknowledges delivery."}}}}}},"operationId":"AgentController_webhookCreate","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","maxLength":2048,"format":"uri"},"eventTypes":{"minItems":1,"maxItems":9,"type":"array","items":{"type":"string","enum":["run.waiting","run.completed","run.failed","run.cancelled","artifact.created","artifact.revoked","conversation.deleted","result.structured.completed","result.structured.failed"]}},"scope":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["user"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["project","conversation"]},"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)$"}},"required":["type","id"],"additionalProperties":false}]}},"required":["url","eventTypes","scope"],"additionalProperties":false}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_webhookCreateResponse"}}}},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"Register a signed lifecycle webhook","tags":["Agent"]}},"/api/v1/agent/webhooks/{id}":{"delete":{"operationId":"AgentController_webhookRevoke","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_webhookRevokeResponse"}}}},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"Revoke a webhook and cancel pending deliveries","tags":["Agent"]}},"/api/v1/agent/webhooks/{id}/deliveries":{"get":{"operationId":"AgentController_webhookDeliveries","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_webhookDeliveriesResponse"}}}},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"List recent webhook delivery attempts","tags":["Agent"]}},"/api/v1/agent/projects/{id}":{"get":{"operationId":"AgentController_projectDetail","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_projectDetailResponse"}}}},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"Get a project, version and assets","tags":["Agent"]},"patch":{"operationId":"AgentController_projectPatch","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"brandSettings":{"type":"object","properties":{"brandName":{"type":"string","maxLength":200},"productDescription":{"type":"string","maxLength":4000},"audience":{"type":"string","maxLength":2000},"toneOfVoice":{"type":"string","maxLength":1000},"languages":{"maxItems":20,"type":"array","items":{"type":"string","maxLength":32}},"palette":{"maxItems":20,"type":"array","items":{"type":"string","pattern":"^#[\\da-fA-F]{6}$"}},"styleGuidelines":{"type":"string","maxLength":4000},"logoAssetIds":{"maxItems":20,"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)$"}},"referenceAssetIds":{"maxItems":20,"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)$"}},"preferredAspectRatios":{"maxItems":20,"type":"array","items":{"type":"string","pattern":"^\\d{1,3}:\\d{1,3}$"}},"additionalInstructions":{"type":"string","maxLength":8000}},"additionalProperties":false},"instruction":{"type":"string","maxLength":8000},"routingDefaults":{"type":"object","properties":{"routingPolicy":{"type":"string","enum":["economy","balanced","quality"]},"preferredModels":{"type":"object","properties":{"text":{"type":"string","maxLength":128},"image":{"type":"string","maxLength":128},"video":{"type":"string","maxLength":128},"music":{"type":"string","maxLength":128}},"additionalProperties":false},"defaultMaxCostMicroUsd":{"type":"string","pattern":"^[1-9]\\d{0,15}$"}},"additionalProperties":false},"profileId":{"nullable":true,"type":"string","maxLength":80},"profileVersion":{"nullable":true,"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"defaultWorkflowId":{"nullable":true,"type":"string","maxLength":80},"defaultWorkflowVersion":{"nullable":true,"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"name":{"type":"string","minLength":1,"maxLength":200},"expectedVersion":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991}},"required":["expectedVersion"],"additionalProperties":false}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_projectPatchResponse"}}}},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"Update a project with version checking","tags":["Agent"]},"delete":{"operationId":"AgentController_projectDelete","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_projectDeleteResponse"}}}},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"Delete a project and stop its active runs","tags":["Agent"]}},"/api/v1/agent/conversations/{id}/context-references":{"get":{"operationId":"AgentController_referenceList","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_referenceListResponse"}}}},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"List conversation context references","tags":["Agent"]},"put":{"operationId":"AgentController_referenceReplace","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_referenceReplaceResponse"}}}},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"Replace conversation context references with version checking","tags":["Agent"]}},"/api/v1/agent/runs/{id}/context/{referenceId}":{"get":{"operationId":"AgentController_contextRead","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"referenceId","required":true,"in":"path","schema":{"type":"string"}},{"name":"fromSequence","required":false,"in":"query","schema":{"type":"string"}},{"name":"search","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_contextReadResponse"}}}},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"Read a context-reference snapshot","tags":["Agent"]}},"/api/v1/agent/storage/files":{"get":{"operationId":"AgentController_storageFiles","parameters":[{"name":"cursor","required":false,"in":"query","schema":{"type":"string"}},{"name":"includeHidden","required":false,"in":"query","description":"Include hidden conversations and their files (admins only).","schema":{"type":"boolean"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_storageFilesResponse"}}}},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"List retained files with cursor pagination","tags":["Agent"]}},"/api/v1/agent/storage/files/{id}":{"delete":{"operationId":"AgentController_storageDelete","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_storageDeleteResponse"}}}},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"Revoke access to a retained file","tags":["Agent"]}},"/api/v1/agent/storage/retain":{"post":{"operationId":"AgentController_retainFile","parameters":[{"name":"Idempotency-Key","required":true,"in":"header","description":"1–128 characters. Reuse only for the same operation and input.","schema":{"type":"string","minLength":1,"maxLength":128}}],"responses":{"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_retainFileResponse"}}}},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"Request an idempotent retained copy of a file","tags":["Agent"]}},"/api/v1/agent/storage/operations/{id}":{"get":{"operationId":"AgentController_retainStatus","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_retainStatusResponse"}}}},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"Get retained-copy operation status","tags":["Agent"]}},"/api/v1/agent/models":{"get":{"operationId":"AgentController_models","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_modelsResponse"}}}},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"List agent models, capabilities and prices","tags":["Agent"]}},"/api/v1/agent/conversations":{"get":{"operationId":"AgentController_list","parameters":[{"name":"cursor","required":false,"in":"query","schema":{"type":"string"}},{"name":"includeHidden","required":false,"in":"query","description":"Include hidden conversations and their files (admins only).","schema":{"type":"boolean"}},{"name":"q","required":false,"in":"query","description":"Search conversation titles and message text (up to 200 characters).","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_listResponse"}}}},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"Search conversations with cursor pagination","tags":["Agent"]},"post":{"operationId":"AgentController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"default":"","type":"string","maxLength":200},"mode":{"default":"auto","type":"string","enum":["auto","manual"]},"selectedModelId":{"type":"string","maxLength":128},"settings":{"default":{},"type":"object","properties":{"routingPolicy":{"type":"string","enum":["economy","balanced","quality"]},"allowAdditionalModels":{"type":"boolean"},"defaultMaxCostMicroUsd":{"type":"string","pattern":"^(0|[1-9]\\d{0,15})$"},"orchestratorModelId":{"nullable":true,"type":"string","minLength":1,"maxLength":128},"fallbackModelIds":{"maxItems":5,"type":"array","items":{"type":"string","minLength":1,"maxLength":128}},"imageModelId":{"nullable":true,"type":"string","minLength":1,"maxLength":128},"videoModelId":{"nullable":true,"type":"string","minLength":1,"maxLength":128},"musicModelId":{"nullable":true,"type":"string","minLength":1,"maxLength":128},"autoSaveGenerations":{"type":"boolean"}},"additionalProperties":false},"projectId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileId":{"type":"string","maxLength":80},"defaultWorkflowId":{"type":"string","maxLength":80}},"additionalProperties":false}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_createResponse"}}}},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"Create a conversation","tags":["Agent"]}},"/api/v1/agent/conversations/{id}":{"get":{"operationId":"AgentController_conversation","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_conversationResponse"}}}},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"Get a conversation and queued messages","tags":["Agent"]},"patch":{"operationId":"AgentController_settings","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"isHidden":{"type":"boolean"},"title":{"type":"string","maxLength":200},"mode":{"type":"string","enum":["auto","manual"]},"selectedModelId":{"nullable":true,"type":"string","maxLength":128},"settings":{"type":"object","properties":{"routingPolicy":{"type":"string","enum":["economy","balanced","quality"]},"allowAdditionalModels":{"type":"boolean"},"defaultMaxCostMicroUsd":{"type":"string","pattern":"^(0|[1-9]\\d{0,15})$"},"orchestratorModelId":{"nullable":true,"type":"string","minLength":1,"maxLength":128},"fallbackModelIds":{"maxItems":5,"type":"array","items":{"type":"string","minLength":1,"maxLength":128}},"imageModelId":{"nullable":true,"type":"string","minLength":1,"maxLength":128},"videoModelId":{"nullable":true,"type":"string","minLength":1,"maxLength":128},"musicModelId":{"nullable":true,"type":"string","minLength":1,"maxLength":128},"autoSaveGenerations":{"type":"boolean"}},"additionalProperties":false},"projectId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileId":{"nullable":true,"type":"string","maxLength":80},"defaultWorkflowId":{"nullable":true,"type":"string","maxLength":80},"expectedVersion":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991}},"required":["expectedVersion"],"additionalProperties":false}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_settingsResponse"}}}},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"Update conversation settings with version checking","tags":["Agent"]},"delete":{"operationId":"AgentController_remove","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_removeResponse"}}}},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"Delete a conversation and stop its active runs","tags":["Agent"]}},"/api/v1/agent/conversations/{id}/read":{"post":{"operationId":"AgentController_markRead","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"sequence":{"type":"integer","minimum":0,"maximum":2147483647}},"required":["sequence"],"additionalProperties":false}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_markReadResponse"}}}},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"Advance the last-read message sequence","tags":["Agent"]}},"/api/v1/agent/conversations/{id}/messages":{"get":{"operationId":"AgentController_messages","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"beforeSequence","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_messagesResponse"}}}},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"List earlier conversation messages by sequence","tags":["Agent"]},"post":{"operationId":"AgentController_send","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"clientMessageId":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"},"content":{"minItems":1,"maxItems":40,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":64000}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["attachment"]},"attachmentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"usageIntent":{"default":"auto","type":"string","enum":["auto","analyze","reference","both"]},"maskFor":{"type":"object","properties":{"type":{"type":"string","enum":["attachment","artifact"]},"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)$"}},"required":["type","id"],"additionalProperties":false}},"required":["type","attachmentId"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["artifact"]},"artifactId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-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,"exclusiveMinimum":true,"maximum":9007199254740991},"usageIntent":{"default":"auto","type":"string","enum":["auto","analyze","reference","both"]}},"required":["type","artifactId","version"],"additionalProperties":false}]}},"maxCostMicroUsd":{"type":"string","pattern":"^(0|[1-9]\\d{0,15})$"},"deliveryMode":{"type":"string","enum":["followup","steer"]},"replyToRunId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"questionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"selectedOptionIds":{"maxItems":20,"type":"array","items":{"type":"string","maxLength":80}},"selectedModelId":{"type":"string","maxLength":128},"workflowId":{"type":"string","maxLength":80},"workflowVersion":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"workflowInput":{"type":"object","additionalProperties":{}},"contextReferences":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"targetType":{"type":"string","enum":["conversation","run","artifact"]},"targetId":{"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","maxLength":2048,"format":"uri"}]}},"required":["targetType","targetId"],"additionalProperties":false}},"outputSchema":{},"structuredOutputMode":{"default":"auto","type":"string","enum":["auto","extract"]},"applicationContext":{"type":"object","properties":{"originSurface":{"type":"string","enum":["agent","model","library","project"]},"selectedModelId":{"type":"string"},"selectedArtifactId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"selectedArtifactVersion":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"locale":{"type":"string","maxLength":16},"parameterDraft":{"type":"object","additionalProperties":{}}},"required":["originSurface"],"additionalProperties":false}},"required":["clientMessageId","content","maxCostMicroUsd"],"additionalProperties":false}}}},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_sendResponse"}}}},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"Start a billed run within an explicit micro-USD budget","tags":["Agent"]}},"/api/v1/agent/conversations/{id}/event-history":{"get":{"operationId":"AgentController_history","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"afterSequence","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_historyResponse"}}}},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"Replay conversation events after a sequence","tags":["Agent"]}},"/api/v1/agent/conversations/{id}/events":{"get":{"operationId":"AgentController_stream","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"afterSequence","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Server-sent events. Each frame has sequence id, event type and a JSON payload. Resume with afterSequence or Last-Event-ID.","content":{"text/event-stream":{"schema":{"type":"string"},"example":"id: 1\nevent: run.completed\ndata: {\"runId\":\"019ca881-9503-7270-a560-f00fc2b15785\"}\n\n"}}},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"Stream conversation events with resumable SSE","tags":["Agent"]}},"/api/v1/agent/runs/{id}":{"get":{"operationId":"AgentController_run","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_runResponse"}}}},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"Get a run, budget, steps and pending actions","tags":["Agent"]}},"/api/v1/agent/runs/{id}/balance-recovery":{"get":{"operationId":"AgentController_balanceRecovery","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_balanceRecoveryResponse"}}}},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"Check balance and the saved refusal estimate without resuming","tags":["Agent"]}},"/api/v1/agent/runs/{id}/stop":{"post":{"operationId":"AgentController_stop","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_stopResponse"}}}},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"Request a run stop at the next safe boundary","tags":["Agent"]}},"/api/v1/agent/runs/{id}/cancel-queued":{"post":{"operationId":"AgentController_cancelQueued","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_cancelQueuedResponse"}}}},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"Cancel a queued run before execution","tags":["Agent"]}},"/api/v1/agent/runs/{id}/resume":{"post":{"operationId":"AgentController_resume","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_resumeResponse"}}}},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"Resume a run waiting for budget","tags":["Agent"]}},"/api/v1/agent/runs/{id}/budget":{"patch":{"operationId":"AgentController_budget","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_budgetResponse"}}}},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"Update a run budget with version checking","tags":["Agent"]}},"/api/v1/agent/storage/plans":{"get":{"operationId":"AgentController_plans","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_plansResponse"}}}},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"List current retained-storage plans","tags":["Agent"]}},"/api/v1/agent/storage":{"get":{"operationId":"AgentController_storageStatus","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_storageStatusResponse"}}}},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"Get retained-storage usage and billing period","tags":["Agent"]}},"/api/v1/agent/storage/quote":{"post":{"operationId":"AgentController_quote","parameters":[],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_quoteResponse"}}}},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"Quote a retained-storage plan change without charging","tags":["Agent"]}},"/api/v1/agent/storage/subscribe":{"post":{"operationId":"AgentController_subscribe","parameters":[{"name":"Idempotency-Key","required":true,"in":"header","description":"1–128 characters. Reuse only for the same operation and input.","schema":{"type":"string","minLength":1,"maxLength":128}}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_subscribeResponse"}}}},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"Apply an idempotent retained-storage plan change","tags":["Agent"]}},"/api/v1/agent/storage/cancel-renewal":{"post":{"operationId":"AgentController_cancelRenewal","parameters":[],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_cancelRenewalResponse"}}}},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"Disable automatic retained-storage renewal","tags":["Agent"]}},"/api/v1/agent/storage/enable-renewal":{"post":{"operationId":"AgentController_enableRenewal","parameters":[],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_enableRenewalResponse"}}}},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"Enable automatic retained-storage renewal","tags":["Agent"]}},"/api/v1/agent/conversations/{id}/attachments":{"post":{"operationId":"AgentController_upload","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_uploadResponse"}}}},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"Request a conversation attachment upload URL","tags":["Agent"]}},"/api/v1/agent/attachments/{id}/complete":{"post":{"operationId":"AgentController_complete","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_completeResponse"}}}},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"Validate and complete an attachment upload","tags":["Agent"]}},"/api/v1/agent/runs/{id}/costs":{"get":{"operationId":"AgentController_costs","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_costsResponse"}}}},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"Get run budget and per-step charges","tags":["Agent"]}},"/api/v1/agent/runs/{id}/result":{"get":{"operationId":"AgentController_result","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_resultResponse"}}}},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"Get sanitized run results and artifacts","tags":["Agent"]}},"/api/v1/agent/runs/{id}/decisions":{"post":{"operationId":"AgentController_decide","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"Idempotency-Key","required":true,"in":"header","description":"1–128 characters. Reuse only for the same operation and input.","schema":{"type":"string","minLength":1,"maxLength":128}}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_decideResponse"}}}},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"Resolve a pending action idempotently","tags":["Agent"]}},"/api/v1/agent/artifacts":{"get":{"operationId":"AgentController_library","parameters":[{"name":"cursor","required":false,"in":"query","schema":{"type":"string"}},{"name":"includeHidden","required":false,"in":"query","description":"Include hidden conversations and their files (admins only).","schema":{"type":"boolean"}},{"name":"kind","required":false,"in":"query","schema":{"type":"string"}},{"name":"conversationId","required":false,"in":"query","schema":{"type":"string"}},{"name":"runId","required":false,"in":"query","schema":{"type":"string"}},{"name":"modelId","required":false,"in":"query","schema":{"type":"string"}},{"name":"query","required":false,"in":"query","schema":{"type":"string"}},{"name":"status","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_libraryResponse"}}}},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"Search generated artifacts with cursor pagination","tags":["Agent"]}},"/api/v1/agent/artifacts/{id}":{"get":{"operationId":"AgentController_artifactDetails","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_artifactDetailsResponse"}}}},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"Get artifact metadata or an unavailable tombstone","tags":["Agent"]}},"/api/v1/agent/artifacts/{id}/content":{"get":{"operationId":"AgentController_artifactContent","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"download","required":false,"in":"query","description":"Stream the file as an attachment instead of redirecting to its public URL","schema":{"enum":["1"],"type":"string"}}],"responses":{"200":{"description":"File bytes. The Content-Type header identifies the actual media type.","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"302":{"description":"Redirect to the public media URL","headers":{"Location":{"schema":{"type":"string","format":"uri"}}}},"304":{"description":"Cached media has not changed (conditional request)."},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"Retrieve artifact media or redirect to its public URL","tags":["Agent"]}},"/api/v1/agent/attachments":{"get":{"operationId":"AgentController_listAttachments","parameters":[{"name":"cursor","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_listAttachmentsResponse"}}}},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"List available uploaded attachments","tags":["Agent"]}},"/api/v1/agent/attachments/{id}/content":{"get":{"operationId":"AgentController_attachmentContent","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"File bytes. The Content-Type header identifies the actual media type.","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"302":{"description":"Redirect to the public media URL","headers":{"Location":{"schema":{"type":"string","format":"uri"}}}},"304":{"description":"Cached media has not changed (conditional request)."},"400":{"description":"Invalid request. Correct the input before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"401":{"description":"Missing or invalid authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"402":{"description":"Insufficient balance for the requested operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"403":{"description":"Operation is forbidden for this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"404":{"description":"Owned resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"409":{"description":"State, version, budget or idempotency conflict. Inspect error.code before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}}},"500":{"description":"Internal server error. Retry only when duplicate execution is protected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}},"503":{"description":"Service temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentErrorResponse"}}}}},"security":[{"apiKey":[]}],"summary":"Retrieve attachment media or redirect to its public URL","tags":["Agent"]}}},"info":{"title":"API Stock API","description":"One API, one key and one prepaid balance for video, image, music and\ntext models from many providers.\n\n**Media generation is asynchronous.** `POST /api/v1/generation/create`\nprices the request, debits the balance and returns a `taskId`\nimmediately. Poll `/api/v1/task` or supply a `webhook` to be called on\ncompletion. Results are downloaded to our own storage, so the media\nURLs we return stay valid after the provider expires its own.\n\n**Text generation is synchronous** and speaks the protocols you already\nuse: `POST /api/v1/chat/completions` (OpenAI) and `POST /api/v1/messages`\n(Anthropic).\n\nIf a provider fails, the same generation is retried automatically on a\nreserve provider; when every provider is exhausted the request is\nrefunded in full. Prices are per generation for media and per 1M tokens\nfor text — see `/api/v1/catalog` for the live model list and price table.\n\nAuthenticate with `Authorization: Bearer <your API key>`.","version":"1.0","contact":{}},"tags":[],"servers":[{"url":"https://api.api-stock.com","description":"Production"}],"components":{"securitySchemes":{"apiKey":{"scheme":"bearer","bearerFormat":"API Key","type":"http","description":"Enter your API key"}},"schemas":{"CatalogPriceDto":{"type":"object","properties":{"key":{"type":"string","description":"Cost key from the model catalog (\"default\", a resolution, a size…)"},"price":{"type":"string","description":"Price in USD, as a string, for one unit of `CatalogModelDto.priceUnit` — a whole generation, one second of output or 1M tokens"},"isDefault":{"type":"boolean","description":"Whether this is the model's base tier: what a request that sets no parameters is billed"},"dimensions":{"type":"object","additionalProperties":{"type":"string"},"description":"Resolved tariff dimensions for this price; present for matrix tariffs"}},"required":["key","price","isDefault"]},"CatalogLongContextPricingDto":{"type":"object","properties":{"thresholdTokens":{"type":"integer","minimum":1,"description":"Total input token threshold, including cache reads and writes. Base rates apply at equality. Above it, these USD-per-1M-token rates replace the base rates for the WHOLE request, including output. Missing cache read/write rates use input; missing cacheWrite1h uses cacheWrite or input."},"pricing":{"description":"User token rates above the threshold; optional cache buckets are included only when configured","type":"array","items":{"$ref":"#/components/schemas/CatalogPriceDto"}}},"required":["thresholdTokens","pricing"]},"CatalogParamOptionDto":{"type":"object","properties":{"value":{"description":"Value sent to the API","oneOf":[{"type":"string"},{"type":"number"}]},"label":{"type":"string","description":"Human-readable label"}},"required":["value","label"]},"CatalogParamFieldDto":{"type":"object","properties":{"name":{"type":"string","description":"Field name as sent in `input`"},"label":{"type":"string","description":"Label for the form control"},"description":{"type":"string","description":"Field description"},"kind":{"type":"string","description":"Scalar kind of the field (of its items when `isArray`)","enum":["string","number","boolean","object"]},"isArray":{"type":"boolean","description":"Whether the field accepts a list of values"},"required":{"type":"boolean","description":"Whether the field is mandatory"},"default":{"description":"Default value, if any","nullable":true,"oneOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"array","items":{}}]},"options":{"description":"Allowed values — render as a select","type":"array","items":{"$ref":"#/components/schemas/CatalogParamOptionDto"}},"optionsArePresets":{"type":"boolean","description":"Options are playground presets; the API also accepts custom values"},"minimum":{"type":"number"},"maximum":{"type":"number"},"maxLength":{"type":"number"},"isMedia":{"type":"boolean","description":"Field holds a URL of user-supplied media"},"isPrompt":{"type":"boolean","description":"Field is the model's main prompt"},"multiline":{"type":"boolean","description":"Render as a textarea rather than an input"},"deprecated":{"type":"boolean","description":"Field is kept for compatibility only"}},"required":["name","label","kind","isArray","required","isMedia","isPrompt","multiline","deprecated"]},"CatalogModelDto":{"type":"object","properties":{"pageUpdatedAt":{"type":"string","description":"Observed significant public content change, ISO 8601; omitted until a change is recorded"},"createdAt":{"type":"string","format":"date-time","description":"Date the model was added to the platform, ISO 8601"},"id":{"type":"string","description":"Public model id, also used as the URL slug"},"group":{"type":"string","description":"Routing group shared by related models"},"name":{"type":"string","description":"Display name"},"description":{"type":"string","description":"Marketing description"},"descriptionLocales":{"type":"object","additionalProperties":{"type":"string"},"description":"Marketing descriptions keyed by locale, for example { en: \"…\", ru: \"…\" }"},"type":{"type":"string","description":"Generation type","enum":["TEXT","MUSIC","IMAGE","VIDEO"]},"kind":{"type":"string","description":"Media generation model or LLM chat model","enum":["media","llm"]},"vendor":{"type":"string","description":"Upstream vendor, e.g. Google"},"releasedAt":{"type":"string","description":"Date the vendor released the model, `YYYY-MM-DD`; absent when never announced","example":"2026-07-31"},"tags":{"description":"Catalog tags","type":"array","items":{"type":"string"}},"capabilities":{"description":"Capability tags derived from the model's parameters","type":"array","items":{"type":"string"}},"pricing":{"description":"Price table; empty when the model has no published price","type":"array","items":{"$ref":"#/components/schemas/CatalogPriceDto"}},"longContextPricing":{"$ref":"#/components/schemas/CatalogLongContextPricingDto"},"priceFrom":{"type":"string","description":"Headline price in USD, in the same unit as `pricing` (see `priceUnit`): the base-tier price for media models (or the cheapest complete tariff variant when no base tier resolves), the cheapest available resolution for Veo 3.1 Quality, the input-token rate for chat models"},"priceFromKey":{"type":"string","description":"Key of the selectable price tier quoted by `priceFrom`, when provided"},"priceUnit":{"type":"string","description":"What one price in `pricing` and `priceFrom` buys: a whole generation, one second of output (per-second video tariffs) or 1M tokens (chat models)","enum":["generation","second","megatoken"]},"params":{"description":"Input parameters, in the order the form should render them","type":"array","items":{"$ref":"#/components/schemas/CatalogParamFieldDto"}},"protocols":{"type":"array","description":"Wire protocols available for an LLM model","items":{"type":"string","enum":["openai","anthropic"]}}},"required":["id","group","name","type","kind","tags","capabilities","pricing","priceUnit","params"]},"CatalogExchangeRateDto":{"type":"object","properties":{"baseCurrency":{"type":"string","example":"USD"},"currency":{"type":"string","example":"RUB"},"rate":{"type":"number","example":81.37,"description":"Units of `currency` per one USD"},"rateUpdatedAt":{"type":"string","description":"When the rate provider last updated this rate (ISO 8601)"}},"required":["baseCurrency","currency","rate","rateUpdatedAt"]},"UserData":{"type":"object","properties":{"id":{"type":"string","description":"Internal user ID in the system","example":"01234567-89ab-cdef-0123-456789abcdef"},"balance":{"type":"number","description":"Current user balance in integer USD cents","format":"int32","example":15075},"createdAt":{"type":"string","description":"User creation date","example":"2026-02-28T11:22:33.000Z"}},"required":["id","balance","createdAt"]},"UserResponseDto":{"type":"object","properties":{"code":{"type":"number","description":"HTTP status code","example":200},"data":{"description":"Response data","allOf":[{"$ref":"#/components/schemas/UserData"}]}},"required":["code","data"]},"ErrorDetails":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable cause. English, stable — safe to log, not meant for display to end users in other languages."},"type":{"type":"string","description":"Error type"},"code":{"type":"string","description":"Stable machine-readable code. Match on this rather than on `message` — clients use it to render their own localized wording.","example":"insufficient_balance"}},"required":["message","type","code"]},"UnauthorizedErrorResponseDto":{"type":"object","properties":{"code":{"type":"number","description":"HTTP status code","example":401},"error":{"description":"Error details","allOf":[{"$ref":"#/components/schemas/ErrorDetails"}]}},"required":["code","error"]},"NotFoundErrorResponseDto":{"type":"object","properties":{"code":{"type":"number","description":"HTTP status code","example":404},"error":{"description":"Error details","allOf":[{"$ref":"#/components/schemas/ErrorDetails"}]}},"required":["code","error"]},"InternalServerErrorResponseDto":{"type":"object","properties":{"code":{"type":"number","description":"HTTP status code","example":500},"error":{"description":"Error details","allOf":[{"$ref":"#/components/schemas/ErrorDetails"}]}},"required":["code","error"]},"Veo3InputDto":{"type":"object","properties":{"prompt":{"type":"string","description":"User's prompt"},"aspectRatio":{"type":"string","description":"Aspect ratio","enum":["16:9","9:16"],"default":"16:9"},"urls":{"description":"Image URLs for video generation (up to 3 images)","maxItems":3,"type":"array","items":{"type":"string"}},"resolution":{"type":"string","description":"Video resolution quality","enum":["720p","1080p","4k"],"default":"720p"},"generationType":{"type":"string","description":"Frame accepts up to two images. Three images with no generation type select reference. Veo Quality reference requests use the Fast tariff.","enum":["frame","reference"]}},"required":["prompt"]},"Veo3LiteInputDto":{"type":"object","properties":{"prompt":{"type":"string","description":"User's prompt"},"aspectRatio":{"type":"string","description":"Aspect ratio","enum":["16:9","9:16"],"default":"16:9"},"resolution":{"type":"string","description":"Video resolution quality","enum":["720p","1080p","4k"],"default":"720p"}},"required":["prompt"]},"NanoBananaInputDto":{"type":"object","properties":{"prompt":{"type":"string","description":"User's prompt"},"urls":{"description":"Reference image URLs for image generation or editing","type":"array","items":{"type":"string"}},"size":{"type":"string","description":"Output image size ratio","enum":["1:1","2:3","3:2","3:4","4:3","4:5","5:4","9:16","16:9","21:9","1:4","1:8","4:1","8:1"],"default":"16:9"},"resolution":{"type":"string","description":"Output image resolution","enum":["512px","1K","2K","4K"],"default":"1K"}},"required":["prompt"]},"NanoBanana21InputDto":{"type":"object","properties":{"prompt":{"type":"string","description":"User's prompt"},"urls":{"description":"Reference image URLs for image generation or editing","type":"array","items":{"type":"string"}},"size":{"type":"string","description":"Output image size ratio","enum":["1:1","2:3","3:2","3:4","4:3","4:5","5:4","9:16","16:9","21:9","1:4","1:8","4:1","8:1"],"default":"16:9"},"resolution":{"type":"string","description":"Output image resolution","enum":["1K","2K","4K"],"default":"1K"}},"required":["prompt"]},"GrokImagineInputDto":{"type":"object","properties":{"prompt":{"type":"string","description":"Video content description"},"size":{"type":"string","description":"Video aspect ratio / size","enum":["16:9","9:16","1:1","3:2","2:3"],"default":"16:9"},"duration":{"type":"number","description":"Video duration in seconds","enum":[6,10,15,20,25,30],"default":6},"resolution":{"type":"string","description":"Video resolution","enum":["480p","720p"],"default":"480p"},"urls":{"description":"Reference image URLs for image-to-video mode","type":"array","items":{"type":"string"}}},"required":["prompt"]},"GrokImagineImageInputDto":{"type":"object","properties":{"prompt":{"type":"string","description":"Text description for image generation"},"size":{"type":"string","description":"Image aspect ratio","enum":["1:1","16:9","9:16","3:2","2:3"],"default":"1:1"},"urls":{"description":"Reference image URLs for image-to-image mode","maxItems":1,"type":"array","items":{"type":"string"}}},"required":["prompt"]},"GrokImagine2ImageInputDto":{"type":"object","properties":{"prompt":{"type":"string","description":"Text description for image generation"},"size":{"type":"string","description":"Image aspect ratio","enum":["1:1","2:3","3:2","3:4","4:3","9:16","16:9"],"default":"1:1"}},"required":["prompt"]},"Flux3ImageInputDto":{"type":"object","properties":{"prompt":{"type":"string","description":"Text description or image editing instructions. Layout and bounding-box instructions may be included in the prompt."},"urls":{"description":"Reference image URLs for editing or multi-image guidance (up to 10 images). Omit for text-to-image generation.","maxItems":10,"type":"array","items":{"type":"string"}},"size":{"type":"string","description":"Image aspect ratio. Auto follows the first reference image, or the prompt when generating from text.","enum":["auto","21:9","2:1","16:9","3:2","7:5","4:3","5:4","1:1","4:5","3:4","5:7","2:3","9:16","1:2","9:21"],"default":"auto"},"resolution":{"type":"string","description":"Output resolution tier; determines the per-image price.","enum":["768SQ","1K","1.5K","2K","4K"],"default":"1K"},"grounding":{"type":"boolean","description":"Allow web and image search before generation. Reference images and search do not add a separate charge.","default":true}},"required":["prompt"]},"SeedanceImageWithRole":{"type":"object","properties":{"url":{"type":"string","description":"Image URL"},"role":{"type":"string","description":"Image role: first_frame or last_frame","enum":["first_frame","last_frame"]}},"required":["url","role"]},"SeedanceToolDto":{"type":"object","properties":{"type":{"type":"string","description":"Generation enhancement tool","enum":["web_search"]}},"required":["type"]},"SeedanceInputDto":{"type":"object","properties":{"prompt":{"type":"string","description":"Video content description. Required unless image or video reference media is provided (maximum 4000 characters).","maxLength":4000},"duration":{"type":"number","description":"Video duration in seconds (4-15)","default":5,"minimum":4,"maximum":15},"size":{"type":"string","description":"Video aspect ratio. adaptive follows the input image or video.","enum":["adaptive","16:9","9:16","1:1","4:3","3:4","21:9"],"default":"16:9"},"resolution":{"type":"string","description":"Output resolution and per-second billing tier","enum":["480p","720p","1080p","4k"],"default":"480p"},"seed":{"type":"number","description":"Random seed for controlling randomness"},"generateAudio":{"type":"boolean","description":"Whether to generate audio","default":true},"imageUrls":{"description":"Public image URLs for image-to-video (maximum 9). Very narrow or wide images may be padded to a width-to-height ratio of 0.4–2.5 without cropping. In first-frame mode, padding becomes part of the frame.","maxItems":9,"type":"array","items":{"type":"string"}},"imageWithRoles":{"description":"Images with explicit first_frame / last_frame roles. Cannot be combined with other reference-media fields.","maxItems":2,"type":"array","items":{"$ref":"#/components/schemas/SeedanceImageWithRole"}},"videoUrls":{"description":"Public reference-video URLs (maximum 3; total duration must be more than 1.8s and less than 15.2s). Their duration is probed before charging.","maxItems":3,"type":"array","items":{"type":"string"}},"audioUrls":{"description":"Public reference-audio URLs (maximum 3; 15 seconds total). Requires imageUrls or videoUrls.","maxItems":3,"type":"array","items":{"type":"string"}},"tools":{"description":"Optional enhancements such as web search grounding","type":"array","items":{"$ref":"#/components/schemas/SeedanceToolDto"}}}},"Seedance25ImageWithRoleDto":{"type":"object","properties":{"url":{"type":"string","description":"Public image URL. Image width and height must each be between 300 and 6000 pixels."},"role":{"type":"string","description":"Frame or reference role assigned to this image","enum":["first_frame","last_frame","reference_image"]}},"required":["url","role"]},"Seedance25ToolDto":{"type":"object","properties":{"type":{"type":"string","description":"Generation enhancement tool","enum":["web_search"]}},"required":["type"]},"Seedance25InputDto":{"type":"object","properties":{"prompt":{"type":"string","description":"Video prompt. Reference images, videos and audio positionally in the prompt."},"duration":{"type":"number","description":"Output duration in seconds (4-30). For reference-video jobs, input and output seconds use the reference-input tariff.","default":5,"minimum":4,"maximum":30},"size":{"type":"string","description":"Output aspect ratio. First/last-frame and extend jobs require adaptive.","enum":["adaptive","16:9","4:3","1:1","3:4","9:16","21:9"],"default":"adaptive"},"resolution":{"type":"string","description":"Output resolution and per-second billing tier","enum":["480p","720p","1080p"],"default":"480p"},"generateAudio":{"type":"boolean","description":"Whether the generated video includes audio","default":true},"seed":{"type":"number","description":"Random seed; identical output is not guaranteed"},"outputFormat":{"type":"string","description":"Output video container","enum":["mp4","mov"],"default":"mp4"},"omniReferenceTaskType":{"type":"string","description":"Optional task-type hint. edit is unavailable until variable-duration billing settlement is supported.","enum":["auto","reference","extend"],"default":"auto"},"imageUrls":{"description":"Reference image URLs (maximum 30 across both image fields). Image width and height must each be between 300 and 6000 pixels. Very narrow or wide images may be padded to a width-to-height ratio of 0.4–2.5 without cropping. In first-frame mode, padding becomes part of the frame.","maxItems":30,"type":"array","items":{"type":"string"}},"imageWithRoles":{"description":"Images with explicit first_frame, last_frame or reference_image roles","maxItems":30,"type":"array","items":{"$ref":"#/components/schemas/Seedance25ImageWithRoleDto"}},"videoUrls":{"description":"Public reference-video URLs (maximum 10; 2–30 seconds each and 30 seconds total). Each frame must contain 407,696–8,847,360 pixels (width × height). Duration and dimensions are checked before charging.","maxItems":10,"type":"array","items":{"type":"string"}},"audioUrls":{"description":"Reference audio URLs (maximum 10; 30 seconds total)","maxItems":10,"type":"array","items":{"type":"string"}},"tools":{"description":"Optional enhancements such as web search grounding","type":"array","items":{"$ref":"#/components/schemas/Seedance25ToolDto"}}},"required":["prompt"]},"Seedance25FlashInputDto":{"type":"object","properties":{"prompt":{"type":"string","description":"Video prompt. Reference media as [Image1], [Video1] or [Audio1], in array order."},"duration":{"type":"number","description":"Output duration in seconds (4-30). For reference-video jobs, input and output seconds use the reference-input tariff.","default":5,"minimum":4,"maximum":30},"size":{"type":"string","description":"Output aspect ratio. First/last-frame and extend jobs require adaptive.","enum":["adaptive","16:9","4:3","1:1","3:4","9:16","21:9"],"default":"adaptive"},"generateAudio":{"type":"boolean","description":"Whether the generated video includes audio","default":true},"seed":{"type":"number","description":"Random seed; identical output is not guaranteed"},"outputFormat":{"type":"string","description":"Output video container","enum":["mp4","mov"],"default":"mp4"},"omniReferenceTaskType":{"type":"string","description":"Optional task-type hint. edit is unavailable until variable-duration billing settlement is supported.","enum":["auto","reference","extend"],"default":"auto"},"tools":{"description":"Optional enhancements such as web search grounding","type":"array","items":{"$ref":"#/components/schemas/Seedance25ToolDto"}},"resolution":{"type":"string","description":"Output resolution and per-second billing tier","enum":["480p","720p"],"default":"480p"},"imageUrls":{"description":"Reference image URLs (maximum 10). Cannot be combined with imageWithRoles. Very narrow or wide images may be padded to a width-to-height ratio of 0.4–2.5 without cropping. In first-frame mode, padding becomes part of the frame.","maxItems":10,"type":"array","items":{"type":"string"}},"imageWithRoles":{"description":"Images with explicit first_frame, last_frame or reference_image roles (maximum 10). Cannot be combined with imageUrls. A last_frame requires a first_frame.","maxItems":10,"type":"array","items":{"$ref":"#/components/schemas/Seedance25ImageWithRoleDto"}},"videoUrls":{"description":"Public reference-video URLs (maximum 5; 2-30 seconds each and 30 seconds total). Their duration is probed before charging.","maxItems":5,"type":"array","items":{"type":"string"}},"audioUrls":{"description":"Reference audio URLs (maximum 5; 30 seconds total)","maxItems":5,"type":"array","items":{"type":"string"}}},"required":["prompt"]},"Seedance25SpicyInputDto":{"type":"object","properties":{"prompt":{"type":"string","description":"Video prompt. Reference images, videos and audio positionally in the prompt."},"duration":{"type":"number","description":"Output duration in seconds (4-30). For reference-video jobs, input and output seconds use the reference-input tariff.","default":5,"minimum":4,"maximum":30},"size":{"type":"string","description":"Output aspect ratio. First-frame animation and extend jobs require adaptive.","enum":["adaptive","16:9","4:3","1:1","3:4","9:16","21:9"],"default":"adaptive"},"resolution":{"type":"string","description":"Output resolution and per-second billing tier","enum":["480p","720p","1080p"],"default":"480p"},"generateAudio":{"type":"boolean","description":"Whether the generated video includes audio","default":true},"omniReferenceTaskType":{"type":"string","description":"auto selects the mode from the supplied media. reference uses all supplied references. Total input video duration is rounded up to whole seconds before billing. For generation with video references, billable seconds are the greater of rounded input plus output duration and 5/3 of output duration rounded up. extend continues a source video, requires videoUrls and bills rounded input plus output duration. Video editing is unavailable.","enum":["auto","reference","extend"],"default":"auto"},"imageUrls":{"description":"Reference image URLs (maximum 30). One image without other media animates the first frame; use reference mode to treat it as a style reference. Images outside a width-to-height ratio of 0.4–2.5 are padded without cropping when preparation succeeds. In first-frame mode, padding becomes part of the frame.","maxItems":30,"type":"array","items":{"type":"string"}},"videoUrls":{"description":"Public reference-video URLs (maximum 10; 2–30 seconds each and 30 seconds total). Each frame must contain 407,696–8,847,360 pixels (width × height). Duration and dimensions are checked before charging.","maxItems":10,"type":"array","items":{"type":"string"}},"audioUrls":{"description":"Reference audio URLs (maximum 10; 30 seconds total). Requires at least one reference image or video.","maxItems":10,"type":"array","items":{"type":"string"}},"tools":{"description":"Optional enhancements such as web search grounding","type":"array","items":{"$ref":"#/components/schemas/Seedance25ToolDto"}}},"required":["prompt"]},"Seedance25FlashSpicyInputDto":{"type":"object","properties":{"prompt":{"type":"string","description":"Video prompt (up to 30000 characters). Describe references in array order.","maxLength":30000},"duration":{"type":"number","description":"Output duration in seconds (4-30). For reference-video jobs, input and output seconds use the reference-input tariff.","default":5,"minimum":4,"maximum":30},"size":{"type":"string","description":"Output aspect ratio. First/last-frame and extend jobs require adaptive.","enum":["adaptive","16:9","4:3","1:1","3:4","9:16","21:9"],"default":"adaptive"},"generateAudio":{"type":"boolean","description":"Whether the generated video includes audio","default":true},"tools":{"description":"Optional enhancements such as web search grounding","type":"array","items":{"$ref":"#/components/schemas/Seedance25ToolDto"}},"resolution":{"type":"string","description":"Output resolution and per-second billing tier","enum":["480p","720p"],"default":"480p"},"imageUrls":{"description":"Reference image URLs (maximum 10). In auto mode, one or two images without other media are first/last frames and require adaptive size. Use reference mode for subject or style references. Images outside a width-to-height ratio of 0.4–2.5 may be padded without cropping.","maxItems":10,"type":"array","items":{"type":"string"}},"videoUrls":{"description":"Public reference-video URLs (maximum 5; 2-30 seconds each and 30 seconds total). Their duration is probed before charging.","maxItems":5,"type":"array","items":{"type":"string"}},"audioUrls":{"description":"Reference audio URLs (maximum 5; 2–30 seconds each, 30 seconds total). Requires an image or video reference.","maxItems":5,"type":"array","items":{"type":"string"}},"omniReferenceTaskType":{"type":"string","description":"auto selects text, first/last frames or references from the supplied media. reference uses media as subject/style references. Total input video duration is rounded up to whole seconds before billing. For generation with video references, billable seconds are the greater of rounded input plus output duration and 5/3 of output duration rounded up. extend requires videoUrls and adaptive size and bills rounded input plus output duration. edit requires exactly one 4–30 second source video, keeps its timeline and ignores duration and size. The source length is probed before charging and billed at twice its rounded duration.","enum":["auto","reference","edit","extend"],"default":"auto"}},"required":["prompt"]},"Seedance15ProInputDto":{"type":"object","properties":{"prompt":{"type":"string","description":"Video content description. Required for text-to-video; optional when image input is provided (maximum 4000 characters).","maxLength":4000},"duration":{"type":"number","description":"Video duration in seconds","default":4,"minimum":4,"maximum":15,"enum":[4,8,12]},"size":{"type":"string","description":"Video aspect ratio","enum":["16:9","9:16","1:1","4:3","3:4","21:9"],"default":"16:9"},"resolution":{"type":"string","description":"Video resolution","enum":["480p","720p","1080p"],"default":"480p"},"seed":{"type":"number","description":"Random seed for controlling randomness"},"generateAudio":{"type":"boolean","description":"Whether to generate audio","default":true},"imageUrls":{"description":"Public image URLs for image-to-video (maximum 9)","maxItems":9,"type":"array","items":{"type":"string"}},"imageWithRoles":{"description":"Images with explicit first_frame / last_frame roles. Cannot be combined with other reference-media fields.","maxItems":2,"type":"array","items":{"$ref":"#/components/schemas/SeedanceImageWithRole"}},"cameraFixed":{"type":"boolean","description":"Whether to fix the camera position","default":false}}},"GptImageInputDto":{"type":"object","properties":{"prompt":{"type":"string","description":"User's prompt"},"urls":{"description":"Reference image URLs (URLs or base64 data URIs) for image-to-image mode","type":"array","items":{"type":"string"}},"size":{"type":"string","description":"Output image aspect ratio. For GPT Image 2.5 models, 1:3 and 3:1 require 2k or 4k resolution.","enum":["auto","1:1","16:9","9:16","4:3","3:4","3:2","2:3","5:4","4:5","2:1","1:2","3:1","1:3","21:9","9:21"],"default":"1:1"},"resolution":{"type":"string","description":"Output image resolution","enum":["1k","2k","4k"],"default":"1k"}},"required":["prompt"]},"GptImage26VariantInputDto":{"type":"object","properties":{"prompt":{"type":"string","description":"Image generation or editing instructions","maxLength":32000},"urls":{"description":"Public HTTP(S) reference image URLs for image editing","maxItems":16,"type":"array","items":{"type":"string"}},"size":{"type":"string","description":"Output image aspect ratio","enum":["auto","1:1","2:3","3:2","4:3","3:4","4:5","5:4","16:9","9:16","21:9"],"default":"1:1"},"quality":{"type":"string","description":"Output image quality","enum":["low","medium","high"],"default":"high"},"resolution":{"type":"string","description":"Output resolution. 1k uses the shared GPT Image 2.6 engine; 2k and 4k use the selected Flare or Sunburst engine.","enum":["1k","2k","4k"],"default":"1k"}},"required":["prompt"]},"KlingMotionControlInputDto":{"type":"object","properties":{"prompt":{"type":"string","description":"Optional scene prompt"},"imageUrls":{"description":"Reference image URL (exactly one). Use one clearly visible person, with the head, shoulders, arms and torso in frame. JPG/JPEG/PNG, max 10MB. An image whose longer side exceeds 3850px is downscaled automatically","minItems":1,"maxItems":1,"type":"array","items":{"type":"string"}},"videoUrls":{"description":"Reference video URL (exactly one). Keep one person's complete upper body visible, including the first frame; cropped or multiple people may be rejected. MP4/MOV, max 100MB","minItems":1,"maxItems":1,"type":"array","items":{"type":"string"}},"characterOrientation":{"type":"string","description":"Character orientation mode. Determines whose orientation drives the motion transfer","enum":["image","video"]},"resolution":{"type":"string","description":"Output resolution","enum":["720p","1080p"],"default":"720p"}},"required":["imageUrls","videoUrls","characterOrientation"]},"Kling3InputDto":{"type":"object","properties":{"prompt":{"type":"string","description":"Video content description","maxLength":2500},"resolution":{"type":"string","description":"Video resolution tier (affects pricing)","enum":["720p","1080p","4k"],"default":"720p"},"duration":{"type":"number","description":"Video duration in seconds (3-15). Billed per second","default":5,"minimum":3,"maximum":15},"aspectRatio":{"type":"string","description":"Video aspect ratio. Ignored in image-to-video mode — the ratio is taken from the input frame","enum":["16:9","9:16","1:1"],"default":"16:9"},"generateAudio":{"type":"boolean","description":"Whether to generate a native audio track (increases pricing on 720p and 1080p)","default":false},"imageUrls":{"description":"Input frames for image-to-video. One URL is used as the first frame, two as first + last frame","maxItems":2,"type":"array","items":{"type":"string"}}},"required":["prompt"]},"Kling4ElementDto":{"type":"object","properties":{"description":{"type":"string","description":"Subject description (up to 100 characters)","maxLength":100},"type":{"type":"string","description":"Element media type","enum":["image","video"],"default":"image"},"imageUrls":{"description":"Image element references (1–4 URLs)","minItems":1,"maxItems":4,"type":"array","items":{"type":"string"}},"videoUrl":{"type":"string","description":"Video element source URL"}}},"Kling4ShotDto":{"type":"object","properties":{"prompt":{"type":"string","description":"Scene description"},"duration":{"type":"number","description":"Scene duration in seconds; all shots must total 3–30 seconds","minimum":1,"maximum":30}},"required":["prompt","duration"]},"Kling4InputDto":{"type":"object","properties":{"prompt":{"type":"string","description":"Describe the scene. Use @Image1 / @Element1 for references. Required unless multiShots is supplied; mutually exclusive with multiShots."},"videoMode":{"type":"string","description":"Omit for pure text-to-video. Use elements for references, start_end_frame for keyframes, transform or video_reference for a source video.","enum":["elements","start_end_frame","transform","video_reference"]},"resolution":{"type":"string","description":"Output resolution (4K is not available)","enum":["720p","1080p"],"default":"720p"},"duration":{"type":"number","description":"Output seconds, 3–30. Ignored with source video (its probed duration is billed) or multiShots (shot durations are summed).","minimum":3,"maximum":30,"default":3},"aspectRatio":{"type":"string","description":"Aspect ratio; must be auto with a source video. Keyframes determine their own ratio.","enum":["auto","16:9","9:16","1:1","21:9"]},"generateAudio":{"type":"boolean","description":"Generate native stereo audio (included in the price)","default":true},"keepAudio":{"type":"boolean","description":"Preserve source video audio","default":true},"imageUrls":{"description":"Raw references (up to 10); address as @Image1, @Image2. Requires elements, transform or video_reference mode.","maxItems":10,"type":"array","items":{"type":"string"}},"startImageIndex":{"type":"number","description":"1-based imageUrls index anchoring the first frame (elements mode)","minimum":1,"maximum":10},"elements":{"description":"Subject elements: { description?: string, type?: image | video, imageUrls?: string[1..4], videoUrl?: string }. Up to 7, at most 3 video elements. Images and elements together: at most 15, or 14 with source video.","minItems":1,"maxItems":7,"type":"array","items":{"$ref":"#/components/schemas/Kling4ElementDto"}},"startFrameUrl":{"type":"string","description":"Required first frame in start_end_frame mode"},"keyframeUrls":{"description":"Ordered middle frames (up to 8) in start_end_frame mode; at most 10 total frames","maxItems":8,"type":"array","items":{"type":"string"}},"endFrameUrl":{"type":"string","description":"Optional last frame in start_end_frame mode"},"videoUrl":{"type":"string","description":"Source video for transform / video_reference. Duration is probed before charging; 3–10 seconds for transform, 3–30 for video_reference. Transform needs a short side of at least 700px."},"multiShots":{"description":"2–6 scenes totalling 3–30 seconds; replaces prompt and duration. Only text-to-video and elements modes.","minItems":2,"maxItems":6,"type":"array","items":{"$ref":"#/components/schemas/Kling4ShotDto"}}}},"Kling4FlashInputDto":{"type":"object","properties":{"prompt":{"type":"string","description":"Describe the video. Address references as @image_1 or @video_1. Up to 2500 characters on the current route.","maxLength":2500},"duration":{"type":"number","description":"Output duration in seconds, 3–20","minimum":3,"maximum":20,"default":5},"resolution":{"type":"string","description":"Flash outputs 720p only","enum":["720p"],"default":"720p"},"aspectRatio":{"type":"string","description":"Output aspect ratio. auto adapts to reference media and requires an image or video.","enum":["16:9","9:16","1:1","21:9","auto"],"default":"16:9"},"startFrameUrl":{"type":"string","description":"Optional first frame. Counts toward the total of 10 image references. End frames are unavailable."},"imageUrls":{"description":"Reference images, up to 10 including startFrameUrl. The first frame, when supplied, is @image_1.","minItems":1,"maxItems":10,"type":"array","items":{"type":"string"}},"videoUrls":{"description":"Feature-reference videos, up to 5. Each must be 3–20 seconds; combined input duration must not exceed 20 seconds. Probed before charging. With video, billable seconds = output + max(total input, output). Editing is unavailable.","minItems":1,"maxItems":5,"type":"array","items":{"type":"string"}}},"required":["prompt"]},"PixverseInputDto":{"type":"object","properties":{"prompt":{"type":"string","description":"Video content description","maxLength":5000},"resolution":{"type":"string","description":"Video resolution tier (affects pricing)","enum":["360p","540p","720p","1080p"],"default":"360p"},"duration":{"type":"number","description":"Video duration in seconds (1-15). Transition mode only supports 5 or 8","default":5},"size":{"type":"string","description":"Video aspect ratio. Only effective in text-to-video and multi-reference fusion modes","enum":["16:9","4:3","1:1","3:4","9:16","2:3","3:2","21:9"],"default":"16:9"},"seed":{"type":"number","description":"Random seed","default":0},"negativePrompt":{"type":"string","description":"Negative prompt to exclude unwanted content","maxLength":2048},"audio":{"type":"boolean","description":"Whether to generate an audio track (increases pricing)","default":false},"motionMode":{"type":"string","description":"Motion mode. pixverse-v6 only supports \"normal\"","enum":["normal"]},"generateMultiClipSwitch":{"type":"boolean","description":"Whether to generate a multi-clip continuous video. Only supported in text-to-video and image-to-video modes","default":false},"imageUrls":{"description":"Input image URL array for image-to-video mode (only the first image is used)","type":"array","items":{"type":"string"}},"firstFrameImage":{"type":"string","description":"First frame image URL for transition mode. Must be provided together with lastFrameImage"},"lastFrameImage":{"type":"string","description":"Last frame image URL for transition mode. Must be provided together with firstFrameImage"},"imgReferences":{"description":"Reference image URLs for multi-reference fusion mode (1-7 images)","minItems":1,"maxItems":7,"type":"array","items":{"type":"string"}},"extendFromTaskId":{"type":"string","description":"Source task ID for video extension mode"}},"required":["prompt"]},"SeedreamInputDto":{"type":"object","properties":{"prompt":{"type":"string","description":"Text description for image generation"},"urls":{"description":"Reference images as complete HTTP(S) URLs or base64 data:image URIs for image-to-image mode","maxItems":14,"type":"array","items":{"type":"string"}},"size":{"type":"string","description":"Image aspect ratio","enum":["1:1","4:3","3:4","16:9","9:16","3:2","2:3","21:9","9:21","auto"],"default":"1:1"},"resolution":{"type":"string","description":"Image resolution","enum":["1K","1.5K","2K","3K","4K"],"default":"2K"},"outputFormat":{"type":"string","description":"Output image format (Seedream 5.0 Lite / Pro / Flash only; ignored by other models)","enum":["jpeg","png"],"default":"jpeg"},"promptOptimizeMode":{"type":"string","description":"Prompt optimization mode (seedream-4-5 only; ignored by other models)","enum":["standard","fast"],"default":"standard"}},"required":["prompt"]},"Seedream50ProInputDto":{"type":"object","properties":{"prompt":{"type":"string","description":"Text description for image generation"},"urls":{"description":"Up to 10 reference images as complete HTTP(S) URLs or base64 data:image URIs for image-to-image mode","maxItems":10,"type":"array","items":{"type":"string"}},"size":{"type":"string","description":"Image aspect ratio","enum":["1:1","4:3","3:4","16:9","9:16","3:2","2:3","21:9","auto"],"default":"1:1"},"resolution":{"type":"string","description":"Image resolution","enum":["1K","2K"],"default":"1K"},"outputFormat":{"type":"string","description":"Output image format (Seedream 5.0 Lite / Pro / Flash only; ignored by other models)","enum":["jpeg","png"],"default":"jpeg"},"promptOptimizeMode":{"type":"string","description":"Prompt optimization mode (seedream-4-5 only; ignored by other models)","enum":["standard","fast"],"default":"standard"}},"required":["prompt"]},"Seedream55InputDto":{"type":"object","properties":{"prompt":{"type":"string","description":"Text description for image generation or editing"},"urls":{"description":"Up to 10 public HTTP(S) image URLs or lowercase base64 data:image URIs. JPEG, PNG, WebP, BMP, TIFF, GIF, HEIC and HEIF; each at most 30 MiB and 36 million pixels. Every reference is billed, including the first.","maxItems":10,"type":"array","items":{"type":"string"}},"size":{"type":"string","description":"Aspect ratio or auto (model chooses the ratio), with resolution defaulting to 1K. Also accepts 1K / 1.5K / 2K or WIDTHxHEIGHT without resolution. Exact dimensions require 921600–4624220 pixels and ratio 1/16–16. When size is omitted, the aspect ratio is 1:1 and the requested resolution applies. If resolution is also omitted, it defaults to 1K.","default":"1:1","x-playground":{"options":["1:1","4:3","3:4","16:9","9:16","3:2","2:3","21:9","2:1","1:2","auto"]}},"resolution":{"type":"string","description":"Resolution for aspect-ratio or auto size (default 1K). Omit for tier or exact-pixel size.","enum":["1K","1.5K","2K"],"default":"1K"},"background":{"type":"string","description":"Background mode. Transparent output requires PNG.","enum":["auto","transparent","opaque"],"default":"auto"},"outputFormat":{"type":"string","description":"Output format; JPEG cannot be combined with transparent background","enum":["jpeg","png"],"default":"png"},"promptOptimizeMode":{"type":"string","description":"Only standard is supported. Optimization remains enabled when omitted.","enum":["standard"],"default":"standard"}},"required":["prompt"]},"Seedream50FlashInputDto":{"type":"object","properties":{"prompt":{"type":"string","description":"Text description for image generation or editing (up to 5000 characters)","maxLength":5000},"urls":{"description":"Up to 10 reference image URLs for image-to-image mode","maxItems":10,"type":"array","items":{"type":"string"}},"size":{"type":"string","description":"Image aspect ratio","enum":["1:1","4:3","3:4","16:9","9:16","3:2","2:3","21:9"],"default":"1:1"},"resolution":{"type":"string","description":"Image resolution","enum":["1K","1.5K","2K"],"default":"1.5K"},"outputFormat":{"type":"string","description":"Output image format","enum":["jpeg","png"],"default":"jpeg"}},"required":["prompt"]},"Wan27VideoInputDto":{"type":"object","properties":{"prompt":{"type":"string","description":"Text prompt. Required for text-to-video, reference-to-video and edit-video; optional for image-to-video."},"imageUrls":{"description":"Image-to-video frames. First URL is the starting frame, an optional second URL is the ending frame. Providing this selects the image-to-video workflow.","maxItems":2,"type":"array","items":{"type":"string"}},"referenceImageUrls":{"description":"Reference images for the reference-to-video workflow. Requires a prompt.","type":"array","items":{"type":"string"}},"referenceVideoUrls":{"description":"Reference videos for the reference-to-video workflow. Requires a prompt.","type":"array","items":{"type":"string"}},"editVideoUrl":{"type":"string","description":"Source video to edit. Providing this selects the edit-video workflow (requires a prompt)."},"referenceImageUrl":{"type":"string","description":"Optional reference image guiding the edit-video workflow."},"continueVideoUrl":{"type":"string","description":"Source video to continue or extend. Selects the video-continuation workflow. Cannot be combined with imageUrls or audioUrl. Supported duration is 2-10 seconds."},"audioUrl":{"type":"string","description":"Optional audio URL (text-to-video and image-to-video workflows)."},"size":{"type":"string","description":"Aspect ratio (text-to-video, reference-to-video and edit-video). Ignored for image-to-video, where it is derived from the input frames.","enum":["16:9","9:16","1:1","4:3","3:4"],"default":"16:9"},"resolution":{"type":"string","description":"Output resolution","enum":["720p","1080p"],"default":"720p"},"duration":{"type":"number","description":"Video duration in seconds (2-15). Allowed values depend on the resolved workflow: text-to-video accepts 5/10/15, image-to-video 2-15, reference-to-video 2-10, edit-video 0 or 2-10 (0 lets PoYo detect the source video duration)."},"multiShots":{"type":"boolean","description":"Enable multi-shot generation (image, reference and edit workflows)."},"audioSetting":{"type":"string","description":"Audio setting for the edit-video workflow."},"seed":{"type":"number","description":"Random seed for controlling randomness"},"enableSafetyChecker":{"type":"boolean","description":"Enable the model's safety checker"}}},"Wan30ImageWithRoleDto":{"type":"object","properties":{"url":{"type":"string","description":"Image address (public URL or data:image/...;base64,...). For Wan 3.0, Prime and Pro, each image must be at least 240x240 pixels."},"role":{"type":"string","description":"Role of the image. first_frame/last_frame belong to the frame family, reference_image to the reference family; the two cannot be mixed.","enum":["first_frame","last_frame","reference_image"]}},"required":["url"]},"Wan30VideoInputDto":{"type":"object","properties":{"prompt":{"type":"string","description":"Text description. Required unless at least one media input is supplied. In reference mode you can address assets positionally with \"图N / 视频N / 音频N\" labels; indices run per media type.","maxLength":20000},"imageUrls":{"description":"Image URLs without explicit roles. In the frame family the first item is the start frame and an optional second is the end frame; in the reference family every item is a reference image (up to 10). For Wan 3.0, Prime and Pro, each image must be at least 240x240 pixels.","maxItems":10,"type":"array","items":{"type":"string"}},"imageWithRoles":{"description":"Images with explicit roles. Use this when you need first/last frame or reference images stated outright rather than inferred from order.","maxItems":10,"type":"array","items":{"$ref":"#/components/schemas/Wan30ImageWithRoleDto"}},"videoUrls":{"description":"Reference videos, up to 5 clips of 1-15s each (total <= 15s). Input video duration plus the requested output duration must stay within 30 seconds.","maxItems":5,"type":"array","items":{"type":"string"}},"audioUrls":{"description":"Reference audio, up to 5 clips of 1-15s each (total <= 15s).","maxItems":5,"type":"array","items":{"type":"string"}},"fileUrl":{"type":"string","description":"Reference document driving the generation (docx/xlsx/pptx/pdf/txt/md and similar, <=100MB, <=50 pages). Cannot be combined with linkUrl. A prompt is optional when this is supplied."},"linkUrl":{"type":"string","description":"Public, login-free web page to turn into a video. Cannot be combined with fileUrl."},"generationType":{"type":"string","description":"How bare imageUrls are classified: frame (first/last frame) or reference. Omit to let it be inferred — reference when the request already carries reference-family inputs, frame otherwise.","enum":["frame","reference"]},"size":{"type":"string","description":"Aspect ratio. `adaptive` lets the model pick one from the inputs.","enum":["adaptive","16:9","4:3","1:1","3:4","9:16"],"default":"adaptive"},"resolution":{"type":"string","description":"Output resolution. Each tier is billed at its own per-second rate, so 1080p costs four times 480p for the same duration.","enum":["480p","720p","1080p"],"default":"480p"},"duration":{"type":"number","description":"Duration in seconds (2-30). Billing is per second at the resolution's rate. With reference videos, total input video duration plus this value must be at most 30 seconds.","default":5,"minimum":2,"maximum":30},"audio":{"type":"boolean","description":"Include an audio track in the output.","default":true},"seed":{"type":"number","description":"Random seed for controlling randomness","minimum":0,"maximum":2147483647}}},"Wan30VideoProInputDto":{"type":"object","properties":{"prompt":{"type":"string","description":"Text description. Required unless at least one media input is supplied. In reference mode you can address assets positionally with \"图N / 视频N / 音频N\" labels; indices run per media type.","maxLength":20000},"imageUrls":{"description":"Image URLs without explicit roles. In the frame family the first item is the start frame and an optional second is the end frame; in the reference family every item is a reference image (up to 10). For Wan 3.0, Prime and Pro, each image must be at least 240x240 pixels.","maxItems":10,"type":"array","items":{"type":"string"}},"imageWithRoles":{"description":"Images with explicit roles. Use this when you need first/last frame or reference images stated outright rather than inferred from order.","maxItems":10,"type":"array","items":{"$ref":"#/components/schemas/Wan30ImageWithRoleDto"}},"videoUrls":{"description":"Reference videos, up to 5 clips of 1-15s each (total <= 15s). Input video duration plus the requested output duration must stay within 30 seconds.","maxItems":5,"type":"array","items":{"type":"string"}},"audioUrls":{"description":"Reference audio URLs in MP3 or WAV format, up to 5 clips of 1-15s each (total <= 15s).","maxItems":5,"type":"array","items":{"type":"string"}},"fileUrl":{"type":"string","description":"Reference document driving the generation (docx/xlsx/pptx/pdf/txt/md and similar, <=100MB, <=50 pages). Cannot be combined with linkUrl. A prompt is optional when this is supplied."},"linkUrl":{"type":"string","description":"Public, login-free web page to turn into a video. Cannot be combined with fileUrl."},"generationType":{"type":"string","description":"How bare imageUrls are classified: frame (first/last frame) or reference. Omit to let it be inferred — reference when the request already carries reference-family inputs, frame otherwise.","enum":["frame","reference"]},"size":{"type":"string","description":"Aspect ratio. `adaptive` lets the model pick one from the inputs.","enum":["adaptive","16:9","4:3","1:1","3:4","9:16"],"default":"adaptive"},"duration":{"type":"number","description":"Duration in seconds (2-30). Billing is per second at the resolution's rate. With reference videos, total input video duration plus this value must be at most 30 seconds.","default":5,"minimum":2,"maximum":30},"audio":{"type":"boolean","description":"Include an audio track in the output.","default":true},"resolution":{"type":"string","description":"Output resolution. Billing is per second, including reference video seconds.","enum":["480p","720p","1080p","2K","4K"],"default":"480p"},"promptExtend":{"type":"boolean","description":"Let the model expand the prompt. Set false to keep the literal prompt.","default":true}}},"Flux3VideoInputDto":{"type":"object","properties":{"prompt":{"type":"string","description":"Scene description: subject, action, camera movement, dialogue and sound"},"resolution":{"type":"string","description":"Video resolution (affects pricing). Draft mode supports 720p only","enum":["720p","1080p"],"default":"720p"},"duration":{"type":"number","description":"Video duration in seconds (5-20). Billed per second","default":5,"minimum":5,"maximum":20},"aspectRatio":{"type":"string","description":"Video aspect ratio. `auto` lets the model choose from the prompt and input frames","enum":["auto","21:9","2:1","16:9","4:3","1:1","3:4","9:16"],"default":"auto"},"imageUrls":{"description":"Keyframes for image-to-video, in playback order. One image is the start frame, two are start + end, three or more are spread evenly across the clip","minItems":1,"maxItems":10,"type":"array","items":{"type":"string"}},"videoUrl":{"type":"string","description":"Source video (mp4) to continue. Continuation is billed at a higher per-second rate and cannot be combined with imageUrls"},"draft":{"type":"boolean","description":"Draft mode: a fast, low-quality 720p preview at about a third of the price","default":false},"safetyTolerance":{"type":"number","description":"Moderation tolerance from 0 (strictest) to 4 (most permissive)","default":2,"minimum":0,"maximum":4}},"required":["prompt"]},"GeminiOmni11InputDto":{"type":"object","properties":{"prompt":{"type":"string","description":"Describe the scene, motion and sound.","maxLength":4000},"imageUrls":{"description":"First frame and optional last frame. Cannot be combined with reference inputs.","maxItems":2,"type":"array","items":{"type":"string"}},"referenceImageUrls":{"description":"Reference images (up to 7; up to 5 with a reference video). Cannot be combined with imageUrls.","maxItems":7,"type":"array","items":{"type":"string"}},"referenceVideoUrls":{"description":"One source video, 3–10 seconds. Output follows source duration and is billed per generation. Cannot be combined with imageUrls.","maxItems":1,"type":"array","items":{"type":"string"}},"aspectRatio":{"type":"string","description":"Output aspect ratio","enum":["16:9","9:16"],"default":"16:9"},"duration":{"type":"number","description":"Output duration. Ignored with a source video, which uses a flat per-generation price.","enum":[4,6,8,10],"default":8},"resolution":{"type":"string","description":"Output resolution; 1080p and 4K are upscaled outputs.","enum":["360p","720p","1080p","4k"],"default":"720p"}},"required":["prompt"]},"GeminiOmni12InputDto":{"type":"object","properties":{"prompt":{"type":"string","description":"Describe the scene, motion, sound, or video edits.","maxLength":4000},"imageUrls":{"description":"First frame and optional last frame. Two frames limit duration to 10 seconds. Cannot be combined with referenceImageUrls or videoUrls.","maxItems":2,"type":"array","items":{"type":"string"}},"referenceImageUrls":{"description":"Up to 10 subject reference images; prefer at most 6 for character consistency. Cannot be combined with imageUrls.","maxItems":10,"type":"array","items":{"type":"string"}},"videoUrls":{"description":"One source video, at most 15 seconds, to edit or extend. Editing preserves its length; duration is ignored. Source duration is checked before billing.","maxItems":1,"type":"array","items":{"type":"string"}},"videoMode":{"type":"string","description":"Source-video operation. Extension adds 3–10 seconds and bills only the added segment. Requires videoUrls.","enum":["edit","extend"]},"duration":{"type":"number","description":"Whole output seconds (3–15), or added seconds for extension (3–10). Ignored when editing a source video.","minimum":3,"maximum":15,"default":10},"resolution":{"type":"string","description":"Output resolution; 1080p and 4K are upsampled.","enum":["360p","720p","1080p","4k"],"default":"720p"},"aspectRatio":{"type":"string","description":"Output aspect ratio","enum":["16:9","9:16"],"default":"16:9"}},"required":["prompt"]},"MinimaxH3InputDto":{"type":"object","properties":{"prompt":{"type":"string","description":"Describe the scene, motion and audio. Refer to supplied images and audio in the prompt."},"aspectRatio":{"type":"string","description":"Video aspect ratio","enum":["16:9","9:16"],"default":"16:9"},"imageUrls":{"description":"Reference image URLs (up to 9). The first 5 are free; each additional image is billed separately per request.","maxItems":9,"type":"array","items":{"type":"string"}},"audioUrls":{"description":"Reference audio URLs (up to 3), free of additional charge.","maxItems":3,"type":"array","items":{"type":"string"}},"resolution":{"type":"string","description":"Output resolution; 1080p supports at most 10 seconds.","enum":["480p","768p","1080p"],"default":"480p"},"duration":{"type":"number","description":"Output duration in seconds (1–15; at most 10 at 1080p).","minimum":1,"maximum":15,"default":5},"seed":{"type":"number","description":"Random seed"}},"required":["prompt"]},"AgnesVideoInputDto":{"type":"object","properties":{"prompt":{"type":"string","description":"Describe the scene, motion and audio. Refer to supplied images and audio in the prompt."},"aspectRatio":{"type":"string","description":"Video aspect ratio","enum":["16:9","9:16","21:9","4:3","1:1","3:4"],"default":"16:9"},"imageUrls":{"description":"Reference image URLs (up to 9). Included in the per-second price.","maxItems":9,"type":"array","items":{"type":"string"}},"audioUrls":{"description":"Reference audio URLs (up to 3), free of additional charge.","maxItems":3,"type":"array","items":{"type":"string"}},"resolution":{"type":"string","description":"Output video resolution.","enum":["720p","1080p","2k"],"default":"720p"},"duration":{"type":"number","description":"Output duration in seconds (1–12).","minimum":1,"maximum":12,"default":5},"seed":{"type":"number","description":"Random seed"}},"required":["prompt"]},"Magi2InputDto":{"type":"object","properties":{"prompt":{"type":"string","description":"Describe the scene, motion and sound. Required in text and reference modes.","maxLength":8000},"duration":{"type":"integer","description":"Clip length in whole seconds.","minimum":4,"maximum":30,"default":5},"resolution":{"type":"string","description":"Output resolution.","enum":["1080p"],"default":"1080p"},"aspectRatio":{"type":"string","description":"Output aspect ratio for text and reference modes. Defaults to 16:9. Omit it when using firstFrameImage.","enum":["16:9","9:16","1:1","4:3","3:4","21:9"]},"generateAudio":{"type":"boolean","description":"Generate a synchronized soundtrack. This setting does not change the price.","default":true},"firstFrameImage":{"type":"string","description":"Public HTTPS URL of the first frame. The video follows its aspect ratio. Cannot be combined with reference media."},"lastFrameImage":{"type":"string","description":"Public HTTPS URL of the last frame. Requires firstFrameImage."},"imageUrls":{"description":"Public HTTPS URLs of up to 10 reference images.","maxItems":10,"type":"array","items":{"type":"string"}},"videoUrls":{"description":"Public HTTPS URLs of up to 5 reference videos. Each is 2–30 seconds, with at most 30 seconds in total.","maxItems":5,"type":"array","items":{"type":"string"}},"audioUrls":{"description":"Public HTTPS URLs of up to 5 audio references. Each is 2–30 seconds, with at most 30 seconds in total.","maxItems":5,"type":"array","items":{"type":"string"}}}},"HeygenAvatar6InputDto":{"type":"object","properties":{"audioUrl":{"type":"string","description":"Public URL of the speech audio (2–60 seconds, maximum 15 MB). Video length follows the audio. Billing rounds the audio duration up to whole seconds."},"resolution":{"type":"string","description":"Output resolution","enum":["1080p","2K"],"default":"1080p"},"prompt":{"type":"string","description":"Optional direction for the avatar's gestures, expression and posture.","maxLength":1200},"videoUrl":{"type":"string","description":"Public URL of an animated or illustrated character video, at least 2 seconds long and up to 50 MB. Providing videoUrl selects video-to-video mode. The output follows the video's aspect ratio."},"imageUrls":{"description":"Public URL of one portrait image, required when videoUrl is omitted. In image-to-video mode the output follows the portrait's aspect ratio. With videoUrl, you may supply an image of the same character.","minItems":1,"maxItems":1,"type":"array","items":{"type":"string"}}},"required":["audioUrl"]},"KlingAvatar2InputDto":{"type":"object","properties":{"imageUrls":{"description":"Public URL of one portrait image. JPEG, PNG or WebP, up to 10 MB.","minItems":1,"maxItems":1,"type":"array","items":{"type":"string"}},"audioUrl":{"type":"string","description":"Public URL of the driving audio. Use a 2–60 second audio file of up to 5 MB."},"prompt":{"type":"string","description":"Optional direction for the avatar's performance.","maxLength":5000}},"required":["imageUrls","audioUrl"]},"VideoBackgroundRemovalInputDto":{"type":"object","properties":{"videoUrl":{"type":"string","description":"Public source video URL. MP4, MOV or WebM, up to 100 MiB."},"backgroundColor":{"type":"string","description":"Background for the output. Transparent backgrounds require WebM.","enum":["transparent","black","white","gray","red","green","blue","yellow","cyan","magenta","orange"],"default":"transparent"},"outputFormat":{"type":"string","description":"Output format. WebM uses VP9 and supports transparency. MP4 uses H.264 and requires a solid background.","enum":["webm","mp4"],"default":"webm"},"preserveAudio":{"type":"boolean","description":"Keep the original audio track when possible.","default":true}},"required":["videoUrl"]},"ZImageInputDto":{"type":"object","properties":{"prompt":{"type":"string","description":"Text description for image generation","maxLength":1000},"urls":{"description":"Optional reference image for editing (exactly one URL). Providing it switches the request to image editing.","maxItems":1,"type":"array","items":{"type":"string"}},"size":{"type":"string","description":"Image aspect ratio. Required for text-to-image; optional for image editing (defaults to following the reference image).","enum":["1:1","4:3","3:4","16:9","9:16"],"default":"1:1"},"enableSafetyChecker":{"type":"boolean","description":"Enable the model's safety checker (defaults to true)"}},"required":["prompt"]},"Wan27ImageInputDto":{"type":"object","properties":{"prompt":{"type":"string","description":"Text description for image generation","maxLength":5000},"urls":{"description":"Reference images for editing (1-4 URLs). Providing them switches the request to edit mode. Order matters: reference them as image 1, image 2, etc. in the prompt.","minItems":1,"maxItems":4,"type":"array","items":{"type":"string"}},"size":{"type":"string","description":"Output aspect ratio (ignored when width + height are provided)","enum":["1:1","16:9","9:16","4:3","3:4","3:2","2:3"],"default":"1:1"},"width":{"type":"number","description":"Custom output width in pixels (requires height). Overrides size."},"height":{"type":"number","description":"Custom output height in pixels (requires width). Overrides size."},"seed":{"type":"number","description":"Random seed for reproducible output"}},"required":["prompt"]},"MidjourneyInputDto":{"type":"object","properties":{"action":{"type":"string","description":"Midjourney action / endpoint. Defaults to 'imagine' (text-to-image). Follow-up actions reference a previous generation via 'parentTaskId'.","enum":["imagine","edits","blend","describe","upscale","variation","high-variation","low-variation","reroll","zoom","pan","inpaint","modal","remix-strong","remix-subtle"],"default":"imagine"},"prompt":{"type":"string","description":"Prompt; required for imagine/edits. Native MJ flags allowed (e.g. '--ar 16:9 --v 6.1'). Structured body fields override prompt flags."},"imageUrls":{"description":"Image URLs or base64 data URIs. Used as: image-guided (imagine), source (edits), blend set (2–4), describe (1).","maxItems":16,"type":"array","items":{"type":"string"}},"parentTaskId":{"type":"string","description":"Parent generation id (a previous 'midjourney' generation in our system) for follow-up actions (upscale/variation/reroll/zoom/pan/inpaint/modal/remix). The upstream task id is resolved from it."},"index":{"type":"number","description":"Tile index (1–4) for upscale/variation/zoom/pan/inpaint/remix when 'customId' is not provided.","minimum":1,"maximum":4},"customId":{"type":"string","description":"Raw MJ button id for the action; when set, 'index'/'direction' matching is skipped."},"speed":{"type":"string","description":"Speed mode. 'relax' (default) adds no billing suffix.","enum":["relax","fast","turbo"],"default":"relax"},"direction":{"type":"string","description":"Pan direction (action=pan).","enum":["left","right","up","down"]},"zoomRatio":{"type":"number","description":"Zoom factor (action=zoom). < 2 → Zoom Out 1.5x; omitted or >= 2 → 2x."},"maskUrl":{"type":"string","description":"Mask image URL or base64 (action=modal). White = repaint, transparent = keep."},"dimensions":{"type":"string","description":"Aspect preset for blend (action=blend); overridden by 'size'.","enum":["SQUARE","PORTRAIT","LANDSCAPE"],"default":"SQUARE"},"size":{"type":"string","description":"Aspect ratio 'w:h' (--ar), e.g. '16:9', '1:1', '21:9'."},"quality":{"type":"string","description":"Quality (--q).","enum":["0.25","0.5","1","2"]},"style":{"type":"string","description":"Style (--style), e.g. 'raw'."},"version":{"type":"string","description":"Main MJ version (--v). With 'niji: true' and '7'/'6' it normalizes to Niji.","enum":["8.1","7","6.1","5.2","5.1"]},"seed":{"type":"number","description":"Seed (--seed)."},"negativePrompt":{"type":"string","description":"Negative prompt (--no), e.g. 'ugly, blurry'."},"stylize":{"type":"number","description":"Stylize (--s), 0–1000."},"chaos":{"type":"number","description":"Chaos (--c), 0–100."},"weird":{"type":"number","description":"Weird (--w), 0–3000."},"tile":{"type":"boolean","description":"Tile mode (--tile)."},"niji":{"type":"boolean","description":"Niji switch (--niji). Use with version 7/6."},"iw":{"type":"number","description":"Image weight (--iw), 0–3."},"cw":{"type":"number","description":"Character weight (--cw), 0–100."},"sw":{"type":"number","description":"Style weight (--sw), 0–1000."},"cref":{"type":"string","description":"Character reference URL (--cref)."},"sref":{"type":"string","description":"Style reference URL (--sref)."},"dref":{"type":"string","description":"Depth reference URL (--dref)."},"dw":{"type":"number","description":"Depth weight (--dw), 0–100."},"repeat":{"type":"number","description":"Repeat (--repeat), 2–40."},"raw":{"type":"boolean","description":"Raw style (--raw), v5.1+."},"draft":{"type":"boolean","description":"Draft mode (--draft), v7+."},"hd":{"type":"boolean","description":"HD mode (--hd), v8/v8.1 only."},"stop":{"type":"number","description":"Early stop (--stop), 10–100; v5–6.1 / niji 5–6 only."},"extra":{"type":"string","description":"Escape hatch appended to the prompt verbatim (any '--xxx')."}}},"MidjourneyVideoInputDto":{"type":"object","properties":{"prompt":{"type":"string","description":"Video prompt; optional when reusing a parent task."},"imageUrls":{"description":"First-frame image (1 image, URL or base64). One of imageUrls / parentTaskId.","maxItems":1,"type":"array","items":{"type":"string"}},"parentTaskId":{"type":"string","description":"Parent generation id (a SUCCESS 'midjourney' imagine generation) to reuse as the source. One of imageUrls / parentTaskId."},"index":{"type":"number","description":"Which tile of the parent imagine grid is the first frame (0–3).","minimum":0,"maximum":3},"videoType":{"type":"string","description":"Resolution / mode tier. 720 tiers bill at the 720p rate.","enum":["vid_1.1_i2v_480","vid_1.1_i2v_720","vid_1.1_i2v_start_end_480","vid_1.1_i2v_start_end_720"],"default":"vid_1.1_i2v_480"},"animateMode":{"type":"string","description":"Animation mode. 'auto' requires parentTaskId + index.","enum":["manual","auto"],"default":"manual"},"motion":{"type":"string","description":"Motion amount. No billing impact.","enum":["low","high"],"default":"high"},"batchSize":{"type":"number","description":"Batch size (1 / 2 / 4). Billed × N.","enum":[1,2,4],"default":1},"endUrl":{"type":"string","description":"End frame; when set, videoType auto-upgrades to a start/end tier."}}},"SunoCustomModelDto":{"type":"object","properties":{"name":{"type":"string","description":"Custom model name"},"audioUrls":{"description":"Audio URLs to train on (6–24)","type":"array","items":{"type":"string"}}},"required":["name","audioUrls"]},"SunoInputDto":{"type":"object","properties":{"action":{"type":"string","description":"Suno operation","enum":["music","extend","cover","add-instrumental","add-vocals","sound","stems","stems-all","wav","lyrics","voice","timestamped-lyrics","boost-style","music-cover","replace-section","music-video","inspo","upload","remaster","add-stem","vox","remove-section","crop","fade-in","fade-out","adjust-speed","concat","mashup","sample","midi","bpm","custom-model"],"default":"music"},"mv":{"type":"string","description":"Engine version. Audio actions: v6 (default) | v6-wild | v6-mini | custom. The retired versions v3.5 … v5.5 are still accepted and run on v6. lyrics: remi-v1 | default. Not used by stems/stems-all/wav/voice. variety, maxMode, audioFormat, duration and customModelId need a V6 engine (any value except custom).","example":"v6"},"custom":{"type":"boolean","description":"false for simple mode, true for custom mode"},"gptDescriptionPrompt":{"type":"string","description":"Simple mode: song / effect description (with optional lyrics)"},"prompt":{"type":"string","description":"In custom mode, enter detailed lyrics or a prompt. Action \"lyrics\" requires a song description here. You can omit the custom flag for this action. For action \"sound\", describe the effect in up to 500 UTF-16 code units (JavaScript String.length)."},"tags":{"type":"string","description":"Custom mode: genre / style tags"},"title":{"type":"string","description":"Title for the result"},"makeInstrumental":{"type":"boolean","description":"Generate an instrumental-only track","default":false},"negativeTags":{"type":"string","description":"Styles to avoid (custom mode / sound)"},"personaId":{"type":"string","description":"ID of a custom voice (persona) to sing the generated music"},"customModel":{"description":"Inline custom model definition (required when mv=custom)","allOf":[{"$ref":"#/components/schemas/SunoCustomModelDto"}]},"customModelId":{"type":"string","description":"Id of a reusable custom model created by the `custom-model` action (its `output.customModelId`). Generates in that model's style; cannot be combined with mv or personaId."},"variety":{"type":"string","description":"Style variation: off | normal | high | extra | max. V6 generative actions.","enum":["off","normal","high","extra","max"]},"maxMode":{"type":"boolean","description":"Max mode: higher-quality V6 generation, billed at twice the regular price. Requires custom mode, except on inspo and replace-section.","default":false},"audioFormat":{"type":"string","description":"Output audio format: mp3 | m4a | wav. V6 generative actions plus sound, remaster, stems and stems-all.","enum":["mp3","m4a","wav"]},"duration":{"type":"number","description":"music / extend / cover: target length in seconds (10–360), custom mode only. The actual length is decided by the model.","minimum":10,"maximum":360},"audioUrl":{"type":"string","description":"Audio file URL to operate on"},"continueAt":{"type":"number","description":"extend: time in seconds where the extension should begin (at least 1 for a sourceTaskId or audioUrl source)"},"sourceTaskId":{"type":"string","description":"Reference to one of your prior Suno generations (its taskId), used by stateful actions such as extend, music-cover, replace-section, timestamped-lyrics, music-video, voice and wav."},"audioId":{"type":"string","description":"The track to operate on, identified by its id (as returned in a prior generation's `output.tracks[].audioId`). A generation usually produces 2 tracks; omit to use the first."},"fullLyrics":{"type":"string","description":"replace-section: complete lyrics for the whole track after the edit"},"author":{"type":"string","description":"music-video: artist / creator name on the cover (max 50)"},"domainName":{"type":"string","description":"music-video: brand / site watermark at the bottom (max 50)"},"aspectRatio":{"type":"string","description":"music-video: output aspect ratio","enum":["9:16","16:9","1:1","3:4","4:3"],"default":"9:16"},"backgroundColors":{"description":"music-video: 1–4 hex colors for the blurred gradient backdrop (e.g. [\"#1B2635\", \"#8A6A4F\"])","type":"array","items":{"type":"string"}},"imageUrl":{"type":"string","description":"music-video: cover image URL to show inside the ring (default: the source track's cover art when available)"},"quality":{"type":"string","description":"music-video: output quality. `compact` — small share-friendly file (~5MB / 3 min); `high` — sharper 720p-class output at roughly double the size; `max` — 1080p-class, ~4× compact","enum":["compact","high","max"],"default":"compact"},"startS":{"type":"number","description":"Start time (seconds) of the affected range. Used by remove-section / crop / sample (the range), replace-section (the infill range) and vox / voice-from-track (the vocal window)."},"endS":{"type":"number","description":"End time (seconds) of the affected range (> startS). See startS for the actions that use it."},"bpm":{"type":"number","description":"sound: tempo in BPM"},"key":{"type":"string","description":"sound: musical key (Major C–B; Minor Cm–Bm)"},"type":{"type":"string","description":"sound: 'one-shot' or 'loop' (defaults to one-shot)","enum":["one-shot","loop"]},"voiceAudioUrl":{"type":"string","description":"voice: URL to the voice recording (MP3 / WAV, at least 10 seconds)"},"verificationAudioUrl":{"type":"string","description":"voice: URL to the verification-phrase recording"},"phraseId":{"type":"string","description":"voice: phrase ID from the verification-phrase endpoint"},"name":{"type":"string","description":"voice / custom-model: name"},"description":{"type":"string","description":"voice: description"},"styles":{"type":"string","description":"voice: genre tags (e.g. 'funk edm')"},"singerSkillLevel":{"type":"string","description":"voice: singer skill level","enum":["Beginner","Intermediate","Advanced","Professional"]},"audioUrls":{"description":"Public audio URLs. inspo: 1–4 inspiration references; custom-model: 6–24 training tracks (MP3, WAV or M4A).","type":"array","items":{"type":"string"}},"styleWeight":{"type":"number","description":"Style weight (0.00–1.00)"},"weirdnessConstraint":{"type":"number","description":"Creativity / weirdness weight (0.00–1.00)"},"audioWeight":{"type":"number","description":"Audio weight (0.00–1.00)"},"vocalGender":{"type":"string","description":"Vocal gender: Male or Female","enum":["Male","Female"]},"autoLyrics":{"type":"boolean","description":"inspo: rewrite the provided lyrics creatively"},"variationCategory":{"type":"string","description":"remaster: intensity (subtle / normal / high)","enum":["subtle","normal","high"]},"stemType":{"type":"string","description":"stems: which stem to extract (e.g. lead_vocal, backing_vocals, drum_kit, bass, piano, electric_guitar). Defaults to lead_vocal."},"voxAudioId":{"type":"string","description":"Deprecated and ignored: a persona is now created straight from the track (voice with sourceTaskId), no vox extraction needed.","deprecated":true},"durationS":{"type":"number","description":"fade-in / fade-out: fade duration in seconds"},"speed":{"type":"number","description":"adjust-speed: speed multiplier (0.25–4)"},"keepPitch":{"type":"boolean","description":"adjust-speed: keep the original pitch (defaults to true)"},"sourceTaskIds":{"description":"mashup: exactly 2 prior suno generation ids (taskIds) to remix together","type":"array","items":{"type":"string"}},"audioIds":{"description":"mashup: parallel array to sourceTaskIds selecting the track in each source by its audioId (as returned in output.tracks[].audioId); omit an entry to use that source's first track","type":"array","items":{"type":"string"}}}},"CreateGenerationRequestDto":{"type":"object","properties":{"model":{"type":"string","description":"Model of generation. Retired ids are still accepted and map to the current model: `doubao-seedance-2.0` → `seedance-2.0`, `doubao-seedance-2.0-fast` → `seedance-2.0-fast`, `doubao-seedance-2.0-mini` → `seedance-2.0-mini`, `doubao-seedance-2.5` → `seedance-2.5`, `doubao-seedance-1-5-pro` → `seedance-1-5-pro`, `doubao-seedream-4-5` → `seedream-4-5`, `doubao-seedream-5-0-lite` → `seedream-5-0-lite`, `doubao-seedream-5-0-pro` → `seedream-5-0-pro`.","enum":["veo3.1-fast","veo3.1-quality","veo3.1-lite","nano-banana","nano-banana-pro","nano-banana-2","nano-banana-2.1","nano-banana-2-lite","grok-imagine-1.5-video","grok-imagine-1.5-image","grok-imagine-2.0-image","seedance-2.0","seedance-2.0-fast","seedance-2.0-mini","seedance-2.5","seedance-2.5-flash","seedance-2.5-spicy","seedance-2.5-flash-spicy","seedance-1-5-pro","gpt-image-2","gpt-image-2.5-sunburst","gpt-image-2.5-flare","gpt-image-2.6-flare","gpt-image-2.6-sunburst","kling-3.0-motion-control","kling-3.0","kling-4.0","kling-4.0-flash","pixverse-v6","seedream-5-0-lite","seedream-5-0-flash","seedream-5-5","seedream-5-0-pro","seedream-4-5","wan2.7-video","wan3.0-video","wan3.0-video-prime","wan3.0-video-pro","flux-3-video","flux-3-image","gemini-omni-1.1-flash","gemini-omni-1.2-flash","minimax-h3","agnes-video-2.5","magi-2","heygen-avatar-6","heygen-avatar-6-turbo","kling-avatar-2.0-standard","video-background-removal","z-image","wan2.7-image","wan2.7-image-pro","midjourney","midjourney-video","suno"]},"input":{"description":"Generation parameters (structure depends on the model)","anyOf":[{"$ref":"#/components/schemas/Veo3InputDto"},{"$ref":"#/components/schemas/Veo3LiteInputDto"},{"$ref":"#/components/schemas/NanoBananaInputDto"},{"$ref":"#/components/schemas/NanoBanana21InputDto"},{"$ref":"#/components/schemas/GrokImagineInputDto"},{"$ref":"#/components/schemas/GrokImagineImageInputDto"},{"$ref":"#/components/schemas/GrokImagine2ImageInputDto"},{"$ref":"#/components/schemas/Flux3ImageInputDto"},{"$ref":"#/components/schemas/SeedanceInputDto"},{"$ref":"#/components/schemas/Seedance25InputDto"},{"$ref":"#/components/schemas/Seedance25FlashInputDto"},{"$ref":"#/components/schemas/Seedance25SpicyInputDto"},{"$ref":"#/components/schemas/Seedance25FlashSpicyInputDto"},{"$ref":"#/components/schemas/Seedance15ProInputDto"},{"$ref":"#/components/schemas/GptImageInputDto"},{"$ref":"#/components/schemas/GptImage26VariantInputDto"},{"$ref":"#/components/schemas/KlingMotionControlInputDto"},{"$ref":"#/components/schemas/Kling3InputDto"},{"$ref":"#/components/schemas/Kling4InputDto"},{"$ref":"#/components/schemas/Kling4FlashInputDto"},{"$ref":"#/components/schemas/PixverseInputDto"},{"$ref":"#/components/schemas/SeedreamInputDto"},{"$ref":"#/components/schemas/Seedream50ProInputDto"},{"$ref":"#/components/schemas/Seedream55InputDto"},{"$ref":"#/components/schemas/Seedream50FlashInputDto"},{"$ref":"#/components/schemas/Wan27VideoInputDto"},{"$ref":"#/components/schemas/Wan30VideoInputDto"},{"$ref":"#/components/schemas/Wan30VideoProInputDto"},{"$ref":"#/components/schemas/Flux3VideoInputDto"},{"$ref":"#/components/schemas/GeminiOmni11InputDto"},{"$ref":"#/components/schemas/GeminiOmni12InputDto"},{"$ref":"#/components/schemas/MinimaxH3InputDto"},{"$ref":"#/components/schemas/AgnesVideoInputDto"},{"$ref":"#/components/schemas/Magi2InputDto"},{"$ref":"#/components/schemas/HeygenAvatar6InputDto"},{"$ref":"#/components/schemas/KlingAvatar2InputDto"},{"$ref":"#/components/schemas/VideoBackgroundRemovalInputDto"},{"$ref":"#/components/schemas/ZImageInputDto"},{"$ref":"#/components/schemas/Wan27ImageInputDto"},{"$ref":"#/components/schemas/MidjourneyInputDto"},{"$ref":"#/components/schemas/MidjourneyVideoInputDto"},{"$ref":"#/components/schemas/SunoInputDto"}]},"webhook":{"type":"string","description":"Webhook for result"}},"required":["model","input"]},"GenerationCostEstimateDto":{"type":"object","properties":{"cost":{"type":"number","description":"Exact amount the generation would charge, in µUSD (1 cent = 10 000 µUSD). Sub-cent tiers are preserved, e.g. 32000 for a $0.032 request.","example":32000}},"required":["cost"]},"MediaFileDto":{"type":"object","properties":{"fileUrl":{"type":"string","description":"Temporary generated file URL. File deletion is scheduled 3 days after upload, rounded up to midnight UTC; cleanup is asynchronous. Standard task details and links expire 3 days from task creation (createdTime). Download on completion.","example":"https://storage.api-stock.com/generated/image-abc123.jpg"},"fileType":{"type":"string","description":"Type of media file: 'image', 'video' or 'music'","enum":["image","video","music"],"example":"image"}},"required":["fileUrl","fileType"]},"TaskDataDto":{"type":"object","properties":{"taskId":{"type":"string","description":"Unique task identifier","example":"019ca881-9503-7270-a560-f00fc2b15785"},"status":{"type":"string","description":"Task status: not_started, processing, finished, failed, expired","enum":["not_started","processing","finished","failed","expired"],"example":"finished"},"files":{"description":"Generated media files (populated when status is finished)","example":[{"fileUrl":"https://storage.api-stock.com/generated/image-abc123.jpg","fileType":"image"}],"type":"array","items":{"$ref":"#/components/schemas/MediaFileDto"}},"output":{"type":"object","description":"Structured result data. For data generations (e.g. Suno lyrics text or created persona) this is the full result. For media generations it carries extra metadata when available — e.g. Suno music returns `tracks` with per-track title, duration, lyrics, tags and cover image URLs (order matches `files`).","nullable":true},"createdTime":{"type":"string","description":"ISO 8601 timestamp of task creation","example":"2025-11-12T10:30:00"},"errorMessage":{"type":"string","description":"Error description (when status is failed)","example":null,"nullable":true}},"required":["taskId","status","createdTime"]},"TaskStatusResponseDto":{"type":"object","properties":{"code":{"type":"number","description":"HTTP status code","example":200},"data":{"description":"Task data","allOf":[{"$ref":"#/components/schemas/TaskDataDto"}]}},"required":["code","data"]},"GenerationResponseData":{"type":"object","properties":{"taskId":{"type":"string","description":"Generation task ID","example":"01234567-89ab-cdef-0123-456789abcdef"},"status":{"type":"string","description":"Current generation status","enum":["not_started","processing","finished","failed","expired"],"example":"not_started"},"createdAt":{"type":"string","description":"Generation creation timestamp","example":"2026-02-28T11:22:33.000Z"}},"required":["taskId","status","createdAt"]},"CreateGenerationResponseDto":{"type":"object","properties":{"code":{"type":"number","description":"HTTP status code","example":200},"data":{"description":"Response data","allOf":[{"$ref":"#/components/schemas/GenerationResponseData"}]}},"required":["code","data"]},"BadRequestErrorResponseDto":{"type":"object","properties":{"code":{"type":"number","description":"HTTP status code","example":400},"error":{"description":"Error details","allOf":[{"$ref":"#/components/schemas/ErrorDetails"}]}},"required":["code","error"]},"PaymentRequiredErrorResponseDto":{"type":"object","properties":{"code":{"type":"number","description":"HTTP status code","example":402},"error":{"description":"Error details","allOf":[{"$ref":"#/components/schemas/ErrorDetails"}]}},"required":["code","error"]},"GenerationDto":{"type":"object","properties":{"taskId":{"type":"string","description":"Unique task identifier of generation"},"model":{"type":"string","description":"Generation model","enum":["veo3.1-fast","veo3.1-quality","veo3.1-lite","nano-banana","nano-banana-pro","nano-banana-2","nano-banana-2.1","nano-banana-2-lite","grok-imagine-1.5-video","grok-imagine-1.5-image","grok-imagine-2.0-image","seedance-2.0","seedance-2.0-fast","seedance-2.0-mini","seedance-2.5","seedance-2.5-flash","seedance-2.5-spicy","seedance-2.5-flash-spicy","seedance-1-5-pro","gpt-image-2","gpt-image-2.5-sunburst","gpt-image-2.5-flare","gpt-image-2.6-flare","gpt-image-2.6-sunburst","kling-3.0-motion-control","kling-3.0","kling-4.0","kling-4.0-flash","pixverse-v6","seedream-5-0-lite","seedream-5-0-flash","seedream-5-5","seedream-5-0-pro","seedream-4-5","wan2.7-video","wan3.0-video","wan3.0-video-prime","wan3.0-video-pro","flux-3-video","flux-3-image","gemini-omni-1.1-flash","gemini-omni-1.2-flash","minimax-h3","agnes-video-2.5","magi-2","heygen-avatar-6","heygen-avatar-6-turbo","kling-avatar-2.0-standard","video-background-removal","z-image","wan2.7-image","wan2.7-image-pro","midjourney","midjourney-video","suno"],"nullable":true},"input":{"type":"string","description":"Generation input parameters","nullable":true},"files":{"description":"Generated media files (populated when generation is completed)","type":"array","items":{"$ref":"#/components/schemas/MediaFileDto"}},"output":{"type":"object","nullable":true,"description":"Structured provider result stored next to the files (populated when generation is finished). For Suno music: `tracks` with per-track title, duration, lyrics, tags and cover image URLs, in the order of `files`."},"status":{"type":"string","description":"Current generation status","enum":["not_started","processing","finished","failed","expired"]},"error":{"type":"string","nullable":true,"description":"Error information during generation"},"errorCode":{"type":"string","nullable":true,"description":"API Stock failure code for localizing the error message"},"createdAt":{"format":"date-time","type":"string","description":"Generation creation time"},"completedAt":{"format":"date-time","type":"string","description":"Generation completion time"},"duration":{"type":"number","description":"Generation duration time in ms"},"cost":{"type":"number","description":"Generation cost in integer USD cents","format":"int32","example":15075,"nullable":true},"webhook":{"type":"string","nullable":true,"description":"Callback URL the result was delivered to, as passed on creation. Null when the generation was created without one."}},"required":["taskId","model","input","status","createdAt","completedAt","duration","cost"]},"StatsTotalsDto":{"type":"object","properties":{"balance":{"type":"number","description":"Current balance, in cents"},"spent":{"type":"number","description":"Spent within the selected period, in cents. Failed generations are refunded, so they are not counted here even though they count as requests"},"spentAllTime":{"type":"number","description":"Spent since registration, in cents; refunded failures excluded"},"requests":{"type":"number","description":"Generations created within the period"},"succeeded":{"type":"number","description":"Generations finished successfully"},"failed":{"type":"number","description":"Generations that ended in an error"},"inProgress":{"type":"number","description":"Generations still running"},"llmRequests":{"type":"number","description":"LLM chat requests within the period"},"llmTokens":{"type":"number","description":"LLM tokens consumed within the period"}},"required":["balance","spent","spentAllTime","requests","succeeded","failed","inProgress","llmRequests","llmTokens"]},"StatsBucketDto":{"type":"object","properties":{"key":{"type":"string","description":"Bucket key — a date (YYYY-MM-DD) or model id"},"count":{"type":"number","description":"Number of generations in the bucket"},"cost":{"type":"number","description":"Amount spent in the bucket, in cents; refunded failures excluded"}},"required":["key","count","cost"]},"StatsResponseDto":{"type":"object","properties":{"from":{"type":"string","description":"Period start actually used (ISO 8601)"},"to":{"type":"string","description":"Period end actually used (ISO 8601)"},"totals":{"$ref":"#/components/schemas/StatsTotalsDto"},"byDay":{"description":"Spend per day, ascending, gaps filled with zeroes","type":"array","items":{"$ref":"#/components/schemas/StatsBucketDto"}},"byModel":{"description":"Spend per model, most expensive first","type":"array","items":{"$ref":"#/components/schemas/StatsBucketDto"}},"byType":{"description":"Spend per generation type","type":"array","items":{"$ref":"#/components/schemas/StatsBucketDto"}}},"required":["from","to","totals","byDay","byModel","byType"]},"ChatMessageDto":{"type":"object","properties":{"role":{"type":"string","description":"Role of the message author","example":"user"},"content":{"type":"object","description":"Message content. Either a string or an array of content parts (multimodal).","example":"Hello!"},"name":{"type":"string","description":"Optional author name"}},"required":["role","content"]},"ChatCompletionRequestDto":{"type":"object","properties":{"model":{"type":"string","description":"Model id","example":"gemini-3.5-flash"},"messages":{"description":"Conversation messages","type":"array","items":{"$ref":"#/components/schemas/ChatMessageDto"}},"stream":{"type":"boolean","description":"Stream partial deltas as server-sent events","default":false},"temperature":{"type":"number","description":"Sampling temperature (0-2)"},"top_p":{"type":"number","description":"Nucleus sampling probability"},"max_tokens":{"type":"number","description":"Maximum tokens to generate"},"max_completion_tokens":{"type":"number","description":"Alias for max_tokens; capped by API Stock"},"n":{"type":"number","description":"Number of completions. API Stock currently supports one.","default":1,"maximum":1}},"required":["model","messages"]},"ChatCompletionChoiceDto":{"type":"object","properties":{"index":{"type":"number","example":0},"message":{"type":"object","example":{"role":"assistant","content":"Hi there!"}},"finish_reason":{"type":"string","example":"stop","nullable":true}},"required":["index","message","finish_reason"]},"ChatCompletionUsageDto":{"type":"object","properties":{"prompt_tokens":{"type":"number","example":12},"completion_tokens":{"type":"number","example":34},"total_tokens":{"type":"number","example":46}},"required":["prompt_tokens","completion_tokens","total_tokens"]},"ChatCompletionResponseDto":{"type":"object","properties":{"id":{"type":"string","example":"chatcmpl-abc123"},"object":{"type":"string","example":"chat.completion"},"created":{"type":"number","example":1700000000},"model":{"type":"string","example":"gemini-3.5-flash"},"choices":{"type":"array","items":{"$ref":"#/components/schemas/ChatCompletionChoiceDto"}},"usage":{"$ref":"#/components/schemas/ChatCompletionUsageDto"}},"required":["id","object","created","model","choices","usage"]},"AnthropicMessageDto":{"type":"object","properties":{"role":{"type":"string","description":"Role of the message author","example":"user"},"content":{"type":"object","description":"Message content. Either a string or an array of content blocks (text/image).","example":"Explain rate limiting in three sentences."}},"required":["role","content"]},"AnthropicMessageRequestDto":{"type":"object","properties":{"model":{"type":"string","description":"Model id","example":"claude-sonnet-5"},"max_tokens":{"type":"number","description":"Maximum number of tokens to generate (required by Anthropic).","example":1024},"messages":{"description":"Conversation messages","type":"array","items":{"$ref":"#/components/schemas/AnthropicMessageDto"}},"stream":{"type":"boolean","description":"Stream partial deltas as server-sent events","default":false}},"required":["model","max_tokens","messages"]},"AnthropicUsageDto":{"type":"object","properties":{"input_tokens":{"type":"number","example":10},"output_tokens":{"type":"number","example":13}},"required":["input_tokens","output_tokens"]},"AnthropicMessageResponseDto":{"type":"object","properties":{"id":{"type":"string","example":"msg_013zva2CMHNLnXJNN3QKQ2EF"},"type":{"type":"string","example":"message"},"role":{"type":"string","example":"assistant"},"content":{"example":[{"type":"text","text":"Hello! I'm Claude."}],"type":"array","items":{"type":"string"}},"model":{"type":"string","example":"claude-sonnet-5"},"stop_reason":{"type":"string","example":"end_turn","nullable":true},"usage":{"$ref":"#/components/schemas/AnthropicUsageDto"}},"required":["id","type","role","content","model","stop_reason","usage"]},"ModelLongContextPricingDto":{"type":"object","properties":{"thresholdTokens":{"type":"number","example":272000,"description":"Total input tokens above which these rates replace the base ones"},"input":{"type":"number","example":2.8,"description":"Input token price"},"output":{"type":"number","example":12.6,"description":"Output token price"},"cacheRead":{"type":"number","example":0.28,"description":"Cache-read token price"},"cacheWrite":{"type":"number","example":10,"description":"Cache-write token price"}},"required":["thresholdTokens","input","output","cacheRead"]},"ModelPricingDto":{"type":"object","properties":{"currency":{"type":"string","example":"USD"},"unit":{"type":"string","example":"1M_tokens","description":"Pricing unit"},"input":{"type":"number","example":1.4,"description":"Input token price"},"output":{"type":"number","example":8.4,"description":"Output token price"},"cacheRead":{"type":"number","example":0.14,"description":"Cache-read token price"},"cacheWrite":{"type":"number","example":5,"description":"Cache-write token price (Anthropic models)"},"longContext":{"description":"Higher rates that replace the ones above for the whole request once its total input exceeds `thresholdTokens`. Absent when the model is priced flat at any context size.","allOf":[{"$ref":"#/components/schemas/ModelLongContextPricingDto"}]}},"required":["currency","unit","input","output","cacheRead"]},"ModelObjectDto":{"type":"object","properties":{"id":{"type":"string","example":"gemini-3.5-flash"},"object":{"type":"string","example":"model"},"created":{"type":"number","example":1700000000},"owned_by":{"type":"string","example":"api-stock"},"pricing":{"nullable":true,"description":"User-facing token pricing (USD per 1M tokens); null if not configured","type":"object","allOf":[{"$ref":"#/components/schemas/ModelPricingDto"}]}},"required":["id","object","created","owned_by"]},"ModelListResponseDto":{"type":"object","properties":{"object":{"type":"string","example":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ModelObjectDto"}}},"required":["object","data"]},"AgentWebhookDataDto":{"type":"object","properties":{"runId":{"type":"string"},"artifactId":{"type":"string"},"stepId":{"type":"string"},"messageId":{"type":"string"},"version":{"type":"integer"},"revision":{"type":"integer"},"code":{"type":"string"},"status":{"type":"string"},"schemaHash":{"type":"string"},"resultPath":{"type":"string","description":"Authenticated relative URL for retrieving the run result; no signed media URLs are sent in webhooks."}}},"AgentWebhookEnvelopeDto":{"type":"object","properties":{"schemaVersion":{"type":"integer","enum":[1]},"eventId":{"type":"string","format":"uuid","description":"Stable event identifier; deduplicate repeated deliveries with this id."},"eventType":{"type":"string","enum":["run.waiting","run.completed","run.failed","run.cancelled","artifact.created","artifact.revoked","conversation.deleted","result.structured.completed","result.structured.failed"]},"occurredAt":{"type":"string","format":"date-time"},"conversationId":{"type":"string","format":"uuid"},"runId":{"type":"string","format":"uuid","nullable":true},"projectId":{"type":"string","format":"uuid","nullable":true},"sequence":{"type":"integer","minimum":1},"data":{"$ref":"#/components/schemas/AgentWebhookDataDto"}},"required":["schemaVersion","eventId","eventType","occurredAt","conversationId","runId","projectId","sequence","data"]},"Agent_visibilityResponse":{"type":"object","properties":{"canManageHiddenChats":{"type":"boolean"}},"required":["canManageHiddenChats"]},"AgentErrorResponse":{"type":"object","required":["code","error"],"properties":{"code":{"type":"integer","description":"HTTP status code"},"error":{"type":"object","required":["code","message","type"],"properties":{"code":{"type":"string","description":"Stable machine-readable code; branch on this, not the message."},"message":{"type":"string"},"type":{"type":"string"}}}}},"Agent_getSettingsResponse":{"type":"object","properties":{"version":{"type":"number"},"settings":{"type":"object","properties":{"routingPolicy":{"type":"string","enum":["economy","balanced","quality"]},"allowAdditionalModels":{"type":"boolean"},"defaultMaxCostMicroUsd":{"type":"string"},"orchestratorModelId":{"type":"string","nullable":true},"fallbackModelIds":{"type":"array","items":{"type":"string"}},"imageModelId":{"type":"string","nullable":true},"videoModelId":{"type":"string","nullable":true},"musicModelId":{"type":"string","nullable":true}},"required":["routingPolicy","allowAdditionalModels","defaultMaxCostMicroUsd","orchestratorModelId","fallbackModelIds","imageModelId","videoModelId","musicModelId"]}},"required":["version","settings"]},"Agent_putSettingsResponse":{"type":"object","properties":{"version":{"type":"number"},"settings":{"type":"object","properties":{"routingPolicy":{"type":"string","enum":["economy","balanced","quality"]},"allowAdditionalModels":{"type":"boolean"},"defaultMaxCostMicroUsd":{"type":"string"},"orchestratorModelId":{"type":"string","nullable":true},"fallbackModelIds":{"type":"array","items":{"type":"string"}},"imageModelId":{"type":"string","nullable":true},"videoModelId":{"type":"string","nullable":true},"musicModelId":{"type":"string","nullable":true}},"required":["routingPolicy","allowAdditionalModels","defaultMaxCostMicroUsd","orchestratorModelId","fallbackModelIds","imageModelId","videoModelId","musicModelId"]}},"required":["version","settings"]},"Agent_projectListResponse":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"deletedAt":{"type":"string","format":"date-time","nullable":true},"userId":{"type":"string"},"siteId":{"type":"string"},"currentVersion":{"type":"number"},"quotaBytes":{"type":"string","pattern":"^-?[0-9]+$","description":"Integer serialized as a decimal string; micro-USD amounts use 1,000,000 units per USD."}},"required":["id","name","createdAt","updatedAt","deletedAt","userId","siteId","currentVersion","quotaBytes"]}},"nextCursor":{"type":"string","nullable":true}},"required":["items","nextCursor"]},"Agent_projectCreateResponse":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"deletedAt":{"type":"string","format":"date-time","nullable":true},"userId":{"type":"string"},"siteId":{"type":"string"},"currentVersion":{"type":"number"},"quotaBytes":{"type":"string","pattern":"^-?[0-9]+$","description":"Integer serialized as a decimal string; micro-USD amounts use 1,000,000 units per USD."}},"required":["id","name","createdAt","updatedAt","deletedAt","userId","siteId","currentVersion","quotaBytes"]},"Agent_importProjectArtifactResponse":{"type":"object","properties":{"operationId":{"type":"string"},"status":{"type":"string"},"resultId":{"type":"string","nullable":true},"error":{"type":"string","nullable":true}},"required":["operationId","status","resultId","error"]},"Agent_profilesResponse":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"isActive":{"type":"boolean"},"version":{"type":"number"},"profileId":{"type":"string"},"nameLocales":{},"descriptionLocales":{},"instructionTemplate":{"type":"string"},"workflowDefaults":{}},"required":["id","createdAt","updatedAt","isActive","version","profileId","nameLocales","descriptionLocales","instructionTemplate","workflowDefaults"]}},"Agent_projectUploadResponse":{"type":"object","properties":{"attachment":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"deletedAt":{"type":"string","format":"date-time","nullable":true},"userId":{"type":"string"},"status":{"type":"string"},"siteId":{"type":"string"},"metadata":{},"sizeBytes":{"type":"string","pattern":"^-?[0-9]+$","description":"Integer serialized as a decimal string; micro-USD amounts use 1,000,000 units per USD."},"conversationId":{"type":"string","nullable":true},"projectId":{"type":"string","nullable":true},"storageObjectId":{"type":"string","nullable":true},"storageBackendId":{"type":"string"},"objectKey":{"type":"string"},"uploadKey":{"type":"string"},"originalName":{"type":"string"},"declaredMime":{"type":"string"},"detectedMime":{"type":"string","nullable":true},"sha256":{"type":"string","nullable":true},"kind":{"type":"string"},"expiresAt":{"type":"string","format":"date-time","nullable":true}},"required":["id","createdAt","updatedAt","deletedAt","userId","status","siteId","metadata","sizeBytes","conversationId","projectId","storageObjectId","storageBackendId","objectKey","uploadKey","originalName","declaredMime","detectedMime","sha256","kind","expiresAt"]},"uploadUrl":{"type":"string"}},"required":["attachment","uploadUrl"]},"Agent_attachmentResponse":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string"},"contentUrl":{"nullable":true,"enum":[null]}},"required":["id","status","contentUrl"]},{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string"},"originalName":{"type":"string"},"sizeBytes":{"type":"string"},"mime":{"type":"string","nullable":true},"kind":{"type":"string"},"expiresAt":{"type":"string","format":"date-time","nullable":true},"contentUrl":{"type":"string","nullable":true}},"required":["id","status","originalName","sizeBytes","mime","kind","expiresAt","contentUrl"]}]},"Agent_attachmentDeleteResponse":{"type":"object","properties":{"deleted":{"type":"boolean"}},"required":["deleted"]},"Agent_workflowsResponse":{"type":"array","items":{"type":"object","properties":{"Versions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"version":{"type":"number"},"workflowId":{"type":"string"},"revokedAt":{"type":"string","format":"date-time","nullable":true},"inputSchema":{},"outputSchema":{},"stepGraph":{},"capabilityRequirements":{},"defaults":{},"limits":{},"definitionHash":{"type":"string"}},"required":["id","createdAt","updatedAt","version","workflowId","revokedAt","inputSchema","outputSchema","stepGraph","capabilityRequirements","defaults","limits","definitionHash"]}},"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"isActive":{"type":"boolean"},"currentVersion":{"type":"number"},"nameLocales":{},"descriptionLocales":{},"workflowId":{"type":"string"}},"required":["Versions","id","createdAt","updatedAt","isActive","currentVersion","nameLocales","descriptionLocales","workflowId"]}},"Agent_workflowResponse":{"type":"object","properties":{"definition":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"version":{"type":"number"},"workflowId":{"type":"string"},"revokedAt":{"type":"string","format":"date-time","nullable":true},"inputSchema":{},"outputSchema":{},"stepGraph":{},"capabilityRequirements":{},"defaults":{},"limits":{},"definitionHash":{"type":"string"}},"required":["id","createdAt","updatedAt","version","workflowId","revokedAt","inputSchema","outputSchema","stepGraph","capabilityRequirements","defaults","limits","definitionHash"]},"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"isActive":{"type":"boolean"},"currentVersion":{"type":"number"},"nameLocales":{},"descriptionLocales":{},"workflowId":{"type":"string"}},"required":["definition","id","createdAt","updatedAt","isActive","currentVersion","nameLocales","descriptionLocales","workflowId"]},"Agent_webhookListResponse":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"status":{"type":"string"},"url":{"type":"string"},"eventTypes":{"type":"array","items":{"type":"string"}},"scope":{},"keyVersion":{"type":"number"}},"required":["id","createdAt","status","url","eventTypes","scope","keyVersion"]}},"Agent_webhookCreateResponse":{"type":"object","properties":{"secret":{"type":"string"},"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"status":{"type":"string"},"url":{"type":"string"},"eventTypes":{"type":"array","items":{"type":"string"}},"scope":{},"keyVersion":{"type":"number"}},"required":["secret","id","createdAt","status","url","eventTypes","scope","keyVersion"]},"Agent_webhookRevokeResponse":{"type":"object","properties":{"revoked":{"type":"boolean"}},"required":["revoked"]},"Agent_webhookDeliveriesResponse":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string"},"attempts":{"type":"number"},"nextAttemptAt":{"type":"string","format":"date-time"},"lastStatusCode":{"type":"number","nullable":true},"lastError":{"type":"string","nullable":true},"deliveredAt":{"type":"string","format":"date-time","nullable":true},"eventId":{"type":"string"}},"required":["id","status","attempts","nextAttemptAt","lastStatusCode","lastError","deliveredAt","eventId"]}},"Agent_projectDetailResponse":{"type":"object","properties":{"version":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"version":{"type":"number"},"profileId":{"type":"string","nullable":true},"projectId":{"type":"string"},"profileVersion":{"type":"number","nullable":true},"defaultWorkflowId":{"type":"string","nullable":true},"defaultWorkflowVersion":{"type":"number","nullable":true},"brandSettings":{},"instruction":{"type":"string"},"routingDefaults":{}},"required":["id","createdAt","updatedAt","version","profileId","projectId","profileVersion","defaultWorkflowId","defaultWorkflowVersion","brandSettings","instruction","routingDefaults"]},"assets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"role":{"type":"string"},"displayName":{"type":"string"},"attachmentId":{"type":"string"},"sourceArtifactId":{"type":"string","nullable":true}},"required":["id","role","displayName","attachmentId","sourceArtifactId"]}},"id":{"type":"string"},"name":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"deletedAt":{"type":"string","format":"date-time","nullable":true},"userId":{"type":"string"},"siteId":{"type":"string"},"currentVersion":{"type":"number"},"quotaBytes":{"type":"string","pattern":"^-?[0-9]+$","description":"Integer serialized as a decimal string; micro-USD amounts use 1,000,000 units per USD."}},"required":["version","assets","id","name","createdAt","updatedAt","deletedAt","userId","siteId","currentVersion","quotaBytes"]},"Agent_projectPatchResponse":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"deletedAt":{"type":"string","format":"date-time","nullable":true},"userId":{"type":"string"},"siteId":{"type":"string"},"currentVersion":{"type":"number"},"quotaBytes":{"type":"string","pattern":"^-?[0-9]+$","description":"Integer serialized as a decimal string; micro-USD amounts use 1,000,000 units per USD."}},"required":["id","name","createdAt","updatedAt","deletedAt","userId","siteId","currentVersion","quotaBytes"]},"Agent_projectDeleteResponse":{"type":"object","properties":{"deleted":{"type":"boolean"}},"required":["deleted"]},"Agent_referenceListResponse":{"type":"object","properties":{"version":{"type":"number"},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"conversationId":{"type":"string"},"revokedAt":{"type":"string","format":"date-time","nullable":true},"targetType":{"type":"string"},"targetId":{"type":"string"},"grantVersion":{"type":"number"},"active":{"type":"boolean"}},"required":["id","createdAt","updatedAt","conversationId","revokedAt","targetType","targetId","grantVersion","active"]}}},"required":["version","items"]},"Agent_referenceReplaceResponse":{"type":"object","properties":{"version":{"type":"number"},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"conversationId":{"type":"string"},"revokedAt":{"type":"string","format":"date-time","nullable":true},"targetType":{"type":"string"},"targetId":{"type":"string"},"grantVersion":{"type":"number"},"active":{"type":"boolean"}},"required":["id","createdAt","updatedAt","conversationId","revokedAt","targetType","targetId","grantVersion","active"]}}},"required":["version","items"]},"Agent_contextReadResponse":{"anyOf":[{"type":"object","properties":{"referenceId":{"type":"string"},"sourceId":{"type":"string"},"version":{"type":"number"},"kind":{"type":"string"},"displayName":{"type":"string"},"metadata":{}},"required":["referenceId","sourceId","version","kind","displayName","metadata"]},{"type":"object","properties":{"referenceId":{"type":"string"},"sourceId":{"type":"string"},"throughSequence":{"type":"number","nullable":true},"fragments":{"type":"array","items":{"type":"object","properties":{"sequence":{"type":"number"},"role":{"type":"string"},"text":{"type":"string"},"hash":{"type":"string"}},"required":["sequence","role","text","hash"]}}},"required":["referenceId","sourceId","throughSequence","fragments"]}]},"Agent_storageFilesResponse":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"displayName":{"type":"string"},"kind":{"type":"string"},"artifactId":{"type":"string"},"downloadPath":{"type":"string","nullable":true},"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"sizeBytes":{"type":"string","pattern":"^-?[0-9]+$","description":"Integer serialized as a decimal string; micro-USD amounts use 1,000,000 units per USD."},"sourceType":{"type":"string"},"sourceId":{"type":"string"},"retentionMode":{"type":"string"},"availableUntil":{"type":"string","format":"date-time","nullable":true}},"required":["displayName","kind","artifactId","downloadPath","id","createdAt","sizeBytes","sourceType","sourceId","retentionMode","availableUntil"]}},"nextCursor":{"type":"string","nullable":true}},"required":["items","nextCursor"]},"Agent_storageDeleteResponse":{"type":"object","properties":{"deleted":{"type":"boolean"}},"required":["deleted"]},"Agent_retainFileResponse":{"type":"object","properties":{"operationId":{"type":"string"},"status":{"type":"string"},"resultId":{"type":"string","nullable":true},"error":{"type":"string","nullable":true}},"required":["operationId","status","resultId","error"]},"Agent_retainStatusResponse":{"type":"object","properties":{"operationId":{"type":"string"},"status":{"type":"string"},"resultId":{"type":"string","nullable":true},"error":{"type":"string","nullable":true}},"required":["operationId","status","resultId","error"]},"Agent_modelsResponse":{"type":"array","items":{"type":"object","properties":{"routes":{"type":"array","items":{"type":"object","properties":{"verification":{"type":"string","enum":["verified","unknown","unsupported"]},"toolCalling":{"type":"boolean"},"operations":{"type":"array","items":{"type":"string"}},"statistics":{"type":"object","properties":{"requests":{"type":"number"},"successes":{"type":"number"},"failures":{"type":"number"},"toolCalls":{"type":"number"},"continuations":{"type":"number"}},"required":["requests","successes","failures","toolCalls","continuations"],"nullable":true},"modelId":{"type":"string"},"protocol":{"type":"string","enum":["media","openai","anthropic"]},"api":{"type":"string","enum":["responses"]},"inputModalities":{"type":"array","items":{"type":"string"}},"outputModalities":{"type":"array","items":{"type":"string"}},"structuredOutput":{"type":"boolean"},"contextWindowTokens":{"type":"number"},"maxOutputTokens":{"type":"number"},"streamsUsage":{"type":"boolean"},"limits":{"type":"object","additionalProperties":{}},"version":{"type":"string"}},"required":["verification","toolCalling","operations","statistics","modelId","protocol","inputModalities","outputModalities","structuredOutput","streamsUsage","limits","version"]}},"agentHealth":{"type":"object","properties":{"status":{"type":"string","enum":["unknown","healthy","degraded","unavailable","stale"]},"reason":{"type":"string","enum":["tools_unverified","route_failure","no_recent_check","stale_check",null],"nullable":true},"checkedAt":{"type":"string","nullable":true},"healthyRoutes":{"type":"number"},"affectedRoutes":{"type":"number"}},"required":["status","reason","checkedAt","healthyRoutes","affectedRoutes"]},"executable":{"type":"boolean"},"parameterEntryRequired":{"type":"boolean"},"pageUpdatedAt":{"type":"string"},"createdAt":{"type":"string"},"id":{"type":"string"},"group":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"descriptionLocales":{"type":"object","additionalProperties":{"type":"string"}},"type":{"type":"string","enum":["TEXT","MUSIC","IMAGE","VIDEO"]},"kind":{"type":"string","enum":["media","llm"]},"vendor":{"type":"string"},"releasedAt":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"capabilities":{"type":"array","items":{"type":"string"}},"pricing":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"price":{"type":"string"},"isDefault":{"type":"boolean"},"dimensions":{"type":"object","additionalProperties":{"type":"string"}}},"required":["key","price","isDefault"]}},"longContextPricing":{"type":"object","properties":{"thresholdTokens":{"type":"number"},"pricing":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"price":{"type":"string"},"isDefault":{"type":"boolean"},"dimensions":{"type":"object","additionalProperties":{"type":"string"}}},"required":["key","price","isDefault"]}}},"required":["thresholdTokens","pricing"]},"priceFrom":{"type":"string"},"priceFromKey":{"type":"string"},"priceUnit":{"type":"string","enum":["generation","second","megatoken"]},"params":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"label":{"type":"string"},"description":{"type":"string"},"kind":{"type":"string","enum":["string","number","boolean","object"]},"isArray":{"type":"boolean"},"required":{"type":"boolean"},"default":{},"options":{"type":"array","items":{"type":"object","properties":{"value":{"anyOf":[{"type":"string"},{"type":"number"}]},"label":{"type":"string"}},"required":["value","label"]}},"optionsArePresets":{"type":"boolean","enum":[false,true]},"minimum":{"type":"number"},"maximum":{"type":"number"},"maxLength":{"type":"number"},"isMedia":{"type":"boolean"},"isPrompt":{"type":"boolean"},"multiline":{"type":"boolean"},"deprecated":{"type":"boolean"}},"required":["name","label","kind","isArray","required","isMedia","isPrompt","multiline","deprecated"]}},"protocols":{"type":"array","items":{"type":"string","enum":["openai","anthropic"]}}},"required":["routes","executable","parameterEntryRequired","id","group","name","type","kind","tags","capabilities","pricing","priceUnit","params"]}},"Agent_listResponse":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"deletedAt":{"type":"string","format":"date-time","nullable":true},"mode":{"type":"string"},"userId":{"type":"string"},"siteId":{"type":"string"},"settings":{},"title":{"type":"string"},"profileId":{"type":"string","nullable":true},"projectId":{"type":"string","nullable":true},"isHidden":{"type":"boolean"},"selectedModelId":{"type":"string","nullable":true},"settingsVersion":{"type":"number"},"activeRunId":{"type":"string","nullable":true},"nextMessageSequence":{"type":"number"},"lastReadMessageSequence":{"type":"number"},"nextEventSequence":{"type":"number"},"contextReferencesVersion":{"type":"number"},"profileVersion":{"type":"number","nullable":true},"defaultWorkflowId":{"type":"string","nullable":true},"defaultWorkflowVersion":{"type":"number","nullable":true},"activeRunStatus":{"type":"string","nullable":true},"lastAssistantMessageSequence":{"type":"number"}},"required":["id","createdAt","updatedAt","deletedAt","mode","userId","siteId","settings","title","profileId","projectId","isHidden","selectedModelId","settingsVersion","activeRunId","nextMessageSequence","lastReadMessageSequence","nextEventSequence","contextReferencesVersion","profileVersion","defaultWorkflowId","defaultWorkflowVersion","activeRunStatus","lastAssistantMessageSequence"]}},"nextCursor":{"type":"string","nullable":true}},"required":["items","nextCursor"]},"Agent_createResponse":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"deletedAt":{"type":"string","format":"date-time","nullable":true},"mode":{"type":"string"},"userId":{"type":"string"},"siteId":{"type":"string"},"settings":{},"title":{"type":"string"},"profileId":{"type":"string","nullable":true},"projectId":{"type":"string","nullable":true},"isHidden":{"type":"boolean"},"selectedModelId":{"type":"string","nullable":true},"settingsVersion":{"type":"number"},"activeRunId":{"type":"string","nullable":true},"nextMessageSequence":{"type":"number"},"lastReadMessageSequence":{"type":"number"},"nextEventSequence":{"type":"number"},"contextReferencesVersion":{"type":"number"},"profileVersion":{"type":"number","nullable":true},"defaultWorkflowId":{"type":"string","nullable":true},"defaultWorkflowVersion":{"type":"number","nullable":true}},"required":["id","createdAt","updatedAt","deletedAt","mode","userId","siteId","settings","title","profileId","projectId","isHidden","selectedModelId","settingsVersion","activeRunId","nextMessageSequence","lastReadMessageSequence","nextEventSequence","contextReferencesVersion","profileVersion","defaultWorkflowId","defaultWorkflowVersion"]},"Agent_conversationResponse":{"type":"object","properties":{"modelSettings":{"type":"object","properties":{"orchestratorModelId":{"type":"string"},"imageModelId":{"type":"string","nullable":true},"videoModelId":{"type":"string","nullable":true}},"required":["orchestratorModelId","imageModelId","videoModelId"]},"queuedMessages":{"type":"array","items":{"type":"object","properties":{"runId":{"type":"string"},"messageId":{"type":"string"},"content":{}},"required":["runId","messageId","content"]}},"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"deletedAt":{"type":"string","format":"date-time","nullable":true},"mode":{"type":"string"},"userId":{"type":"string"},"siteId":{"type":"string"},"settings":{},"title":{"type":"string"},"profileId":{"type":"string","nullable":true},"projectId":{"type":"string","nullable":true},"isHidden":{"type":"boolean"},"selectedModelId":{"type":"string","nullable":true},"settingsVersion":{"type":"number"},"activeRunId":{"type":"string","nullable":true},"nextMessageSequence":{"type":"number"},"lastReadMessageSequence":{"type":"number"},"nextEventSequence":{"type":"number"},"contextReferencesVersion":{"type":"number"},"profileVersion":{"type":"number","nullable":true},"defaultWorkflowId":{"type":"string","nullable":true},"defaultWorkflowVersion":{"type":"number","nullable":true}},"required":["modelSettings","queuedMessages","id","createdAt","updatedAt","deletedAt","mode","userId","siteId","settings","title","profileId","projectId","isHidden","selectedModelId","settingsVersion","activeRunId","nextMessageSequence","lastReadMessageSequence","nextEventSequence","contextReferencesVersion","profileVersion","defaultWorkflowId","defaultWorkflowVersion"]},"Agent_settingsResponse":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"deletedAt":{"type":"string","format":"date-time","nullable":true},"mode":{"type":"string"},"userId":{"type":"string"},"siteId":{"type":"string"},"settings":{},"title":{"type":"string"},"profileId":{"type":"string","nullable":true},"projectId":{"type":"string","nullable":true},"isHidden":{"type":"boolean"},"selectedModelId":{"type":"string","nullable":true},"settingsVersion":{"type":"number"},"activeRunId":{"type":"string","nullable":true},"nextMessageSequence":{"type":"number"},"lastReadMessageSequence":{"type":"number"},"nextEventSequence":{"type":"number"},"contextReferencesVersion":{"type":"number"},"profileVersion":{"type":"number","nullable":true},"defaultWorkflowId":{"type":"string","nullable":true},"defaultWorkflowVersion":{"type":"number","nullable":true}},"required":["id","createdAt","updatedAt","deletedAt","mode","userId","siteId","settings","title","profileId","projectId","isHidden","selectedModelId","settingsVersion","activeRunId","nextMessageSequence","lastReadMessageSequence","nextEventSequence","contextReferencesVersion","profileVersion","defaultWorkflowId","defaultWorkflowVersion"]},"Agent_removeResponse":{"type":"object","properties":{"deleted":{"type":"boolean"}},"required":["deleted"]},"Agent_markReadResponse":{"type":"object","properties":{"lastReadMessageSequence":{"type":"number"}},"required":["lastReadMessageSequence"]},"Agent_messagesResponse":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"content":{},"Artifacts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"artifactId":{"type":"string"},"messageId":{"type":"string"},"artifactVersion":{"type":"number"},"position":{"type":"number"},"usageIntent":{"type":"string"}},"required":["id","createdAt","updatedAt","artifactId","messageId","artifactVersion","position","usageIntent"]}},"Attachments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"attachmentId":{"type":"string"},"messageId":{"type":"string"},"position":{"type":"number"},"usageIntent":{"type":"string"}},"required":["id","createdAt","updatedAt","attachmentId","messageId","position","usageIntent"]}},"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"status":{"type":"string"},"role":{"type":"string"},"conversationId":{"type":"string"},"runId":{"type":"string","nullable":true},"sequence":{"type":"number"},"requestHash":{"type":"string","nullable":true},"revision":{"type":"number"},"clientMessageId":{"type":"string","nullable":true}},"required":["content","Artifacts","Attachments","id","createdAt","updatedAt","status","role","conversationId","runId","sequence","requestHash","revision","clientMessageId"]}},"nextCursor":{"type":"number","nullable":true}},"required":["items","nextCursor"]},"Agent_sendResponse":{"type":"object","properties":{"conversationId":{"type":"string"},"messageId":{"type":"string"},"runId":{"type":"string"},"status":{"type":"string","enum":["FAILED","COMPLETED","QUEUED","RUNNING","WAITING_USER","WAITING_BUDGET","WAITING_TASKS","FINALIZING","RECONCILING","CANCELLING","CANCELLED"]},"budget":{"type":"object","properties":{"maxCostMicroUsd":{"type":"string","pattern":"^-?[0-9]+$","description":"Integer serialized as a decimal string; micro-USD amounts use 1,000,000 units per USD."},"chargedMicroUsd":{"type":"string","pattern":"^-?[0-9]+$","description":"Integer serialized as a decimal string; micro-USD amounts use 1,000,000 units per USD."},"committedMicroUsd":{"type":"string","pattern":"^-?[0-9]+$","description":"Integer serialized as a decimal string; micro-USD amounts use 1,000,000 units per USD."}},"required":["maxCostMicroUsd","chargedMicroUsd","committedMicroUsd"],"nullable":true}},"required":["conversationId","messageId","budget"]},"Agent_historyResponse":{"type":"object","properties":{"schemaVersion":{"type":"number"},"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"conversationId":{"type":"string"},"stepId":{"type":"string","nullable":true},"runId":{"type":"string","nullable":true},"sequence":{"type":"number"},"deduplicationKey":{"type":"string"},"payload":{}},"required":["id","type","createdAt","updatedAt","conversationId","stepId","runId","sequence","deduplicationKey","payload"]}},"hasMore":{"type":"boolean"},"nextCursor":{"type":"number"},"latestSequence":{"type":"number"}},"required":["schemaVersion","events","hasMore","nextCursor","latestSequence"]},"Agent_runResponse":{"type":"object","properties":{"id":{"type":"string"},"conversationId":{"type":"string"},"status":{"type":"string","enum":["FAILED","COMPLETED","QUEUED","RUNNING","WAITING_USER","WAITING_BUDGET","WAITING_TASKS","FINALIZING","RECONCILING","CANCELLING","CANCELLED"]},"stopRequested":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"waitingReason":{"type":"string","nullable":true},"errorForUser":{"type":"string","nullable":true},"errorCode":{"type":"string","nullable":true},"budget":{"type":"object","properties":{"maxCostMicroUsd":{"type":"string","pattern":"^-?[0-9]+$","description":"Integer serialized as a decimal string; micro-USD amounts use 1,000,000 units per USD."},"chargedMicroUsd":{"type":"string","pattern":"^-?[0-9]+$","description":"Integer serialized as a decimal string; micro-USD amounts use 1,000,000 units per USD."},"refundedMicroUsd":{"type":"string","pattern":"^-?[0-9]+$","description":"Integer serialized as a decimal string; micro-USD amounts use 1,000,000 units per USD."},"committedMicroUsd":{"type":"string","pattern":"^-?[0-9]+$","description":"Integer serialized as a decimal string; micro-USD amounts use 1,000,000 units per USD."},"version":{"type":"number"}},"required":["maxCostMicroUsd","chargedMicroUsd","refundedMicroUsd","committedMicroUsd","version"]},"planSnapshot":{},"planVersion":{"type":"number"},"pendingActions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string"},"version":{"type":"number"},"proposal":{},"proposalHash":{"type":"string"},"inputSchema":{},"expiresAt":{"type":"string","format":"date-time"}},"required":["id","kind","version","proposal","proposalHash","inputSchema","expiresAt"]}},"activeTaskCount":{"type":"number"},"unresolvedBillingCount":{"type":"number"},"canResume":{"type":"boolean"},"canSteer":{"type":"boolean"},"steps":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"sequence":{"type":"number"},"kind":{"type":"string"},"purpose":{"type":"string"},"parentStepId":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"startedAt":{"type":"string","format":"date-time","nullable":true},"completedAt":{"type":"string","format":"date-time","nullable":true},"activity":{"type":"object","properties":{"label":{"type":"string","nullable":true},"summary":{"type":"string","nullable":true},"parameters":{},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string","nullable":true}},"required":["code","message"],"nullable":true}},"required":["label","summary","parameters","error"]},"status":{"type":"string","enum":["FAILED","SUCCEEDED","RUNNING","CANCELLED","PLANNED","BUDGET_COMMITTED","DISPATCHING","WAITING_TASK","UNKNOWN"]},"modelId":{"type":"string","nullable":true},"billingState":{"type":"string"},"chargedMicroUsd":{"type":"string","pattern":"^-?[0-9]+$","description":"Integer serialized as a decimal string; micro-USD amounts use 1,000,000 units per USD."},"refundedMicroUsd":{"type":"string","pattern":"^-?[0-9]+$","description":"Integer serialized as a decimal string; micro-USD amounts use 1,000,000 units per USD."},"budgetCommittedMicroUsd":{"type":"string","pattern":"^-?[0-9]+$","description":"Integer serialized as a decimal string; micro-USD amounts use 1,000,000 units per USD."},"artifacts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"contentUrl":{"type":"string","nullable":true},"version":{"type":"number"},"kind":{"type":"string"},"displayName":{"type":"string"},"status":{"type":"string"},"availableUntil":{"type":"string","format":"date-time","nullable":true}},"required":["id","contentUrl","version","kind","displayName","status","availableUntil"]}}},"required":["id","sequence","kind","purpose","parentStepId","createdAt","startedAt","completedAt","activity","status","modelId","billingState","chargedMicroUsd","refundedMicroUsd","budgetCommittedMicroUsd","artifacts"]}}},"required":["id","conversationId","status","stopRequested","createdAt","updatedAt","waitingReason","errorForUser","errorCode","budget","planSnapshot","planVersion","pendingActions","activeTaskCount","unresolvedBillingCount","canResume","canSteer","steps"]},"Agent_balanceRecoveryResponse":{"type":"object","properties":{"runId":{"type":"string"},"conversationId":{"type":"string"},"deadlineAt":{"type":"string","format":"date-time"},"balanceMicroUsd":{"type":"string"},"requiredMicroUsd":{"type":"string","nullable":true},"missingMicroUsd":{"type":"string","nullable":true},"estimatedAt":{"type":"string","format":"date-time","nullable":true},"blocker":{"type":"string","nullable":true},"canResume":{"type":"boolean"}},"required":["runId","conversationId","deadlineAt","balanceMicroUsd","requiredMicroUsd","missingMicroUsd","estimatedAt","blocker","canResume"]},"Agent_stopResponse":{"type":"object","properties":{"status":{"type":"string"}},"required":["status"]},"Agent_cancelQueuedResponse":{"type":"object","properties":{"status":{"type":"string"}},"required":["status"]},"Agent_resumeResponse":{"type":"object","properties":{"status":{"type":"string"}},"required":["status"]},"Agent_budgetResponse":{"type":"object","properties":{"status":{"type":"string"}},"required":["status"]},"Agent_plansResponse":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"isActive":{"type":"boolean"},"version":{"type":"number"},"nameLocales":{},"planId":{"type":"string"},"capacityBytes":{"type":"string","pattern":"^-?[0-9]+$","description":"Integer serialized as a decimal string; micro-USD amounts use 1,000,000 units per USD."},"objectLimit":{"type":"number"},"priceMicroUsd":{"type":"string","pattern":"^-?[0-9]+$","description":"Integer serialized as a decimal string; micro-USD amounts use 1,000,000 units per USD."},"serviceLimits":{},"backendPolicyVersion":{"type":"string"}},"required":["id","createdAt","updatedAt","isActive","version","nameLocales","planId","capacityBytes","objectLimit","priceMicroUsd","serviceLimits","backendPolicyVersion"]}},"Agent_storageStatusResponse":{"type":"object","properties":{"account":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"userId":{"type":"string"},"currentPlanId":{"type":"string","nullable":true},"currentPlanVersion":{"type":"number","nullable":true},"status":{"type":"string"},"autoRenew":{"type":"boolean"},"billingAnchor":{"type":"string","format":"date-time","nullable":true},"currentPeriodId":{"type":"string","nullable":true},"scheduledPlanId":{"type":"string","nullable":true},"scheduledPlanVersion":{"type":"number","nullable":true},"usedBytes":{"type":"string","pattern":"^-?[0-9]+$","description":"Integer serialized as a decimal string; micro-USD amounts use 1,000,000 units per USD."},"reservedBytes":{"type":"string","pattern":"^-?[0-9]+$","description":"Integer serialized as a decimal string; micro-USD amounts use 1,000,000 units per USD."},"usedObjects":{"type":"number"},"reservedObjects":{"type":"number"},"temporaryUsedBytes":{"type":"string","pattern":"^-?[0-9]+$","description":"Integer serialized as a decimal string; micro-USD amounts use 1,000,000 units per USD."},"temporaryReservedBytes":{"type":"string","pattern":"^-?[0-9]+$","description":"Integer serialized as a decimal string; micro-USD amounts use 1,000,000 units per USD."},"temporaryUsedObjects":{"type":"number"},"temporaryReservedObjects":{"type":"number"},"quotaVersion":{"type":"number"},"graceUntil":{"type":"string","format":"date-time","nullable":true}},"required":["id","createdAt","updatedAt","userId","currentPlanId","currentPlanVersion","status","autoRenew","billingAnchor","currentPeriodId","scheduledPlanId","scheduledPlanVersion","usedBytes","reservedBytes","usedObjects","reservedObjects","temporaryUsedBytes","temporaryReservedBytes","temporaryUsedObjects","temporaryReservedObjects","quotaVersion","graceUntil"]},"period":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"status":{"type":"string"},"accountId":{"type":"string"},"planSnapshot":{},"startsAt":{"type":"string","format":"date-time"},"endsAt":{"type":"string","format":"date-time"},"amountMicroUsd":{"type":"string","pattern":"^-?[0-9]+$","description":"Integer serialized as a decimal string; micro-USD amounts use 1,000,000 units per USD."},"ledgerTransactionId":{"type":"string","nullable":true}},"required":["id","createdAt","updatedAt","status","accountId","planSnapshot","startsAt","endsAt","amountMicroUsd","ledgerTransactionId"],"nullable":true}},"required":["account","period"]},"Agent_quoteResponse":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"quotaVersion":{"type":"number"},"expiresAt":{"type":"string","format":"date-time"},"accountId":{"type":"string"},"planVersion":{"type":"number"},"planId":{"type":"string"},"amountMicroUsd":{"type":"string","pattern":"^-?[0-9]+$","description":"Integer serialized as a decimal string; micro-USD amounts use 1,000,000 units per USD."},"effectiveAt":{"type":"string","format":"date-time"},"snapshot":{},"consumedAt":{"type":"string","format":"date-time","nullable":true}},"required":["id","createdAt","updatedAt","quotaVersion","expiresAt","accountId","planVersion","planId","amountMicroUsd","effectiveAt","snapshot","consumedAt"]},"Agent_subscribeResponse":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"status":{"type":"string"},"accountId":{"type":"string"},"requestHash":{"type":"string"},"requestKey":{"type":"string"},"amountMicroUsd":{"type":"string","pattern":"^-?[0-9]+$","description":"Integer serialized as a decimal string; micro-USD amounts use 1,000,000 units per USD."},"ledgerTransactionId":{"type":"string","nullable":true},"effectiveAt":{"type":"string","format":"date-time"},"quoteVersion":{"type":"number"},"oldPlan":{},"newPlan":{}},"required":["id","createdAt","updatedAt","status","accountId","requestHash","requestKey","amountMicroUsd","ledgerTransactionId","effectiveAt","quoteVersion","oldPlan","newPlan"]},"Agent_cancelRenewalResponse":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"userId":{"type":"string"},"currentPlanId":{"type":"string","nullable":true},"currentPlanVersion":{"type":"number","nullable":true},"status":{"type":"string"},"autoRenew":{"type":"boolean"},"billingAnchor":{"type":"string","format":"date-time","nullable":true},"currentPeriodId":{"type":"string","nullable":true},"scheduledPlanId":{"type":"string","nullable":true},"scheduledPlanVersion":{"type":"number","nullable":true},"usedBytes":{"type":"string","pattern":"^-?[0-9]+$","description":"Integer serialized as a decimal string; micro-USD amounts use 1,000,000 units per USD."},"reservedBytes":{"type":"string","pattern":"^-?[0-9]+$","description":"Integer serialized as a decimal string; micro-USD amounts use 1,000,000 units per USD."},"usedObjects":{"type":"number"},"reservedObjects":{"type":"number"},"temporaryUsedBytes":{"type":"string","pattern":"^-?[0-9]+$","description":"Integer serialized as a decimal string; micro-USD amounts use 1,000,000 units per USD."},"temporaryReservedBytes":{"type":"string","pattern":"^-?[0-9]+$","description":"Integer serialized as a decimal string; micro-USD amounts use 1,000,000 units per USD."},"temporaryUsedObjects":{"type":"number"},"temporaryReservedObjects":{"type":"number"},"quotaVersion":{"type":"number"},"graceUntil":{"type":"string","format":"date-time","nullable":true}},"required":["id","createdAt","updatedAt","userId","currentPlanId","currentPlanVersion","status","autoRenew","billingAnchor","currentPeriodId","scheduledPlanId","scheduledPlanVersion","usedBytes","reservedBytes","usedObjects","reservedObjects","temporaryUsedBytes","temporaryReservedBytes","temporaryUsedObjects","temporaryReservedObjects","quotaVersion","graceUntil"]},"Agent_enableRenewalResponse":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"userId":{"type":"string"},"currentPlanId":{"type":"string","nullable":true},"currentPlanVersion":{"type":"number","nullable":true},"status":{"type":"string"},"autoRenew":{"type":"boolean"},"billingAnchor":{"type":"string","format":"date-time","nullable":true},"currentPeriodId":{"type":"string","nullable":true},"scheduledPlanId":{"type":"string","nullable":true},"scheduledPlanVersion":{"type":"number","nullable":true},"usedBytes":{"type":"string","pattern":"^-?[0-9]+$","description":"Integer serialized as a decimal string; micro-USD amounts use 1,000,000 units per USD."},"reservedBytes":{"type":"string","pattern":"^-?[0-9]+$","description":"Integer serialized as a decimal string; micro-USD amounts use 1,000,000 units per USD."},"usedObjects":{"type":"number"},"reservedObjects":{"type":"number"},"temporaryUsedBytes":{"type":"string","pattern":"^-?[0-9]+$","description":"Integer serialized as a decimal string; micro-USD amounts use 1,000,000 units per USD."},"temporaryReservedBytes":{"type":"string","pattern":"^-?[0-9]+$","description":"Integer serialized as a decimal string; micro-USD amounts use 1,000,000 units per USD."},"temporaryUsedObjects":{"type":"number"},"temporaryReservedObjects":{"type":"number"},"quotaVersion":{"type":"number"},"graceUntil":{"type":"string","format":"date-time","nullable":true}},"required":["id","createdAt","updatedAt","userId","currentPlanId","currentPlanVersion","status","autoRenew","billingAnchor","currentPeriodId","scheduledPlanId","scheduledPlanVersion","usedBytes","reservedBytes","usedObjects","reservedObjects","temporaryUsedBytes","temporaryReservedBytes","temporaryUsedObjects","temporaryReservedObjects","quotaVersion","graceUntil"]},"Agent_uploadResponse":{"type":"object","properties":{"attachment":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"deletedAt":{"type":"string","format":"date-time","nullable":true},"userId":{"type":"string"},"status":{"type":"string"},"siteId":{"type":"string"},"metadata":{},"sizeBytes":{"type":"string","pattern":"^-?[0-9]+$","description":"Integer serialized as a decimal string; micro-USD amounts use 1,000,000 units per USD."},"conversationId":{"type":"string","nullable":true},"projectId":{"type":"string","nullable":true},"storageObjectId":{"type":"string","nullable":true},"storageBackendId":{"type":"string"},"objectKey":{"type":"string"},"uploadKey":{"type":"string"},"originalName":{"type":"string"},"declaredMime":{"type":"string"},"detectedMime":{"type":"string","nullable":true},"sha256":{"type":"string","nullable":true},"kind":{"type":"string"},"expiresAt":{"type":"string","format":"date-time","nullable":true}},"required":["id","createdAt","updatedAt","deletedAt","userId","status","siteId","metadata","sizeBytes","conversationId","projectId","storageObjectId","storageBackendId","objectKey","uploadKey","originalName","declaredMime","detectedMime","sha256","kind","expiresAt"]},"uploadUrl":{"type":"string"}},"required":["attachment","uploadUrl"]},"Agent_completeResponse":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"deletedAt":{"type":"string","format":"date-time","nullable":true},"userId":{"type":"string"},"status":{"type":"string"},"siteId":{"type":"string"},"metadata":{},"sizeBytes":{"type":"string","pattern":"^-?[0-9]+$","description":"Integer serialized as a decimal string; micro-USD amounts use 1,000,000 units per USD."},"conversationId":{"type":"string","nullable":true},"projectId":{"type":"string","nullable":true},"storageObjectId":{"type":"string","nullable":true},"storageBackendId":{"type":"string"},"objectKey":{"type":"string"},"uploadKey":{"type":"string"},"originalName":{"type":"string"},"declaredMime":{"type":"string"},"detectedMime":{"type":"string","nullable":true},"sha256":{"type":"string","nullable":true},"kind":{"type":"string"},"expiresAt":{"type":"string","format":"date-time","nullable":true}},"required":["id","createdAt","updatedAt","deletedAt","userId","status","siteId","metadata","sizeBytes","conversationId","projectId","storageObjectId","storageBackendId","objectKey","uploadKey","originalName","declaredMime","detectedMime","sha256","kind","expiresAt"]},"Agent_costsResponse":{"type":"object","properties":{"runId":{"type":"string"},"budget":{"type":"object","properties":{"maxCostMicroUsd":{"type":"string","pattern":"^-?[0-9]+$","description":"Integer serialized as a decimal string; micro-USD amounts use 1,000,000 units per USD."},"chargedMicroUsd":{"type":"string","pattern":"^-?[0-9]+$","description":"Integer serialized as a decimal string; micro-USD amounts use 1,000,000 units per USD."},"refundedMicroUsd":{"type":"string","pattern":"^-?[0-9]+$","description":"Integer serialized as a decimal string; micro-USD amounts use 1,000,000 units per USD."},"committedMicroUsd":{"type":"string","pattern":"^-?[0-9]+$","description":"Integer serialized as a decimal string; micro-USD amounts use 1,000,000 units per USD."},"version":{"type":"number"}},"required":["maxCostMicroUsd","chargedMicroUsd","refundedMicroUsd","committedMicroUsd","version"]},"steps":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"sequence":{"type":"number"},"kind":{"type":"string"},"purpose":{"type":"string"},"parentStepId":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"startedAt":{"type":"string","format":"date-time","nullable":true},"completedAt":{"type":"string","format":"date-time","nullable":true},"activity":{"type":"object","properties":{"label":{"type":"string","nullable":true},"summary":{"type":"string","nullable":true},"parameters":{},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string","nullable":true}},"required":["code","message"],"nullable":true}},"required":["label","summary","parameters","error"]},"status":{"type":"string","enum":["FAILED","SUCCEEDED","RUNNING","CANCELLED","PLANNED","BUDGET_COMMITTED","DISPATCHING","WAITING_TASK","UNKNOWN"]},"modelId":{"type":"string","nullable":true},"billingState":{"type":"string"},"chargedMicroUsd":{"type":"string","pattern":"^-?[0-9]+$","description":"Integer serialized as a decimal string; micro-USD amounts use 1,000,000 units per USD."},"refundedMicroUsd":{"type":"string","pattern":"^-?[0-9]+$","description":"Integer serialized as a decimal string; micro-USD amounts use 1,000,000 units per USD."},"budgetCommittedMicroUsd":{"type":"string","pattern":"^-?[0-9]+$","description":"Integer serialized as a decimal string; micro-USD amounts use 1,000,000 units per USD."},"artifacts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"contentUrl":{"type":"string","nullable":true},"version":{"type":"number"},"kind":{"type":"string"},"displayName":{"type":"string"},"status":{"type":"string"},"availableUntil":{"type":"string","format":"date-time","nullable":true}},"required":["id","contentUrl","version","kind","displayName","status","availableUntil"]}}},"required":["id","sequence","kind","purpose","parentStepId","createdAt","startedAt","completedAt","activity","status","modelId","billingState","chargedMicroUsd","refundedMicroUsd","budgetCommittedMicroUsd","artifacts"]}}},"required":["runId","budget","steps"]},"Agent_resultResponse":{"type":"object","properties":{"runId":{"type":"string"},"revision":{"type":"number"},"status":{"type":"string","enum":["FAILED","COMPLETED","QUEUED","RUNNING","WAITING_USER","WAITING_BUDGET","WAITING_TASKS","FINALIZING","RECONCILING","CANCELLING","CANCELLED"]},"mainOutcome":{"type":"string"},"structuredResult":{"type":"object","properties":{"status":{"type":"string"},"success":{"type":"boolean","enum":[false,true,null],"nullable":true},"value":{},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string","nullable":true}},"required":["code","message"],"nullable":true},"schemaHash":{"type":"string"},"sourceStepIds":{"type":"array","items":{"type":"string"}},"extractionCompletionId":{"type":"string","nullable":true},"costMicroUsd":{"type":"string","pattern":"^-?[0-9]+$","description":"Integer serialized as a decimal string; micro-USD amounts use 1,000,000 units per USD."}},"required":["status","success","value","error","schemaHash","sourceStepIds","extractionCompletionId","costMicroUsd"],"nullable":true},"artifacts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"contentUrl":{"type":"string","nullable":true},"version":{"type":"number"},"kind":{"type":"string"},"displayName":{"type":"string"},"status":{"type":"string"},"availableUntil":{"type":"string","format":"date-time","nullable":true}},"required":["id","contentUrl","version","kind","displayName","status","availableUntil"]}}},"required":["runId","revision","status","mainOutcome","structuredResult","artifacts"]},"Agent_decideResponse":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"status":{"type":"string"},"version":{"type":"number"},"kind":{"type":"string"},"expiresAt":{"type":"string","format":"date-time"},"inputSchema":{},"stepId":{"type":"string"},"runId":{"type":"string"},"proposal":{},"proposalHash":{"type":"string"},"decision":{},"requestKey":{"type":"string","nullable":true},"decidedBy":{"type":"string","nullable":true},"decidedAt":{"type":"string","format":"date-time","nullable":true}},"required":["id","createdAt","updatedAt","status","version","kind","expiresAt","inputSchema","stepId","runId","proposal","proposalHash","decision","requestKey","decidedBy","decidedAt"]},"Agent_libraryResponse":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"contentUrl":{"type":"string","nullable":true},"artifactFamilyId":{"type":"string"},"version":{"type":"number"},"sourceArtifactId":{"type":"string","nullable":true},"displayName":{"type":"string"},"kind":{"type":"string"},"conversationId":{"type":"string"},"runId":{"type":"string"},"stepId":{"type":"string"},"modelId":{"type":"string","nullable":true},"status":{"type":"string"},"availableUntil":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time"}},"required":["id","contentUrl","artifactFamilyId","version","sourceArtifactId","displayName","kind","conversationId","runId","stepId","modelId","status","availableUntil","createdAt"]}},"nextCursor":{"type":"string","nullable":true}},"required":["items","nextCursor"]},"Agent_artifactDetailsResponse":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"sizeBytes":{"type":"string","nullable":true},"contentUrl":{"type":"string","nullable":true},"generationId":{"type":"string","nullable":true},"outputIndex":{"type":"number"},"displayName":{"type":"string"},"kind":{"type":"string"},"version":{"type":"number"},"status":{"type":"string"},"availableUntil":{"type":"string","format":"date-time","nullable":true}},"required":["id","sizeBytes","contentUrl","generationId","outputIndex","displayName","kind","version","status","availableUntil"]},{"type":"object","properties":{"id":{"type":"string"},"contentUrl":{"nullable":true,"enum":[null]},"status":{"type":"string"},"generationId":{"nullable":true,"enum":[null]},"outputIndex":{"type":"number"},"displayName":{"type":"string"},"kind":{"type":"string"},"version":{"type":"number"},"availableUntil":{"nullable":true,"enum":[null]}},"required":["id","contentUrl","status","generationId","outputIndex","displayName","kind","version","availableUntil"]}]},"Agent_listAttachmentsResponse":{"type":"object","properties":{"items":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string"},"contentUrl":{"nullable":true,"enum":[null]}},"required":["id","status","contentUrl"]},{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string"},"originalName":{"type":"string"},"sizeBytes":{"type":"string"},"mime":{"type":"string","nullable":true},"kind":{"type":"string"},"expiresAt":{"type":"string","format":"date-time","nullable":true},"contentUrl":{"type":"string","nullable":true}},"required":["id","status","originalName","sizeBytes","mime","kind","expiresAt","contentUrl"]}]}},"nextCursor":{"type":"string","nullable":true}},"required":["items","nextCursor"]}}},"externalDocs":{"description":"API Stock documentation","url":"https://docs.api-stock.com"},"x-api-stock-public-operation-ids":["AgentController_artifactContent","AgentController_artifactDetails","AgentController_attachment","AgentController_attachmentContent","AgentController_attachmentDelete","AgentController_balanceRecovery","AgentController_budget","AgentController_cancelQueued","AgentController_cancelRenewal","AgentController_complete","AgentController_contextRead","AgentController_conversation","AgentController_costs","AgentController_create","AgentController_decide","AgentController_enableRenewal","AgentController_getSettings","AgentController_history","AgentController_importProjectArtifact","AgentController_library","AgentController_list","AgentController_listAttachments","AgentController_markRead","AgentController_messages","AgentController_models","AgentController_plans","AgentController_profiles","AgentController_projectCreate","AgentController_projectDelete","AgentController_projectDetail","AgentController_projectList","AgentController_projectPatch","AgentController_projectUpload","AgentController_putSettings","AgentController_quote","AgentController_referenceList","AgentController_referenceReplace","AgentController_remove","AgentController_result","AgentController_resume","AgentController_retainFile","AgentController_retainStatus","AgentController_run","AgentController_send","AgentController_settings","AgentController_stop","AgentController_storageDelete","AgentController_storageFiles","AgentController_storageStatus","AgentController_stream","AgentController_subscribe","AgentController_upload","AgentController_visibility","AgentController_webhookCreate","AgentController_webhookDeliveries","AgentController_webhookList","AgentController_webhookRevoke","AgentController_workflow","AgentController_workflows","CatalogController_getCatalog","CatalogController_getExchangeRate","CatalogController_getModel","CostController_getAllUserPrices","CostController_getUserPricesByModel","GenerationController_createGeneration[0]","GenerationController_createGeneration[1]","GenerationController_estimateGenerationCost","GenerationController_getGenerationById","LlmController_createChatCompletion","LlmController_createMessage","LlmController_listModels","StatsController_getStats","TaskController_getTaskStatus","UserController_getUser"]}