{ "components": { "schemas": { "AccountDeletionCompleteRequest": { "additionalProperties": false, "properties": { "confirmation": { "enum": [ "注销账号" ], "type": "string" }, "deletion_id": { "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$", "type": "string" }, "verification_code": { "pattern": "^[0-9]{6}$", "type": "string" } }, "required": [ "confirmation", "deletion_id", "verification_code" ], "type": "object" }, "AccountDeletionResponse": { "additionalProperties": false, "properties": { "status": { "enum": [ "deleted" ], "type": "string" } }, "required": [ "status" ], "type": "object" }, "AccountDeletionSendResponse": { "additionalProperties": false, "properties": { "challenge_expires_at": { "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$", "type": "string" }, "deletion_id": { "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$", "type": "string" }, "resend_available_at": { "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$", "type": "string" }, "status": { "enum": [ "verification_sent" ], "type": "string" } }, "required": [ "challenge_expires_at", "deletion_id", "resend_available_at", "status" ], "type": "object" }, "AccountProfileUpdateRequest": { "additionalProperties": false, "properties": { "creator_name": { "maxLength": 80, "minLength": 1, "type": "string" }, "social_id": { "maxLength": 80, "minLength": 1, "type": "string" } }, "required": [ "creator_name", "social_id" ], "type": "object" }, "AccountProfileUpdateResponse": { "additionalProperties": false, "properties": { "profile": { "additionalProperties": false, "properties": { "creator_name": { "maxLength": 80, "minLength": 1, "type": "string" }, "social_id": { "maxLength": 80, "minLength": 1, "type": "string" } }, "required": [ "creator_name", "social_id" ], "type": "object" }, "status": { "enum": [ "saved" ], "type": "string" } }, "required": [ "profile", "status" ], "type": "object" }, "AccountSettingsResponse": { "additionalProperties": false, "properties": { "account": { "additionalProperties": false, "properties": { "email": { "maxLength": 320, "pattern": "^[^@\\s]{1,128}@[^@\\s]{1,190}$", "type": "string" }, "status": { "enum": [ "active" ], "type": "string" } }, "required": [ "email", "status" ], "type": "object" }, "csrf_token": { "maxLength": 64, "minLength": 43, "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "local_data": { "additionalProperties": false, "properties": { "backup_enabled": { "enum": [ false ], "type": "boolean" }, "capacity_status": { "anyOf": [ { "enum": [ "normal" ], "type": "string" }, { "enum": [ "warning" ], "type": "string" }, { "enum": [ "critical" ], "type": "string" }, { "enum": [ "full" ], "type": "string" }, { "enum": [ "unavailable" ], "type": "string" } ] }, "hard_limit_bytes": { "minimum": 1, "type": "integer" }, "location": { "enum": [ "configured_local_data_root" ], "type": "string" }, "managed_content_bytes": { "minimum": 0, "type": "integer" }, "migration_supported": { "enum": [ false ], "type": "boolean" } }, "required": [ "backup_enabled", "capacity_status", "hard_limit_bytes", "location", "managed_content_bytes", "migration_supported" ], "type": "object" }, "profile": { "additionalProperties": false, "properties": { "creator_name": { "maxLength": 80, "minLength": 1, "type": "string" }, "social_id": { "maxLength": 80, "minLength": 1, "type": "string" } }, "required": [ "creator_name", "social_id" ], "type": "object" } }, "required": [ "account", "csrf_token", "local_data", "profile" ], "type": "object" }, "AdminAuthenticatedUser": { "additionalProperties": false, "properties": { "role": { "enum": [ "super_admin" ], "type": "string" }, "status": { "enum": [ "active" ], "type": "string" }, "user_id": { "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$", "type": "string" } }, "required": [ "role", "status", "user_id" ], "type": "object" }, "AdminLoginCompleteRequest": { "additionalProperties": false, "properties": { "registration_id": { "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$", "type": "string" }, "verification_code": { "pattern": "^[0-9]{6}$", "type": "string" } }, "required": [ "registration_id", "verification_code" ], "type": "object" }, "AdminLoginCompleteResponse": { "additionalProperties": false, "properties": { "admin": { "$ref": "#/components/schemas/AdminAuthenticatedUser" }, "audience": { "enum": [ "admin" ], "type": "string" }, "session_expires_at": { "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$", "type": "string" }, "status": { "enum": [ "authenticated" ], "type": "string" } }, "required": [ "admin", "audience", "session_expires_at", "status" ], "type": "object" }, "AdminLoginSendRequest": { "additionalProperties": false, "properties": { "email": { "maxLength": 320, "pattern": "^[^@\\s]{1,128}@[^@\\s]{1,190}$", "type": "string" } }, "required": [ "email" ], "type": "object" }, "AdminSessionResponse": { "additionalProperties": false, "properties": { "acknowledged_private_content_notice_version": { "anyOf": [ { "type": "string" }, { "type": "null" } ] }, "admin": { "$ref": "#/components/schemas/AdminAuthenticatedUser" }, "audience": { "enum": [ "admin" ], "type": "string" }, "authenticated": { "enum": [ true ], "type": "boolean" }, "csrf_token": { "maxLength": 64, "minLength": 43, "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "current_private_content_notice_version": { "anyOf": [ { "type": "string" }, { "type": "null" } ] }, "expires_at": { "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$", "type": "string" }, "notice_acknowledged": { "type": "boolean" } }, "required": [ "acknowledged_private_content_notice_version", "admin", "audience", "authenticated", "csrf_token", "current_private_content_notice_version", "expires_at", "notice_acknowledged" ], "type": "object" }, "AuthenticatedUser": { "additionalProperties": false, "properties": { "creator_name": { "maxLength": 80, "minLength": 1, "type": "string" }, "role": { "enum": [ "user" ], "type": "string" }, "social_id": { "maxLength": 80, "minLength": 1, "type": "string" }, "status": { "enum": [ "active" ], "type": "string" }, "user_id": { "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$", "type": "string" } }, "required": [ "creator_name", "role", "social_id", "status", "user_id" ], "type": "object" }, "BootstrapResponse": { "additionalProperties": false, "properties": { "app_version": { "maxLength": 40, "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+(?:[-+][A-Za-z0-9.-]+)?$", "type": "string" }, "dependencies": { "items": { "additionalProperties": false, "properties": { "service_id": { "maxLength": 60, "pattern": "^[a-z][a-z0-9_-]+$", "type": "string" }, "status": { "anyOf": [ { "enum": [ "available" ], "type": "string" }, { "enum": [ "paused" ], "type": "string" }, { "enum": [ "degraded" ], "type": "string" }, { "enum": [ "unavailable" ], "type": "string" } ] } }, "required": [ "service_id", "status" ], "type": "object" }, "type": "array" }, "model_summary": { "additionalProperties": false, "properties": { "config_set_version": { "anyOf": [ { "minimum": 0, "type": "integer" }, { "type": "null" } ] }, "configured_default_model_id": { "anyOf": [ { "maxLength": 80, "pattern": "^[a-z0-9][a-z0-9.-]+$", "type": "string" }, { "type": "null" } ] }, "recommended_model_id": { "anyOf": [ { "maxLength": 80, "pattern": "^[a-z0-9][a-z0-9.-]+$", "type": "string" }, { "type": "null" } ] }, "runtime_availability_version": { "anyOf": [ { "minimum": 0, "type": "integer" }, { "type": "null" } ] } }, "required": [ "config_set_version", "configured_default_model_id", "recommended_model_id", "runtime_availability_version" ], "type": "object" }, "public_features": { "items": { "additionalProperties": false, "properties": { "feature_id": { "maxLength": 80, "pattern": "^[a-z][a-z0-9_-]+$", "type": "string" }, "status": { "anyOf": [ { "enum": [ "enabled" ], "type": "string" }, { "enum": [ "disabled" ], "type": "string" }, { "enum": [ "paused" ], "type": "string" } ] } }, "required": [ "feature_id", "status" ], "type": "object" }, "type": "array" } }, "required": [ "app_version", "dependencies", "model_summary", "public_features" ], "type": "object" }, "BrowserSupportRequest": { "additionalProperties": false, "properties": { "brands": { "items": { "additionalProperties": false, "properties": { "brand": { "maxLength": 80, "type": "string" }, "version": { "maxLength": 80, "type": "string" } }, "required": [ "brand", "version" ], "type": "object" }, "maxItems": 16, "type": "array" }, "full_version_list": { "items": { "additionalProperties": false, "properties": { "brand": { "maxLength": 80, "type": "string" }, "version": { "maxLength": 80, "type": "string" } }, "required": [ "brand", "version" ], "type": "object" }, "maxItems": 16, "type": "array" }, "platform": { "maxLength": 40, "type": "string" } }, "required": [ "brands", "full_version_list", "platform" ], "type": "object" }, "BrowserSupportSuccess": { "additionalProperties": false, "properties": { "app_version": { "maxLength": 80, "type": "string" }, "browser": { "additionalProperties": false, "properties": { "brand": { "anyOf": [ { "enum": [ "Google Chrome" ], "type": "string" }, { "enum": [ "Microsoft Edge" ], "type": "string" } ] }, "major": { "minimum": 1, "type": "integer" } }, "required": [ "brand", "major" ], "type": "object" }, "status": { "enum": [ "supported" ], "type": "string" }, "supported_browsers": { "items": { "additionalProperties": false, "properties": { "brand": { "anyOf": [ { "enum": [ "Google Chrome" ], "type": "string" }, { "enum": [ "Microsoft Edge" ], "type": "string" } ] }, "major": { "minimum": 1, "type": "integer" } }, "required": [ "brand", "major" ], "type": "object" }, "maxItems": 2, "type": "array" } }, "required": [ "app_version", "browser", "status", "supported_browsers" ], "type": "object" }, "BrowserUnsupportedReason": { "anyOf": [ { "enum": [ "platform_unsupported" ], "type": "string" }, { "enum": [ "brand_unsupported" ], "type": "string" }, { "enum": [ "version_unsupported" ], "type": "string" }, { "enum": [ "identity_unavailable" ], "type": "string" } ] }, "CorrelationId": { "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$", "type": "string" }, "CreditSummary": { "additionalProperties": false, "properties": { "available_balance": { "type": "integer" }, "reserved_balance": { "minimum": 0, "type": "integer" } }, "required": [ "available_balance", "reserved_balance" ], "type": "object" }, "CsrfHeaders": { "additionalProperties": true, "properties": { "x-csrf-token": { "maxLength": 64, "minLength": 43, "pattern": "^[A-Za-z0-9_-]+$", "type": "string" } }, "required": [ "x-csrf-token" ], "type": "object" }, "ErrorDetails": { "additionalProperties": false, "properties": { "capacity_status": { "anyOf": [ { "enum": [ "normal" ], "type": "string" }, { "enum": [ "warning" ], "type": "string" }, { "enum": [ "critical" ], "type": "string" }, { "enum": [ "full" ], "type": "string" }, { "enum": [ "unavailable" ], "type": "string" } ] }, "current_task_ref": { "maxLength": 160, "pattern": "^[a-z][a-z0-9_]*:[A-Za-z0-9_-]+$", "type": "string" }, "field_errors": { "items": { "additionalProperties": false, "properties": { "field": { "maxLength": 120, "pattern": "^[A-Za-z0-9_.\\[\\]-]+$", "type": "string" }, "message_key": { "maxLength": 120, "pattern": "^[A-Za-z0-9_.-]+$", "type": "string" } }, "required": [ "field", "message_key" ], "type": "object" }, "maxItems": 32, "type": "array" }, "latest_version": { "anyOf": [ { "minimum": 0, "type": "integer" }, { "maxLength": 120, "type": "string" } ] }, "reason": { "anyOf": [ { "enum": [ "platform_unsupported" ], "type": "string" }, { "enum": [ "brand_unsupported" ], "type": "string" }, { "enum": [ "version_unsupported" ], "type": "string" }, { "enum": [ "identity_unavailable" ], "type": "string" } ] }, "remaining_bytes": { "minimum": 0, "type": "integer" }, "supported_browsers": { "items": { "additionalProperties": false, "properties": { "brand": { "anyOf": [ { "enum": [ "Google Chrome" ], "type": "string" }, { "enum": [ "Microsoft Edge" ], "type": "string" } ] }, "major": { "minimum": 1, "type": "integer" } }, "required": [ "brand", "major" ], "type": "object" }, "maxItems": 2, "type": "array" } }, "type": "object" }, "ErrorEnvelope": { "additionalProperties": false, "properties": { "error": { "additionalProperties": false, "properties": { "code": { "anyOf": [ { "enum": [ "BROWSER_UNSUPPORTED" ], "type": "string" }, { "enum": [ "MODEL_CONFIG_VERSION_CONFLICT" ], "type": "string" }, { "enum": [ "MODEL_DEFAULT_REPLACEMENT_REQUIRED" ], "type": "string" }, { "enum": [ "MODEL_DEFAULT_REPLACEMENT_INVALID" ], "type": "string" }, { "enum": [ "MODEL_RECOMMENDATION_PRIORITY_INVALID" ], "type": "string" }, { "enum": [ "MODEL_RECOMMENDATION_PRIORITY_CONFLICT" ], "type": "string" }, { "enum": [ "PRIVATE_CONTENT_NOTICE_ACK_REQUIRED" ], "type": "string" }, { "enum": [ "ASSET_HISTORY_REFERENCE_CONFLICT" ], "type": "string" }, { "enum": [ "ASSET_CLEANUP_CANDIDATE_STALE" ], "type": "string" }, { "enum": [ "STORAGE_CAPACITY_EXCEEDED" ], "type": "string" }, { "enum": [ "REGISTRATION_REJECTED" ], "type": "string" }, { "enum": [ "REGISTRATION_REQUEST_INVALID" ], "type": "string" }, { "enum": [ "IDEMPOTENCY_KEY_CONFLICT" ], "type": "string" }, { "enum": [ "AUTH_SESSION_INVALID" ], "type": "string" }, { "enum": [ "AUTH_SERVICE_UNAVAILABLE" ], "type": "string" }, { "enum": [ "AUTH_ENTRY_REJECTED" ], "type": "string" }, { "enum": [ "AUTH_RATE_LIMITED" ], "type": "string" }, { "enum": [ "AUTH_CSRF_INVALID" ], "type": "string" } ] }, "correlation_id": { "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$", "type": "string" }, "details": { "additionalProperties": false, "properties": { "capacity_status": { "anyOf": [ { "enum": [ "normal" ], "type": "string" }, { "enum": [ "warning" ], "type": "string" }, { "enum": [ "critical" ], "type": "string" }, { "enum": [ "full" ], "type": "string" }, { "enum": [ "unavailable" ], "type": "string" } ] }, "current_task_ref": { "maxLength": 160, "pattern": "^[a-z][a-z0-9_]*:[A-Za-z0-9_-]+$", "type": "string" }, "field_errors": { "items": { "additionalProperties": false, "properties": { "field": { "maxLength": 120, "pattern": "^[A-Za-z0-9_.\\[\\]-]+$", "type": "string" }, "message_key": { "maxLength": 120, "pattern": "^[A-Za-z0-9_.-]+$", "type": "string" } }, "required": [ "field", "message_key" ], "type": "object" }, "maxItems": 32, "type": "array" }, "latest_version": { "anyOf": [ { "minimum": 0, "type": "integer" }, { "maxLength": 120, "type": "string" } ] }, "reason": { "anyOf": [ { "enum": [ "platform_unsupported" ], "type": "string" }, { "enum": [ "brand_unsupported" ], "type": "string" }, { "enum": [ "version_unsupported" ], "type": "string" }, { "enum": [ "identity_unavailable" ], "type": "string" } ] }, "remaining_bytes": { "minimum": 0, "type": "integer" }, "supported_browsers": { "items": { "additionalProperties": false, "properties": { "brand": { "anyOf": [ { "enum": [ "Google Chrome" ], "type": "string" }, { "enum": [ "Microsoft Edge" ], "type": "string" } ] }, "major": { "minimum": 1, "type": "integer" } }, "required": [ "brand", "major" ], "type": "object" }, "maxItems": 2, "type": "array" } }, "type": "object" }, "error_category": { "anyOf": [ { "enum": [ "upstream_timeout" ], "type": "string" }, { "enum": [ "upstream_failed" ], "type": "string" }, { "enum": [ "safety_rejected" ], "type": "string" }, { "enum": [ "model_disabled" ], "type": "string" }, { "enum": [ "gateway_balance_insufficient" ], "type": "string" }, { "enum": [ "gateway_contract_invalid" ], "type": "string" }, { "enum": [ "reference_invalid" ], "type": "string" }, { "enum": [ "unknown_retryable" ], "type": "string" }, { "enum": [ "unknown_non_retryable" ], "type": "string" } ] }, "message_key": { "maxLength": 120, "pattern": "^[A-Za-z0-9_.-]+$", "type": "string" } }, "required": [ "code", "message_key", "correlation_id", "details" ], "type": "object" } }, "required": [ "error" ], "type": "object" }, "GenerationErrorCategory": { "anyOf": [ { "enum": [ "upstream_timeout" ], "type": "string" }, { "enum": [ "upstream_failed" ], "type": "string" }, { "enum": [ "safety_rejected" ], "type": "string" }, { "enum": [ "model_disabled" ], "type": "string" }, { "enum": [ "gateway_balance_insufficient" ], "type": "string" }, { "enum": [ "gateway_contract_invalid" ], "type": "string" }, { "enum": [ "reference_invalid" ], "type": "string" }, { "enum": [ "unknown_retryable" ], "type": "string" }, { "enum": [ "unknown_non_retryable" ], "type": "string" } ] }, "LoginCompleteRequest": { "additionalProperties": false, "properties": { "registration_id": { "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$", "type": "string" }, "verification_code": { "pattern": "^[0-9]{6}$", "type": "string" } }, "required": [ "registration_id", "verification_code" ], "type": "object" }, "LoginCompleteResponse": { "additionalProperties": false, "properties": { "audience": { "enum": [ "user" ], "type": "string" }, "credits": { "$ref": "#/components/schemas/CreditSummary" }, "session_expires_at": { "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$", "type": "string" }, "status": { "enum": [ "authenticated" ], "type": "string" }, "user": { "$ref": "#/components/schemas/AuthenticatedUser" } }, "required": [ "audience", "credits", "session_expires_at", "status", "user" ], "type": "object" }, "LoginSendRequest": { "additionalProperties": false, "properties": { "email": { "maxLength": 320, "pattern": "^[^@\\s]{1,128}@[^@\\s]{1,190}$", "type": "string" } }, "required": [ "email" ], "type": "object" }, "LogoutHeaders": { "additionalProperties": true, "properties": { "idempotency-key": { "maxLength": 200, "minLength": 32, "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "x-csrf-token": { "maxLength": 64, "minLength": 43, "pattern": "^[A-Za-z0-9_-]+$", "type": "string" } }, "required": [ "idempotency-key", "x-csrf-token" ], "type": "object" }, "LogoutResponse": { "additionalProperties": false, "properties": { "status": { "enum": [ "logged_out" ], "type": "string" } }, "required": [ "status" ], "type": "object" }, "ModelConfigSseEvent": { "additionalProperties": false, "properties": { "config_set_version": { "minimum": 0, "type": "integer" }, "entity_ref": { "maxLength": 160, "pattern": "^[a-z][a-z0-9_]*:[A-Za-z0-9_-]+$", "type": "string" }, "event_id": { "minimum": 0, "type": "integer" }, "event_type": { "enum": [ "model_config_changed" ], "type": "string" }, "occurred_at": { "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(?:\\.[0-9]{3})?Z$", "type": "string" } }, "required": [ "entity_ref", "event_id", "occurred_at", "config_set_version", "event_type" ], "type": "object" }, "ModelRuntimeSseEvent": { "additionalProperties": false, "properties": { "entity_ref": { "maxLength": 160, "pattern": "^[a-z][a-z0-9_]*:[A-Za-z0-9_-]+$", "type": "string" }, "event_id": { "minimum": 0, "type": "integer" }, "event_type": { "enum": [ "model_runtime_changed" ], "type": "string" }, "occurred_at": { "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(?:\\.[0-9]{3})?Z$", "type": "string" }, "runtime_availability_version": { "minimum": 0, "type": "integer" } }, "required": [ "entity_ref", "event_id", "occurred_at", "event_type", "runtime_availability_version" ], "type": "object" }, "RegistrationCompleteHeaders": { "additionalProperties": true, "properties": { "idempotency-key": { "maxLength": 200, "minLength": 32, "pattern": "^[A-Za-z0-9_-]+$", "type": "string" } }, "required": [ "idempotency-key" ], "type": "object" }, "RegistrationCompleteRequest": { "additionalProperties": false, "properties": { "creator_name": { "maxLength": 80, "minLength": 1, "type": "string" }, "privacy_consent_accepted": { "type": "boolean" }, "privacy_notice_version": { "maxLength": 80, "minLength": 1, "type": "string" }, "registration_id": { "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$", "type": "string" }, "social_id": { "maxLength": 80, "minLength": 1, "type": "string" }, "verification_code": { "pattern": "^[0-9]{6}$", "type": "string" } }, "required": [ "creator_name", "privacy_consent_accepted", "privacy_notice_version", "registration_id", "social_id", "verification_code" ], "type": "object" }, "RegistrationCompleteResponse": { "additionalProperties": false, "properties": { "credits": { "$ref": "#/components/schemas/CreditSummary" }, "session_expires_at": { "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$", "type": "string" }, "status": { "enum": [ "registered" ], "type": "string" }, "user": { "$ref": "#/components/schemas/AuthenticatedUser" } }, "required": [ "credits", "session_expires_at", "status", "user" ], "type": "object" }, "RegistrationSendRequest": { "additionalProperties": false, "properties": { "email": { "maxLength": 320, "pattern": "^[^@\\s]{1,128}@[^@\\s]{1,190}$", "type": "string" }, "invite_code": { "maxLength": 160, "minLength": 8, "type": "string" } }, "required": [ "email", "invite_code" ], "type": "object" }, "RegistrationSendResponse": { "additionalProperties": false, "properties": { "challenge_expires_at": { "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$", "type": "string" }, "registration_id": { "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$", "type": "string" }, "resend_available_at": { "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$", "type": "string" }, "status": { "enum": [ "verification_sent" ], "type": "string" } }, "required": [ "challenge_expires_at", "registration_id", "resend_available_at", "status" ], "type": "object" }, "SseEvent": { "anyOf": [ { "additionalProperties": false, "properties": { "entity_ref": { "maxLength": 160, "pattern": "^[a-z][a-z0-9_]*:[A-Za-z0-9_-]+$", "type": "string" }, "event_id": { "minimum": 0, "type": "integer" }, "event_type": { "maxLength": 80, "pattern": "^(?!model_config_changed$|model_runtime_changed$)[a-z][a-z0-9_]+$", "type": "string" }, "occurred_at": { "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(?:\\.[0-9]{3})?Z$", "type": "string" }, "state_version": { "minimum": 0, "type": "integer" } }, "required": [ "entity_ref", "event_id", "occurred_at", "event_type", "state_version" ], "type": "object" }, { "additionalProperties": false, "properties": { "config_set_version": { "minimum": 0, "type": "integer" }, "entity_ref": { "maxLength": 160, "pattern": "^[a-z][a-z0-9_]*:[A-Za-z0-9_-]+$", "type": "string" }, "event_id": { "minimum": 0, "type": "integer" }, "event_type": { "enum": [ "model_config_changed" ], "type": "string" }, "occurred_at": { "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(?:\\.[0-9]{3})?Z$", "type": "string" } }, "required": [ "entity_ref", "event_id", "occurred_at", "config_set_version", "event_type" ], "type": "object" }, { "additionalProperties": false, "properties": { "entity_ref": { "maxLength": 160, "pattern": "^[a-z][a-z0-9_]*:[A-Za-z0-9_-]+$", "type": "string" }, "event_id": { "minimum": 0, "type": "integer" }, "event_type": { "enum": [ "model_runtime_changed" ], "type": "string" }, "occurred_at": { "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(?:\\.[0-9]{3})?Z$", "type": "string" }, "runtime_availability_version": { "minimum": 0, "type": "integer" } }, "required": [ "entity_ref", "event_id", "occurred_at", "event_type", "runtime_availability_version" ], "type": "object" } ] }, "StableEngineeringErrorCode": { "anyOf": [ { "enum": [ "BROWSER_UNSUPPORTED" ], "type": "string" }, { "enum": [ "MODEL_CONFIG_VERSION_CONFLICT" ], "type": "string" }, { "enum": [ "MODEL_DEFAULT_REPLACEMENT_REQUIRED" ], "type": "string" }, { "enum": [ "MODEL_DEFAULT_REPLACEMENT_INVALID" ], "type": "string" }, { "enum": [ "MODEL_RECOMMENDATION_PRIORITY_INVALID" ], "type": "string" }, { "enum": [ "MODEL_RECOMMENDATION_PRIORITY_CONFLICT" ], "type": "string" }, { "enum": [ "PRIVATE_CONTENT_NOTICE_ACK_REQUIRED" ], "type": "string" }, { "enum": [ "ASSET_HISTORY_REFERENCE_CONFLICT" ], "type": "string" }, { "enum": [ "ASSET_CLEANUP_CANDIDATE_STALE" ], "type": "string" }, { "enum": [ "STORAGE_CAPACITY_EXCEEDED" ], "type": "string" }, { "enum": [ "REGISTRATION_REJECTED" ], "type": "string" }, { "enum": [ "REGISTRATION_REQUEST_INVALID" ], "type": "string" }, { "enum": [ "IDEMPOTENCY_KEY_CONFLICT" ], "type": "string" }, { "enum": [ "AUTH_SESSION_INVALID" ], "type": "string" }, { "enum": [ "AUTH_SERVICE_UNAVAILABLE" ], "type": "string" }, { "enum": [ "AUTH_ENTRY_REJECTED" ], "type": "string" }, { "enum": [ "AUTH_RATE_LIMITED" ], "type": "string" }, { "enum": [ "AUTH_CSRF_INVALID" ], "type": "string" } ] }, "StateSseEvent": { "additionalProperties": false, "properties": { "entity_ref": { "maxLength": 160, "pattern": "^[a-z][a-z0-9_]*:[A-Za-z0-9_-]+$", "type": "string" }, "event_id": { "minimum": 0, "type": "integer" }, "event_type": { "maxLength": 80, "pattern": "^(?!model_config_changed$|model_runtime_changed$)[a-z][a-z0-9_]+$", "type": "string" }, "occurred_at": { "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(?:\\.[0-9]{3})?Z$", "type": "string" }, "state_version": { "minimum": 0, "type": "integer" } }, "required": [ "entity_ref", "event_id", "occurred_at", "event_type", "state_version" ], "type": "object" }, "UserSessionResponse": { "additionalProperties": false, "properties": { "audience": { "enum": [ "user" ], "type": "string" }, "authenticated": { "enum": [ true ], "type": "boolean" }, "credits": { "$ref": "#/components/schemas/CreditSummary" }, "csrf_token": { "maxLength": 64, "minLength": 43, "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "expires_at": { "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$", "type": "string" }, "user": { "$ref": "#/components/schemas/AuthenticatedUser" } }, "required": [ "audience", "authenticated", "credits", "csrf_token", "expires_at", "user" ], "type": "object" } } }, "info": { "title": "Dada P0-A", "version": "0.0.0" }, "openapi": "3.1.0", "paths": { "/api/v1/account/deletion/complete": { "post": { "operationId": "completeAccountDeletion", "parameters": [ { "in": "header", "name": "idempotency-key", "required": true, "schema": { "maxLength": 200, "minLength": 32, "pattern": "^[A-Za-z0-9_-]+$", "type": "string" } }, { "in": "header", "name": "x-csrf-token", "required": true, "schema": { "maxLength": 64, "minLength": 43, "pattern": "^[A-Za-z0-9_-]+$", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AccountDeletionCompleteRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AccountDeletionResponse" } } }, "description": "Default Response" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } }, "description": "Default Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } }, "description": "Default Response" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } }, "description": "Default Response" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } }, "description": "Default Response" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } }, "description": "Default Response" } }, "tags": [ "Account" ] } }, "/api/v1/account/deletion/send": { "post": { "operationId": "sendAccountDeletionCode", "parameters": [ { "in": "header", "name": "x-csrf-token", "required": true, "schema": { "maxLength": 64, "minLength": 43, "pattern": "^[A-Za-z0-9_-]+$", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AccountDeletionSendResponse" } } }, "description": "Default Response" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } }, "description": "Default Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } }, "description": "Default Response" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } }, "description": "Default Response" }, "429": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } }, "description": "Default Response" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } }, "description": "Default Response" } }, "tags": [ "Account" ] } }, "/api/v1/account/settings": { "get": { "operationId": "getAccountSettings", "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AccountSettingsResponse" } } }, "description": "Default Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } }, "description": "Default Response" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } }, "description": "Default Response" } }, "tags": [ "Account" ] } }, "/api/v1/account/settings/profile": { "put": { "operationId": "updateAccountProfile", "parameters": [ { "in": "header", "name": "x-csrf-token", "required": true, "schema": { "maxLength": 64, "minLength": 43, "pattern": "^[A-Za-z0-9_-]+$", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AccountProfileUpdateRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AccountProfileUpdateResponse" } } }, "description": "Default Response" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } }, "description": "Default Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } }, "description": "Default Response" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } }, "description": "Default Response" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } }, "description": "Default Response" } }, "tags": [ "Account" ] } }, "/api/v1/admin-auth/login/complete": { "post": { "operationId": "completeAdminLogin", "parameters": [ { "in": "header", "name": "idempotency-key", "required": true, "schema": { "maxLength": 200, "minLength": 32, "pattern": "^[A-Za-z0-9_-]+$", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AdminLoginCompleteRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AdminLoginCompleteResponse" } } }, "description": "Default Response" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } }, "description": "Default Response" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } }, "description": "Default Response" }, "429": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } }, "description": "Default Response" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } }, "description": "Default Response" } }, "tags": [ "Admin Authentication" ] } }, "/api/v1/admin-auth/login/send": { "post": { "operationId": "sendAdminLoginCode", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AdminLoginSendRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RegistrationSendResponse" } } }, "description": "Default Response" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } }, "description": "Default Response" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } }, "description": "Default Response" }, "429": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } }, "description": "Default Response" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } }, "description": "Default Response" } }, "tags": [ "Admin Authentication" ] } }, "/api/v1/admin-auth/session": { "get": { "operationId": "getAdminSession", "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AdminSessionResponse" } } }, "description": "Default Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } }, "description": "Default Response" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } }, "description": "Default Response" } }, "tags": [ "Admin Authentication" ] } }, "/api/v1/auth/login/complete": { "post": { "operationId": "completeLogin", "parameters": [ { "in": "header", "name": "idempotency-key", "required": true, "schema": { "maxLength": 200, "minLength": 32, "pattern": "^[A-Za-z0-9_-]+$", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LoginCompleteRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LoginCompleteResponse" } } }, "description": "Default Response" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } }, "description": "Default Response" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } }, "description": "Default Response" }, "429": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } }, "description": "Default Response" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } }, "description": "Default Response" } }, "tags": [ "Authentication" ] } }, "/api/v1/auth/login/send": { "post": { "operationId": "sendLoginCode", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LoginSendRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RegistrationSendResponse" } } }, "description": "Default Response" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } }, "description": "Default Response" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } }, "description": "Default Response" }, "429": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } }, "description": "Default Response" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } }, "description": "Default Response" } }, "tags": [ "Authentication" ] } }, "/api/v1/auth/logout": { "post": { "operationId": "logoutUser", "parameters": [ { "in": "header", "name": "idempotency-key", "required": true, "schema": { "maxLength": 200, "minLength": 32, "pattern": "^[A-Za-z0-9_-]+$", "type": "string" } }, { "in": "header", "name": "x-csrf-token", "required": true, "schema": { "maxLength": 64, "minLength": 43, "pattern": "^[A-Za-z0-9_-]+$", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LogoutResponse" } } }, "description": "Default Response" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } }, "description": "Default Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } }, "description": "Default Response" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } }, "description": "Default Response" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } }, "description": "Default Response" } }, "tags": [ "Authentication" ] } }, "/api/v1/auth/register/complete": { "post": { "operationId": "completeRegistration", "parameters": [ { "in": "header", "name": "idempotency-key", "required": true, "schema": { "maxLength": 200, "minLength": 32, "pattern": "^[A-Za-z0-9_-]+$", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RegistrationCompleteRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RegistrationCompleteResponse" } } }, "description": "Default Response" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } }, "description": "Default Response" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } }, "description": "Default Response" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } }, "description": "Default Response" } }, "tags": [ "Authentication" ] } }, "/api/v1/auth/register/send": { "post": { "operationId": "sendRegistrationCode", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RegistrationSendRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RegistrationSendResponse" } } }, "description": "Default Response" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } }, "description": "Default Response" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } }, "description": "Default Response" }, "429": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } }, "description": "Default Response" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } }, "description": "Default Response" } }, "tags": [ "Authentication" ] } }, "/api/v1/auth/session": { "get": { "operationId": "getUserSession", "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserSessionResponse" } } }, "description": "Default Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } }, "description": "Default Response" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorEnvelope" } } }, "description": "Default Response" } }, "tags": [ "Authentication" ] } }, "/api/v1/bootstrap": { "get": { "operationId": "getBootstrap", "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": false, "properties": { "app_version": { "maxLength": 40, "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+(?:[-+][A-Za-z0-9.-]+)?$", "type": "string" }, "dependencies": { "items": { "additionalProperties": false, "properties": { "service_id": { "maxLength": 60, "pattern": "^[a-z][a-z0-9_-]+$", "type": "string" }, "status": { "anyOf": [ { "enum": [ "available" ], "type": "string" }, { "enum": [ "paused" ], "type": "string" }, { "enum": [ "degraded" ], "type": "string" }, { "enum": [ "unavailable" ], "type": "string" } ] } }, "required": [ "service_id", "status" ], "type": "object" }, "type": "array" }, "model_summary": { "additionalProperties": false, "properties": { "config_set_version": { "anyOf": [ { "minimum": 0, "type": "integer" }, { "type": "null" } ] }, "configured_default_model_id": { "anyOf": [ { "maxLength": 80, "pattern": "^[a-z0-9][a-z0-9.-]+$", "type": "string" }, { "type": "null" } ] }, "recommended_model_id": { "anyOf": [ { "maxLength": 80, "pattern": "^[a-z0-9][a-z0-9.-]+$", "type": "string" }, { "type": "null" } ] }, "runtime_availability_version": { "anyOf": [ { "minimum": 0, "type": "integer" }, { "type": "null" } ] } }, "required": [ "config_set_version", "configured_default_model_id", "recommended_model_id", "runtime_availability_version" ], "type": "object" }, "public_features": { "items": { "additionalProperties": false, "properties": { "feature_id": { "maxLength": 80, "pattern": "^[a-z][a-z0-9_-]+$", "type": "string" }, "status": { "anyOf": [ { "enum": [ "enabled" ], "type": "string" }, { "enum": [ "disabled" ], "type": "string" }, { "enum": [ "paused" ], "type": "string" } ] } }, "required": [ "feature_id", "status" ], "type": "object" }, "type": "array" } }, "required": [ "app_version", "dependencies", "model_summary", "public_features" ], "type": "object" } } }, "description": "Default Response" }, "426": { "content": { "application/json": { "schema": { "additionalProperties": false, "properties": { "error": { "additionalProperties": false, "properties": { "code": { "anyOf": [ { "enum": [ "BROWSER_UNSUPPORTED" ], "type": "string" }, { "enum": [ "MODEL_CONFIG_VERSION_CONFLICT" ], "type": "string" }, { "enum": [ "MODEL_DEFAULT_REPLACEMENT_REQUIRED" ], "type": "string" }, { "enum": [ "MODEL_DEFAULT_REPLACEMENT_INVALID" ], "type": "string" }, { "enum": [ "MODEL_RECOMMENDATION_PRIORITY_INVALID" ], "type": "string" }, { "enum": [ "MODEL_RECOMMENDATION_PRIORITY_CONFLICT" ], "type": "string" }, { "enum": [ "PRIVATE_CONTENT_NOTICE_ACK_REQUIRED" ], "type": "string" }, { "enum": [ "ASSET_HISTORY_REFERENCE_CONFLICT" ], "type": "string" }, { "enum": [ "ASSET_CLEANUP_CANDIDATE_STALE" ], "type": "string" }, { "enum": [ "STORAGE_CAPACITY_EXCEEDED" ], "type": "string" }, { "enum": [ "REGISTRATION_REJECTED" ], "type": "string" }, { "enum": [ "REGISTRATION_REQUEST_INVALID" ], "type": "string" }, { "enum": [ "IDEMPOTENCY_KEY_CONFLICT" ], "type": "string" }, { "enum": [ "AUTH_SESSION_INVALID" ], "type": "string" }, { "enum": [ "AUTH_SERVICE_UNAVAILABLE" ], "type": "string" }, { "enum": [ "AUTH_ENTRY_REJECTED" ], "type": "string" }, { "enum": [ "AUTH_RATE_LIMITED" ], "type": "string" }, { "enum": [ "AUTH_CSRF_INVALID" ], "type": "string" } ] }, "correlation_id": { "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$", "type": "string" }, "details": { "additionalProperties": false, "properties": { "capacity_status": { "anyOf": [ { "enum": [ "normal" ], "type": "string" }, { "enum": [ "warning" ], "type": "string" }, { "enum": [ "critical" ], "type": "string" }, { "enum": [ "full" ], "type": "string" }, { "enum": [ "unavailable" ], "type": "string" } ] }, "current_task_ref": { "maxLength": 160, "pattern": "^[a-z][a-z0-9_]*:[A-Za-z0-9_-]+$", "type": "string" }, "field_errors": { "items": { "additionalProperties": false, "properties": { "field": { "maxLength": 120, "pattern": "^[A-Za-z0-9_.\\[\\]-]+$", "type": "string" }, "message_key": { "maxLength": 120, "pattern": "^[A-Za-z0-9_.-]+$", "type": "string" } }, "required": [ "field", "message_key" ], "type": "object" }, "maxItems": 32, "type": "array" }, "latest_version": { "anyOf": [ { "minimum": 0, "type": "integer" }, { "maxLength": 120, "type": "string" } ] }, "reason": { "anyOf": [ { "enum": [ "platform_unsupported" ], "type": "string" }, { "enum": [ "brand_unsupported" ], "type": "string" }, { "enum": [ "version_unsupported" ], "type": "string" }, { "enum": [ "identity_unavailable" ], "type": "string" } ] }, "remaining_bytes": { "minimum": 0, "type": "integer" }, "supported_browsers": { "items": { "additionalProperties": false, "properties": { "brand": { "anyOf": [ { "enum": [ "Google Chrome" ], "type": "string" }, { "enum": [ "Microsoft Edge" ], "type": "string" } ] }, "major": { "minimum": 1, "type": "integer" } }, "required": [ "brand", "major" ], "type": "object" }, "maxItems": 2, "type": "array" } }, "type": "object" }, "error_category": { "anyOf": [ { "enum": [ "upstream_timeout" ], "type": "string" }, { "enum": [ "upstream_failed" ], "type": "string" }, { "enum": [ "safety_rejected" ], "type": "string" }, { "enum": [ "model_disabled" ], "type": "string" }, { "enum": [ "gateway_balance_insufficient" ], "type": "string" }, { "enum": [ "gateway_contract_invalid" ], "type": "string" }, { "enum": [ "reference_invalid" ], "type": "string" }, { "enum": [ "unknown_retryable" ], "type": "string" }, { "enum": [ "unknown_non_retryable" ], "type": "string" } ] }, "message_key": { "maxLength": 120, "pattern": "^[A-Za-z0-9_.-]+$", "type": "string" } }, "required": [ "code", "message_key", "correlation_id", "details" ], "type": "object" } }, "required": [ "error" ], "type": "object" } } }, "description": "Default Response" } }, "tags": [ "Bootstrap" ] } }, "/api/v1/events": { "get": { "operationId": "getEvents", "responses": { "200": { "content": { "text/event-stream": { "schema": { "anyOf": [ { "additionalProperties": false, "properties": { "entity_ref": { "maxLength": 160, "pattern": "^[a-z][a-z0-9_]*:[A-Za-z0-9_-]+$", "type": "string" }, "event_id": { "minimum": 0, "type": "integer" }, "event_type": { "maxLength": 80, "pattern": "^(?!model_config_changed$|model_runtime_changed$)[a-z][a-z0-9_]+$", "type": "string" }, "occurred_at": { "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(?:\\.[0-9]{3})?Z$", "type": "string" }, "state_version": { "minimum": 0, "type": "integer" } }, "required": [ "entity_ref", "event_id", "occurred_at", "event_type", "state_version" ], "type": "object" }, { "additionalProperties": false, "properties": { "config_set_version": { "minimum": 0, "type": "integer" }, "entity_ref": { "maxLength": 160, "pattern": "^[a-z][a-z0-9_]*:[A-Za-z0-9_-]+$", "type": "string" }, "event_id": { "minimum": 0, "type": "integer" }, "event_type": { "enum": [ "model_config_changed" ], "type": "string" }, "occurred_at": { "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(?:\\.[0-9]{3})?Z$", "type": "string" } }, "required": [ "entity_ref", "event_id", "occurred_at", "config_set_version", "event_type" ], "type": "object" }, { "additionalProperties": false, "properties": { "entity_ref": { "maxLength": 160, "pattern": "^[a-z][a-z0-9_]*:[A-Za-z0-9_-]+$", "type": "string" }, "event_id": { "minimum": 0, "type": "integer" }, "event_type": { "enum": [ "model_runtime_changed" ], "type": "string" }, "occurred_at": { "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(?:\\.[0-9]{3})?Z$", "type": "string" }, "runtime_availability_version": { "minimum": 0, "type": "integer" } }, "required": [ "entity_ref", "event_id", "occurred_at", "event_type", "runtime_availability_version" ], "type": "object" } ] } } }, "description": "Non-sensitive state change hints. REST remains authoritative." }, "426": { "content": { "application/json": { "schema": { "additionalProperties": false, "properties": { "error": { "additionalProperties": false, "properties": { "code": { "anyOf": [ { "enum": [ "BROWSER_UNSUPPORTED" ], "type": "string" }, { "enum": [ "MODEL_CONFIG_VERSION_CONFLICT" ], "type": "string" }, { "enum": [ "MODEL_DEFAULT_REPLACEMENT_REQUIRED" ], "type": "string" }, { "enum": [ "MODEL_DEFAULT_REPLACEMENT_INVALID" ], "type": "string" }, { "enum": [ "MODEL_RECOMMENDATION_PRIORITY_INVALID" ], "type": "string" }, { "enum": [ "MODEL_RECOMMENDATION_PRIORITY_CONFLICT" ], "type": "string" }, { "enum": [ "PRIVATE_CONTENT_NOTICE_ACK_REQUIRED" ], "type": "string" }, { "enum": [ "ASSET_HISTORY_REFERENCE_CONFLICT" ], "type": "string" }, { "enum": [ "ASSET_CLEANUP_CANDIDATE_STALE" ], "type": "string" }, { "enum": [ "STORAGE_CAPACITY_EXCEEDED" ], "type": "string" }, { "enum": [ "REGISTRATION_REJECTED" ], "type": "string" }, { "enum": [ "REGISTRATION_REQUEST_INVALID" ], "type": "string" }, { "enum": [ "IDEMPOTENCY_KEY_CONFLICT" ], "type": "string" }, { "enum": [ "AUTH_SESSION_INVALID" ], "type": "string" }, { "enum": [ "AUTH_SERVICE_UNAVAILABLE" ], "type": "string" }, { "enum": [ "AUTH_ENTRY_REJECTED" ], "type": "string" }, { "enum": [ "AUTH_RATE_LIMITED" ], "type": "string" }, { "enum": [ "AUTH_CSRF_INVALID" ], "type": "string" } ] }, "correlation_id": { "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$", "type": "string" }, "details": { "additionalProperties": false, "properties": { "capacity_status": { "anyOf": [ { "enum": [ "normal" ], "type": "string" }, { "enum": [ "warning" ], "type": "string" }, { "enum": [ "critical" ], "type": "string" }, { "enum": [ "full" ], "type": "string" }, { "enum": [ "unavailable" ], "type": "string" } ] }, "current_task_ref": { "maxLength": 160, "pattern": "^[a-z][a-z0-9_]*:[A-Za-z0-9_-]+$", "type": "string" }, "field_errors": { "items": { "additionalProperties": false, "properties": { "field": { "maxLength": 120, "pattern": "^[A-Za-z0-9_.\\[\\]-]+$", "type": "string" }, "message_key": { "maxLength": 120, "pattern": "^[A-Za-z0-9_.-]+$", "type": "string" } }, "required": [ "field", "message_key" ], "type": "object" }, "maxItems": 32, "type": "array" }, "latest_version": { "anyOf": [ { "minimum": 0, "type": "integer" }, { "maxLength": 120, "type": "string" } ] }, "reason": { "anyOf": [ { "enum": [ "platform_unsupported" ], "type": "string" }, { "enum": [ "brand_unsupported" ], "type": "string" }, { "enum": [ "version_unsupported" ], "type": "string" }, { "enum": [ "identity_unavailable" ], "type": "string" } ] }, "remaining_bytes": { "minimum": 0, "type": "integer" }, "supported_browsers": { "items": { "additionalProperties": false, "properties": { "brand": { "anyOf": [ { "enum": [ "Google Chrome" ], "type": "string" }, { "enum": [ "Microsoft Edge" ], "type": "string" } ] }, "major": { "minimum": 1, "type": "integer" } }, "required": [ "brand", "major" ], "type": "object" }, "maxItems": 2, "type": "array" } }, "type": "object" }, "error_category": { "anyOf": [ { "enum": [ "upstream_timeout" ], "type": "string" }, { "enum": [ "upstream_failed" ], "type": "string" }, { "enum": [ "safety_rejected" ], "type": "string" }, { "enum": [ "model_disabled" ], "type": "string" }, { "enum": [ "gateway_balance_insufficient" ], "type": "string" }, { "enum": [ "gateway_contract_invalid" ], "type": "string" }, { "enum": [ "reference_invalid" ], "type": "string" }, { "enum": [ "unknown_retryable" ], "type": "string" }, { "enum": [ "unknown_non_retryable" ], "type": "string" } ] }, "message_key": { "maxLength": 120, "pattern": "^[A-Za-z0-9_.-]+$", "type": "string" } }, "required": [ "code", "message_key", "correlation_id", "details" ], "type": "object" } }, "required": [ "error" ], "type": "object" } } }, "description": "Default Response" } }, "tags": [ "State events" ] } }, "/api/v1/support/check": { "post": { "operationId": "checkBrowserSupport", "requestBody": { "content": { "application/json": { "schema": { "additionalProperties": false, "properties": { "brands": { "items": { "additionalProperties": false, "properties": { "brand": { "maxLength": 80, "type": "string" }, "version": { "maxLength": 80, "type": "string" } }, "required": [ "brand", "version" ], "type": "object" }, "maxItems": 16, "type": "array" }, "full_version_list": { "items": { "additionalProperties": false, "properties": { "brand": { "maxLength": 80, "type": "string" }, "version": { "maxLength": 80, "type": "string" } }, "required": [ "brand", "version" ], "type": "object" }, "maxItems": 16, "type": "array" }, "platform": { "maxLength": 40, "type": "string" } }, "required": [ "brands", "full_version_list", "platform" ], "type": "object" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": false, "properties": { "app_version": { "maxLength": 80, "type": "string" }, "browser": { "additionalProperties": false, "properties": { "brand": { "anyOf": [ { "enum": [ "Google Chrome" ], "type": "string" }, { "enum": [ "Microsoft Edge" ], "type": "string" } ] }, "major": { "minimum": 1, "type": "integer" } }, "required": [ "brand", "major" ], "type": "object" }, "status": { "enum": [ "supported" ], "type": "string" }, "supported_browsers": { "items": { "additionalProperties": false, "properties": { "brand": { "anyOf": [ { "enum": [ "Google Chrome" ], "type": "string" }, { "enum": [ "Microsoft Edge" ], "type": "string" } ] }, "major": { "minimum": 1, "type": "integer" } }, "required": [ "brand", "major" ], "type": "object" }, "maxItems": 2, "type": "array" } }, "required": [ "app_version", "browser", "status", "supported_browsers" ], "type": "object" } } }, "description": "Default Response" }, "426": { "content": { "application/json": { "schema": { "additionalProperties": false, "properties": { "error": { "additionalProperties": false, "properties": { "code": { "anyOf": [ { "enum": [ "BROWSER_UNSUPPORTED" ], "type": "string" }, { "enum": [ "MODEL_CONFIG_VERSION_CONFLICT" ], "type": "string" }, { "enum": [ "MODEL_DEFAULT_REPLACEMENT_REQUIRED" ], "type": "string" }, { "enum": [ "MODEL_DEFAULT_REPLACEMENT_INVALID" ], "type": "string" }, { "enum": [ "MODEL_RECOMMENDATION_PRIORITY_INVALID" ], "type": "string" }, { "enum": [ "MODEL_RECOMMENDATION_PRIORITY_CONFLICT" ], "type": "string" }, { "enum": [ "PRIVATE_CONTENT_NOTICE_ACK_REQUIRED" ], "type": "string" }, { "enum": [ "ASSET_HISTORY_REFERENCE_CONFLICT" ], "type": "string" }, { "enum": [ "ASSET_CLEANUP_CANDIDATE_STALE" ], "type": "string" }, { "enum": [ "STORAGE_CAPACITY_EXCEEDED" ], "type": "string" }, { "enum": [ "REGISTRATION_REJECTED" ], "type": "string" }, { "enum": [ "REGISTRATION_REQUEST_INVALID" ], "type": "string" }, { "enum": [ "IDEMPOTENCY_KEY_CONFLICT" ], "type": "string" }, { "enum": [ "AUTH_SESSION_INVALID" ], "type": "string" }, { "enum": [ "AUTH_SERVICE_UNAVAILABLE" ], "type": "string" }, { "enum": [ "AUTH_ENTRY_REJECTED" ], "type": "string" }, { "enum": [ "AUTH_RATE_LIMITED" ], "type": "string" }, { "enum": [ "AUTH_CSRF_INVALID" ], "type": "string" } ] }, "correlation_id": { "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$", "type": "string" }, "details": { "additionalProperties": false, "properties": { "capacity_status": { "anyOf": [ { "enum": [ "normal" ], "type": "string" }, { "enum": [ "warning" ], "type": "string" }, { "enum": [ "critical" ], "type": "string" }, { "enum": [ "full" ], "type": "string" }, { "enum": [ "unavailable" ], "type": "string" } ] }, "current_task_ref": { "maxLength": 160, "pattern": "^[a-z][a-z0-9_]*:[A-Za-z0-9_-]+$", "type": "string" }, "field_errors": { "items": { "additionalProperties": false, "properties": { "field": { "maxLength": 120, "pattern": "^[A-Za-z0-9_.\\[\\]-]+$", "type": "string" }, "message_key": { "maxLength": 120, "pattern": "^[A-Za-z0-9_.-]+$", "type": "string" } }, "required": [ "field", "message_key" ], "type": "object" }, "maxItems": 32, "type": "array" }, "latest_version": { "anyOf": [ { "minimum": 0, "type": "integer" }, { "maxLength": 120, "type": "string" } ] }, "reason": { "anyOf": [ { "enum": [ "platform_unsupported" ], "type": "string" }, { "enum": [ "brand_unsupported" ], "type": "string" }, { "enum": [ "version_unsupported" ], "type": "string" }, { "enum": [ "identity_unavailable" ], "type": "string" } ] }, "remaining_bytes": { "minimum": 0, "type": "integer" }, "supported_browsers": { "items": { "additionalProperties": false, "properties": { "brand": { "anyOf": [ { "enum": [ "Google Chrome" ], "type": "string" }, { "enum": [ "Microsoft Edge" ], "type": "string" } ] }, "major": { "minimum": 1, "type": "integer" } }, "required": [ "brand", "major" ], "type": "object" }, "maxItems": 2, "type": "array" } }, "type": "object" }, "error_category": { "anyOf": [ { "enum": [ "upstream_timeout" ], "type": "string" }, { "enum": [ "upstream_failed" ], "type": "string" }, { "enum": [ "safety_rejected" ], "type": "string" }, { "enum": [ "model_disabled" ], "type": "string" }, { "enum": [ "gateway_balance_insufficient" ], "type": "string" }, { "enum": [ "gateway_contract_invalid" ], "type": "string" }, { "enum": [ "reference_invalid" ], "type": "string" }, { "enum": [ "unknown_retryable" ], "type": "string" }, { "enum": [ "unknown_non_retryable" ], "type": "string" } ] }, "message_key": { "maxLength": 120, "pattern": "^[A-Za-z0-9_.-]+$", "type": "string" } }, "required": [ "code", "message_key", "correlation_id", "details" ], "type": "object" } }, "required": [ "error" ], "type": "object" } } }, "description": "Default Response" } }, "tags": [ "Browser support" ] } } } }