{"swagger": "2.0", "info": {"title": "Future AGI Management API", "description": "The endpoints defined below allow users to programmatically carry out various actions on the Future AGI platform.", "termsOfService": "https://futureagi.com/legal", "contact": {"email": "help@futureagi.com"}, "license": {"name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.html"}, "version": "v1"}, "host": "localhost:8000", "schemes": ["http"], "basePath": "/", "consumes": ["application/json"], "produces": ["application/json"], "securityDefinitions": {"X-Api-Key": {"type": "apiKey", "in": "header", "name": "X-Api-Key"}, "X-Secret-Key": {"type": "apiKey", "in": "header", "name": "X-Secret-Key"}}, "security": [{"X-Api-Key": []}, {"X-Secret-Key": []}], "paths": {"/accounts/2fa/recovery-codes/": {"get": {"operationId": "accounts_2fa_recovery-codes_list", "description": "GET /accounts/2fa/recovery-codes/ - Get remaining count.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/RecoveryCodesRemainingResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-response-validation": true}, "parameters": []}, "/accounts/2fa/recovery-codes/regenerate/": {"post": {"operationId": "accounts_2fa_recovery-codes_regenerate_create", "description": "POST /accounts/2fa/recovery-codes/regenerate/ - Generate new codes.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/RecoveryCodesRegenerate"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/RecoveryCodesRegenerateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/accounts/2fa/status/": {"get": {"operationId": "accounts_2fa_status_list", "description": "GET /accounts/2fa/status/ - Current 2FA status.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/TwoFactorStatus"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-response-validation": true}, "parameters": []}, "/accounts/2fa/totp/": {"delete": {"operationId": "accounts_2fa_totp_delete", "description": "DELETE /accounts/2fa/totp/ - Disable TOTP.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/TOTPDisable"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/TOTPDisableResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/accounts/2fa/totp/confirm/": {"post": {"operationId": "accounts_2fa_totp_confirm_create", "description": "POST /accounts/2fa/totp/confirm/ - Confirm TOTP with code.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/TOTPConfirm"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/TOTPConfirmResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/accounts/2fa/totp/setup/": {"post": {"operationId": "accounts_2fa_totp_setup_create", "description": "POST /accounts/2fa/totp/setup/ - Begin TOTP setup.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AccountsEmptyRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/TOTPSetupResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/accounts/2fa/verify/passkey/": {"post": {"operationId": "accounts_2fa_verify_passkey_create", "description": "POST /accounts/2fa/verify/passkey/ - Verify passkey as 2FA during login.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/TwoFactorPasskeyVerifyRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AccountsTokenPairResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/accounts/2fa/verify/passkey/options/": {"post": {"operationId": "accounts_2fa_verify_passkey_options_create", "description": "POST /accounts/2fa/verify/passkey/options/ - Get WebAuthn options for passkey as 2FA.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/TwoFactorChallengeToken"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PasskeyOptionsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/accounts/2fa/verify/recovery/": {"post": {"operationId": "accounts_2fa_verify_recovery_create", "description": "POST /accounts/2fa/verify/recovery/ - Verify recovery code during login.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/TwoFactorVerify"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AccountsTokenPairResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/accounts/2fa/verify/totp/": {"post": {"operationId": "accounts_2fa_verify_totp_create", "description": "POST /accounts/2fa/verify/totp/ - Verify TOTP during login (Phase 2).", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/TwoFactorVerify"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AccountsTokenPairResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/accounts/accept-invitation/{uidb64}/{token}/": {"get": {"operationId": "accounts_accept-invitation_read", "summary": "Accept an invitation link.", "description": "GET  — validate the token without consuming it. Returns org info so the\n       frontend can render a \"Set Password\" page.\nPOST — set the user's password, activate the account, accept the invite,\n       and return JWT tokens for auto-login.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AcceptInvitationPreviewResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"]}, "post": {"operationId": "accounts_accept-invitation_create", "summary": "Accept an invitation link.", "description": "GET  — validate the token without consuming it. Returns org info so the\n       frontend can render a \"Set Password\" page.\nPOST — set the user's password, activate the account, accept the invite,\n       and return JWT tokens for auto-login.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AcceptInvitationRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AccountsTokenPairResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"]}, "parameters": [{"name": "uidb64", "in": "path", "required": true, "type": "string"}, {"name": "token", "in": "path", "required": true, "type": "string"}]}, "/accounts/activate/{uidb64}/{token}/": {"get": {"operationId": "accounts_activate_read", "description": "", "parameters": [], "responses": {"200": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"]}, "parameters": [{"name": "uidb64", "in": "path", "required": true, "type": "string"}, {"name": "token", "in": "path", "required": true, "type": "string"}]}, "/accounts/appsmith/users/": {"get": {"operationId": "accounts_appsmith_users_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AccountsPaginatedUserResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"]}, "post": {"operationId": "accounts_appsmith_users_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UserCreate"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/AppsmithUserCreateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "patch": {"operationId": "accounts_appsmith_users_partial_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/PasswordValidation"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/AppsmithPasswordUpdateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/accounts/appsmith/users/login": {"post": {"operationId": "accounts_appsmith_users_login_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/SOSLogin"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AccountsTokenPairResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/accounts/appsmith/users/{user_id}/": {"get": {"operationId": "accounts_appsmith_users_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AccountsPaginatedUserResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"]}, "post": {"operationId": "accounts_appsmith_users_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UserCreate"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/AppsmithUserCreateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "patch": {"operationId": "accounts_appsmith_users_partial_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/PasswordValidation"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/AppsmithPasswordUpdateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "user_id", "in": "path", "required": true, "type": "string"}]}, "/accounts/aws-marketplace/launch-software/": {"post": {"operationId": "accounts_aws-marketplace_launch-software_create", "summary": "Handle \"Launch Software\" action from AWS Marketplace", "description": "This endpoint authenticates an existing AWS Marketplace customer\nand redirects appropriately.", "parameters": [{"name": "x-amzn-marketplace-token", "in": "formData", "required": true, "type": "string"}, {"name": "x-amzn-marketplace-product-id", "in": "formData", "required": false, "type": "string"}, {"name": "x-amzn-marketplace-agreement-id", "in": "formData", "required": false, "type": "string"}], "responses": {"200": {"description": "Successful requests redirect to the Future AGI frontend."}, "302": {"description": "Redirects to the Future AGI frontend."}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "consumes": ["application/x-www-form-urlencoded"], "tags": ["accounts"]}, "parameters": []}, "/accounts/aws-marketplace/signup/": {"post": {"operationId": "accounts_aws-marketplace_signup_create", "summary": "Complete AWS Marketplace customer signup", "description": "This endpoint is called after token verification to create a new user account\nfor an AWS Marketplace customer.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AWSMarketplaceSignupRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AWSMarketplaceSignupResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/accounts/aws-marketplace/verify-token/": {"post": {"operationId": "accounts_aws-marketplace_verify-token_create", "description": "Verify AWS Marketplace token and redirect to appropriate frontend URL\nThis endpoint accepts application/x-www-form-urlencoded.", "parameters": [{"name": "x-amzn-marketplace-token", "in": "formData", "required": true, "type": "string"}, {"name": "x-amzn-marketplace-product-id", "in": "formData", "required": false, "type": "string"}, {"name": "x-amzn-marketplace-agreement-id", "in": "formData", "required": false, "type": "string"}], "responses": {"201": {"description": ""}, "302": {"description": "Redirects to the Future AGI frontend."}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "consumes": ["application/x-www-form-urlencoded"], "tags": ["accounts"]}, "parameters": []}, "/accounts/config/": {"get": {"operationId": "accounts_config_list", "summary": "Public (unauthenticated) endpoint returning platform config.\nUsed by the frontend to decide whether to show region UI.", "description": "Self-hosted returns cloud=false with no region info.\nCloud returns the current region and available regions list.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PublicConfigResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"]}, "parameters": []}, "/accounts/delete-users/": {"delete": {"operationId": "accounts_delete-users_delete", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UserIdsRequest"}}], "responses": {"200": {"description": "", "schema": {"type": "array", "items": {"$ref": "#/definitions/AccountsBulkUserMutationItem"}}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"]}, "parameters": []}, "/accounts/first-checks/": {"get": {"operationId": "accounts_first-checks_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UserChecksResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"]}, "parameters": []}, "/accounts/gcp-marketplace/signup/": {"post": {"operationId": "accounts_gcp-marketplace_signup_create", "description": "Complete sign-up for a GCP Marketplace customer.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/GCPMarketplaceSignupRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/GCPMarketplaceSignupResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/accounts/gcp-marketplace/verify-token/": {"post": {"operationId": "accounts_gcp-marketplace_verify-token_create", "summary": "Landing endpoint for the Producer Portal Sign up URL.", "description": "Google posts the signed marketplace token here as form data and expects a\nredirect. Registered in Producer Portal, not called by our own frontend.", "parameters": [{"name": "x-gcp-marketplace-token", "in": "formData", "required": true, "type": "string"}], "responses": {"201": {"description": ""}, "302": {"description": "Redirects to the Future AGI frontend."}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "consumes": ["application/x-www-form-urlencoded"], "tags": ["accounts"]}, "parameters": []}, "/accounts/get-user-profile-details/": {"get": {"operationId": "accounts_get-user-profile-details_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AccountsUserProfileResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"]}, "parameters": []}, "/accounts/key/delete_secret_key/": {"delete": {"operationId": "accounts_key_delete_secret_key", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UserSecretKey"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AccountsStringResultResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/accounts/key/disable_key/": {"post": {"operationId": "accounts_key_disable_key", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UserSecretKey"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AccountsStringResultResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/accounts/key/enable_key/": {"post": {"operationId": "accounts_key_enable_key", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UserSecretKey"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AccountsStringResultResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/accounts/key/generate_secret_key/": {"post": {"operationId": "accounts_key_generate_secret_key", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/CreateSecretKey"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SecretKeyCreateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/accounts/key/get_secret_keys/": {"get": {"operationId": "accounts_key_get_secret_keys", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SecretKeyListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"]}, "parameters": []}, "/accounts/keys/": {"get": {"operationId": "accounts_keys_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SecretKeysResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"]}, "parameters": []}, "/accounts/logout/": {"post": {"operationId": "accounts_logout_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/LogoutRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AccountsMessageResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"]}, "parameters": []}, "/accounts/me/timezone/": {"post": {"operationId": "accounts_me_timezone_create", "description": "Capture the browser's IANA timezone for the authenticated user.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/TimezoneRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/TimezoneResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/accounts/notifications/snooze/": {"get": {"operationId": "accounts_notifications_snooze_list", "description": "Snooze the realtime track for N days (default 7). Daily still fires.", "parameters": [], "responses": {"200": {"description": "HTML snooze result", "schema": {"type": "string"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"]}, "parameters": []}, "/accounts/notifications/unsubscribe/": {"get": {"operationId": "accounts_notifications_unsubscribe_list", "description": "One-click unsubscribe from both digest tracks. Token is HMAC-signed.", "parameters": [], "responses": {"200": {"description": "HTML unsubscribe result", "schema": {"type": "string"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"]}, "parameters": []}, "/accounts/onboarding/": {"get": {"operationId": "accounts_onboarding_list", "description": "Handle user onboarding data (role and goals)", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UserOnboardingResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"]}, "post": {"operationId": "accounts_onboarding_create", "description": "Handle user onboarding data (role and goals)", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UserOnboarding"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UserOnboardingSaveResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"]}, "parameters": []}, "/accounts/organization/2fa-policy/": {"get": {"operationId": "accounts_organization_2fa-policy_list", "summary": "GET/PUT /accounts/organization/2fa-policy/ - Org 2FA policy.", "description": "GET is available to all authenticated members (read policy).\nPUT is admin-gated inline (Level.ADMIN+) rather than via a permission\nclass so that a single view can serve both roles without splitting.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/OrgTwoFactorPolicyResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-response-validation": true}, "put": {"operationId": "accounts_organization_2fa-policy_update", "summary": "GET/PUT /accounts/organization/2fa-policy/ - Org 2FA policy.", "description": "GET is available to all authenticated members (read policy).\nPUT is admin-gated inline (Level.ADMIN+) rather than via a permission\nclass so that a single view can serve both roles without splitting.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/OrgTwoFactorPolicy"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/OrgTwoFactorPolicyResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/accounts/organization/invite/": {"post": {"operationId": "accounts_organization_invite_create", "summary": "POST /accounts/organization/invite/", "description": "Create invites for one or more email addresses.\nAlso dual-writes to legacy User/membership records for backward compat.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/InviteCreate"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/InviteCreateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/accounts/organization/invite/cancel/": {"delete": {"operationId": "accounts_organization_invite_cancel_delete", "description": "DELETE /accounts/organization/invite/cancel/\nHard deletes the invite record.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/InviteCancel"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/RBACMessageResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/accounts/organization/invite/resend/": {"post": {"operationId": "accounts_organization_invite_resend_create", "description": "POST /accounts/organization/invite/resend/\nResets expiration and resends the invite email.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/InviteResend"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/RBACMessageResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/accounts/organization/members/": {"get": {"operationId": "accounts_organization_members_list", "summary": "GET /accounts/organization/members/", "description": "Returns UNION of active members + pending/expired invites.\nStatus is derived at query time (Active / Pending / Expired).", "parameters": [{"name": "page", "in": "query", "required": false, "type": "integer", "default": 1, "minimum": 1}, {"name": "limit", "in": "query", "required": false, "type": "integer", "default": 20, "maximum": 100, "minimum": 1}, {"name": "search", "in": "query", "required": false, "type": "string", "default": ""}, {"name": "filter_status", "in": "query", "required": false, "type": "array", "items": {"type": "string", "enum": ["Active", "Pending", "Expired", "Deactivated"]}, "default": []}, {"name": "filter_role", "in": "query", "required": false, "type": "array", "items": {"type": "string", "minLength": 1}, "default": []}, {"name": "sort", "in": "query", "required": false, "type": "string", "enum": ["name", "-name", "email", "-email", "status", "-status", "type", "-type", "date_joined", "-date_joined", "created_at", "-created_at", "org_level", "-org_level"], "default": "-created_at"}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/MemberListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/accounts/organization/members/reactivate/": {"post": {"operationId": "accounts_organization_members_reactivate_create", "summary": "POST /accounts/organization/members/reactivate/", "description": "Re-activates a deactivated org membership and restores workspace\nmemberships that were soft-deactivated during removal.  If no prior\nworkspace memberships exist, the user is added to the default workspace.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/MemberRemove"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/MemberUserMutationResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/accounts/organization/members/remove/": {"delete": {"operationId": "accounts_organization_members_remove_delete", "summary": "DELETE /accounts/organization/members/remove/", "description": "Soft-deactivates OrganizationMembership and cascades to workspace\nmemberships.  Signals handle Redis clear + audit log.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/MemberRemove"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/MemberUserMutationResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/accounts/organization/members/role/": {"post": {"operationId": "accounts_organization_members_role_create", "summary": "POST /accounts/organization/members/role/", "description": "Update a member's org level and/or workspace level.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/MemberRoleUpdate"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/MemberRoleUpdateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/accounts/organizations/": {"get": {"operationId": "accounts_organizations_list", "description": "Get all organizations the user has access to.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/OrganizationSelectionListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-response-validation": true}, "post": {"operationId": "accounts_organizations_create", "description": "Select an organization for the current session.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/OrganizationSwitchRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/OrganizationSelectResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/accounts/organizations/create/": {"post": {"operationId": "accounts_organizations_create_create", "summary": "POST /accounts/organizations/create/", "description": "For users who were removed from their org and want to start fresh.\nOnly accessible to authenticated users with no current organization.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/OrganizationNameRequest"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/OrganizationCreateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/accounts/organizations/current/": {"get": {"operationId": "accounts_organizations_current_list", "description": "Get the currently selected organization for the user.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/CurrentOrganizationResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"]}, "parameters": []}, "/accounts/organizations/new/": {"post": {"operationId": "accounts_organizations_new_create", "summary": "POST /accounts/organizations/new/", "description": "Create a new organization for an already-authenticated user.\nUnlike OrganizationCreateAPIView (which is for org-less users),\nthis allows any user to create additional organizations.\nThe user becomes Owner of the new org via OrganizationMembership.\nDoes NOT change user.organization FK (primary org stays the same).", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/OrganizationCreateRequest"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/AdditionalOrganizationCreateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/accounts/organizations/switch/": {"post": {"operationId": "accounts_organizations_switch_create", "summary": "Switch to a different organization.", "description": "Returns the target org's last-used workspace (from orgWorkspaceMap)\nor its default workspace, so the frontend can update both contexts.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/OrganizationSwitchRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/OrganizationSwitchResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/accounts/organizations/update/": {"patch": {"operationId": "accounts_organizations_update_partial_update", "summary": "PATCH /accounts/organizations/update/", "description": "Update the current organization's name/display_name.\nOnly accessible to Owner or Admin of the organization.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/OrganizationUpdateRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/OrganizationUpdateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/accounts/passkey/authenticate/options/": {"post": {"operationId": "accounts_passkey_authenticate_options_create", "description": "POST /accounts/passkey/authenticate/options/ - Passwordless auth options.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AccountsEmptyRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PasskeyOptionsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/accounts/passkey/authenticate/verify/": {"post": {"operationId": "accounts_passkey_authenticate_verify_create", "description": "POST /accounts/passkey/authenticate/verify/ - Passwordless auth verify.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/PasskeyCredentialRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AccountsTokenPairResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/accounts/passkey/register/options/": {"post": {"operationId": "accounts_passkey_register_options_create", "description": "POST /accounts/passkey/register/options/ - Get registration options.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AccountsEmptyRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PasskeyOptionsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/accounts/passkey/register/verify/": {"post": {"operationId": "accounts_passkey_register_verify_create", "description": "POST /accounts/passkey/register/verify/ - Verify registration.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/PasskeyRegisterVerify"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/PasskeyRegisterVerifyResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/accounts/passkeys/": {"get": {"operationId": "accounts_passkeys_list", "description": "GET /accounts/passkeys/ - List user's passkeys.", "parameters": [], "responses": {"200": {"description": "", "schema": {"type": "array", "items": {"$ref": "#/definitions/WebAuthnCredential"}}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-response-validation": true}, "parameters": []}, "/accounts/passkeys/{id}/": {"patch": {"operationId": "accounts_passkeys_partial_update", "description": "PATCH/DELETE /accounts/passkeys/<uuid:pk>/ - Rename or delete.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/PasskeyRename"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PasskeyRenameResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "delete": {"operationId": "accounts_passkeys_delete", "description": "PATCH/DELETE /accounts/passkeys/<uuid:pk>/ - Rename or delete.", "parameters": [], "responses": {"204": {"description": "Passkey deleted."}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/accounts/password-reset-confirm/{uidb64}/{token}/": {"post": {"operationId": "accounts_password-reset-confirm_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/PasswordResetConfirmRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AccountsMessageResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"]}, "parameters": [{"name": "uidb64", "in": "path", "required": true, "type": "string"}, {"name": "token", "in": "path", "required": true, "type": "string"}]}, "/accounts/password-reset-initiate/": {"post": {"operationId": "accounts_password-reset-initiate_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/PasswordResetInitiateRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PasswordResetInitiateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"]}, "parameters": []}, "/accounts/redis-key/": {"post": {"operationId": "accounts_redis-key_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/RedisKeyRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AccountsRedisSetResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"]}, "delete": {"operationId": "accounts_redis-key_delete", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/RedisKeyRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AccountsRedisDeleteResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"]}, "parameters": []}, "/accounts/resend-invitation-emails/": {"post": {"operationId": "accounts_resend-invitation-emails_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UserIdsRequest"}}], "responses": {"200": {"description": "", "schema": {"type": "array", "items": {"$ref": "#/definitions/AccountsBulkUserMutationItem"}}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"]}, "parameters": []}, "/accounts/signup/": {"post": {"operationId": "accounts_signup_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/SignupRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SignupResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"]}, "parameters": []}, "/accounts/team/users/": {"get": {"operationId": "accounts_team_users_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/TeamUsersResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-response-validation": true}, "post": {"operationId": "accounts_team_users_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/TeamCreateRequest"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/TeamCreateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "delete": {"operationId": "accounts_team_users_delete", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/TeamRemoveResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-response-validation": true}, "parameters": []}, "/accounts/team/users/{member_id}/": {"get": {"operationId": "accounts_team_users_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/TeamUsersResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-response-validation": true}, "post": {"operationId": "accounts_team_users_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/TeamCreateRequest"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/TeamCreateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "delete": {"operationId": "accounts_team_users_delete", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/TeamRemoveResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-response-validation": true}, "parameters": [{"name": "member_id", "in": "path", "required": true, "type": "string"}]}, "/accounts/token/": {"post": {"operationId": "accounts_token_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/LoginRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AccountsTokenPairResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/accounts/token/refresh/": {"post": {"operationId": "accounts_token_refresh_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/TokenRefreshRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AccountsAccessTokenResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/accounts/update-user-full-name/": {"post": {"operationId": "accounts_update-user-full-name_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UserFullNameUpdateRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AccountsDirectMessageResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"]}, "parameters": []}, "/accounts/update-user/": {"post": {"operationId": "accounts_update-user_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UpdateUser"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AccountsStringResultResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"]}, "parameters": []}, "/accounts/user-info/": {"get": {"operationId": "accounts_user-info_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UserInfoResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"]}, "parameters": []}, "/accounts/user/deactivate/": {"post": {"operationId": "accounts_user_deactivate_create", "description": "Deactivate user by marking is_active as False", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/DeactivateUser"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DeactivateUserResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/accounts/user/delete/": {"post": {"operationId": "accounts_user_delete_create", "description": "Delete user or remove invite at organization or workspace level", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/DeleteUser"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DeleteUserResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/accounts/user/list/": {"get": {"operationId": "accounts_user_list_list", "description": "Get paginated list of users with filtering at workspace level", "parameters": [{"name": "page", "in": "query", "required": false, "type": "integer", "default": 1, "minimum": 1}, {"name": "limit", "in": "query", "required": false, "type": "integer", "default": 10, "maximum": 100, "minimum": 1}, {"name": "search", "in": "query", "required": false, "type": "string", "default": ""}, {"name": "sort", "in": "query", "required": false, "type": "string", "default": []}, {"name": "workspace_id", "in": "query", "required": false, "type": "string", "format": "uuid"}, {"name": "filter_status", "in": "query", "required": false, "type": "array", "items": {"type": "string", "enum": ["All status", "Active", "Inactive", "Pending", "Expired", "Request Pending", "Request Expired"]}, "default": []}, {"name": "filter_role", "in": "query", "required": false, "type": "array", "items": {"type": "string", "enum": ["Owner", "Admin", "Member", "Viewer", "workspace_admin", "workspace_member", "workspace_viewer"]}, "default": []}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UserListPaginatedResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/accounts/user/resend-invite/": {"post": {"operationId": "accounts_user_resend-invite_create", "description": "Resend invitation email with workspace context", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ResendInvite"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ResendInviteResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/accounts/user/role/update/": {"post": {"operationId": "accounts_user_role_update_create", "description": "Update user role at organization or workspace level", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UserRoleUpdate"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UserRoleUpdateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/accounts/workspace/invite/": {"post": {"operationId": "accounts_workspace_invite_create", "description": "Invite users to workspaces", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/WorkspaceInvite"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/WorkspaceInviteResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/accounts/workspace/list/": {"get": {"operationId": "accounts_workspace_list_list", "description": "Get paginated list of workspaces", "parameters": [{"name": "page", "in": "query", "required": false, "type": "integer", "default": 1, "minimum": 1}, {"name": "limit", "in": "query", "required": false, "type": "integer", "default": 10, "maximum": 100, "minimum": 1}, {"name": "search", "in": "query", "required": false, "type": "string", "default": ""}, {"name": "sort", "in": "query", "required": false, "type": "string", "default": ""}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/WorkspaceListPaginatedResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/accounts/workspace/switch/": {"post": {"operationId": "accounts_workspace_switch_create", "description": "Switch to a different workspace with proper validation", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/SwitchWorkspace"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SwitchWorkspaceResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/accounts/workspace/{workspace_id}/members/": {"get": {"operationId": "accounts_workspace_members_list", "summary": "GET /accounts/workspace/<workspace_id>/members/", "description": "Returns members of a specific workspace.\nOrg Admin+ users who auto-access are included with derived WS Admin role.", "parameters": [{"name": "page", "in": "query", "required": false, "type": "integer", "default": 1, "minimum": 1}, {"name": "limit", "in": "query", "required": false, "type": "integer", "default": 20, "maximum": 100, "minimum": 1}, {"name": "search", "in": "query", "required": false, "type": "string", "default": ""}, {"name": "filter_status", "in": "query", "required": false, "type": "array", "items": {"type": "string", "enum": ["Active", "Pending", "Expired"]}, "default": []}, {"name": "filter_role", "in": "query", "required": false, "type": "array", "items": {"type": "string", "minLength": 1}, "default": []}, {"name": "sort", "in": "query", "required": false, "type": "string", "enum": ["name", "-name", "email", "-email", "status", "-status", "type", "-type", "date_joined", "-date_joined", "created_at", "-created_at", "ws_level", "-ws_level"], "default": "-created_at"}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/WorkspaceMemberListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "workspace_id", "in": "path", "required": true, "type": "string"}]}, "/accounts/workspace/{workspace_id}/members/remove/": {"delete": {"operationId": "accounts_workspace_members_remove_delete", "summary": "DELETE /accounts/workspace/<workspace_id>/members/remove/", "description": "Remove a member from a workspace only (keeps org membership).", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/WorkspaceMemberRemove"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/MemberUserMutationResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "workspace_id", "in": "path", "required": true, "type": "string"}]}, "/accounts/workspace/{workspace_id}/members/role/": {"post": {"operationId": "accounts_workspace_members_role_create", "summary": "POST /accounts/workspace/<workspace_id>/members/role/", "description": "Update a member's workspace role.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/WorkspaceMemberRoleUpdate"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/WorkspaceMemberRoleUpdateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "workspace_id", "in": "path", "required": true, "type": "string"}]}, "/accounts/workspaces/": {"get": {"operationId": "accounts_workspaces_list", "description": "Get workspaces for the current organization", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/WorkspaceManagementListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-response-validation": true}, "post": {"operationId": "accounts_workspaces_create", "description": "Create a new workspace", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/WorkspaceCreateRequest"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/WorkspaceCreateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "put": {"operationId": "accounts_workspaces_update", "description": "Update workspace details", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/WorkspaceUpdateRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/WorkspaceUpdateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "delete": {"operationId": "accounts_workspaces_delete", "description": "Delete a workspace", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/WorkspaceDeleteResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-response-validation": true}, "parameters": []}, "/accounts/workspaces/{workspace_id}/": {"get": {"operationId": "accounts_workspaces_read", "description": "Get workspaces for the current organization", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/WorkspaceManagementListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-response-validation": true}, "post": {"operationId": "accounts_workspaces_create", "description": "Create a new workspace", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/WorkspaceCreateRequest"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/WorkspaceCreateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "put": {"operationId": "accounts_workspaces_update", "description": "Update workspace details", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/WorkspaceUpdateRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/WorkspaceUpdateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "delete": {"operationId": "accounts_workspaces_delete", "description": "Delete a workspace", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/WorkspaceDeleteResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-response-validation": true}, "parameters": [{"name": "workspace_id", "in": "path", "required": true, "type": "string"}]}, "/accounts/workspaces/{workspace_id}/members/": {"get": {"operationId": "accounts_workspaces_members_list", "description": "Get members of a specific workspace", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/WorkspaceMembersListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-response-validation": true}, "post": {"operationId": "accounts_workspaces_members_create", "description": "Add users to workspace", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/WorkspaceMembersRequest"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/WorkspaceMembersAddResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "delete": {"operationId": "accounts_workspaces_members_delete", "description": "Remove user from workspace", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/WorkspaceMemberRemoveResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-response-validation": true}, "parameters": [{"name": "workspace_id", "in": "path", "required": true, "type": "string"}]}, "/accounts/workspaces/{workspace_id}/members/{member_id}/": {"get": {"operationId": "accounts_workspaces_members_read", "description": "Get members of a specific workspace", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/WorkspaceMembersListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-response-validation": true}, "post": {"operationId": "accounts_workspaces_members_create", "description": "Add users to workspace", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/WorkspaceMembersRequest"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/WorkspaceMembersAddResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "delete": {"operationId": "accounts_workspaces_members_delete", "description": "Remove user from workspace", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/WorkspaceMemberRemoveResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AccountsErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["accounts"], "x-runtime-response-validation": true}, "parameters": [{"name": "workspace_id", "in": "path", "required": true, "type": "string"}, {"name": "member_id", "in": "path", "required": true, "type": "string"}]}, "/agent-playground/executions/{execution_id}/nodes/{node_execution_id}/": {"get": {"operationId": "agent-playground_executions_node_detail", "summary": "Returns detailed results for a specific node execution.", "description": "All execution data (inputs/outputs) organized by port.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/NodeExecutionDetailResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agent-playground"]}, "parameters": [{"name": "execution_id", "in": "path", "required": true, "type": "string"}, {"name": "node_execution_id", "in": "path", "required": true, "type": "string"}]}, "/agent-playground/graphs/": {"get": {"operationId": "agent-playground_graphs_list", "description": "List all graphs for the user's org/workspace.", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/GraphList"}}}}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agent-playground"]}, "post": {"operationId": "agent-playground_graphs_create", "summary": "Create a new graph with an empty draft version (v1).", "description": "Request body: {name, description (optional)}", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/GraphCreate"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/GraphCreate"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agent-playground"]}, "parameters": []}, "/agent-playground/graphs/delete/": {"post": {"operationId": "agent-playground_graphs_bulk_delete", "summary": "Bulk soft-delete graphs with reference validation.", "description": "Accepts a list of graph IDs. Before deleting, checks if any graph version\nbeing deleted is referenced by nodes in graphs outside the deletion set.\nIf all referencing graphs are also being deleted, it's allowed; otherwise blocked.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/GraphList"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/GraphList"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agent-playground"]}, "parameters": []}, "/agent-playground/graphs/from-trace/": {"post": {"operationId": "agent-playground_graphs_from-trace_create", "summary": "POST /agent-playground/graphs/from-trace/", "description": "Create a new agent playground graph from a trace's LLM spans.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/TraceToGraphRequest"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/TraceToGraphResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agent-playground"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/agent-playground/graphs/{graph_id}/dataset/": {"get": {"operationId": "agent-playground_graphs_dataset_read", "summary": "Get full dataset detail: info, columns, and all rows with cells.", "description": "Accepts an optional ``version_id`` query parameter.  When provided,\nonly columns whose names match the exposed input ports of that\nversion are returned (and cells are filtered accordingly).  When\nomitted the latest version (by version_number) is used.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/CellUpdate"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agent-playground"]}, "parameters": [{"name": "graph_id", "in": "path", "required": true, "type": "string"}]}, "/agent-playground/graphs/{graph_id}/dataset/cells/{cell_id}/": {"put": {"operationId": "agent-playground_graphs_dataset_update_cell", "description": "Update a single cell value.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/CellUpdate"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/CellUpdate"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agent-playground"]}, "parameters": [{"name": "graph_id", "in": "path", "required": true, "type": "string"}, {"name": "cell_id", "in": "path", "required": true, "type": "string"}]}, "/agent-playground/graphs/{graph_id}/dataset/execute/": {"post": {"operationId": "agent-playground_graphs_dataset_execute", "description": "Trigger graph execution for dataset rows using the active graph version.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ExecuteRequest"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/ExecuteRequest"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agent-playground"]}, "parameters": [{"name": "graph_id", "in": "path", "required": true, "type": "string"}]}, "/agent-playground/graphs/{graph_id}/dataset/rows/": {"post": {"operationId": "agent-playground_graphs_dataset_create_row", "description": "Create a single row with empty cells pre-created for every column.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/CellUpdate"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/CellUpdate"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agent-playground"]}, "parameters": [{"name": "graph_id", "in": "path", "required": true, "type": "string"}]}, "/agent-playground/graphs/{graph_id}/dataset/rows/delete/": {"delete": {"operationId": "agent-playground_graphs_dataset_rows_delete_rows", "description": "Bulk delete rows by IDs.", "parameters": [], "responses": {"204": {"description": ""}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agent-playground"]}, "parameters": [{"name": "graph_id", "in": "path", "required": true, "type": "string"}]}, "/agent-playground/graphs/{graph_id}/executions/": {"get": {"operationId": "agent-playground_graphs_executions_list", "description": "List all executions for a graph, with optional status filter.", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/GraphExecutionListResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agent-playground"]}, "parameters": [{"name": "graph_id", "in": "path", "required": true, "type": "string"}]}, "/agent-playground/graphs/{graph_id}/executions/{execution_id}/": {"get": {"operationId": "agent-playground_graphs_executions_read", "summary": "Returns the full Graph execution detail.", "description": "Response includes basic execution data, the graph version DAG\n(nodes with ports, edges), and each node's execution status.\nSubgraph nodes include a nested ``sub_graph`` with their inner\ngraph version and execution details (recursive).", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/GraphExecutionDetailResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agent-playground"]}, "parameters": [{"name": "graph_id", "in": "path", "required": true, "type": "string"}, {"name": "execution_id", "in": "path", "required": true, "type": "string"}]}, "/agent-playground/graphs/{id}/": {"get": {"operationId": "agent-playground_graphs_read", "summary": "Get graph detail with the active version expanded (or latest draft if no active).", "description": "Returns full nested structure: nodes→ports, edges.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/GraphDetail"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agent-playground"]}, "put": {"operationId": "agent-playground_graphs_update", "description": "ViewSet for Graph CRUD and version management.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/GraphUpdate"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/GraphUpdate"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agent-playground"]}, "patch": {"operationId": "agent-playground_graphs_partial_update", "description": "ViewSet for Graph CRUD and version management.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/GraphUpdate"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/GraphUpdate"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agent-playground"]}, "delete": {"operationId": "agent-playground_graphs_delete", "description": "Soft-delete a graph through the router detail route with cascade validation.", "parameters": [], "responses": {"204": {"description": ""}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agent-playground"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/agent-playground/graphs/{id}/referenceable-graphs/": {"get": {"operationId": "agent-playground_graphs_referenceable_graphs", "description": "Returns non-template graphs whose non-draft versions (active or inactive)\ncan be used as `ref_graph_version` without creating a cycle.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/GraphList"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agent-playground"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/agent-playground/graphs/{id}/versions/": {"get": {"operationId": "agent-playground_graphs_versions_read", "summary": "List all versions for a graph.", "description": "Returns lightweight: id, version_number, status, commit_message, created_at.", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/GraphList"}}}}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agent-playground"]}, "post": {"operationId": "agent-playground_graphs_versions_create", "description": "Create a new draft version (version_number = max + 1) with optional nodes and edges.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/GraphList"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/GraphList"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agent-playground"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/agent-playground/graphs/{id}/versions/{version_id}/": {"get": {"operationId": "agent-playground_graphs_versions_read", "description": "Get a specific version with full nested structure (nodes→ports, edges).", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/GraphList"}}}}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agent-playground"]}, "put": {"operationId": "agent-playground_graphs_versions_update", "summary": "Metadata-only update endpoint (PUT/PATCH).", "description": "Updates commit_message and/or promotes draft → active.\nContent changes (nodes, ports, edges) are done via granular CRUD or create_version.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/GraphList"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/GraphList"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agent-playground"]}, "patch": {"operationId": "agent-playground_graphs_versions_partial_update", "summary": "Metadata-only update endpoint (PUT/PATCH).", "description": "Updates commit_message and/or promotes draft → active.\nContent changes (nodes, ports, edges) are done via granular CRUD or create_version.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/GraphList"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/GraphList"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agent-playground"]}, "delete": {"operationId": "agent-playground_graphs_versions_delete", "summary": "Soft-delete a specific version and its content (nodes, ports, edges).", "description": "Cannot delete if this is the only version for the graph.\nCan delete active version - graph will then have no active version.", "parameters": [], "responses": {"204": {"description": ""}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agent-playground"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}, {"name": "version_id", "in": "path", "required": true, "type": "string"}]}, "/agent-playground/graphs/{id}/versions/{version_id}/activate/": {"post": {"operationId": "agent-playground_graphs_versions_activate_version", "summary": "POST /graphs/{graph_id}/versions/{version_id}/activate/", "description": "Promote an inactive version to active.\nThe currently active version (if any) is set to inactive.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/GraphList"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/GraphList"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agent-playground"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}, {"name": "version_id", "in": "path", "required": true, "type": "string"}]}, "/agent-playground/graphs/{id}/versions/{version_id}/node-connections/": {"post": {"operationId": "agent-playground_graphs_versions_node-connections_create", "description": "POST /graphs/{pk}/versions/{version_id}/node-connections/", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/CreateNodeConnection"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/CreateNodeConnection"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agent-playground"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}, {"name": "version_id", "in": "path", "required": true, "type": "string"}]}, "/agent-playground/graphs/{id}/versions/{version_id}/node-connections/{nc_id}/": {"delete": {"operationId": "agent-playground_graphs_versions_node-connections_delete", "description": "DELETE /graphs/{pk}/versions/{version_id}/node-connections/{nc_id}/", "parameters": [], "responses": {"204": {"description": ""}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agent-playground"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}, {"name": "version_id", "in": "path", "required": true, "type": "string"}, {"name": "nc_id", "in": "path", "required": true, "type": "string"}]}, "/agent-playground/graphs/{id}/versions/{version_id}/nodes/": {"post": {"operationId": "agent-playground_graphs_versions_nodes_create", "description": "POST /graphs/{pk}/versions/{version_id}/nodes/", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/CreateNode"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/CreateNode"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agent-playground"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}, {"name": "version_id", "in": "path", "required": true, "type": "string"}]}, "/agent-playground/graphs/{id}/versions/{version_id}/nodes/{node_id}/": {"get": {"operationId": "agent-playground_graphs_versions_nodes_read", "description": "GET /graphs/{pk}/versions/{version_id}/nodes/{node_id}/", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/NodeRead"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agent-playground"]}, "patch": {"operationId": "agent-playground_graphs_versions_nodes_partial_update", "description": "PATCH /graphs/{pk}/versions/{version_id}/nodes/{node_id}/", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UpdateNode"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UpdateNode"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agent-playground"]}, "delete": {"operationId": "agent-playground_graphs_versions_nodes_delete", "description": "DELETE /graphs/{pk}/versions/{version_id}/nodes/{node_id}/", "parameters": [], "responses": {"204": {"description": ""}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agent-playground"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}, {"name": "version_id", "in": "path", "required": true, "type": "string"}, {"name": "node_id", "in": "path", "required": true, "type": "string"}]}, "/agent-playground/graphs/{id}/versions/{version_id}/nodes/{node_id}/possible-edge-mappings/": {"get": {"operationId": "agent-playground_graphs_versions_nodes_possible_edge_mappings", "summary": "GET /graphs/{pk}/versions/{version_id}/nodes/{node_id}/possible-edge-mappings/", "description": "Returns all source nodes that have NodeConnections targeting this node,\nalong with their output ports. This helps the frontend build UI for\ncreating edges between specific ports.", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/NodeRead"}}}}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agent-playground"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}, {"name": "version_id", "in": "path", "required": true, "type": "string"}, {"name": "node_id", "in": "path", "required": true, "type": "string"}]}, "/agent-playground/graphs/{id}/versions/{version_id}/ports/{port_id}/": {"patch": {"operationId": "agent-playground_graphs_versions_ports_partial_update", "description": "PATCH /graphs/{pk}/versions/{version_id}/ports/{port_id}/", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UpdatePort"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UpdatePort"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agent-playground"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}, {"name": "version_id", "in": "path", "required": true, "type": "string"}, {"name": "port_id", "in": "path", "required": true, "type": "string"}]}, "/agent-playground/node-templates/": {"get": {"operationId": "agent-playground_node-templates_list", "summary": "List all node templates.", "description": "Returns lightweight representation: id, name, display_name, description, icon, categories.", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/NodeTemplateList"}}}}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agent-playground"]}, "parameters": []}, "/agent-playground/node-templates/{id}/": {"get": {"operationId": "agent-playground_node-templates_read", "summary": "Get a single node template with full details.", "description": "Returns full template detail: + input_definition, output_definition,\ninput_mode, output_mode, config_schema.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/NodeTemplateDetail"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AgentPlaygroundErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agent-playground"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/agentcc/analytics/cost-breakdown/": {"get": {"operationId": "agentcc_analytics_cost_breakdown", "description": "Cost breakdown by dimension.", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/AgentccRequestLog"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": []}, "/agentcc/analytics/error-breakdown/": {"get": {"operationId": "agentcc_analytics_error_breakdown", "description": "Error analysis with breakdown and timeseries.", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/AgentccRequestLog"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": []}, "/agentcc/analytics/guardrail-overview/": {"get": {"operationId": "agentcc_analytics_guardrail_overview", "description": "Guardrail aggregate KPIs.", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/AgentccRequestLog"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": []}, "/agentcc/analytics/guardrail-rules/": {"get": {"operationId": "agentcc_analytics_guardrail_rules", "description": "Per-rule guardrail trigger breakdown.", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/AgentccRequestLog"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": []}, "/agentcc/analytics/guardrail-trends/": {"get": {"operationId": "agentcc_analytics_guardrail_trends", "description": "Time-bucketed guardrail trigger trends.", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/AgentccRequestLog"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": []}, "/agentcc/analytics/latency-stats/": {"get": {"operationId": "agentcc_analytics_latency_stats", "description": "Latency percentiles and timeseries.", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/AgentccRequestLog"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": []}, "/agentcc/analytics/model-comparison/": {"get": {"operationId": "agentcc_analytics_model_comparison", "description": "Side-by-side model performance comparison.", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/AgentccRequestLog"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": []}, "/agentcc/analytics/overview/": {"get": {"operationId": "agentcc_analytics_overview", "description": "KPI cards with trend comparison.", "parameters": [{"name": "start", "in": "query", "required": false, "type": "string", "format": "date-time"}, {"name": "end", "in": "query", "required": false, "type": "string", "format": "date-time"}, {"name": "granularity", "in": "query", "required": false, "type": "string", "minLength": 1}, {"name": "api_key_id", "in": "query", "description": "Gateway key id (not the API key's UUID primary key).", "required": false, "type": "string", "maxLength": 255}], "responses": {"200": {"description": "", "schema": {"type": "array", "items": {"$ref": "#/definitions/AgentccRequestLog"}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"], "x-runtime-request-validation": true}, "parameters": []}, "/agentcc/analytics/usage-timeseries/": {"get": {"operationId": "agentcc_analytics_usage_timeseries", "description": "Time-bucketed usage data for charts.", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/AgentccRequestLog"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": []}, "/agentcc/api-keys/": {"get": {"operationId": "agentcc_api-keys_list", "description": "", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/AgentccAPIKey"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "post": {"operationId": "agentcc_api-keys_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentccAPIKey"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/AgentccAPIKey"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": []}, "/agentcc/api-keys/bulk/": {"get": {"operationId": "agentcc_api-keys_bulk_list", "description": "Bulk endpoint for gateway startup key sync.\nReturns all active keys with their hashes so the gateway can restore\nits in-memory KeyStore on restart.\n\nAuthenticated by admin token (not user JWT).", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/APIKeyBulkResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentccErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": []}, "/agentcc/api-keys/sync/": {"post": {"operationId": "agentcc_api-keys_sync", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentccAPIKey"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/AgentccAPIKey"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": []}, "/agentcc/api-keys/{id}/": {"get": {"operationId": "agentcc_api-keys_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentccAPIKey"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "put": {"operationId": "agentcc_api-keys_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentccAPIKey"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentccAPIKey"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "patch": {"operationId": "agentcc_api-keys_partial_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentccAPIKey"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentccAPIKey"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "delete": {"operationId": "agentcc_api-keys_delete", "description": "", "parameters": [], "responses": {"204": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this agentcc api key.", "required": true, "type": "string", "format": "uuid"}]}, "/agentcc/api-keys/{id}/revoke/": {"post": {"operationId": "agentcc_api-keys_revoke", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentccAPIKey"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/AgentccAPIKey"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this agentcc api key.", "required": true, "type": "string", "format": "uuid"}]}, "/agentcc/blocklists/": {"get": {"operationId": "agentcc_blocklists_list", "description": "CRUD for named word blocklists. Org-scoped.", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/AgentccBlocklist"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "post": {"operationId": "agentcc_blocklists_create", "description": "CRUD for named word blocklists. Org-scoped.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentccBlocklist"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/AgentccBlocklist"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": []}, "/agentcc/blocklists/{id}/": {"get": {"operationId": "agentcc_blocklists_read", "description": "CRUD for named word blocklists. Org-scoped.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentccBlocklist"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "put": {"operationId": "agentcc_blocklists_update", "description": "CRUD for named word blocklists. Org-scoped.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentccBlocklist"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentccBlocklist"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "patch": {"operationId": "agentcc_blocklists_partial_update", "description": "CRUD for named word blocklists. Org-scoped.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentccBlocklist"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentccBlocklist"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "delete": {"operationId": "agentcc_blocklists_delete", "description": "CRUD for named word blocklists. Org-scoped.", "parameters": [], "responses": {"204": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this agentcc blocklist.", "required": true, "type": "string", "format": "uuid"}]}, "/agentcc/blocklists/{id}/add-words/": {"post": {"operationId": "agentcc_blocklists_add_words", "description": "Add words to the blocklist (deduplicates).", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentccBlocklist"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/AgentccBlocklist"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this agentcc blocklist.", "required": true, "type": "string", "format": "uuid"}]}, "/agentcc/blocklists/{id}/remove-words/": {"post": {"operationId": "agentcc_blocklists_remove_words", "description": "Remove words from the blocklist.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentccBlocklist"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/AgentccBlocklist"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this agentcc blocklist.", "required": true, "type": "string", "format": "uuid"}]}, "/agentcc/custom-properties/": {"get": {"operationId": "agentcc_custom-properties_list", "description": "CRUD for custom property schemas. Org-scoped.", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/AgentccCustomPropertySchema"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "post": {"operationId": "agentcc_custom-properties_create", "description": "CRUD for custom property schemas. Org-scoped.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentccCustomPropertySchema"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/AgentccCustomPropertySchema"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": []}, "/agentcc/custom-properties/validate/": {"post": {"operationId": "agentcc_custom-properties_validate", "description": "Validate a set of custom properties against the org's schemas.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentccCustomPropertySchema"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/AgentccCustomPropertySchema"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": []}, "/agentcc/custom-properties/{id}/": {"get": {"operationId": "agentcc_custom-properties_read", "description": "CRUD for custom property schemas. Org-scoped.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentccCustomPropertySchema"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "put": {"operationId": "agentcc_custom-properties_update", "description": "CRUD for custom property schemas. Org-scoped.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentccCustomPropertySchema"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentccCustomPropertySchema"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "patch": {"operationId": "agentcc_custom-properties_partial_update", "description": "CRUD for custom property schemas. Org-scoped.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentccCustomPropertySchema"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentccCustomPropertySchema"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "delete": {"operationId": "agentcc_custom-properties_delete", "description": "CRUD for custom property schemas. Org-scoped.", "parameters": [], "responses": {"204": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this agentcc custom property schema.", "required": true, "type": "string", "format": "uuid"}]}, "/agentcc/email-alerts/": {"get": {"operationId": "agentcc_email-alerts_list", "description": "CRUD + test for email alert configurations. Org-scoped.", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/AgentccEmailAlert"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "post": {"operationId": "agentcc_email-alerts_create", "description": "CRUD + test for email alert configurations. Org-scoped.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentccEmailAlert"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/AgentccEmailAlert"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": []}, "/agentcc/email-alerts/{id}/": {"get": {"operationId": "agentcc_email-alerts_read", "description": "CRUD + test for email alert configurations. Org-scoped.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentccEmailAlert"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "put": {"operationId": "agentcc_email-alerts_update", "description": "CRUD + test for email alert configurations. Org-scoped.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentccEmailAlert"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentccEmailAlert"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "patch": {"operationId": "agentcc_email-alerts_partial_update", "description": "CRUD + test for email alert configurations. Org-scoped.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentccEmailAlert"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentccEmailAlert"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "delete": {"operationId": "agentcc_email-alerts_delete", "description": "CRUD + test for email alert configurations. Org-scoped.", "parameters": [], "responses": {"204": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this agentcc email alert.", "required": true, "type": "string", "format": "uuid"}]}, "/agentcc/email-alerts/{id}/test/": {"post": {"operationId": "agentcc_email-alerts_test", "description": "Send a test email using this alert's configuration.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentccEmailAlert"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/AgentccEmailAlert"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this agentcc email alert.", "required": true, "type": "string", "format": "uuid"}]}, "/agentcc/gateways/": {"get": {"operationId": "agentcc_gateways_list", "description": "Stateless proxy to the Go gateway (configured via env vars).\nNo DB model — returns a virtual singleton gateway with live health.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/GatewayListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentccErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": []}, "/agentcc/gateways/protect-templates/": {"get": {"operationId": "agentcc_gateways_protect_templates", "description": "Return eval templates compatible with the FI protect guardrail.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentccListResultResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentccErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": []}, "/agentcc/gateways/{id}/": {"get": {"operationId": "agentcc_gateways_read", "description": "Accept any pk and ignore it — there is only one gateway.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/GatewayDetailResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AgentccErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/agentcc/gateways/{id}/cancel-batch/": {"post": {"operationId": "agentcc_gateways_cancel_batch", "description": "Stateless proxy to the Go gateway (configured via env vars).\nNo DB model — returns a virtual singleton gateway with live health.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/GatewayBatchRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/GatewayBatchCancelResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentccErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AgentccErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/agentcc/gateways/{id}/config/": {"get": {"operationId": "agentcc_gateways_config", "description": "Stateless proxy to the Go gateway (configured via env vars).\nNo DB model — returns a virtual singleton gateway with live health.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/GatewayConfigResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentccErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/agentcc/gateways/{id}/get-batch/": {"get": {"operationId": "agentcc_gateways_get_batch", "description": "Stateless proxy to the Go gateway (configured via env vars).\nNo DB model — returns a virtual singleton gateway with live health.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/GatewayBatchDetailResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentccErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AgentccErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/agentcc/gateways/{id}/health_check/": {"post": {"operationId": "agentcc_gateways_health_check", "description": "Stateless proxy to the Go gateway (configured via env vars).\nNo DB model — returns a virtual singleton gateway with live health.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentccEmptyRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/GatewayHealthResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentccErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/agentcc/gateways/{id}/mcp-prompts/": {"get": {"operationId": "agentcc_gateways_mcp_prompts", "description": "Stateless proxy to the Go gateway (configured via env vars).\nNo DB model — returns a virtual singleton gateway with live health.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentccListResultResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/agentcc/gateways/{id}/mcp-resources/": {"get": {"operationId": "agentcc_gateways_mcp_resources", "description": "Stateless proxy to the Go gateway (configured via env vars).\nNo DB model — returns a virtual singleton gateway with live health.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentccListResultResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/agentcc/gateways/{id}/mcp-status/": {"get": {"operationId": "agentcc_gateways_mcp_status", "description": "Stateless proxy to the Go gateway (configured via env vars).\nNo DB model — returns a virtual singleton gateway with live health.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/GatewayMCPStatusResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentccErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/agentcc/gateways/{id}/mcp-tools/": {"get": {"operationId": "agentcc_gateways_mcp_tools", "description": "Stateless proxy to the Go gateway (configured via env vars).\nNo DB model — returns a virtual singleton gateway with live health.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentccListResultResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/agentcc/gateways/{id}/providers/": {"get": {"operationId": "agentcc_gateways_providers", "description": "Stateless proxy to the Go gateway (configured via env vars).\nNo DB model — returns a virtual singleton gateway with live health.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/GatewayProvidersResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentccErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/agentcc/gateways/{id}/reload/": {"post": {"operationId": "agentcc_gateways_reload", "description": "Re-push this org's config to the gateway.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentccEmptyRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/GatewayMutationResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentccErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/agentcc/gateways/{id}/remove-budget/": {"post": {"operationId": "agentcc_gateways_remove_budget", "description": "Stateless proxy to the Go gateway (configured via env vars).\nNo DB model — returns a virtual singleton gateway with live health.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/GatewayBudgetRemoveRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/GatewayMutationResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentccErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/agentcc/gateways/{id}/remove-mcp-server/": {"post": {"operationId": "agentcc_gateways_remove_mcp_server", "description": "Stateless proxy to the Go gateway (configured via env vars).\nNo DB model — returns a virtual singleton gateway with live health.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/GatewayMCPServerRemoveRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/GatewayMutationResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentccErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AgentccErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/agentcc/gateways/{id}/remove-provider/": {"post": {"operationId": "agentcc_gateways_remove_provider", "description": "Soft-delete a provider credential and push config.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/GatewayNameRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/GatewayMutationResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentccErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/AgentccErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/agentcc/gateways/{id}/set-budget/": {"post": {"operationId": "agentcc_gateways_set_budget", "description": "Stateless proxy to the Go gateway (configured via env vars).\nNo DB model — returns a virtual singleton gateway with live health.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/GatewayBudgetSetRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/GatewayMutationResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentccErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/agentcc/gateways/{id}/submit-batch/": {"post": {"operationId": "agentcc_gateways_submit_batch", "description": "Stateless proxy to the Go gateway (configured via env vars).\nNo DB model — returns a virtual singleton gateway with live health.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/GatewayBatchSubmitRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/GatewayBatchSubmitResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentccErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/agentcc/gateways/{id}/test-mcp-tool/": {"post": {"operationId": "agentcc_gateways_test_mcp_tool", "description": "Stateless proxy to the Go gateway (configured via env vars).\nNo DB model — returns a virtual singleton gateway with live health.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/GatewayMCPToolTestRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/GatewayMCPToolTestResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentccErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/agentcc/gateways/{id}/test-playground/": {"post": {"operationId": "agentcc_gateways_test_playground", "description": "Send a real chat completion through the gateway to test guardrails.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/GatewayPlaygroundTestRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/GatewayPlaygroundTestResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentccErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/agentcc/gateways/{id}/toggle-guardrail/": {"post": {"operationId": "agentcc_gateways_toggle_guardrail", "description": "Stateless proxy to the Go gateway (configured via env vars).\nNo DB model — returns a virtual singleton gateway with live health.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/GatewayToggleGuardrailRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/GatewayMutationResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentccErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/agentcc/gateways/{id}/update-config/": {"post": {"operationId": "agentcc_gateways_update_config", "description": "Patch one or more JSON fields on the org's active config and push.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/GatewayConfigPatchRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/GatewayMutationResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentccErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/agentcc/gateways/{id}/update-guardrail/": {"post": {"operationId": "agentcc_gateways_update_guardrail", "description": "Stateless proxy to the Go gateway (configured via env vars).\nNo DB model — returns a virtual singleton gateway with live health.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/GatewayNamedConfigRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/GatewayMutationResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentccErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/agentcc/gateways/{id}/update-mcp-guardrails/": {"post": {"operationId": "agentcc_gateways_update_mcp_guardrails", "description": "Stateless proxy to the Go gateway (configured via env vars).\nNo DB model — returns a virtual singleton gateway with live health.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/GatewayMCPGuardrailsUpdateRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/GatewayMutationResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentccErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/agentcc/gateways/{id}/update-mcp-server/": {"post": {"operationId": "agentcc_gateways_update_mcp_server", "description": "Stateless proxy to the Go gateway (configured via env vars).\nNo DB model — returns a virtual singleton gateway with live health.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/GatewayMCPServerUpdateRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/GatewayMutationResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentccErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/agentcc/gateways/{id}/update-provider/": {"post": {"operationId": "agentcc_gateways_update_provider", "description": "Add or update a provider credential for the org, then push config.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/GatewayProviderUpdateRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/GatewayMutationResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentccErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/agentcc/guardrail-configs/pii-entities/": {"get": {"operationId": "agentcc_guardrail-configs_pii_entities", "description": "List all available PII entity types.", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PIIEntitiesResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": []}, "/agentcc/guardrail-configs/topics/": {"get": {"operationId": "agentcc_guardrail-configs_topics", "description": "List topic restriction categories.", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/TopicCategoriesResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": []}, "/agentcc/guardrail-configs/validate-cel/": {"post": {"operationId": "agentcc_guardrail-configs_validate_cel", "description": "Validate a CEL expression syntax.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ValidateCELRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ValidateCELResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentccErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/agentcc/guardrail-feedback/": {"get": {"operationId": "agentcc_guardrail-feedback_list", "description": "Feedback on guardrail decisions. Org-scoped.", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/AgentccGuardrailFeedback"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "post": {"operationId": "agentcc_guardrail-feedback_create", "description": "Feedback on guardrail decisions. Org-scoped.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentccGuardrailFeedback"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/AgentccGuardrailFeedback"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": []}, "/agentcc/guardrail-feedback/summary/": {"get": {"operationId": "agentcc_guardrail-feedback_summary", "description": "Aggregate feedback stats per check_name.", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/AgentccGuardrailFeedback"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": []}, "/agentcc/guardrail-feedback/{id}/": {"get": {"operationId": "agentcc_guardrail-feedback_read", "description": "Feedback on guardrail decisions. Org-scoped.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentccGuardrailFeedback"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "put": {"operationId": "agentcc_guardrail-feedback_update", "description": "Feedback on guardrail decisions. Org-scoped.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentccGuardrailFeedback"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentccGuardrailFeedback"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "patch": {"operationId": "agentcc_guardrail-feedback_partial_update", "description": "Feedback on guardrail decisions. Org-scoped.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentccGuardrailFeedback"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentccGuardrailFeedback"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "delete": {"operationId": "agentcc_guardrail-feedback_delete", "description": "Feedback on guardrail decisions. Org-scoped.", "parameters": [], "responses": {"204": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this agentcc guardrail feedback.", "required": true, "type": "string", "format": "uuid"}]}, "/agentcc/guardrail-policies/": {"get": {"operationId": "agentcc_guardrail-policies_list", "description": "CRUD for reusable guardrail policies. Org-scoped.", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/AgentccGuardrailPolicy"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "post": {"operationId": "agentcc_guardrail-policies_create", "description": "CRUD for reusable guardrail policies. Org-scoped.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentccGuardrailPolicy"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/AgentccGuardrailPolicy"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": []}, "/agentcc/guardrail-policies/sync/": {"post": {"operationId": "agentcc_guardrail-policies_sync", "description": "Manual trigger to resync all policies to gateway.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentccGuardrailPolicy"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/AgentccGuardrailPolicy"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": []}, "/agentcc/guardrail-policies/{id}/": {"get": {"operationId": "agentcc_guardrail-policies_read", "description": "CRUD for reusable guardrail policies. Org-scoped.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentccGuardrailPolicy"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "put": {"operationId": "agentcc_guardrail-policies_update", "description": "CRUD for reusable guardrail policies. Org-scoped.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentccGuardrailPolicy"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentccGuardrailPolicy"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "patch": {"operationId": "agentcc_guardrail-policies_partial_update", "description": "CRUD for reusable guardrail policies. Org-scoped.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentccGuardrailPolicy"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentccGuardrailPolicy"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "delete": {"operationId": "agentcc_guardrail-policies_delete", "description": "CRUD for reusable guardrail policies. Org-scoped.", "parameters": [], "responses": {"204": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this agentcc guardrail policy.", "required": true, "type": "string", "format": "uuid"}]}, "/agentcc/guardrail-policies/{id}/apply/": {"post": {"operationId": "agentcc_guardrail-policies_apply", "description": "Apply this policy to specific keys or projects.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentccGuardrailPolicy"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/AgentccGuardrailPolicy"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this agentcc guardrail policy.", "required": true, "type": "string", "format": "uuid"}]}, "/agentcc/org-configs/": {"get": {"operationId": "agentcc_org-configs_list", "description": "Per-org gateway configuration management. Configs are versioned and immutable.", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/AgentccOrgConfig"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "post": {"operationId": "agentcc_org-configs_create", "description": "Create a new config version. Auto-increments version and activates it.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentccOrgConfig"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/AgentccOrgConfig"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": []}, "/agentcc/org-configs/active/": {"get": {"operationId": "agentcc_org-configs_active", "description": "Get the currently active config for the requesting user's org.", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/AgentccOrgConfig"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": []}, "/agentcc/org-configs/bulk/": {"get": {"operationId": "agentcc_org-configs_bulk_list", "description": "Bulk endpoint for gateway startup sync.\nReturns all active org configs keyed by org ID, plus the ids of orgs whose\npayload could not be built, so the gateway keeps their last good config.\nAuthenticated by admin token (not user JWT).", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/OrgConfigBulkResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentccErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": []}, "/agentcc/org-configs/{id}/": {"get": {"operationId": "agentcc_org-configs_read", "description": "Per-org gateway configuration management. Configs are versioned and immutable.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentccOrgConfig"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "put": {"operationId": "agentcc_org-configs_update", "description": "Disabled — configs are immutable versions. Create a new one instead.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentccOrgConfig"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentccOrgConfig"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "patch": {"operationId": "agentcc_org-configs_partial_update", "description": "Per-org gateway configuration management. Configs are versioned and immutable.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentccOrgConfig"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentccOrgConfig"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "delete": {"operationId": "agentcc_org-configs_delete", "description": "Soft-delete a config version. Cannot delete the active version.", "parameters": [], "responses": {"204": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this agentcc org config.", "required": true, "type": "string", "format": "uuid"}]}, "/agentcc/org-configs/{id}/activate/": {"post": {"operationId": "agentcc_org-configs_activate", "description": "Roll back to a specific config version by activating it.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentccOrgConfig"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/AgentccOrgConfig"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this agentcc org config.", "required": true, "type": "string", "format": "uuid"}]}, "/agentcc/org-configs/{id}/diff/": {"get": {"operationId": "agentcc_org-configs_diff", "description": "Compare this config version with another. Pass ?compare_to=<uuid>.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentccOrgConfig"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this agentcc org config.", "required": true, "type": "string", "format": "uuid"}]}, "/agentcc/provider-credentials/": {"get": {"operationId": "agentcc_provider-credentials_list", "description": "", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/AgentccProviderCredential"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "post": {"operationId": "agentcc_provider-credentials_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentccProviderCredential"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/AgentccProviderCredential"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": []}, "/agentcc/provider-credentials/fetch_models/": {"post": {"operationId": "agentcc_provider-credentials_fetch_models", "summary": "Fetch available models from a provider's API.", "description": "Two modes:\n- provider_name: look up stored credential by provider name for this org.\n- api_key + base_url + api_format: use raw values (for create-mode).", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentccProviderCredential"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/AgentccProviderCredential"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": []}, "/agentcc/provider-credentials/{id}/": {"get": {"operationId": "agentcc_provider-credentials_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentccProviderCredential"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "put": {"operationId": "agentcc_provider-credentials_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentccProviderCredential"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentccProviderCredential"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "patch": {"operationId": "agentcc_provider-credentials_partial_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentccProviderCredential"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentccProviderCredential"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "delete": {"operationId": "agentcc_provider-credentials_delete", "description": "", "parameters": [], "responses": {"204": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this agentcc provider credential.", "required": true, "type": "string", "format": "uuid"}]}, "/agentcc/provider-credentials/{id}/rotate/": {"post": {"operationId": "agentcc_provider-credentials_rotate", "description": "Rotate credentials — accepts new credentials, encrypts, and updates.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentccProviderCredential"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/AgentccProviderCredential"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this agentcc provider credential.", "required": true, "type": "string", "format": "uuid"}]}, "/agentcc/request-logs/": {"get": {"operationId": "agentcc_request-logs_list", "description": "", "parameters": [{"name": "page", "in": "query", "required": false, "type": "integer", "minimum": 1}, {"name": "limit", "in": "query", "required": false, "type": "integer", "minimum": 1}, {"name": "user_id", "in": "query", "required": false, "type": "string"}, {"name": "session_id", "in": "query", "required": false, "type": "string"}, {"name": "api_key_id", "in": "query", "description": "Gateway key id (not the API key's UUID primary key).", "required": false, "type": "string", "maxLength": 255}, {"name": "request_id", "in": "query", "required": false, "type": "string"}, {"name": "model", "in": "query", "description": "Comma-separated model names.", "required": false, "type": "string", "minLength": 1}, {"name": "provider", "in": "query", "description": "Comma-separated provider names.", "required": false, "type": "string", "minLength": 1}, {"name": "status_code", "in": "query", "description": "Comma-separated HTTP status codes.", "required": false, "type": "string", "minLength": 1}, {"name": "min_status_code", "in": "query", "required": false, "type": "integer"}, {"name": "max_status_code", "in": "query", "required": false, "type": "integer"}, {"name": "is_error", "in": "query", "required": false, "type": "boolean"}, {"name": "cache_hit", "in": "query", "required": false, "type": "boolean"}, {"name": "fallback_used", "in": "query", "required": false, "type": "boolean"}, {"name": "guardrail_triggered", "in": "query", "required": false, "type": "boolean"}, {"name": "is_stream", "in": "query", "required": false, "type": "boolean"}, {"name": "started_after", "in": "query", "required": false, "type": "string", "format": "date-time"}, {"name": "started_before", "in": "query", "required": false, "type": "string", "format": "date-time"}, {"name": "min_latency", "in": "query", "required": false, "type": "integer"}, {"name": "max_latency", "in": "query", "required": false, "type": "integer"}, {"name": "min_cost", "in": "query", "required": false, "type": "number"}, {"name": "max_cost", "in": "query", "required": false, "type": "number"}, {"name": "min_tokens", "in": "query", "required": false, "type": "integer"}, {"name": "max_tokens", "in": "query", "required": false, "type": "integer"}, {"name": "q", "in": "query", "required": false, "type": "string"}, {"name": "search", "in": "query", "required": false, "type": "string"}, {"name": "ordering", "in": "query", "required": false, "type": "string", "minLength": 1}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/AgentccRequestLog"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"], "x-runtime-request-validation": true}, "parameters": []}, "/agentcc/request-logs/export/": {"get": {"operationId": "agentcc_request-logs_export", "description": "Export filtered request logs as CSV or JSON.", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/AgentccRequestLog"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": []}, "/agentcc/request-logs/metadata-values/": {"get": {"operationId": "agentcc_request-logs_metadata_values", "description": "Application, service and custom tag values seen in recent requests.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentccRequestLogMetadataValuesResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentccErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"], "x-runtime-response-validation": true}, "parameters": []}, "/agentcc/request-logs/search/": {"get": {"operationId": "agentcc_request-logs_search", "description": "Full-text search across model, provider, error_message, request_id.", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/AgentccRequestLog"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": []}, "/agentcc/request-logs/sessions/": {"get": {"operationId": "agentcc_request-logs_sessions", "description": "Aggregate request logs by session_id.", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/AgentccRequestLog"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": []}, "/agentcc/request-logs/sessions/{session_id}/": {"get": {"operationId": "agentcc_request-logs_session_detail", "description": "Get all logs for a specific session.", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/AgentccRequestLog"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": [{"name": "session_id", "in": "path", "required": true, "type": "string"}]}, "/agentcc/request-logs/{id}/": {"get": {"operationId": "agentcc_request-logs_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentccRequestLogDetail"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this agentcc request log.", "required": true, "type": "string", "format": "uuid"}]}, "/agentcc/routing-policies/": {"get": {"operationId": "agentcc_routing-policies_list", "description": "Routing policy management with version history. Org-scoped.", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/AgentccRoutingPolicy"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "post": {"operationId": "agentcc_routing-policies_create", "description": "Create a new routing policy. Auto-increments version for same name.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentccRoutingPolicy"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/AgentccRoutingPolicy"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": []}, "/agentcc/routing-policies/sync/": {"post": {"operationId": "agentcc_routing-policies_sync", "description": "Manual sync all active routing policies to gateway.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentccRoutingPolicy"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/AgentccRoutingPolicy"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": []}, "/agentcc/routing-policies/{id}/": {"get": {"operationId": "agentcc_routing-policies_read", "description": "Routing policy management with version history. Org-scoped.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentccRoutingPolicy"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "put": {"operationId": "agentcc_routing-policies_update", "description": "Updates are disabled — create a new version instead.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentccRoutingPolicy"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentccRoutingPolicy"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "patch": {"operationId": "agentcc_routing-policies_partial_update", "description": "Routing policy management with version history. Org-scoped.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentccRoutingPolicy"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentccRoutingPolicy"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "delete": {"operationId": "agentcc_routing-policies_delete", "description": "Routing policy management with version history. Org-scoped.", "parameters": [], "responses": {"204": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this agentcc routing policy.", "required": true, "type": "string", "format": "uuid"}]}, "/agentcc/routing-policies/{id}/activate/": {"post": {"operationId": "agentcc_routing-policies_activate", "description": "Activate a specific version (rollback).", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentccRoutingPolicy"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/AgentccRoutingPolicy"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this agentcc routing policy.", "required": true, "type": "string", "format": "uuid"}]}, "/agentcc/sessions/": {"get": {"operationId": "agentcc_sessions_list", "description": "Session management — create, list, retrieve sessions with stats.", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/AgentccSession"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "post": {"operationId": "agentcc_sessions_create", "description": "Session management — create, list, retrieve sessions with stats.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentccSession"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/AgentccSession"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": []}, "/agentcc/sessions/{id}/": {"get": {"operationId": "agentcc_sessions_read", "description": "Session management — create, list, retrieve sessions with stats.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentccSession"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "put": {"operationId": "agentcc_sessions_update", "description": "Session management — create, list, retrieve sessions with stats.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentccSession"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentccSession"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "patch": {"operationId": "agentcc_sessions_partial_update", "description": "Session management — create, list, retrieve sessions with stats.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentccSession"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentccSession"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "delete": {"operationId": "agentcc_sessions_delete", "description": "Session management — create, list, retrieve sessions with stats.", "parameters": [], "responses": {"204": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this agentcc session.", "required": true, "type": "string", "format": "uuid"}]}, "/agentcc/sessions/{id}/close/": {"post": {"operationId": "agentcc_sessions_close", "description": "Close a session.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentccSession"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/AgentccSession"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this agentcc session.", "required": true, "type": "string", "format": "uuid"}]}, "/agentcc/sessions/{id}/requests/": {"get": {"operationId": "agentcc_sessions_requests", "description": "List all request logs for this session.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentccSession"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this agentcc session.", "required": true, "type": "string", "format": "uuid"}]}, "/agentcc/shadow-experiments/": {"get": {"operationId": "agentcc_shadow-experiments_list", "description": "CRUD for shadow experiments with pause/resume/complete lifecycle actions.", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/AgentccShadowExperiment"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "post": {"operationId": "agentcc_shadow-experiments_create", "description": "CRUD for shadow experiments with pause/resume/complete lifecycle actions.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentccShadowExperiment"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/AgentccShadowExperiment"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": []}, "/agentcc/shadow-experiments/{id}/": {"get": {"operationId": "agentcc_shadow-experiments_read", "description": "CRUD for shadow experiments with pause/resume/complete lifecycle actions.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentccShadowExperiment"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "put": {"operationId": "agentcc_shadow-experiments_update", "description": "CRUD for shadow experiments with pause/resume/complete lifecycle actions.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentccShadowExperiment"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentccShadowExperiment"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "patch": {"operationId": "agentcc_shadow-experiments_partial_update", "description": "CRUD for shadow experiments with pause/resume/complete lifecycle actions.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentccShadowExperiment"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentccShadowExperiment"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "delete": {"operationId": "agentcc_shadow-experiments_delete", "description": "CRUD for shadow experiments with pause/resume/complete lifecycle actions.", "parameters": [], "responses": {"204": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this agentcc shadow experiment.", "required": true, "type": "string", "format": "uuid"}]}, "/agentcc/shadow-experiments/{id}/complete/": {"patch": {"operationId": "agentcc_shadow-experiments_complete", "description": "Complete an experiment (no more results will be collected).", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentccShadowExperiment"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentccShadowExperiment"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this agentcc shadow experiment.", "required": true, "type": "string", "format": "uuid"}]}, "/agentcc/shadow-experiments/{id}/pause/": {"patch": {"operationId": "agentcc_shadow-experiments_pause", "description": "Pause an active experiment.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentccShadowExperiment"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentccShadowExperiment"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this agentcc shadow experiment.", "required": true, "type": "string", "format": "uuid"}]}, "/agentcc/shadow-experiments/{id}/resume/": {"patch": {"operationId": "agentcc_shadow-experiments_resume", "description": "Resume a paused experiment.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentccShadowExperiment"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentccShadowExperiment"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this agentcc shadow experiment.", "required": true, "type": "string", "format": "uuid"}]}, "/agentcc/shadow-experiments/{id}/stats/": {"get": {"operationId": "agentcc_shadow-experiments_stats", "description": "Aggregate metrics comparing production vs shadow for this experiment.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentccShadowExperiment"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this agentcc shadow experiment.", "required": true, "type": "string", "format": "uuid"}]}, "/agentcc/shadow-results/": {"get": {"operationId": "agentcc_shadow-results_list", "description": "Read-only viewset for shadow results. Paginated.", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/AgentccShadowResult"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": []}, "/agentcc/shadow-results/{id}/": {"get": {"operationId": "agentcc_shadow-results_read", "description": "Read-only viewset for shadow results. Paginated.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentccShadowResult"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this agentcc shadow result.", "required": true, "type": "string", "format": "uuid"}]}, "/agentcc/spend-summary/": {"get": {"operationId": "agentcc_spend-summary_list", "description": "Returns aggregated spend data so the gateway can seed budget counters\non startup.  Authenticated by admin token (not user JWT).\n\nGET /agentcc/spend-summary/?period=monthly", "parameters": [{"name": "period", "in": "query", "required": false, "type": "string", "enum": ["daily", "weekly", "monthly", "total"]}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SpendSummaryResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/AgentccErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/agentcc/webhook-events/": {"get": {"operationId": "agentcc_webhook-events_list", "description": "Read-only view of webhook event delivery records.", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/AgentccWebhookEvent"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": []}, "/agentcc/webhook-events/{id}/": {"get": {"operationId": "agentcc_webhook-events_read", "description": "Read-only view of webhook event delivery records.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentccWebhookEvent"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this agentcc webhook event.", "required": true, "type": "string", "format": "uuid"}]}, "/agentcc/webhook-events/{id}/retry/": {"post": {"operationId": "agentcc_webhook-events_retry", "description": "Manually retry a failed webhook event delivery.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentccWebhookEvent"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/AgentccWebhookEvent"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this agentcc webhook event.", "required": true, "type": "string", "format": "uuid"}]}, "/agentcc/webhook/logs/": {"post": {"operationId": "agentcc_webhook_logs_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/WebhookLogsRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/WebhookIngestResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentccErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/agentcc/webhook/shadow-results/": {"post": {"operationId": "agentcc_webhook_shadow-results_create", "description": "Receives shadow result batches from the Agentcc Go gateway flusher.\nAuth via X-Webhook-Secret header.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ShadowResultsWebhookRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/WebhookIngestResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/AgentccErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/agentcc/webhooks/": {"get": {"operationId": "agentcc_webhooks_list", "description": "CRUD for outbound webhook endpoints. Org-scoped.", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/AgentccWebhook"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "post": {"operationId": "agentcc_webhooks_create", "description": "CRUD for outbound webhook endpoints. Org-scoped.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentccWebhook"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/AgentccWebhook"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": []}, "/agentcc/webhooks/{id}/": {"get": {"operationId": "agentcc_webhooks_read", "description": "CRUD for outbound webhook endpoints. Org-scoped.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentccWebhook"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "put": {"operationId": "agentcc_webhooks_update", "description": "CRUD for outbound webhook endpoints. Org-scoped.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentccWebhook"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentccWebhook"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "patch": {"operationId": "agentcc_webhooks_partial_update", "description": "CRUD for outbound webhook endpoints. Org-scoped.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentccWebhook"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentccWebhook"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "delete": {"operationId": "agentcc_webhooks_delete", "description": "CRUD for outbound webhook endpoints. Org-scoped.", "parameters": [], "responses": {"204": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this agentcc webhook.", "required": true, "type": "string", "format": "uuid"}]}, "/agentcc/webhooks/{id}/test/": {"post": {"operationId": "agentcc_webhooks_test", "description": "Send a test event to the webhook endpoint.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentccWebhook"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/AgentccWebhook"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["agentcc"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this agentcc webhook.", "required": true, "type": "string", "format": "uuid"}]}, "/ai-tools/tools/": {"get": {"operationId": "ai-tools_tools_list", "description": "Lists all registered AI tools for discovery and debugging.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ToolDiscoveryResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiDetailErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["ai-tools"]}, "parameters": []}, "/api/capabilities/": {"get": {"operationId": "api_capabilities_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/CapabilitiesResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["api"]}, "parameters": []}, "/api/deployment-info/": {"get": {"operationId": "api_deployment-info_list", "summary": "Public deployment-mode probe used by the frontend to gate UI.", "description": "Returns ``{\"mode\": \"oss\"|\"ee\"|\"cloud\"}``. No auth — public config.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DeploymentInfoResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["api"], "x-runtime-response-validation": true}, "parameters": []}, "/api/health/clickhouse/": {"get": {"operationId": "api_health_clickhouse_list", "summary": "Health check endpoint for the ClickHouse analytics backend.", "description": "Returns JSON with:\n- status: healthy | degraded | unhealthy | disabled\n- clickhouse_connected: bool\n- cdc_lag: per-table replication lag in seconds\n- routing: per-query-type routing configuration\n\nNo authentication required (intended for infrastructure monitoring).", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ClickHouseHealthResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ClickHouseHealthErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["api"]}, "parameters": []}, "/api/public/health": {"get": {"operationId": "api_public_health_list", "summary": "Langfuse-compatible ``GET /api/public/health`` with authentication.", "description": "Returns the same JSON shape as Langfuse::\n\n    {\"status\": \"OK\", \"version\": \"1.0.0\"}\n\nWhen called with valid credentials (Basic Auth or API key headers)\nit returns 200.  Invalid / missing credentials return 401 via DRF's\nauthentication layer.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/LangfuseHealthResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/ApiDetailErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiDetailErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["api"], "x-runtime-response-validation": true}, "parameters": []}, "/api/public/ingestion": {"post": {"operationId": "api_public_ingestion_create", "summary": "Langfuse-compatible ``POST /api/public/ingestion`` endpoint.", "description": "Accepts batch events from Langfuse SDK / compatible clients (e.g. Vapi)\nand ingests them as traces, observation spans, and scores.\n\nReturns ``207 Multi-Status`` with per-event success/error reporting,\nmatching the Langfuse ingestion API contract.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/LangfuseIngestionRequest"}}], "responses": {"207": {"description": "", "schema": {"$ref": "#/definitions/LangfuseIngestionResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiDetailErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["api"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/api/public/traces": {"get": {"operationId": "api_public_traces_list", "summary": "Langfuse-compatible ``GET /api/public/traces``.", "description": "Vapi validates Langfuse credentials by calling this endpoint with\n``?limit=1``.      Returns an empty list with standard pagination\nmetadata so the credential check passes.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/LangfuseTracesResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/ApiDetailErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiDetailErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["api"], "x-runtime-response-validation": true}, "parameters": []}, "/api/setup-checks/": {"get": {"operationId": "api_setup-checks_list", "summary": "Public infrastructure probe for the OSS first-run setup screen.", "description": "Returns ``{\"status\": \"ok\"|\"issues\", \"mode\": ..., \"setup\":\n\"standalone\"|\"distributed\"|\"helm\", \"collector_http_url\": ...,\n\"account_exists\": true|false, \"checks\": [...]}``. No auth — it runs\nbefore anyone can sign in. Self-hosted only:\non cloud and EE the route answers 404, so neither the internal service\ntopology nor the outbound probes it triggers are reachable by an\nanonymous caller.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SetupChecksResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["api"], "x-runtime-response-validation": true}, "parameters": []}, "/api/traces/span-attribute-detail/": {"get": {"operationId": "api_traces_span-attribute-detail_list", "summary": "Serve the last complete exact attribute snapshot and refresh out of band.", "description": "GET /api/traces/span-attribute-detail/?project_id=<uuid>&key=<attr_key>", "parameters": [{"name": "project_id", "in": "query", "required": true, "type": "string", "format": "uuid"}, {"name": "key", "in": "query", "description": "Nonempty exact attribute key, at most 4096 UTF-8 bytes. Whitespace, controls and case are preserved.", "required": true, "type": "string"}, {"name": "refresh", "in": "query", "required": false, "type": "boolean", "default": false}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SpanAttributeDetailResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["api"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/api/traces/span-attribute-keys/": {"get": {"operationId": "api_traces_span-attribute-keys_list", "summary": "Discover span attribute keys for a project.", "description": "Cursor mode walks retained project data newest-first in bounded pages;\nexact ``q`` lookup remains available for direct key discovery.\n``discovery_mode=eval_mapping`` includes JSON-only keys that eval mapping\ncan resolve but attribute filters cannot query. The default ``filter``\nmode retains the narrower filterable-key contract.\nThe no-page-size form is retained for older clients.\n\nGET /api/traces/span-attribute-keys/?project_id=<uuid>&page_size=10", "parameters": [{"name": "project_id", "in": "query", "required": false, "type": "string", "format": "uuid"}, {"name": "workspace_scope", "in": "query", "required": false, "type": "boolean", "default": false}, {"name": "discovery_mode", "in": "query", "description": "Attribute contract to browse. filter returns only keys supported by attribute filters; eval_mapping also returns JSON-only keys that an evaluation mapping can resolve.", "required": false, "type": "string", "enum": ["filter", "eval_mapping"], "default": "filter"}, {"name": "q", "in": "query", "description": "Nonempty exact attribute key, at most 4096 UTF-8 bytes. Whitespace, controls and case are preserved.", "required": false, "type": "string"}, {"name": "page_size", "in": "query", "required": false, "type": "integer", "maximum": 50, "minimum": 1}, {"name": "cursor", "in": "query", "required": false, "type": "string", "maxLength": 8192, "minLength": 1}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SpanAttributeKeysResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["api"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/api/traces/span-attribute-values/": {"get": {"operationId": "api_traces_span-attribute-values_list", "summary": "Get top values for a specific span attribute key.", "description": "Returns the most frequent values for the given string attribute key,\nwith optional prefix search filtering.\n\nGET /api/traces/span-attribute-values/?project_id=<uuid>&key=<attr_key>[&q=<search>][&limit=50]", "parameters": [{"name": "project_id", "in": "query", "required": true, "type": "string", "format": "uuid"}, {"name": "key", "in": "query", "description": "Nonempty exact attribute key, at most 4096 UTF-8 bytes. Whitespace, controls and case are preserved.", "required": true, "type": "string"}, {"name": "q", "in": "query", "required": false, "type": "string", "maxLength": 512}, {"name": "limit", "in": "query", "required": false, "type": "integer", "maximum": 500, "minimum": 1}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SpanAttributeValuesResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["api"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/call-websocket/": {"post": {"operationId": "call-websocket_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/CallWebsocketRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/CallWebsocketResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/CallWebsocketErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["call-websocket"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/falcon-ai/conversations/": {"get": {"operationId": "falcon-ai_conversations_list", "description": "List and create conversations.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ConversationListResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/FalconErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["falcon-ai"]}, "post": {"operationId": "falcon-ai_conversations_create", "description": "List and create conversations.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ConversationCreateRequest"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/ConversationDetailResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/FalconErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["falcon-ai"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/falcon-ai/conversations/{conversation_id}/": {"get": {"operationId": "falcon-ai_conversations_read", "description": "Get, update, or delete a conversation.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ConversationDetailResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/FalconErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/FalconErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["falcon-ai"]}, "patch": {"operationId": "falcon-ai_conversations_partial_update", "description": "Get, update, or delete a conversation.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ConversationUpdateRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ConversationDetailResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/FalconErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/FalconErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["falcon-ai"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "delete": {"operationId": "falcon-ai_conversations_delete", "description": "Get, update, or delete a conversation.", "parameters": [], "responses": {"204": {"description": "Conversation deleted"}, "403": {"description": "", "schema": {"$ref": "#/definitions/FalconErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/FalconErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["falcon-ai"]}, "parameters": [{"name": "conversation_id", "in": "path", "required": true, "type": "string"}]}, "/falcon-ai/conversations/{conversation_id}/stream-status/": {"get": {"operationId": "falcon-ai_conversations_stream-status_list", "description": "Check if there is an active or recent agent stream for a conversation.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/StreamStatusResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/FalconErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/FalconErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["falcon-ai"]}, "parameters": [{"name": "conversation_id", "in": "path", "required": true, "type": "string"}]}, "/falcon-ai/files/upload/": {"post": {"operationId": "falcon-ai_files_upload_create", "description": "Upload a file for use in Falcon AI conversations.", "parameters": [{"name": "file", "in": "formData", "description": "File to upload into the Falcon conversation context.", "required": true, "type": "file"}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/FileUploadResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/FalconErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/FalconErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "consumes": ["multipart/form-data"], "tags": ["falcon-ai"], "x-runtime-request-validation": true}, "parameters": []}, "/falcon-ai/mcp-connectors/": {"get": {"operationId": "falcon-ai_mcp-connectors_list", "description": "List and create MCP connectors.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/MCPConnectorListResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/FalconErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["falcon-ai"]}, "post": {"operationId": "falcon-ai_mcp-connectors_create", "description": "List and create MCP connectors.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/MCPConnectorCreate"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/MCPConnectorDetailResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/FalconErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/FalconErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["falcon-ai"]}, "parameters": []}, "/falcon-ai/mcp-connectors/{connector_id}/": {"get": {"operationId": "falcon-ai_mcp-connectors_read", "description": "Get, update, or delete an MCP connector.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/MCPConnectorDetailResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/FalconErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/FalconErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["falcon-ai"]}, "patch": {"operationId": "falcon-ai_mcp-connectors_partial_update", "description": "Get, update, or delete an MCP connector.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/MCPConnectorUpdateRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/MCPConnectorDetailResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/FalconErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/FalconErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["falcon-ai"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "delete": {"operationId": "falcon-ai_mcp-connectors_delete", "description": "Get, update, or delete an MCP connector.", "parameters": [], "responses": {"204": {"description": "Connector deleted"}, "403": {"description": "", "schema": {"$ref": "#/definitions/FalconErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/FalconErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["falcon-ai"]}, "parameters": [{"name": "connector_id", "in": "path", "required": true, "type": "string"}]}, "/falcon-ai/mcp-connectors/{connector_id}/authenticate/": {"post": {"operationId": "falcon-ai_mcp-connectors_authenticate_create", "summary": "Initiate or re-initiate authentication for a connector.", "description": "For OAuth connectors, returns the authorization URL to open in a browser.\nFor API key connectors, tests the connection and returns status.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/FalconEmptyRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/MCPConnectorAuthenticateResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/FalconErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/FalconErrorResponse"}}, "502": {"description": "", "schema": {"$ref": "#/definitions/FalconErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["falcon-ai"]}, "parameters": [{"name": "connector_id", "in": "path", "required": true, "type": "string"}]}, "/falcon-ai/mcp-connectors/{connector_id}/discover/": {"post": {"operationId": "falcon-ai_mcp-connectors_discover_create", "description": "Discover tools from an external MCP server.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/FalconEmptyRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/MCPConnectorDiscoverResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/FalconErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/FalconErrorResponse"}}, "502": {"description": "", "schema": {"$ref": "#/definitions/FalconErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["falcon-ai"]}, "parameters": [{"name": "connector_id", "in": "path", "required": true, "type": "string"}]}, "/falcon-ai/mcp-connectors/{connector_id}/oauth/callback/": {"get": {"operationId": "falcon-ai_mcp-connectors_oauth_callback_list", "summary": "Handle the OAuth 2.1 redirect callback from an authorization server.", "description": "This is a GET endpoint that the browser is redirected to after the user\napproves the OAuth consent. It exchanges the authorization code for\ntokens, then returns an HTML page that posts a message to the opener\nwindow and closes itself.\n\nUses AllowAny because this is a browser redirect with state validation.", "parameters": [{"name": "code", "in": "query", "required": false, "type": "string"}, {"name": "state", "in": "query", "required": false, "type": "string"}, {"name": "error", "in": "query", "required": false, "type": "string"}, {"name": "error_description", "in": "query", "required": false, "type": "string"}], "responses": {"200": {"description": "HTML page that posts OAuth result to opener.", "schema": {"type": "string"}}, "400": {"description": "HTML page that posts OAuth failure to opener.", "schema": {"type": "string"}}, "502": {"description": "HTML page that posts OAuth token exchange failure to opener.", "schema": {"type": "string"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["falcon-ai"]}, "parameters": [{"name": "connector_id", "in": "path", "required": true, "type": "string"}]}, "/falcon-ai/mcp-connectors/{connector_id}/test/": {"post": {"operationId": "falcon-ai_mcp-connectors_test_create", "description": "Test connection to an external MCP server.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/FalconEmptyRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/MCPConnectorTestResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/FalconErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/FalconErrorResponse"}}, "502": {"description": "", "schema": {"$ref": "#/definitions/FalconErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["falcon-ai"]}, "parameters": [{"name": "connector_id", "in": "path", "required": true, "type": "string"}]}, "/falcon-ai/mcp-connectors/{connector_id}/tools/": {"patch": {"operationId": "falcon-ai_mcp-connectors_tools_partial_update", "description": "Enable or disable specific tools on a connector.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/MCPConnectorTools"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/MCPConnectorDetailResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/FalconErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/FalconErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/FalconErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["falcon-ai"]}, "parameters": [{"name": "connector_id", "in": "path", "required": true, "type": "string"}]}, "/falcon-ai/memory/": {"get": {"operationId": "falcon-ai_memory_list", "description": "List and create workspace memories.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/FalconMemoryListResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/FalconErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["falcon-ai"]}, "post": {"operationId": "falcon-ai_memory_create", "description": "List and create workspace memories.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/FalconMemoryCreate"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/FalconMemoryDetailResponse"}}, "201": {"description": "", "schema": {"$ref": "#/definitions/FalconMemoryDetailResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/FalconErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["falcon-ai"]}, "parameters": []}, "/falcon-ai/memory/{memory_id}/": {"delete": {"operationId": "falcon-ai_memory_delete", "description": "Delete a workspace memory.", "parameters": [], "responses": {"204": {"description": "Memory deleted"}, "403": {"description": "", "schema": {"$ref": "#/definitions/FalconErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/FalconErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["falcon-ai"]}, "parameters": [{"name": "memory_id", "in": "path", "required": true, "type": "string"}]}, "/falcon-ai/messages/{message_id}/feedback/": {"post": {"operationId": "falcon-ai_messages_feedback_create", "description": "Update feedback on a message.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/MessageFeedback"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/MessageFeedbackResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/FalconErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/FalconErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["falcon-ai"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "message_id", "in": "path", "required": true, "type": "string"}]}, "/falcon-ai/quick-analysis/": {"post": {"operationId": "falcon-ai_quick-analysis_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/QuickAnalysis"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/QuickAnalysisResponse"}}, "429": {"description": "", "schema": {"$ref": "#/definitions/FalconErrorResponse"}}, "502": {"description": "", "schema": {"$ref": "#/definitions/FalconErrorResponse"}}, "504": {"description": "", "schema": {"$ref": "#/definitions/FalconErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["falcon-ai"]}, "parameters": []}, "/falcon-ai/skills/": {"get": {"operationId": "falcon-ai_skills_list", "description": "List and create skills.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SkillListResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/FalconErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["falcon-ai"]}, "post": {"operationId": "falcon-ai_skills_create", "description": "List and create skills.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/SkillCreate"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/SkillDetailResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/FalconErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/FalconErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["falcon-ai"]}, "parameters": []}, "/falcon-ai/skills/{skill_id}/": {"get": {"operationId": "falcon-ai_skills_read", "description": "Get, update, or delete a skill.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SkillDetailResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/FalconErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/FalconErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["falcon-ai"]}, "patch": {"operationId": "falcon-ai_skills_partial_update", "description": "Get, update, or delete a skill.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/SkillUpdateRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SkillDetailResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/FalconErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/FalconErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["falcon-ai"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "delete": {"operationId": "falcon-ai_skills_delete", "description": "Get, update, or delete a skill.", "parameters": [], "responses": {"204": {"description": "Skill deleted"}, "403": {"description": "", "schema": {"$ref": "#/definitions/FalconErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/FalconErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["falcon-ai"]}, "parameters": [{"name": "skill_id", "in": "path", "required": true, "type": "string"}]}, "/health/": {"get": {"operationId": "health_list", "description": "GET method for health check.\nReturns 200 OK with a simple status message.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/HealthCheckResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["health"], "x-runtime-response-validation": true}, "parameters": []}, "/integrations/connections/": {"get": {"operationId": "integrations_connections_list", "description": "API endpoints for managing integration connections.", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "page_number", "in": "query", "required": false, "type": "integer", "default": 0, "minimum": 0}, {"name": "page_size", "in": "query", "required": false, "type": "integer", "default": 20, "maximum": 100, "minimum": 1}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/IntegrationConnectionListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/IntegrationErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/IntegrationErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/IntegrationErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["integrations"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "post": {"operationId": "integrations_connections_create", "description": "API endpoints for managing integration connections.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/IntegrationConnectionCreate"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/IntegrationConnectionDetailResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/IntegrationErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/IntegrationErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/IntegrationErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["integrations"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/integrations/connections/validate/": {"post": {"operationId": "integrations_connections_validate_credentials", "description": "Validate platform credentials without creating a connection.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ValidateCredentials"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/IntegrationValidationResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/IntegrationErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/IntegrationErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/IntegrationErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["integrations"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/integrations/connections/{connection_id}/slack/channels/": {"get": {"operationId": "integrations_connections_slack_channels_list", "description": "", "parameters": [{"name": "cursor", "in": "query", "required": false, "type": "string", "maxLength": 512}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SlackChannelsResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["integrations"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "connection_id", "in": "path", "required": true, "type": "string"}]}, "/integrations/connections/{id}/": {"get": {"operationId": "integrations_connections_read", "description": "API endpoints for managing integration connections.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/IntegrationConnectionDetail"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/IntegrationErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/IntegrationErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/IntegrationErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["integrations"]}, "put": {"operationId": "integrations_connections_update", "description": "API endpoints for managing integration connections.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/IntegrationConnectionUpdate"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/IntegrationConnectionDetailResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/IntegrationErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/IntegrationErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/IntegrationErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["integrations"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "patch": {"operationId": "integrations_connections_partial_update", "description": "API endpoints for managing integration connections.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/IntegrationConnectionUpdate"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/IntegrationConnectionDetailResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/IntegrationErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/IntegrationErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/IntegrationErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["integrations"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "delete": {"operationId": "integrations_connections_delete", "description": "API endpoints for managing integration connections.", "parameters": [], "responses": {"204": {"description": ""}, "400": {"description": "", "schema": {"$ref": "#/definitions/IntegrationErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/IntegrationErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/IntegrationErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["integrations"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/integrations/connections/{id}/pause/": {"post": {"operationId": "integrations_connections_pause", "description": "Pause syncing for this connection.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/IntegrationEmptyRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/IntegrationConnectionDetailResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/IntegrationErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/IntegrationErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/IntegrationErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["integrations"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/integrations/connections/{id}/resume/": {"post": {"operationId": "integrations_connections_resume", "description": "Resume syncing for a paused connection.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/IntegrationEmptyRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/IntegrationConnectionDetailResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/IntegrationErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/IntegrationErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/IntegrationErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["integrations"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/integrations/connections/{id}/sync_now/": {"post": {"operationId": "integrations_connections_sync_now", "description": "Trigger an immediate sync for this connection.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/IntegrationEmptyRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/IntegrationMessageResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/IntegrationErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/IntegrationErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/IntegrationErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/IntegrationErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["integrations"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/integrations/slack/install/": {"post": {"operationId": "integrations_slack_install_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/SlackInstall"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SlackInstallResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["integrations"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/integrations/sync-logs/": {"get": {"operationId": "integrations_sync-logs_list", "description": "Read-only viewset for sync logs.", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "page_number", "in": "query", "required": false, "type": "integer", "default": 0, "minimum": 0}, {"name": "page_size", "in": "query", "required": false, "type": "integer", "default": 20, "maximum": 100, "minimum": 1}, {"name": "connection_id", "in": "query", "required": false, "type": "string", "format": "uuid"}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SyncLogListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/IntegrationErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/IntegrationErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/IntegrationErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["integrations"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/integrations/sync-logs/{id}/": {"get": {"operationId": "integrations_sync-logs_read", "description": "Read-only viewset for sync logs.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SyncLog"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/IntegrationErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/IntegrationErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/IntegrationErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["integrations"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/mcp/analytics/summary/": {"get": {"operationId": "mcp_analytics_summary_list", "description": "Usage summary (total calls, sessions, latency).", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/MCPAnalyticsSummaryResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/MCPErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["mcp"]}, "parameters": []}, "/mcp/analytics/timeline/": {"get": {"operationId": "mcp_analytics_timeline_list", "description": "Tool calls over time (hourly buckets).", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/MCPAnalyticsTimelineResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/MCPErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["mcp"]}, "parameters": []}, "/mcp/analytics/tools/": {"get": {"operationId": "mcp_analytics_tools_list", "description": "Per-tool usage breakdown.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/MCPAnalyticsToolsResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/MCPErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["mcp"]}, "parameters": []}, "/mcp/config/": {"get": {"operationId": "mcp_config_list", "description": "Get or update MCP connection configuration.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/MCPConnectionResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/MCPErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["mcp"]}, "put": {"operationId": "mcp_config_update", "description": "Get or update MCP connection configuration.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/MCPConnectionUpdate"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/MCPConnectionResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/MCPErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/MCPErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["mcp"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/mcp/config/tool-groups/": {"get": {"operationId": "mcp_config_tool-groups_list", "description": "Get or update tool group configuration.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/MCPToolGroupsResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/MCPErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/MCPErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["mcp"]}, "put": {"operationId": "mcp_config_tool-groups_update", "description": "Get or update tool group configuration.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/MCPToolGroupConfigUpdate"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/MCPToolGroupsResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/MCPErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["mcp"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/mcp/health/": {"get": {"operationId": "mcp_health_list", "description": "Unauthenticated health check for MCP server.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/MCPHealthResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/MCPErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["mcp"]}, "parameters": []}, "/mcp/internal/tool-call/": {"post": {"operationId": "mcp_internal_tool-call_create", "description": "Execute a tool call via internal API (used by stdio proxy).", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/MCPToolCallRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/MCPToolCallResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/MCPErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/MCPErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/MCPErrorResponse"}}, "429": {"description": "", "schema": {"$ref": "#/definitions/MCPErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/MCPErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["mcp"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/mcp/internal/tools/": {"get": {"operationId": "mcp_internal_tools_list", "description": "List available tools for the authenticated user.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/MCPToolListResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/MCPErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["mcp"]}, "parameters": []}, "/mcp/oauth/approve-info/": {"get": {"operationId": "mcp_oauth_approve-info_list", "summary": "GET /mcp/oauth/approve-info/ - Get approval request details.", "description": "Called by the frontend consent page to display what the client is requesting.\nPublic endpoint - no auth required (just shows what's being requested).", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/MCPOAuthApproveInfoResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/MCPErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/MCPErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["mcp"]}, "parameters": []}, "/mcp/oauth/approve/": {"post": {"operationId": "mcp_oauth_approve_create", "summary": "POST /mcp/oauth/approve/ - Process user approval decision.", "description": "Called by the frontend consent page when the user approves or denies.\nRequires JWT auth (authenticated user).", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/MCPOAuthApproveRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/MCPOAuthRedirectResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/MCPErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/MCPErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/MCPErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["mcp"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/mcp/oauth/authorize/": {"get": {"operationId": "mcp_oauth_authorize_list", "description": "GET /mcp/oauth/authorize/ — Return consent screen data.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/MCPOAuthAuthorizeResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/MCPErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["mcp"]}, "parameters": []}, "/mcp/oauth/consent/": {"post": {"operationId": "mcp_oauth_consent_create", "description": "POST /mcp/oauth/consent/ — Process user consent decision.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/MCPOAuthConsentRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/MCPOAuthRedirectResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/MCPErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/MCPErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["mcp"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/mcp/oauth/token/": {"post": {"operationId": "mcp_oauth_token_create", "description": "POST /mcp/oauth/token/ — Exchange code or refresh token for access token.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/MCPOAuthTokenRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/MCPOAuthTokenResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/MCPOAuthTokenErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/MCPOAuthTokenErrorResponse"}}, "429": {"description": "Too many requests", "schema": {"$ref": "#/definitions/MCPOAuthTokenErrorResponse"}, "headers": {"Retry-After": {"description": "Seconds before retrying the token request.", "type": "integer"}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["mcp"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/mcp/sessions/": {"get": {"operationId": "mcp_sessions_list", "description": "List active and recent MCP sessions.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/MCPSessionListResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/MCPErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["mcp"]}, "parameters": []}, "/mcp/sessions/{session_id}/": {"delete": {"operationId": "mcp_sessions_delete", "description": "Revoke a specific MCP session.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/MCPSessionRevokeResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/MCPErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/MCPErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/MCPErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["mcp"]}, "parameters": [{"name": "session_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/ai-eval-writer/": {"post": {"operationId": "model-hub_ai-eval-writer_create", "description": "POST /model-hub/ai-eval-writer/", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AIEvalWriterRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AIEvalWriterResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/ai-filter/": {"post": {"operationId": "model-hub_ai-filter_create", "summary": "POST /model-hub/ai-filter/", "description": "Request body:\n{\n    \"query\": \"show me LLM evals that are pass/fail\",\n    \"schema\": [\n        {\n            \"field\": \"eval_type\",\n            \"label\": \"Eval Type\",\n            \"type\": \"enum\",\n            \"operators\": [\"is\", \"is_not\"],\n            \"choices\": [\"llm\", \"code\", \"agent\"]\n        },\n        ...\n    ]\n}", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AIFilterRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AIFilterResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "422": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/annotation-queues/": {"get": {"operationId": "model-hub_annotation-queues_list", "description": "", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "status", "in": "query", "required": false, "type": "string"}, {"name": "search", "in": "query", "required": false, "type": "string"}, {"name": "include_counts", "in": "query", "required": false, "type": "boolean"}, {"name": "archived", "in": "query", "required": false, "type": "boolean", "default": false}, {"name": "page_size", "in": "query", "required": false, "type": "integer", "minimum": 1}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/AnnotationQueue"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true}, "post": {"operationId": "model-hub_annotation-queues_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AnnotationQueue"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/AnnotationQueue"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/annotation-queues/for-source/": {"get": {"operationId": "model-hub_annotation-queues_for_source", "description": "Find annotation queues for a given source that the current user can annotate.\nIncludes queues where:\n- The source is a queue item AND the user is an annotator in that queue\n  (regardless of whether the item is explicitly assigned to them)\n\nQuery params:\n  - source_type, source_id  (single source)\n  - OR sources (JSON array of {source_type, source_id} objects for multi-source lookup)\n  - project_id (optional): the project a trace / span drawer shows", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "source_type", "in": "query", "required": false, "type": "string", "enum": ["call_execution", "dataset_row", "observation_span", "prototype_run", "trace", "trace_session"]}, {"name": "source_id", "in": "query", "required": false, "type": "string"}, {"name": "sources", "in": "query", "required": false, "type": "string"}, {"name": "project_id", "in": "query", "description": "Tracer project the trace / span was opened from. The same id can exist in several projects; when supplied, only that project's queue items are listed.", "required": false, "type": "string", "format": "uuid", "x-nullable": true}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/QueueForSourceResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/annotation-queues/get-or-create-default/": {"post": {"operationId": "model-hub_annotation-queues_get_or_create_default", "description": "Get or create the default annotation queue for a project, dataset, or agent definition.\nDefault queues are open to all org members (no annotator restriction).\n\nBody params (one of):\n  - project_id\n  - dataset_id\n  - agent_definition_id", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/QueueDefaultRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/QueueDefaultResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/annotation-queues/{id}/": {"get": {"operationId": "model-hub_annotation-queues_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AnnotationQueue"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "put": {"operationId": "model-hub_annotation-queues_update", "description": "Only managers of the queue may update queue settings.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AnnotationQueue"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AnnotationQueue"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "patch": {"operationId": "model-hub_annotation-queues_partial_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AnnotationQueue"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AnnotationQueue"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "delete": {"operationId": "model-hub_annotation-queues_delete", "summary": "Archive a queue (soft delete).", "description": "``BaseModel.delete()`` flips ``deleted=True`` instead of removing\nthe row. Attached automation rules go dormant (the scheduler\nfilters ``queue__deleted=False``), items stay invisible but\nrecoverable, label bindings preserved.\n\nFor truly destructive removal, use the ``hard-delete`` action\nbelow.", "parameters": [], "responses": {"204": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this annotation queue.", "required": true, "type": "string", "format": "uuid"}]}, "/model-hub/annotation-queues/{id}/add-label/": {"post": {"operationId": "model-hub_annotation-queues_add_label", "description": "Add a label to an annotation queue.\nLabels apply to all sources in the queue's project (for default queues).\nQueue items are created lazily when someone actually annotates.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/QueueLabelRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/QueueAddLabelResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this annotation queue.", "required": true, "type": "string", "format": "uuid"}]}, "/model-hub/annotation-queues/{id}/agreement/": {"get": {"operationId": "model-hub_annotation-queues_agreement", "description": "Calculate inter-annotator agreement metrics.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/QueueAgreementResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this annotation queue.", "required": true, "type": "string", "format": "uuid"}]}, "/model-hub/annotation-queues/{id}/analytics/": {"get": {"operationId": "model-hub_annotation-queues_analytics", "description": "Queue analytics: throughput, annotator performance, label distribution.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/QueueAnalyticsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this annotation queue.", "required": true, "type": "string", "format": "uuid"}]}, "/model-hub/annotation-queues/{id}/export-fields/": {"get": {"operationId": "model-hub_annotation-queues_export_fields", "description": "Return source/label/attribute fields available for dataset export.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/QueueExportFieldsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this annotation queue.", "required": true, "type": "string", "format": "uuid"}]}, "/model-hub/annotation-queues/{id}/export-to-dataset/": {"post": {"operationId": "model-hub_annotation-queues_export_to_dataset", "description": "Export queue items to a dataset using a user-editable column mapping.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/QueueExportToDatasetRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/QueueExportToDatasetResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this annotation queue.", "required": true, "type": "string", "format": "uuid"}]}, "/model-hub/annotation-queues/{id}/export/": {"get": {"operationId": "model-hub_annotation-queues_export_annotations", "description": "Export all items with their annotations.", "parameters": [{"name": "export_format", "in": "query", "required": false, "type": "string", "enum": ["json", "csv"]}, {"name": "status", "in": "query", "required": false, "type": "string"}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/QueueExportAnnotationsResponse"}}, "413": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this annotation queue.", "required": true, "type": "string", "format": "uuid"}]}, "/model-hub/annotation-queues/{id}/hard-delete/": {"post": {"operationId": "model-hub_annotation-queues_hard_delete", "summary": "Permanently remove a queue + everything attached.", "description": "Hard delete cascades through the FK graph (rules, items,\nassignments, scores) via ``on_delete=CASCADE``. There is no\nrecovery — callers must pass ``force=true`` AND the queue's\nexact name as ``confirm_name`` so the action can't fire from\na typo'd request.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/QueueHardDeleteRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/QueueHardDeleteResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this annotation queue.", "required": true, "type": "string", "format": "uuid"}]}, "/model-hub/annotation-queues/{id}/progress/": {"get": {"operationId": "model-hub_annotation-queues_progress", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/QueueProgressResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this annotation queue.", "required": true, "type": "string", "format": "uuid"}]}, "/model-hub/annotation-queues/{id}/remove-label/": {"post": {"operationId": "model-hub_annotation-queues_remove_label", "description": "Remove a label from an annotation queue.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/QueueLabelRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/QueueRemoveLabelResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this annotation queue.", "required": true, "type": "string", "format": "uuid"}]}, "/model-hub/annotation-queues/{id}/restore/": {"post": {"operationId": "model-hub_annotation-queues_restore", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/EmptyRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/QueueStatusResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this annotation queue.", "required": true, "type": "string", "format": "uuid"}]}, "/model-hub/annotation-queues/{id}/update-status/": {"post": {"operationId": "model-hub_annotation-queues_update_status", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/QueueStatusRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/QueueStatusResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this annotation queue.", "required": true, "type": "string", "format": "uuid"}]}, "/model-hub/annotation-queues/{queue_id}/automation-rules/": {"get": {"operationId": "model-hub_annotation-queues_automation-rules_list", "description": "", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/AutomationRule"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "post": {"operationId": "model-hub_annotation-queues_automation-rules_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AutomationRule"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/AutomationRule"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "queue_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/annotation-queues/{queue_id}/automation-rules/{id}/": {"get": {"operationId": "model-hub_annotation-queues_automation-rules_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AutomationRule"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "put": {"operationId": "model-hub_annotation-queues_automation-rules_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AutomationRule"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AutomationRule"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "patch": {"operationId": "model-hub_annotation-queues_automation-rules_partial_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AutomationRule"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AutomationRule"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "delete": {"operationId": "model-hub_annotation-queues_automation-rules_delete", "description": "", "parameters": [], "responses": {"204": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "queue_id", "in": "path", "required": true, "type": "string"}, {"name": "id", "in": "path", "description": "A UUID string identifying this automation rule.", "required": true, "type": "string", "format": "uuid"}]}, "/model-hub/annotation-queues/{queue_id}/automation-rules/{id}/evaluate/": {"post": {"operationId": "model-hub_annotation-queues_automation-rules_evaluate", "summary": "Trigger a manual rule run with a sync-or-async branch.", "description": "Small runs (filter resolves to ≤ ``RULE_RUN_SYNC_THRESHOLD``) finish\nin the HTTP request and return 200 with the result — fast feedback\nfor the common case. Large runs (mostly first-ever runs on backlogs\nor rules with wide filters) hand the work to a Temporal activity and\nreturn 202 immediately. The activity emails creator + queue managers\non completion.\n\nThe peek is a cheap dry-run (``[:cap+1]`` LIMIT, no COUNT(*)) — sub-\n100ms even on 10M+ row trace tables — so this branch costs little\neven when it ends up taking the sync path.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/EmptyRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AutomationRuleEvaluateResponse"}}, "202": {"description": "", "schema": {"$ref": "#/definitions/AutomationRuleEvaluateAcceptedResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "queue_id", "in": "path", "required": true, "type": "string"}, {"name": "id", "in": "path", "description": "A UUID string identifying this automation rule.", "required": true, "type": "string", "format": "uuid"}]}, "/model-hub/annotation-queues/{queue_id}/automation-rules/{id}/preview/": {"get": {"operationId": "model-hub_annotation-queues_automation-rules_preview", "description": "Preview how many items match a rule (dry run).", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AutomationRuleEvaluateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "queue_id", "in": "path", "required": true, "type": "string"}, {"name": "id", "in": "path", "description": "A UUID string identifying this automation rule.", "required": true, "type": "string", "format": "uuid"}]}, "/model-hub/annotation-queues/{queue_id}/items/": {"get": {"operationId": "model-hub_annotation-queues_items_list", "description": "", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "status", "in": "query", "required": false, "type": "array", "items": {"type": "string", "minLength": 1}}, {"name": "source_type", "in": "query", "required": false, "type": "array", "items": {"type": "string", "minLength": 1}}, {"name": "assigned_to", "in": "query", "required": false, "type": "string"}, {"name": "review_status", "in": "query", "required": false, "type": "string"}, {"name": "ordering", "in": "query", "required": false, "type": "string", "enum": ["created_at", "-created_at"]}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/QueueItem"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true}, "post": {"operationId": "model-hub_annotation-queues_items_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/QueueItem"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/QueueItem"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "queue_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/annotation-queues/{queue_id}/items/add-items/": {"post": {"operationId": "model-hub_annotation-queues_items_add_items", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AddItems"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/QueueAddItemsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "413": {"description": "", "schema": {"$ref": "#/definitions/ApiTooLargeError"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "queue_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/annotation-queues/{queue_id}/items/assign/": {"post": {"operationId": "model-hub_annotation-queues_items_assign_items", "description": "Assign items to one or more annotators.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AssignItems"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/QueueAssignItemsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "queue_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/annotation-queues/{queue_id}/items/bulk-remove/": {"post": {"operationId": "model-hub_annotation-queues_items_bulk_remove", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/BulkRemoveItems"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/QueueBulkRemoveItemsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "queue_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/annotation-queues/{queue_id}/items/bulk-review/": {"post": {"operationId": "model-hub_annotation-queues_items_bulk_review", "description": "Approve or send back multiple pending-review items.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/BulkReviewItemsRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/QueueBulkReviewItemsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "queue_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/annotation-queues/{queue_id}/items/next-item/": {"get": {"operationId": "model-hub_annotation-queues_items_next_item", "summary": "Get the next or previous item in the queue.", "description": "Query params:\n  exclude: comma-separated item IDs to skip\n  before:  item ID — returns the item immediately before this one in order\n  review_status: optional review status filter (for reviewer queues)\n  exclude_review_status: optional review status to omit (for annotator queues)\n  include_completed: when true, navigation can visit completed items too", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "exclude", "in": "query", "required": false, "type": "string"}, {"name": "before", "in": "query", "required": false, "type": "string", "format": "uuid"}, {"name": "review_status", "in": "query", "required": false, "type": "string"}, {"name": "exclude_review_status", "in": "query", "required": false, "type": "string"}, {"name": "include_completed", "in": "query", "required": false, "type": "boolean"}, {"name": "view_mode", "in": "query", "required": false, "type": "string"}, {"name": "include_all_annotations", "in": "query", "required": false, "type": "boolean"}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/QueueNextItemResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "queue_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/annotation-queues/{queue_id}/items/{id}/": {"get": {"operationId": "model-hub_annotation-queues_items_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/QueueItem"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "put": {"operationId": "model-hub_annotation-queues_items_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/QueueItem"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/QueueItem"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "patch": {"operationId": "model-hub_annotation-queues_items_partial_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/QueueItem"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/QueueItem"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "delete": {"operationId": "model-hub_annotation-queues_items_delete", "description": "", "parameters": [], "responses": {"204": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "queue_id", "in": "path", "required": true, "type": "string"}, {"name": "id", "in": "path", "description": "A UUID string identifying this queue item.", "required": true, "type": "string", "format": "uuid"}]}, "/model-hub/annotation-queues/{queue_id}/items/{id}/annotate-detail/": {"get": {"operationId": "model-hub_annotation-queues_items_annotate_detail", "description": "Get full annotation workspace data for an item.", "parameters": [{"name": "annotator_id", "in": "query", "required": false, "type": "string", "format": "uuid"}, {"name": "include_completed", "in": "query", "required": false, "type": "boolean"}, {"name": "view_mode", "in": "query", "required": false, "type": "string"}, {"name": "review_status", "in": "query", "required": false, "type": "string"}, {"name": "exclude_review_status", "in": "query", "required": false, "type": "string"}, {"name": "include_all_annotations", "in": "query", "required": false, "type": "boolean"}, {"name": "reserve", "in": "query", "required": false, "type": "boolean"}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/QueueAnnotateDetailResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "queue_id", "in": "path", "required": true, "type": "string"}, {"name": "id", "in": "path", "description": "A UUID string identifying this queue item.", "required": true, "type": "string", "format": "uuid"}]}, "/model-hub/annotation-queues/{queue_id}/items/{id}/annotations/": {"get": {"operationId": "model-hub_annotation-queues_items_annotations_list", "description": "List all annotations for a queue item (across all annotators).", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/QueueItemAnnotationsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "queue_id", "in": "path", "required": true, "type": "string"}, {"name": "id", "in": "path", "description": "A UUID string identifying this queue item.", "required": true, "type": "string", "format": "uuid"}]}, "/model-hub/annotation-queues/{queue_id}/items/{id}/annotations/import/": {"post": {"operationId": "model-hub_annotation-queues_items_annotations_import_annotations", "description": "Import annotations from external sources.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ImportAnnotations"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/QueueImportAnnotationsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "queue_id", "in": "path", "required": true, "type": "string"}, {"name": "id", "in": "path", "description": "A UUID string identifying this queue item.", "required": true, "type": "string", "format": "uuid"}]}, "/model-hub/annotation-queues/{queue_id}/items/{id}/annotations/submit/": {"post": {"operationId": "model-hub_annotation-queues_items_annotations_submit_annotations", "description": "Submit or update annotations for a queue item.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/SubmitAnnotations"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/QueueSubmitAnnotationsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "queue_id", "in": "path", "required": true, "type": "string"}, {"name": "id", "in": "path", "description": "A UUID string identifying this queue item.", "required": true, "type": "string", "format": "uuid"}]}, "/model-hub/annotation-queues/{queue_id}/items/{id}/complete/": {"post": {"operationId": "model-hub_annotation-queues_items_complete_item", "description": "Mark item as completed and return next pending item.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/QueueItemNavigationRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/QueueNavigationResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "queue_id", "in": "path", "required": true, "type": "string"}, {"name": "id", "in": "path", "description": "A UUID string identifying this queue item.", "required": true, "type": "string", "format": "uuid"}]}, "/model-hub/annotation-queues/{queue_id}/items/{id}/discussion/": {"get": {"operationId": "model-hub_annotation-queues_items_discussion_read", "description": "List or create non-blocking discussion comments for a queue item.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/QueueDiscussionResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "post": {"operationId": "model-hub_annotation-queues_items_discussion_create", "description": "List or create non-blocking discussion comments for a queue item.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/DiscussionCommentRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/QueueDiscussionResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "queue_id", "in": "path", "required": true, "type": "string"}, {"name": "id", "in": "path", "description": "A UUID string identifying this queue item.", "required": true, "type": "string", "format": "uuid"}]}, "/model-hub/annotation-queues/{queue_id}/items/{id}/discussion/comments/{comment_id}/": {"patch": {"operationId": "model-hub_annotation-queues_items_discussion_comments_partial_update", "description": "Edit or delete a non-blocking discussion comment.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/DiscussionCommentRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/QueueDiscussionResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "delete": {"operationId": "model-hub_annotation-queues_items_discussion_comments_delete", "description": "Edit or delete a non-blocking discussion comment.", "parameters": [], "responses": {"204": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "queue_id", "in": "path", "required": true, "type": "string"}, {"name": "id", "in": "path", "description": "A UUID string identifying this queue item.", "required": true, "type": "string", "format": "uuid"}, {"name": "comment_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/annotation-queues/{queue_id}/items/{id}/discussion/comments/{comment_id}/reaction/": {"post": {"operationId": "model-hub_annotation-queues_items_discussion_comments_discussion_comment_reaction", "description": "Toggle the current user's reaction on a discussion comment.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/DiscussionReactionRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/QueueDiscussionResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "queue_id", "in": "path", "required": true, "type": "string"}, {"name": "id", "in": "path", "description": "A UUID string identifying this queue item.", "required": true, "type": "string", "format": "uuid"}, {"name": "comment_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/annotation-queues/{queue_id}/items/{id}/discussion/{thread_id}/reopen/": {"post": {"operationId": "model-hub_annotation-queues_items_discussion_reopen_discussion_thread", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/DiscussionThreadStatusRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/QueueDiscussionResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "queue_id", "in": "path", "required": true, "type": "string"}, {"name": "id", "in": "path", "description": "A UUID string identifying this queue item.", "required": true, "type": "string", "format": "uuid"}, {"name": "thread_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/annotation-queues/{queue_id}/items/{id}/discussion/{thread_id}/resolve/": {"post": {"operationId": "model-hub_annotation-queues_items_discussion_resolve_discussion_thread", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/DiscussionThreadStatusRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/QueueDiscussionResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "queue_id", "in": "path", "required": true, "type": "string"}, {"name": "id", "in": "path", "description": "A UUID string identifying this queue item.", "required": true, "type": "string", "format": "uuid"}, {"name": "thread_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/annotation-queues/{queue_id}/items/{id}/release/": {"post": {"operationId": "model-hub_annotation-queues_items_release_reservation", "description": "Release reservation on an item.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/EmptyRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/QueueReleaseReservationResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "queue_id", "in": "path", "required": true, "type": "string"}, {"name": "id", "in": "path", "description": "A UUID string identifying this queue item.", "required": true, "type": "string", "format": "uuid"}]}, "/model-hub/annotation-queues/{queue_id}/items/{id}/review/": {"post": {"operationId": "model-hub_annotation-queues_items_review_item", "description": "Approve, request changes, or leave reviewer feedback on an item.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ReviewItemRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/QueueReviewItemResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "queue_id", "in": "path", "required": true, "type": "string"}, {"name": "id", "in": "path", "description": "A UUID string identifying this queue item.", "required": true, "type": "string", "format": "uuid"}]}, "/model-hub/annotation-queues/{queue_id}/items/{id}/skip/": {"post": {"operationId": "model-hub_annotation-queues_items_skip_item", "description": "Mark item as skipped and return next pending item.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/QueueItemNavigationRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/QueueNavigationResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "queue_id", "in": "path", "required": true, "type": "string"}, {"name": "id", "in": "path", "description": "A UUID string identifying this queue item.", "required": true, "type": "string", "format": "uuid"}]}, "/model-hub/annotation-tasks/": {"get": {"operationId": "model-hub_annotation-tasks_list", "description": "", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "predictive_journey", "in": "query", "description": "Optional AI model id to filter annotation tasks.", "required": false, "type": "string", "format": "uuid"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/AnnotationTask"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/annotation-tasks/{id}/": {"get": {"operationId": "model-hub_annotation-tasks_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AnnotationTask"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/annotations-labels/": {"get": {"operationId": "model-hub_annotations-labels_list", "description": "", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "dataset", "in": "query", "required": false, "type": "string", "format": "uuid"}, {"name": "project_id", "in": "query", "required": false, "type": "string", "format": "uuid"}, {"name": "type", "in": "query", "required": false, "type": "string", "enum": ["text", "numeric", "categorical", "star", "thumbs_up_down"]}, {"name": "search", "in": "query", "required": false, "type": "string"}, {"name": "include_usage_count", "in": "query", "required": false, "type": "boolean"}, {"name": "include_archived", "in": "query", "required": false, "type": "boolean"}, {"name": "archived", "in": "query", "required": false, "type": "boolean"}], "responses": {"200": {"description": "", "schema": {"type": "array", "items": {"$ref": "#/definitions/AnnotationsLabels"}}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "post": {"operationId": "model-hub_annotations-labels_create", "description": "Custom create to provide clearer error responses in GM format.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AnnotationsLabels"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AnnotationLabelCreateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/annotations-labels/{id}/": {"get": {"operationId": "model-hub_annotations-labels_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AnnotationsLabels"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "put": {"operationId": "model-hub_annotations-labels_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AnnotationsLabels"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AnnotationsLabels"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "patch": {"operationId": "model-hub_annotations-labels_partial_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AnnotationsLabels"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AnnotationsLabels"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "delete": {"operationId": "model-hub_annotations-labels_delete", "description": "", "parameters": [], "responses": {"204": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/annotations-labels/{id}/restore/": {"post": {"operationId": "model-hub_annotations-labels_restore", "description": "Restore a soft-deleted (archived) annotation label.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/EmptyRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AnnotationLabelRestoreResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/annotations/": {"get": {"operationId": "model-hub_annotations_list", "description": "", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/Annotations"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "post": {"operationId": "model-hub_annotations_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/Annotations"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/Annotations"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/annotations/bulk_destroy/": {"post": {"operationId": "model-hub_annotations_bulk_destroy", "description": "Bulk delete annotations and their associated data\nExpected input: {\"annotation_ids\": [\"uuid1\", \"uuid2\", ...]}", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/BulkDestroyAnnotationsRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/BulkDestroyAnnotationsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/annotations/preview_annotations/": {"post": {"operationId": "model-hub_annotations_preview_annotations", "description": "Preview the first row of data for specified columns in a dataset.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/PreviewAnnotationsRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PreviewAnnotationsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/annotations/{id}/": {"get": {"operationId": "model-hub_annotations_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/Annotations"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "put": {"operationId": "model-hub_annotations_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/Annotations"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/Annotations"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "patch": {"operationId": "model-hub_annotations_partial_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/Annotations"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/Annotations"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "delete": {"operationId": "model-hub_annotations_delete", "description": "", "parameters": [], "responses": {"204": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/annotations/{id}/annotate_row/": {"get": {"operationId": "model-hub_annotations_annotate_row", "description": "Annotate a specific row with the provided values.", "parameters": [{"name": "row_order", "in": "query", "required": true, "type": "integer", "minimum": 0}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/Annotations"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/annotations/{id}/reset_annotations/": {"post": {"operationId": "model-hub_annotations_reset_annotations", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ResetAnnotationsRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AnnotationActionMessageResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/annotations/{id}/update_cells/": {"post": {"operationId": "model-hub_annotations_update_cells", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UpdateAnnotationCellsRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AnnotationActionMessageResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/api-keys/": {"get": {"operationId": "model-hub_api-keys_list", "description": "", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ApiKeyListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "post": {"operationId": "model-hub_api-keys_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ApiKeyRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ApiKeySuccessResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/api-keys/{id}/": {"get": {"operationId": "model-hub_api-keys_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ApiKeySuccessResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "put": {"operationId": "model-hub_api-keys_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ApiKeyRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ApiKeyResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "patch": {"operationId": "model-hub_api-keys_partial_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ApiKeyRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ApiKeyResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "delete": {"operationId": "model-hub_api-keys_delete", "summary": "Soft-delete an API key.", "description": "ApiKey inherits from BaseModel, so `instance.delete()` sets:\n- deleted=True\n- deleted_at=<timestamp>\nand excludes it from the default manager (`objects`) queries.", "parameters": [], "responses": {"204": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/api/model_parameters/": {"get": {"operationId": "model-hub_api_model_parameters_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ModelParametersResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/api/model_voices/": {"get": {"operationId": "model-hub_api_model_voices_list", "description": "API endpoint to get available voices and formats for a specific TTS model.\nQuery params:\n    - model: Model name (required)", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/LiteLLMModelVoicesResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/api/models_list/": {"get": {"operationId": "model-hub_api_models_list_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ModelHubPaginatedResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/cells/{cell_id}/run-error-localizer/": {"get": {"operationId": "model-hub_cells_run-error-localizer_list", "description": "Poll endpoint — returns the current state of the localizer task\nfor a given cell, including the analysis once completed.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/CellErrorLocalizerResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "post": {"operationId": "model-hub_cells_run-error-localizer_create", "summary": "On-demand error localization for a single dataset cell.", "description": "Use case: in the dataset detail drawer, the user opens an eval cell\nthat doesn't have an `error_analysis` block (because the eval was\nrun before error_localization was enabled, or the user wants a\nfresh run). They click \"Run error localization\" and we:\n\n  1. Look up the cell + its UserEvalMetric (column.source_id) +\n     the EvalTemplate.\n  2. Resolve the metric's `mapping` (template_var → column UUID)\n     against the row's other cells to build `input_data`.\n  3. Pull the eval verdict + reason from `cell.value` /\n     `cell.value_infos`.\n  4. Upsert an `ErrorLocalizerTask(source=DATASET, source_id=cell.id,\n     status=PENDING)` so the existing 30s Temporal schedule picks it\n     up and processes it via `process_single_error_localization`.\n\nReturns the task id + status. The frontend then polls the cell\ndetail / task status endpoint until `error_analysis` lands in\n`cell.value_infos`.\n\nPOST /model-hub/cells/{cell_id}/run-error-localizer/", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ModelHubEmptyRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/CellErrorLocalizerResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "cell_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/column-config/{column_id}/": {"get": {"operationId": "model-hub_column-config_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ColumnConfigResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "column_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/columns/{column_id}/operation-config/": {"get": {"operationId": "model-hub_columns_operation-config_list", "description": "Get the configuration for all operations in a dataset", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/OperationConfigResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "column_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/columns/{column_id}/rerun-operation/": {"post": {"operationId": "model-hub_columns_rerun-operation_create", "description": "Rerun a specific operation with its stored configuration", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/RerunOperationRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/RerunOperationResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "column_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/create_custom_evals/": {"post": {"operationId": "model-hub_create_custom_evals_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/CustomEvalTemplateCreate"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/CustomEvalTemplateCreateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/custom-metric/all/{model_id}/": {"get": {"operationId": "model-hub_custom-metric_all_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/CustomMetricListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "model_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/custom-metric/create/": {"post": {"operationId": "model-hub_custom-metric_create_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/CustomMetricMutationRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ModelHubStatusResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/custom-metric/tag-options/{metric_id}/": {"get": {"operationId": "model-hub_custom-metric_tag-options_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"type": "array", "items": {"$ref": "#/definitions/MetricTagOption"}}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "metric_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/custom-metric/test/": {"post": {"operationId": "model-hub_custom-metric_test_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/CustomMetricTestRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/CustomMetricTestResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/custom-metric/update/": {"post": {"operationId": "model-hub_custom-metric_update_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/CustomMetricMutationRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ModelHubStatusResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/custom-metric/{model_id}/": {"get": {"operationId": "model-hub_custom-metric_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ModelHubPaginatedResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "model_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/custom-models/": {"get": {"operationId": "model-hub_custom-models_list", "description": "Return all the models that belongs to a user organization", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ModelHubPaginatedResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/custom-models/list/": {"get": {"operationId": "model-hub_custom-models_list_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ModelHubPaginatedResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/custom-models/{id}/": {"get": {"operationId": "model-hub_custom-models_read", "description": "Return details regarding a particular model, given his id", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/CustomAIModel"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "post": {"operationId": "model-hub_custom-models_create", "description": "Update custom model details", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/CustomAIModelUpdateRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/CustomAIModel"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/custom_models/create/": {"post": {"operationId": "model-hub_custom_models_create_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/CustomAIModelCreateRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/CustomAIModelCreateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/custom_models/delete/": {"delete": {"operationId": "model-hub_custom_models_delete_delete", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/CustomAIModelDeleteRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ModelHubStringResultResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/custom_models/edit/": {"get": {"operationId": "model-hub_custom_models_edit_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/CustomAIModelEditResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "patch": {"operationId": "model-hub_custom_models_edit_partial_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/CustomAIModelEditRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ModelHubStringResultResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/custom_models/update-baseline/{id}/": {"post": {"operationId": "model-hub_custom_models_update-baseline_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/CustomAIModelBaselineRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ModelHubStatusMessageResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/custom_models/update-metric/{id}/": {"post": {"operationId": "model-hub_custom_models_update-metric_create", "description": "Update default metric of the model given model id in request and information of metric in the body", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/CustomAIModelDefaultMetricRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ModelHubStatusMessageResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/dataset-optimization/": {"get": {"operationId": "model-hub_dataset-optimization_list", "description": "List all dataset optimization runs with table config for dynamic columns.", "parameters": [{"name": "dataset_id", "in": "query", "required": false, "type": "string", "format": "uuid"}, {"name": "column_id", "in": "query", "required": false, "type": "string", "format": "uuid"}, {"name": "develop_id", "in": "query", "required": false, "type": "string", "format": "uuid"}, {"name": "page", "in": "query", "required": false, "type": "integer", "minimum": 1}, {"name": "limit", "in": "query", "required": false, "type": "integer", "minimum": 1}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/DatasetOptimizationList"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true}, "post": {"operationId": "model-hub_dataset-optimization_create", "description": "ViewSet for Dataset Optimization Runs.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/DatasetOptimizationCreate"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/DatasetOptimizationCreate"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/dataset-optimization/{id}/": {"get": {"operationId": "model-hub_dataset-optimization_read", "description": "Get run details; payload matches AgentPromptOptimiserRunViewSet.retrieve().", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DatasetOptimizationDetailApiResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "put": {"operationId": "model-hub_dataset-optimization_update", "description": "ViewSet for Dataset Optimization Runs.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/DatasetOptimization"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DatasetOptimization"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "patch": {"operationId": "model-hub_dataset-optimization_partial_update", "description": "ViewSet for Dataset Optimization Runs.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/DatasetOptimization"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DatasetOptimization"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "delete": {"operationId": "model-hub_dataset-optimization_delete", "description": "ViewSet for Dataset Optimization Runs.", "parameters": [], "responses": {"204": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this optimize dataset.", "required": true, "type": "string", "format": "uuid"}]}, "/model-hub/dataset-optimization/{id}/graph/": {"get": {"operationId": "model-hub_dataset-optimization_graph", "description": "Get graph data for this optimization run.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DatasetOptimization"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this optimize dataset.", "required": true, "type": "string", "format": "uuid"}]}, "/model-hub/dataset-optimization/{id}/steps/": {"get": {"operationId": "model-hub_dataset-optimization_steps", "description": "Get all steps for this optimization run.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DatasetOptimization"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this optimize dataset.", "required": true, "type": "string", "format": "uuid"}]}, "/model-hub/dataset-optimization/{id}/stop/": {"post": {"operationId": "model-hub_dataset-optimization_stop", "description": "Stop a running dataset optimization.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/DatasetOptimization"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/DatasetOptimization"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this optimize dataset.", "required": true, "type": "string", "format": "uuid"}]}, "/model-hub/dataset-optimization/{id}/trial/{trial_id}/": {"get": {"operationId": "model-hub_dataset-optimization_trial_detail", "description": "Get full trial details.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DatasetOptimization"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this optimize dataset.", "required": true, "type": "string", "format": "uuid"}, {"name": "trial_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/dataset-optimization/{id}/trial/{trial_id}/evaluations/": {"get": {"operationId": "model-hub_dataset-optimization_trial_trial_evaluations", "description": "Get evaluations for a trial grouped by eval_metric.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DatasetOptimization"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this optimize dataset.", "required": true, "type": "string", "format": "uuid"}, {"name": "trial_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/dataset-optimization/{id}/trial/{trial_id}/prompt/": {"get": {"operationId": "model-hub_dataset-optimization_trial_trial_prompt", "description": "Get trial prompt and baseline prompt.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DatasetOptimization"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this optimize dataset.", "required": true, "type": "string", "format": "uuid"}, {"name": "trial_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/dataset-optimization/{id}/trial/{trial_id}/scenarios/": {"get": {"operationId": "model-hub_dataset-optimization_trial_trial_scenarios", "description": "Get scenarios (individual evaluation results) for a trial.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DatasetOptimization"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this optimize dataset.", "required": true, "type": "string", "format": "uuid"}, {"name": "trial_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/dataset/columns/{dataset_id}/": {"get": {"operationId": "model-hub_dataset_columns_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DatasetColumnDetailResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "dataset_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/dataset/{dataset_id}/annotation-summary/": {"get": {"operationId": "model-hub_dataset_annotation-summary_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AnnotationSummaryResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "dataset_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/dataset/{dataset_id}/eval-stats/": {"get": {"operationId": "model-hub_dataset_eval-stats_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DatasetEvalStatsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "dataset_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/dataset/{dataset_id}/json-schema/": {"get": {"operationId": "model-hub_dataset_json-schema_list", "description": "API endpoint to get JSON schemas and images metadata for columns in a dataset.\nUsed by frontend for autocomplete suggestions when accessing JSON properties\nand for indexed access to images columns.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DatasetJsonSchemaResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "dataset_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/dataset/{dataset_id}/run-prompt-stats/": {"get": {"operationId": "model-hub_dataset_run-prompt-stats_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DatasetRunPromptStatsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "dataset_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/datasets/compare/get-evals-list/": {"post": {"operationId": "model-hub_datasets_compare_get-evals-list_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/CompareEvalsListRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/CompareEvalListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/datasets/compare/preview-run-eval/": {"post": {"operationId": "model-hub_datasets_compare_preview-run-eval_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ComparePreviewRunEvalRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/EvalPreviewResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/datasets/delete-compare/{compare_id}/": {"get": {"operationId": "model-hub_datasets_delete-compare_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/CompareDatasetRowResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "delete": {"operationId": "model-hub_datasets_delete-compare_delete", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/CompareDatasetDeleteResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "compare_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/datasets/explanation-summary/{dataset_id}/": {"get": {"operationId": "model-hub_datasets_explanation-summary_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DatasetExplanationSummaryResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "dataset_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/datasets/explanation-summary/{dataset_id}/refresh/": {"post": {"operationId": "model-hub_datasets_explanation-summary_refresh_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ModelHubEmptyRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DatasetExplanationSummaryResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "dataset_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/datasets/get-base-columns/": {"get": {"operationId": "model-hub_datasets_get-base-columns_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/BaseColumnsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/datasets/get-compare-row/{compare_id}/{row_id}/": {"get": {"operationId": "model-hub_datasets_get-compare-row_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/CompareDatasetRowResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "delete": {"operationId": "model-hub_datasets_get-compare-row_delete", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/CompareDatasetDeleteResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "compare_id", "in": "path", "required": true, "type": "string"}, {"name": "row_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/datasets/huggingface/detail/": {"post": {"operationId": "model-hub_datasets_huggingface_detail_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/HuggingFaceDatasetDetailRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/HuggingFaceDatasetDetailResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/datasets/huggingface/list/": {"post": {"operationId": "model-hub_datasets_huggingface_list_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/HuggingFaceDatasetListRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/HuggingFaceDatasetListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/datasets/{dataset_id}/add-api-column/": {"post": {"operationId": "model-hub_datasets_add-api-column_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AddApiColumnRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DynamicColumnCreateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "dataset_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/datasets/{dataset_id}/add_vector_db_column/": {"post": {"operationId": "model-hub_datasets_add_vector_db_column_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/VectorDBColumnRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DynamicColumnCreateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "dataset_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/datasets/{dataset_id}/classify-column/": {"post": {"operationId": "model-hub_datasets_classify-column_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ClassifyColumnRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DynamicColumnCreateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "dataset_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/datasets/{dataset_id}/compare-datasets/": {"post": {"operationId": "model-hub_datasets_compare-datasets_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/CompareDataset"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/CompareDatasetResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "dataset_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/datasets/{dataset_id}/compare-datasets/add-eval/": {"post": {"operationId": "model-hub_datasets_compare-datasets_add-eval_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/CompareExperimentEvalRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DevelopDatasetMessageResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "dataset_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/datasets/{dataset_id}/compare-datasets/download/": {"post": {"operationId": "model-hub_datasets_compare-datasets_download_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/CompareDataset"}}], "responses": {"200": {"description": "CSV export", "schema": {"type": "file"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "dataset_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/datasets/{dataset_id}/compare-datasets/start-eval/": {"post": {"operationId": "model-hub_datasets_compare-datasets_start-eval_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/CompareStartEvalsRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DevelopDatasetMessageResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "dataset_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/datasets/{dataset_id}/compare-stats/": {"post": {"operationId": "model-hub_datasets_compare-stats_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/CompareDatasetStatsRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/CompareDatasetStatsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "dataset_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/datasets/{dataset_id}/conditional-column/": {"post": {"operationId": "model-hub_datasets_conditional-column_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ConditionalColumnRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DynamicColumnCreateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "dataset_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/datasets/{dataset_id}/derived-variables/": {"get": {"operationId": "model-hub_datasets_derived-variables_list", "summary": "Get all derived variables from all run prompt columns in a dataset.", "description": "This aggregates derived variables from run prompt columns that\nproduce JSON outputs, making them available for use in other\nprompts, evals, and experiments.\n\nPath params:\n    - dataset_id: UUID of the dataset", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DatasetDerivedVariablesResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "dataset_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/datasets/{dataset_id}/duplicate-rows/": {"post": {"operationId": "model-hub_datasets_duplicate-rows_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/DuplicateRowsRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DuplicateRowsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "dataset_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/datasets/{dataset_id}/duplicate/": {"post": {"operationId": "model-hub_datasets_duplicate_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/DuplicateDatasetRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DuplicateDatasetResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/DatasetLimitCheckFailedError"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "dataset_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/datasets/{dataset_id}/extract-entities/": {"post": {"operationId": "model-hub_datasets_extract-entities_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ExtractEntitiesRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DynamicColumnMessageResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "dataset_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/datasets/{dataset_id}/merge/": {"post": {"operationId": "model-hub_datasets_merge_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/MergeDatasetRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/MergeDatasetResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "dataset_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/datasets/{dataset_id}/preview/{operation_type}/": {"post": {"operationId": "model-hub_datasets_preview_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/PreviewDatasetOperationRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PreviewDatasetOperationResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "dataset_id", "in": "path", "required": true, "type": "string"}, {"name": "operation_type", "in": "path", "required": true, "type": "string"}]}, "/model-hub/delete-eval-template/": {"post": {"operationId": "model-hub_delete-eval-template_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/DeleteEvalTemplate"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ModelHubStringResultResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/develops/add-as-new/": {"post": {"operationId": "model-hub_develops_add-as-new_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AddAsNewDatasetRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DatasetCopyResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/DatasetLimitCheckFailedError"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/develops/add_rows_from_file/": {"post": {"operationId": "model-hub_develops_add_rows_from_file_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AddRowsFromFileRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DevelopDatasetMessageResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/develops/add_rows_sdk/": {"post": {"operationId": "model-hub_develops_add_rows_sdk_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/DatasetSdkRowsRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DatasetSdkRowsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/develops/add_run_prompt_column/": {"post": {"operationId": "model-hub_develops_add_run_prompt_column_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AddRunPrompt"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DevelopDatasetMessageResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/develops/clone-dataset/{dataset_id}/": {"post": {"operationId": "model-hub_develops_clone-dataset_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/CloneDatasetRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DatasetCopyResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/DatasetLimitCheckFailedError"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "dataset_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/develops/create-dataset-from-huggingface/": {"post": {"operationId": "model-hub_develops_create-dataset-from-huggingface_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/HuggingFaceDatasetCreateRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DatasetCreateStartedResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/DatasetLimitCheckFailedError"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/develops/create-dataset-from-local-file/": {"post": {"operationId": "model-hub_develops_create-dataset-from-local-file_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/CreateDatasetFromLocalFileRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/LocalFileDatasetCreateStartedResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/DatasetLimitCheckFailedError"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/develops/create-dataset-manually/": {"post": {"operationId": "model-hub_develops_create-dataset-manually_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ManualDatasetCreateRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ManualDatasetCreateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/DatasetLimitCheckFailedError"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/develops/create-empty-dataset/": {"post": {"operationId": "model-hub_develops_create-empty-dataset_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/CreateEmptyDatasetRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DatasetCreateStartedResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/DatasetLimitCheckFailedError"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/develops/create-synthetic-dataset/": {"post": {"operationId": "model-hub_develops_create-synthetic-dataset_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/SyntheticDatasetCreation"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SyntheticDatasetCreateStartedResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/DatasetLimitCheckFailedError"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/develops/dataset-creation-progress/{dataset_id}/": {"get": {"operationId": "model-hub_develops_dataset-creation-progress_read", "description": "API endpoint to check the progress of dataset creation from file upload", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DatasetCreationProgressResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "dataset_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/develops/delete_dataset/": {"delete": {"operationId": "model-hub_develops_delete_dataset_delete", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/DatasetDelete"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DevelopDatasetMessageResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/develops/edit_run_prompt_column/": {"post": {"operationId": "model-hub_develops_edit_run_prompt_column_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/EditRunPromptColumn"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DevelopDatasetMessageResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/develops/get-cell-data/": {"post": {"operationId": "model-hub_develops_get-cell-data_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/DatasetCellDataRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DatasetCellDataResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/develops/get-datasets-names/": {"get": {"operationId": "model-hub_develops_get-datasets-names_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DatasetNamesResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/develops/get-datasets/": {"get": {"operationId": "model-hub_develops_get-datasets_list", "description": "", "parameters": [{"name": "search_text", "in": "query", "required": false, "type": "string", "default": "", "x-nullable": true}, {"name": "page", "in": "query", "required": false, "type": "integer", "default": 0, "minimum": 0}, {"name": "page_size", "in": "query", "required": false, "type": "integer", "default": 10, "maximum": 100, "minimum": 1}, {"name": "sort", "in": "query", "required": false, "type": "string", "x-nullable": true}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DatasetListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/develops/get-derived-datasets/{dataset_id}/": {"get": {"operationId": "model-hub_develops_get-derived-datasets_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DatasetExplanationSummaryResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "dataset_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/develops/get-huggingface-dataset-config/": {"post": {"operationId": "model-hub_develops_get-huggingface-dataset-config_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/HuggingFaceDatasetConfigRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/HuggingFaceDatasetConfigResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/develops/get-row-diff/": {"post": {"operationId": "model-hub_develops_get-row-diff_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/DatasetRowDiffRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ExperimentRowDiffResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/develops/get_function_list/": {"get": {"operationId": "model-hub_develops_get_function_list_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/EvalFunctionListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/develops/preview_run_prompt_column/": {"post": {"operationId": "model-hub_develops_preview_run_prompt_column_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/PreviewRunPrompt"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/RunPromptColumnPreviewResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/develops/provider-status/": {"get": {"operationId": "model-hub_develops_provider-status_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ProviderStatusResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/develops/retrieve_run_prompt_column_config/": {"get": {"operationId": "model-hub_develops_retrieve_run_prompt_column_config_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/RunPromptColumnConfigResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/develops/retrieve_run_prompt_options/": {"get": {"operationId": "model-hub_develops_retrieve_run_prompt_options_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/RunPromptOptionsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/develops/{dataset_id}/add_columns/": {"post": {"operationId": "model-hub_develops_add_columns_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/DatasetAddColumnsRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DatasetColumnsMutationResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "dataset_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/develops/{dataset_id}/add_empty_columns/": {"post": {"operationId": "model-hub_develops_add_empty_columns_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/DatasetAddEmptyColumnsRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DatasetColumnsMutationResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "dataset_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/develops/{dataset_id}/add_empty_rows/": {"post": {"operationId": "model-hub_develops_add_empty_rows_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/DatasetAddEmptyRowsRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DevelopDatasetMessageResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "dataset_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/develops/{dataset_id}/add_multiple_static_columns/": {"post": {"operationId": "model-hub_develops_add_multiple_static_columns_create", "summary": "Add multiple static columns to a dataset at once.", "description": "Expected request data:\n{\n    \"columns\": [\n        {\n            \"new_column_name\": \"column1\",\n            \"column_type\": \"string\",\n            \"source\": \"OTHERS\"  # optional\n        },\n        {\n            \"new_column_name\": \"column2\",\n            \"column_type\": \"number\",\n            \"source\": \"OTHERS\"  # optional\n        }\n    ]\n}", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/DatasetMultipleStaticColumnsRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DevelopDatasetMessageResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "dataset_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/develops/{dataset_id}/add_rows/": {"post": {"operationId": "model-hub_develops_add_rows_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/DatasetAddRowsRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DevelopDatasetMessageResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "dataset_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/develops/{dataset_id}/add_rows_from_existing_dataset/": {"post": {"operationId": "model-hub_develops_add_rows_from_existing_dataset_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/DatasetAddRowsFromExistingRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DatasetRowsImportedResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "dataset_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/develops/{dataset_id}/add_rows_from_huggingface/": {"post": {"operationId": "model-hub_develops_add_rows_from_huggingface_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/HuggingFaceAddRowsRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DatasetRowsImportMessageResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "dataset_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/develops/{dataset_id}/add_static_column/": {"post": {"operationId": "model-hub_develops_add_static_column_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/DatasetStaticColumnRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DevelopDatasetMessageResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "dataset_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/develops/{dataset_id}/add_synthetic_data/": {"post": {"operationId": "model-hub_develops_add_synthetic_data_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/SyntheticData"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DevelopDatasetMessageResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "dataset_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/develops/{dataset_id}/add_user_eval/": {"post": {"operationId": "model-hub_develops_add_user_eval_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UserEvalMutationRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DevelopDatasetMessageResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "dataset_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/develops/{dataset_id}/delete_column/{column_id}/": {"delete": {"operationId": "model-hub_develops_delete_column_delete", "description": "", "parameters": [], "responses": {"204": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "dataset_id", "in": "path", "required": true, "type": "string"}, {"name": "column_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/develops/{dataset_id}/delete_row/": {"delete": {"operationId": "model-hub_develops_delete_row_delete", "description": "", "parameters": [], "responses": {"204": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "dataset_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/develops/{dataset_id}/delete_template_eval/{eval_id}/": {"delete": {"operationId": "model-hub_develops_delete_template_eval_delete", "description": "", "parameters": [], "responses": {"204": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "dataset_id", "in": "path", "required": true, "type": "string"}, {"name": "eval_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/develops/{dataset_id}/delete_user_eval/{eval_id}/": {"delete": {"operationId": "model-hub_develops_delete_user_eval_delete", "description": "", "parameters": [], "responses": {"204": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "dataset_id", "in": "path", "required": true, "type": "string"}, {"name": "eval_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/develops/{dataset_id}/download_dataset/": {"get": {"operationId": "model-hub_develops_download_dataset_list", "description": "", "parameters": [], "responses": {"200": {"description": "CSV export", "schema": {"type": "file"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "dataset_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/develops/{dataset_id}/edit_and_run_user_eval/{eval_id}/": {"post": {"operationId": "model-hub_develops_edit_and_run_user_eval_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UserEvalUpdateRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DevelopDatasetMessageResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "dataset_id", "in": "path", "required": true, "type": "string"}, {"name": "eval_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/develops/{dataset_id}/edit_dataset_behavior/": {"put": {"operationId": "model-hub_develops_edit_dataset_behavior_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/DatasetBehaviorRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DevelopDatasetMessageResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "dataset_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/develops/{dataset_id}/extract-json-column/": {"post": {"operationId": "model-hub_develops_extract-json-column_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ExtractJsonColumnRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DynamicColumnCreateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "dataset_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/develops/{dataset_id}/get-dataset-table/": {"get": {"operationId": "model-hub_develops_get-dataset-table_list", "description": "", "parameters": [{"name": "filters", "in": "query", "required": false, "type": "string", "default": "[]", "minLength": 1}, {"name": "sort", "in": "query", "required": false, "type": "string", "default": "[]", "minLength": 1}, {"name": "search", "in": "query", "required": false, "type": "string", "default": {}}, {"name": "page_size", "in": "query", "required": false, "type": "integer", "default": 10, "minimum": 1}, {"name": "current_page_index", "in": "query", "required": false, "type": "integer", "default": 0, "minimum": 0}, {"name": "column_config_only", "in": "query", "required": false, "type": "boolean", "default": false}, {"name": "exact_snapshot", "in": "query", "description": "Start an exact MVCC-bound dataset read. Exact reads start at page 0 and return a signed next_cursor when more rows remain.", "required": false, "type": "boolean", "default": false}, {"name": "cursor", "in": "query", "description": "Signed next_cursor from the preceding exact dataset page. Keep the same page_size and current_page_index sequence.", "required": false, "type": "string", "maxLength": 4096, "minLength": 1}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DatasetTableResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "413": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "dataset_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/develops/{dataset_id}/get-row-data/": {"post": {"operationId": "model-hub_develops_get-row-data_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/DatasetRowDataRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DatasetRowDataResponse"}}, "413": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "dataset_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/develops/{dataset_id}/get_eval_structure/{eval_id}/": {"get": {"operationId": "model-hub_develops_get_eval_structure_read", "description": "", "parameters": [{"name": "eval_type", "in": "query", "required": true, "type": "string", "enum": ["preset", "user", "previously_configured"]}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/EvalStructureResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "dataset_id", "in": "path", "required": true, "type": "string"}, {"name": "eval_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/develops/{dataset_id}/get_evals_list/": {"get": {"operationId": "model-hub_develops_get_evals_list_list", "description": "", "parameters": [{"name": "eval_type", "in": "query", "description": "Use user to list evaluations attached to this dataset, including their runnable IDs.", "required": false, "type": "string"}, {"name": "search_text", "in": "query", "required": false, "type": "string"}, {"name": "eval_categories", "in": "query", "required": false, "type": "string"}, {"name": "eval_tags", "in": "query", "required": false, "type": "array", "items": {"type": "string", "minLength": 1}}, {"name": "use_cases", "in": "query", "required": false, "type": "array", "items": {"type": "string", "minLength": 1}}, {"name": "experiment_id", "in": "query", "required": false, "type": "string", "format": "uuid"}, {"name": "order", "in": "query", "required": false, "type": "string"}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/EvalListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "dataset_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/develops/{dataset_id}/preview_run_eval/": {"post": {"operationId": "model-hub_develops_preview_run_eval_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/PreviewRunEvalRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/EvalPreviewResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "dataset_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/develops/{dataset_id}/start_evals_process/": {"post": {"operationId": "model-hub_develops_start_evals_process_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/StartEvalsProcessRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DevelopDatasetMessageResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "dataset_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/develops/{dataset_id}/stop_user_eval/{eval_id}/": {"post": {"operationId": "model-hub_develops_stop_user_eval_create", "summary": "POST /develops/<dataset_id>/stop_user_eval/<eval_id>/\nStops a running evaluation by setting its status to Completed.", "description": "Accepts optional experiment_id in the body. When present, the eval is\nlooked up via source_id=experiment_id (experiment-scoped UserEvalMetric)\nand cells are updated across both base columns (source_id=eval_id) and\nper-EDT columns (source_id ending with `-sourceid-{eval_id}`).", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/StopUserEvalRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DevelopDatasetMessageResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "dataset_id", "in": "path", "required": true, "type": "string"}, {"name": "eval_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/develops/{dataset_id}/synthetic-config/": {"get": {"operationId": "model-hub_develops_synthetic-config_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SyntheticDatasetConfigResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "dataset_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/develops/{dataset_id}/update-synthetic-config/": {"put": {"operationId": "model-hub_develops_update-synthetic-config_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/SyntheticDatasetConfig"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SyntheticDatasetUpdateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "dataset_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/develops/{dataset_id}/update_cell_value/": {"post": {"operationId": "model-hub_develops_update_cell_value_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/DatasetUpdateCellValueRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DevelopDatasetMessageResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "dataset_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/develops/{dataset_id}/update_column_name/{column_id}/": {"put": {"operationId": "model-hub_develops_update_column_name_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/DatasetUpdateColumnNameRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DevelopDatasetMessageResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "dataset_id", "in": "path", "required": true, "type": "string"}, {"name": "column_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/develops/{dataset_id}/update_column_type/{column_id}/": {"put": {"operationId": "model-hub_develops_update_column_type_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/DatasetUpdateColumnTypeRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ColumnTypeConversionResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "dataset_id", "in": "path", "required": true, "type": "string"}, {"name": "column_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/develops/{exp_dataset_id}/create-dataset/": {"post": {"operationId": "model-hub_develops_create-dataset_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/CreateDatasetFromExperimentRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DevelopDatasetMessageResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/DatasetLimitCheckFailedError"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "exp_dataset_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/develops/{experiment_dataset_id}/get-experiment-dataset-table/": {"get": {"operationId": "model-hub_develops_get-experiment-dataset-table_list", "description": "", "parameters": [{"name": "page_size", "in": "query", "required": false, "type": "integer", "default": 10, "maximum": 100, "minimum": 1}, {"name": "current_page_index", "in": "query", "required": false, "type": "integer", "default": 0, "minimum": 0}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DatasetTableResponse"}}, "413": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "422": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "experiment_dataset_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/duplicate-eval-template/": {"post": {"operationId": "model-hub_duplicate-eval-template_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/DuplicateEvalTemplate"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DuplicateEvalTemplateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/embeddings/": {"get": {"operationId": "model-hub_embeddings_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/EmbeddingsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/embeddings/{type}/": {"get": {"operationId": "model-hub_embeddings_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/EmbeddingsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "type", "in": "path", "required": true, "type": "string"}]}, "/model-hub/eval-groups/": {"get": {"operationId": "model-hub_eval-groups_list", "summary": "List all eval groups for the user's organization.", "description": "Pure routing: three independent bulk reads in this method (main\nEvalGroup queryset, EvalGroup.eval_templates through-table, and\nEvalTemplate) all route to DATABASE_FOR_EVAL_GROUP_LIST when\n\"feature:eval_group_list\" is opted in. No query semantics change.", "parameters": [{"name": "name", "in": "query", "required": false, "type": "string"}, {"name": "page_number", "in": "query", "required": false, "type": "integer", "default": 0, "minimum": 0}, {"name": "page_size", "in": "query", "required": false, "type": "integer", "default": 10, "minimum": 1}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/EvalGroup"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true}, "post": {"operationId": "model-hub_eval-groups_create", "description": "ViewSet for managing EvalGroup operations.\nProvides CRUD operations with organization-level isolation.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/EvalGroup"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/EvalGroup"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/eval-groups/apply-eval-group/": {"post": {"operationId": "model-hub_eval-groups_apply_eval_group", "description": "ViewSet for managing EvalGroup operations.\nProvides CRUD operations with organization-level isolation.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/EvalGroup"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/EvalGroup"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/eval-groups/edit-eval-list/": {"post": {"operationId": "model-hub_eval-groups_edit_eval_list", "description": "ViewSet for managing EvalGroup operations.\nProvides CRUD operations with organization-level isolation.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/EvalGroup"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/EvalGroup"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/eval-groups/{id}/": {"get": {"operationId": "model-hub_eval-groups_read", "description": "Retrieve a specific eval group", "parameters": [{"name": "name", "in": "query", "required": false, "type": "string"}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/EvalGroup"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true}, "put": {"operationId": "model-hub_eval-groups_update", "description": "Update a eval group", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/EvalGroup"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/EvalGroup"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "patch": {"operationId": "model-hub_eval-groups_partial_update", "description": "Partially update a prompt base template", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/EvalGroup"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/EvalGroup"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "delete": {"operationId": "model-hub_eval-groups_delete", "description": "Delete a eval group (soft delete)", "parameters": [], "responses": {"204": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/eval-playground/": {"post": {"operationId": "model-hub_eval-playground_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/EvalPlayGround"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/EvalExecutionResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/eval-playground/feedback/": {"post": {"operationId": "model-hub_eval-playground_feedback_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/EvalPlayGroundFeedback"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/EvalPlaygroundFeedbackResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/eval-sdk-code/": {"get": {"operationId": "model-hub_eval-sdk-code_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/EvalCodeSnippetResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/eval-summary-templates/": {"get": {"operationId": "model-hub_eval-summary-templates_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/EvalSummaryTemplateListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "post": {"operationId": "model-hub_eval-summary-templates_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/EvalSummaryTemplateMutationRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/EvalSummaryTemplateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/eval-summary-templates/{template_id}/": {"put": {"operationId": "model-hub_eval-summary-templates_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/EvalSummaryTemplateMutationRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/EvalSummaryTemplateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "delete": {"operationId": "model-hub_eval-summary-templates_delete", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/EvalSummaryTemplateDeleteResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "template_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/eval-template/create/": {"post": {"operationId": "model-hub_eval-template_create_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/EvalTemplate"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ModelHubStringResultResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/eval-templates/bulk-delete/": {"post": {"operationId": "model-hub_eval-templates_bulk-delete_create", "summary": "POST /model-hub/eval-templates/bulk-delete/", "description": "Soft-delete multiple eval templates. Only user-owned templates can be deleted.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/EvalTemplateBulkDeleteRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/EvalTemplateBulkDeleteResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/eval-templates/composite/execute-adhoc/": {"post": {"operationId": "model-hub_eval-templates_composite_execute-adhoc_create", "summary": "POST /model-hub/eval-templates/composite/execute-adhoc/", "description": "Execute a composite eval configuration without persisting it. Used by\nthe eval create page so users can test a composite (selected children +\naggregation settings) before clicking Save. Builds an unsaved parent\ntemplate and unsaved child links in memory and reuses\n`execute_composite_children_sync` so semantics match the persisted path.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/CompositeEvalAdhocExecuteRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/CompositeEvalExecuteResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/eval-templates/create-composite/": {"post": {"operationId": "model-hub_eval-templates_create-composite_create", "summary": "POST /model-hub/eval-templates/create-composite/", "description": "Create a composite eval from a list of existing eval template IDs.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/CompositeEvalCreateRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/CompositeEvalCreateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/eval-templates/create-v2/": {"post": {"operationId": "model-hub_eval-templates_create-v2_create", "summary": "POST /model-hub/eval-templates/create-v2/", "description": "Create a single eval template with the revamped schema.\nSupports the new scoring fields (pass_threshold, choice_scores, output_type_normalized).", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/EvalTemplateCreateV2Request"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/EvalTemplateCreateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/eval-templates/list-charts/": {"post": {"operationId": "model-hub_eval-templates_list-charts_create", "summary": "POST /model-hub/eval-templates/list-charts/", "description": "Returns 30-day chart data (run counts + error rates) for a list of template IDs.\nUses ClickHouse for fast analytics. Called separately from the list API so the\ntable renders instantly while charts load async.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/EvalTemplateListChartsRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/EvalTemplateListChartsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/eval-templates/list/": {"post": {"operationId": "model-hub_eval-templates_list_create", "summary": "POST /model-hub/eval-templates/list/", "description": "Returns paginated eval template list with filtering, search, and 30-day metrics.\nAll inputs and outputs are validated with Pydantic schemas.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/EvalListRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/EvalTemplateListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/eval-templates/{template_id}/composite/": {"get": {"operationId": "model-hub_eval-templates_composite_list", "summary": "GET /model-hub/eval-templates/<id>/composite/", "description": "Get composite eval detail with its children.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/CompositeEvalDetailResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "patch": {"operationId": "model-hub_eval-templates_composite_partial_update", "summary": "PATCH — partial update of a composite eval.", "description": "Supported fields (all optional):\n  name, description, tags,\n  aggregation_enabled, aggregation_function,\n  child_template_ids (replaces the child list),\n  child_weights (map of child_id -> weight).", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/CompositeEvalUpdateRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/CompositeEvalDetailResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "template_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/eval-templates/{template_id}/composite/execute/": {"post": {"operationId": "model-hub_eval-templates_composite_execute_create", "summary": "POST /model-hub/eval-templates/<template_id>/composite/execute/", "description": "Execute all child evals in a composite and optionally aggregate results.\nThin wrapper around `execute_composite_children_sync` — the same helper\nthe dataset/experiment `CompositeEvaluationRunner` uses, so aggregation\nsemantics stay consistent across surfaces.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/CompositeEvalExecuteRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/CompositeEvalExecuteResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "template_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/eval-templates/{template_id}/detail/": {"get": {"operationId": "model-hub_eval-templates_detail_list", "summary": "GET /model-hub/eval-templates/<id>/detail/", "description": "Fetch a single eval template with all revamped fields.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/EvalTemplateDetailResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "template_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/eval-templates/{template_id}/feedback-list/": {"get": {"operationId": "model-hub_eval-templates_feedback-list_list", "summary": "GET /model-hub/eval-templates/<id>/feedback-list/", "description": "Paginated feedback list with user info.\nQuery params: page (0-based), page_size", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/EvalFeedbackListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "template_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/eval-templates/{template_id}/ground-truth/": {"get": {"operationId": "model-hub_eval-templates_ground-truth_list", "description": "GET /model-hub/eval-templates/<id>/ground-truth/", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/GroundTruthListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "template_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/eval-templates/{template_id}/ground-truth/upload/": {"post": {"operationId": "model-hub_eval-templates_ground-truth_upload_create", "summary": "POST /model-hub/eval-templates/<id>/ground-truth/upload/", "description": "Supports two modes:\n1. JSON body: { name, columns, data, ... }\n2. Multipart file upload: file (CSV/XLS/XLSX/JSON) + name field", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/GroundTruthUploadRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/GroundTruthUploadResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "template_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/eval-templates/{template_id}/update/": {"put": {"operationId": "model-hub_eval-templates_update_update", "summary": "PUT /model-hub/eval-templates/<id>/update/", "description": "Update an eval template. Only user-owned templates can be updated.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/EvalTemplateUpdateV2Request"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/EvalTemplateUpdateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "template_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/eval-templates/{template_id}/usage/": {"get": {"operationId": "model-hub_eval-templates_usage_list", "summary": "GET /model-hub/eval-templates/<id>/usage/", "description": "Returns usage stats, chart data, and the paginated usage table.\nQuery params: page (0-based), page_size, period\n(30m|6h|1d|7d|30d|90d|180d|365d), optional start_date/end_date pair\n(overrides period — sent by the FE for Today / Yesterday / Custom).\n\nThe response is rendered through\n``EvalUsageStatsResponseResultSerializer(instance=...).data`` at the\nboundary so shape drift surfaces here instead of shipping silently.\n\nCounts and lists only successful runs from the usage ledger\n(``APICallLog`` rows with status ``success``), from every source: tasks,\nplayground, composites, datasets and experiments. Errored and skipped runs\nare not usage but stay in the eval logs (task logs, template eval logs);\nan in-flight run counts once it succeeds. ``error_count`` is therefore 0\nand ``pass_rate`` 100 whenever there are runs; both remain for\ncompatibility.", "parameters": [{"name": "page", "in": "query", "required": false, "type": "integer", "default": 0, "maximum": 10000, "minimum": 0}, {"name": "page_size", "in": "query", "required": false, "type": "integer", "default": 25, "maximum": 100, "minimum": 1}, {"name": "period", "in": "query", "required": false, "type": "string", "enum": ["30m", "6h", "1d", "7d", "30d", "90d", "180d", "365d"], "default": "30d"}, {"name": "start_date", "in": "query", "required": false, "type": "string", "format": "date-time", "x-nullable": true}, {"name": "end_date", "in": "query", "required": false, "type": "string", "format": "date-time", "x-nullable": true}, {"name": "refresh", "in": "query", "required": false, "type": "boolean", "default": false}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/EvalUsageStatsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "template_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/eval-templates/{template_id}/versions/": {"get": {"operationId": "model-hub_eval-templates_versions_list", "summary": "GET /model-hub/eval-templates/<id>/versions/", "description": "List all versions for an eval template.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/EvalTemplateVersionListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "template_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/eval-templates/{template_id}/versions/create/": {"post": {"operationId": "model-hub_eval-templates_versions_create_create", "summary": "POST /model-hub/eval-templates/<id>/versions/create/", "description": "Create a new version snapshot from the current template state.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/EvalTemplateVersionCreateRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/EvalTemplateVersionResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "template_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/eval-templates/{template_id}/versions/{version_id}/restore/": {"post": {"operationId": "model-hub_eval-templates_versions_restore_create", "summary": "POST /model-hub/eval-templates/<id>/versions/<version_id>/restore/", "description": "Restore a version by creating a new version with the old version's config.\nDoes NOT modify the old version — creates a new one on top.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ModelHubEmptyRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/EvalTemplateVersionRestoreResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "template_id", "in": "path", "required": true, "type": "string"}, {"name": "version_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/eval-templates/{template_id}/versions/{version_id}/set-default/": {"put": {"operationId": "model-hub_eval-templates_versions_set-default_update", "summary": "PUT /model-hub/eval-templates/<id>/versions/<version_id>/set-default/", "description": "Set a specific version as the default (active) version.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ModelHubEmptyRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/EvalTemplateVersionResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "template_id", "in": "path", "required": true, "type": "string"}, {"name": "version_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/eval-user-template/create/": {"post": {"operationId": "model-hub_eval-user-template_create_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/EvalUserTemplate"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ModelHubStringResultResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/evaluate-rows/": {"post": {"operationId": "model-hub_evaluate-rows_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/SingleRowEvaluationRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SingleRowEvaluationResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/experiment-detail/": {"get": {"operationId": "model-hub_experiment-detail_list", "description": "", "parameters": [{"name": "search", "in": "query", "description": "A search term.", "required": false, "type": "string"}, {"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/ExperimentsTableGet"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/experiments/": {"get": {"operationId": "model-hub_experiments_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ExperimentLegacyDetailResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "post": {"operationId": "model-hub_experiments_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ExperimentsTable"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ExperimentStringResultResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "put": {"operationId": "model-hub_experiments_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ExperimentsTableUpdate"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ExperimentStringResultResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/experiments/data/": {"get": {"operationId": "model-hub_experiments_data_list", "description": "", "parameters": [{"name": "created_at", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "status", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "dataset_id", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "ordering", "in": "query", "description": "Which field to use when ordering the results.", "required": false, "type": "string"}, {"name": "search", "in": "query", "description": "A search term.", "required": false, "type": "string"}, {"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/ExperimentList"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/experiments/delete/": {"delete": {"operationId": "model-hub_experiments_delete_delete", "description": "", "parameters": [], "responses": {"204": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/experiments/re-run/": {"post": {"operationId": "model-hub_experiments_re-run_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ExperimentRerunRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ExperimentStringResultResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/experiments/v2/": {"post": {"operationId": "model-hub_experiments_v2_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ExperimentCreateV2"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ExperimentStringResultResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/experiments/v2/delete/": {"delete": {"operationId": "model-hub_experiments_v2_delete_delete", "description": "V2 delete: org-scoped, cancels workflows, cleans up columns & EDTs.", "parameters": [], "responses": {"204": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/experiments/v2/list/": {"get": {"operationId": "model-hub_experiments_v2_list_list", "description": "V2 experiment list with filtering, search, and pagination.", "parameters": [{"name": "created_at", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "status", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "dataset_id", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "search", "in": "query", "description": "A search term.", "required": false, "type": "string"}, {"name": "ordering", "in": "query", "description": "Which field to use when ordering the results.", "required": false, "type": "string"}, {"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/ExperimentListV2"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/experiments/v2/re-run/": {"post": {"operationId": "model-hub_experiments_v2_re-run_create", "summary": "V2 re-run: org-scoped, uses V2 Temporal workflow.", "description": "No manual workflow cancel needed — Temporal's TERMINATE_IF_RUNNING ID\nreuse policy automatically cancels any running workflow with the same ID.\nCell reset is handled by the workflow itself (cleanup + setup activities).", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ExperimentRerunRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ExperimentStringResultResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/experiments/v2/row-diff/": {"post": {"operationId": "model-hub_experiments_v2_row-diff_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/DatasetRowDiffRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ExperimentRowDiffResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/experiments/v2/suggest-name/{dataset_id}/": {"get": {"operationId": "model-hub_experiments_v2_suggest-name_read", "description": "Generate a suggested experiment name for a dataset.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ExperimentNameSuggestionResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "dataset_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/experiments/v2/validate-name/": {"get": {"operationId": "model-hub_experiments_v2_validate-name_list", "description": "Validate that an experiment name is unique within a dataset.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ExperimentNameValidationResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/experiments/v2/{experiment_id}/": {"get": {"operationId": "model-hub_experiments_v2_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ExperimentV2DetailResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "put": {"operationId": "model-hub_experiments_v2_update", "summary": "Update a V2 experiment with diff-based selective re-run.", "description": "Editable fields: column_id, prompt_config, user_eval_metrics.\nRe-run triggers (determined by fingerprint diffs, not field presence):\n- prompt_config has new/modified entries → re-run those configs + ALL dependent evals\n- user_eval_metrics has new/modified entries → re-run only those evals\n- column_id changed → delete old base eval columns, re-run base evals\n- If FE sends unchanged data, diffs return empty → no re-run", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ExperimentUpdateV2"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ExperimentV2DetailResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "experiment_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/experiments/v2/{experiment_id}/compare-experiments/": {"post": {"operationId": "model-hub_experiments_v2_compare-experiments_create", "description": "V2 compare view: reads from experiment_datasets FK + snapshot_dataset.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ExperimentComparisonWeightsRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ExperimentDatasetComparisonResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "experiment_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/experiments/v2/{experiment_id}/comparisons/": {"get": {"operationId": "model-hub_experiments_v2_comparisons_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ExperimentComparisonDetailsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "experiment_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/experiments/v2/{experiment_id}/derived-variables/": {"get": {"operationId": "model-hub_experiments_v2_derived-variables_list", "description": "Get derived variables from run prompt columns in an experiment's snapshot dataset.\nDelegates to the existing get_dataset_derived_variables() service function.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ExperimentDerivedVariablesResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "experiment_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/experiments/v2/{experiment_id}/download/": {"get": {"operationId": "model-hub_experiments_v2_download_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"description": "CSV file download.", "type": "file"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "experiment_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/experiments/v2/{experiment_id}/evaluations/{evaluation_id}/stats/": {"get": {"operationId": "model-hub_experiments_v2_evaluations_stats_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ExperimentEvaluationStatsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "experiment_id", "in": "path", "required": true, "type": "string"}, {"name": "evaluation_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/experiments/v2/{experiment_id}/feedback/": {"post": {"operationId": "model-hub_experiments_v2_feedback_create", "description": "Create a feedback record scoped to an experiment.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/Feedback"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ExperimentFeedbackCreateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "experiment_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/experiments/v2/{experiment_id}/feedback/get-feedback-details/": {"get": {"operationId": "model-hub_experiments_v2_feedback_get-feedback-details_list", "description": "Get previous feedback details for a metric+row in an experiment.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ExperimentFeedbackDetailsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "experiment_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/experiments/v2/{experiment_id}/feedback/get-template/": {"get": {"operationId": "model-hub_experiments_v2_feedback_get-template_list", "description": "Get evaluation template details for rendering the feedback form.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ExperimentFeedbackTemplateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "experiment_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/experiments/v2/{experiment_id}/feedback/submit-feedback/": {"post": {"operationId": "model-hub_experiments_v2_feedback_submit-feedback_create", "description": "Submit feedback action — triggers temporal eval rerun for experiments.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ExperimentFeedbackSubmitRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ExperimentFeedbackSubmitResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "experiment_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/experiments/v2/{experiment_id}/json-schema/": {"get": {"operationId": "model-hub_experiments_v2_json-schema_list", "description": "Get JSON schemas and images metadata for columns in an experiment's snapshot dataset.\nDelegates to the shared get_json_column_schemas() function.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ExperimentJsonSchemaResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "experiment_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/experiments/v2/{experiment_id}/rerun-cells/": {"post": {"operationId": "model-hub_experiments_v2_rerun-cells_create", "summary": "Rerun specific cells or columns in a V2 experiment.", "description": "Accepts source_ids (EDT IDs for full column rerun) and/or\ncells ({source_id, row_id} pairs for individual cell rerun).\nResets affected output cells and dependent eval cells to RUNNING,\nthen starts a RerunCellsV2Workflow.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ExperimentRerunCells"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ExperimentWorkflowResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "experiment_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/experiments/v2/{experiment_id}/rows/": {"get": {"operationId": "model-hub_experiments_v2_rows_list", "description": "", "parameters": [{"name": "page_size", "in": "query", "required": false, "type": "integer", "default": 10, "maximum": 100, "minimum": 1}, {"name": "current_page_index", "in": "query", "required": false, "type": "integer", "default": 0, "minimum": 0}, {"name": "column_config_only", "in": "query", "required": false, "type": "boolean", "default": false}, {"name": "get_diff", "in": "query", "required": false, "type": "boolean", "default": false}, {"name": "search", "in": "query", "required": false, "type": "string", "default": "", "maxLength": 512}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ExperimentTableRowsResponse"}}, "413": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "422": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "experiment_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/experiments/v2/{experiment_id}/rows/{row_id}/": {"get": {"operationId": "model-hub_experiments_v2_rows_read", "description": "", "parameters": [{"name": "page_size", "in": "query", "required": false, "type": "integer", "default": 10, "maximum": 100, "minimum": 1}, {"name": "current_page_index", "in": "query", "required": false, "type": "integer", "default": 0, "minimum": 0}, {"name": "column_config_only", "in": "query", "required": false, "type": "boolean", "default": false}, {"name": "get_diff", "in": "query", "required": false, "type": "boolean", "default": false}, {"name": "search", "in": "query", "required": false, "type": "string", "default": "", "maxLength": 512}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ExperimentTableRowsResponse"}}, "413": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "422": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "experiment_id", "in": "path", "required": true, "type": "string"}, {"name": "row_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/experiments/v2/{experiment_id}/stats/": {"get": {"operationId": "model-hub_experiments_v2_stats_list", "description": "Stats view for V2 experiments that read from snapshot_dataset.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ExperimentStatsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "experiment_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/experiments/v2/{experiment_id}/stop/": {"post": {"operationId": "model-hub_experiments_v2_stop_create", "summary": "Stop a running V2 experiment.", "description": "Cancels all Temporal workflows (main + reruns). DB cleanup (marking\nRUNNING cells as ERROR, columns/EDTs as FAILED, experiment as CANCELLED)\nis handled by each workflow's CancelledError handler via the\nstop_experiment_cleanup_activity.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ModelHubEmptyRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ExperimentStopResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "experiment_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/experiments/{experiment_id}/": {"get": {"operationId": "model-hub_experiments_read", "description": "", "parameters": [{"name": "page_size", "in": "query", "required": false, "type": "integer", "default": 10, "maximum": 100, "minimum": 1}, {"name": "current_page_index", "in": "query", "required": false, "type": "integer", "default": 0, "minimum": 0}, {"name": "column_config_only", "in": "query", "required": false, "type": "boolean", "default": false}, {"name": "get_diff", "in": "query", "required": false, "type": "boolean", "default": false}, {"name": "search", "in": "query", "required": false, "type": "string", "default": "", "maxLength": 512}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ExperimentTableRowsResponse"}}, "413": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "422": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "experiment_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/experiments/{experiment_id}/add-eval/": {"post": {"operationId": "model-hub_experiments_add-eval_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UserEvalMutationRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ExperimentAddEvalResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "experiment_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/experiments/{experiment_id}/compare-experiments/": {"post": {"operationId": "model-hub_experiments_compare-experiments_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ExperimentComparisonWeightsRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ExperimentDatasetComparisonResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "experiment_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/experiments/{experiment_id}/comparisons/": {"get": {"operationId": "model-hub_experiments_comparisons_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ExperimentComparisonDetailsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "experiment_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/experiments/{experiment_id}/download/": {"get": {"operationId": "model-hub_experiments_download_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"description": "CSV file download.", "type": "file"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "experiment_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/experiments/{experiment_id}/evaluations/{evaluation_id}/stats/": {"get": {"operationId": "model-hub_experiments_evaluations_stats_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ExperimentEvaluationStatsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "experiment_id", "in": "path", "required": true, "type": "string"}, {"name": "evaluation_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/experiments/{experiment_id}/run-evaluations/": {"post": {"operationId": "model-hub_experiments_run-evaluations_create", "description": "Request body format:\n{\n    \"eval_template_ids\": [\"uuid1\", \"uuid2\", ...]\n}", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ExperimentAdditionalEvaluationsRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ExperimentMessageResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "experiment_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/experiments/{experiment_id}/stats/": {"get": {"operationId": "model-hub_experiments_stats_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ExperimentStatsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "experiment_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/experiments/{experiment_id}/{row_id}/": {"get": {"operationId": "model-hub_experiments_read", "description": "", "parameters": [{"name": "page_size", "in": "query", "required": false, "type": "integer", "default": 10, "maximum": 100, "minimum": 1}, {"name": "current_page_index", "in": "query", "required": false, "type": "integer", "default": 0, "minimum": 0}, {"name": "column_config_only", "in": "query", "required": false, "type": "boolean", "default": false}, {"name": "get_diff", "in": "query", "required": false, "type": "boolean", "default": false}, {"name": "search", "in": "query", "required": false, "type": "string", "default": "", "maxLength": 512}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ExperimentTableRowsResponse"}}, "413": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "422": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "experiment_id", "in": "path", "required": true, "type": "string"}, {"name": "row_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/feedback/": {"get": {"operationId": "model-hub_feedback_list", "description": "", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/Feedback"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "post": {"operationId": "model-hub_feedback_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/Feedback"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/Feedback"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/feedback/get-feedback-details/": {"get": {"operationId": "model-hub_feedback_get_feedback_details", "description": "Get feedback details based on filters like user_eval_metric_id, row_id, etc.", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/FeedbackDetailsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/feedback/get-feedback-summary/": {"get": {"operationId": "model-hub_feedback_get_feedback_summary", "description": "Get summary statistics for feedback on a specific metric", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/Feedback"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/feedback/get_template/": {"get": {"operationId": "model-hub_feedback_get_template", "description": "Get evaluation template details based on user_eval_metric_id.", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/FeedbackTemplateResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/feedback/submit-feedback/": {"post": {"operationId": "model-hub_feedback_submit_feedback_action", "description": "Submit feedback action for re-tuning or re-calculating metrics", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/Feedback"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/Feedback"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/feedback/{id}/": {"get": {"operationId": "model-hub_feedback_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/Feedback"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "put": {"operationId": "model-hub_feedback_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/Feedback"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/Feedback"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "patch": {"operationId": "model-hub_feedback_partial_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/Feedback"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/Feedback"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "delete": {"operationId": "model-hub_feedback_delete", "description": "", "parameters": [], "responses": {"204": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/get-column-values/": {"post": {"operationId": "model-hub_get-column-values_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ColumnValuesRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ColumnValuesResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/get-eval-config": {"get": {"operationId": "model-hub_get-eval-config_list", "description": "", "parameters": [{"name": "eval_id", "in": "query", "required": true, "type": "string", "format": "uuid"}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ModelHubEvalConfigResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/get-eval-logs": {"get": {"operationId": "model-hub_get-eval-logs_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/EvalApiLogRowResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "patch": {"operationId": "model-hub_get-eval-logs_partial_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UpdateColumnConfig"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ModelHubStringResultResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "delete": {"operationId": "model-hub_get-eval-logs_delete", "description": "", "parameters": [], "responses": {"204": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/get-eval-logs-details": {"get": {"operationId": "model-hub_get-eval-logs-details_list", "description": "", "parameters": [{"name": "eval_template_id", "in": "query", "required": true, "type": "string", "format": "uuid"}, {"name": "page_size", "in": "query", "required": false, "type": "integer", "default": 10, "maximum": 100, "minimum": 1}, {"name": "current_page_index", "in": "query", "required": false, "type": "integer", "default": 0, "minimum": 0}, {"name": "source", "in": "query", "required": false, "type": "string", "enum": ["logs", "feedback", "eval_playground"], "default": "logs"}, {"name": "search", "in": "query", "required": false, "type": "string", "default": {}}, {"name": "filters", "in": "query", "required": false, "type": "string", "default": "[]", "minLength": 1}, {"name": "sort", "in": "query", "required": false, "type": "string", "default": "[]", "minLength": 1}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/EvalApiLogTableResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "422": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/get-eval-metrics": {"get": {"operationId": "model-hub_get-eval-metrics_list", "description": "", "parameters": [{"name": "eval_template_id", "in": "query", "required": true, "type": "string", "format": "uuid"}, {"name": "filters", "in": "query", "description": "Optional created_at datetime filters. The default window is 30 days; the maximum supported window is 365 days.", "required": false, "type": "string", "default": "[]", "minLength": 1}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/EvalMetricResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "422": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "post": {"operationId": "model-hub_get-eval-metrics_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/EvalMetricRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/EvalMetricResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "422": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/get-eval-template-names": {"post": {"operationId": "model-hub_get-eval-template-names_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/EvalTemplateNamesRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/EvalTemplateNamesResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/get-eval-templates": {"post": {"operationId": "model-hub_get-eval-templates_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/LegacyEvalTemplatesRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/LegacyEvalTemplatesResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/ground-truth/{ground_truth_id}/": {"delete": {"operationId": "model-hub_ground-truth_delete", "description": "DELETE /model-hub/ground-truth/<id>/", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/GroundTruthDeleteResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "ground_truth_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/ground-truth/{ground_truth_id}/data/": {"get": {"operationId": "model-hub_ground-truth_data_list", "description": "GET /model-hub/ground-truth/<id>/data/?page=1&page_size=50", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/GroundTruthDataResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "ground_truth_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/ground-truth/{ground_truth_id}/embed/": {"post": {"operationId": "model-hub_ground-truth_embed_create", "description": "POST /model-hub/ground-truth/<id>/embed/ — trigger embedding generation.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ModelHubEmptyRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/GroundTruthEmbedResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "ground_truth_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/ground-truth/{ground_truth_id}/setup/": {"put": {"operationId": "model-hub_ground-truth_setup_update", "description": "PUT /model-hub/ground-truth/<id>/setup/", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/GroundTruthSetupRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/GroundTruthSetupResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "ground_truth_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/ground-truth/{ground_truth_id}/status/": {"get": {"operationId": "model-hub_ground-truth_status_list", "description": "GET /model-hub/ground-truth/<id>/status/", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/GroundTruthStatusResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "ground_truth_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/kb/": {"get": {"operationId": "model-hub_kb_list", "summary": "List all knowledge bases.", "description": "List all knowledge bases.", "parameters": [{"name": "search", "in": "query", "description": "A search term.", "required": false, "type": "string"}, {"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/KnowledgeBaseListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "post": {"operationId": "model-hub_kb_create", "summary": "Create a new knowledge base.", "description": "Create a new knowledge base.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/KnowledgeBaseCreate"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/KnowledgeBaseResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/kb/supported-embedding-models": {"get": {"operationId": "model-hub_kb_supported_embedding_models", "summary": "Get supported embedding models.", "description": "Get all supported embedding models.", "parameters": [{"name": "search", "in": "query", "description": "A search term.", "required": false, "type": "string"}, {"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/KnowledgeBaseEmbeddingModelsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/kb/supported_embedding_models/": {"get": {"operationId": "model-hub_kb_supported_embedding_models", "summary": "Get supported embedding models.", "description": "Get all supported embedding models.", "parameters": [{"name": "search", "in": "query", "description": "A search term.", "required": false, "type": "string"}, {"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/KnowledgeBaseEmbeddingModelsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/kb/{id}/": {"get": {"operationId": "model-hub_kb_read", "summary": "Retrieve a specific knowledge base.", "description": "Retrieve a specific knowledge base.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/KnowledgeBaseResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "put": {"operationId": "model-hub_kb_update", "summary": "Update a knowledge base.", "description": "Update a knowledge base.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/KnowledgeBase"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/KnowledgeBaseResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "patch": {"operationId": "model-hub_kb_partial_update", "summary": "Partially update a knowledge base.", "description": "Partially update a knowledge base.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/KnowledgeBase"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/KnowledgeBaseResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "delete": {"operationId": "model-hub_kb_delete", "summary": "Soft delete a knowledge base.", "description": "Soft delete a knowledge base.", "parameters": [], "responses": {"204": {"description": "No content"}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this knowledge base.", "required": true, "type": "string", "format": "uuid"}]}, "/model-hub/knowledge-base/": {"get": {"operationId": "model-hub_knowledge-base_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/LegacyKnowledgeBaseSdkCodeResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "post": {"operationId": "model-hub_knowledge-base_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/LegacyKnowledgeBaseMutationRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/LegacyKnowledgeBaseCreateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "patch": {"operationId": "model-hub_knowledge-base_partial_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/LegacyKnowledgeBaseMutationRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/LegacyKnowledgeBaseMutationResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "delete": {"operationId": "model-hub_knowledge-base_delete", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/LegacyKnowledgeBaseBulkDeleteRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ModelHubStringResultResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/knowledge-base/files/": {"post": {"operationId": "model-hub_knowledge-base_files_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/LegacyKnowledgeBaseFilesRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/LegacyKnowledgeBaseFilesResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "delete": {"operationId": "model-hub_knowledge-base_files_delete", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/LegacyKnowledgeBaseFileDeleteRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ModelHubStringResultResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/knowledge-base/get/": {"get": {"operationId": "model-hub_knowledge-base_get_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/LegacyKnowledgeBaseTableResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/knowledge-base/list/": {"get": {"operationId": "model-hub_knowledge-base_list_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/LegacyKnowledgeBaseListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/metrics/by-column/": {"get": {"operationId": "model-hub_metrics_by-column_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/MetricsByColumnResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/optimisation/": {"get": {"operationId": "model-hub_optimisation_list", "description": "", "parameters": [{"name": "optimize_type", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "status", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "search", "in": "query", "description": "A search term.", "required": false, "type": "string"}, {"name": "ordering", "in": "query", "description": "Which field to use when ordering the results.", "required": false, "type": "string"}, {"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/OptimizationDataset"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/optimisation/create/": {"post": {"operationId": "model-hub_optimisation_create_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/OptimizationDataset"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ModelHubStringResultResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "put": {"operationId": "model-hub_optimisation_create_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/OptimizationDataset"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ModelHubStringResultResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/optimisation/update/{id}/": {"post": {"operationId": "model-hub_optimisation_update_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/OptimizationDataset"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ModelHubStringResultResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "put": {"operationId": "model-hub_optimisation_update_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/OptimizationDataset"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ModelHubStringResultResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/optimisation/{id}/": {"get": {"operationId": "model-hub_optimisation_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/OptimizationDatasetGet"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this optimization dataset.", "required": true, "type": "string", "format": "uuid"}]}, "/model-hub/optimisation/{id}/details/": {"get": {"operationId": "model-hub_optimisation_details_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/OptimizationDetail"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this optimization dataset.", "required": true, "type": "string", "format": "uuid"}]}, "/model-hub/optimize-dataset/": {"get": {"operationId": "model-hub_optimize-dataset_list", "description": "", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/OptimizeDatasetKb"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/optimize-dataset/kb/{optim_id}/": {"get": {"operationId": "model-hub_optimize-dataset_kb_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/OptimizeDatasetKnowledgeBaseDetailResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "optim_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/optimize-dataset/knowledge-base/": {"post": {"operationId": "model-hub_optimize-dataset_knowledge-base_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/OptimizeDatasetKnowledgeBaseRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/OptimizeDatasetKnowledgeBaseCreateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/optimize-dataset/{model_id}/": {"get": {"operationId": "model-hub_optimize-dataset_read", "description": "", "parameters": [{"name": "filters", "in": "query", "required": false, "type": "string", "default": "[]", "minLength": 1}, {"name": "page", "in": "query", "required": false, "type": "integer", "default": 1, "minimum": 1}, {"name": "limit", "in": "query", "required": false, "type": "integer", "default": 15, "minimum": 1}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/OptimizeDatasetPaginatedResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "post": {"operationId": "model-hub_optimize-dataset_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/OptimizeDatasetMutationRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/OptimizeDatasetCreateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "model_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/optimize-dataset/{model_id}/column-config/": {"get": {"operationId": "model-hub_optimize-dataset_column-config_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/OptimizeDatasetColumnConfigResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "post": {"operationId": "model-hub_optimize-dataset_column-config_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/OptimizeDatasetColumnConfigUpdateRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/OptimizeDatasetColumnConfigUpdateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "model_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/optimize-dataset/{model_id}/column-config/prompt-template-explore/{optimization_id}/": {"get": {"operationId": "model-hub_optimize-dataset_column-config_prompt-template-explore_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/OptimizeDatasetColumnConfigResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "post": {"operationId": "model-hub_optimize-dataset_column-config_prompt-template-explore_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/OptimizeDatasetColumnConfigUpdateRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/OptimizeDatasetColumnConfigUpdateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "model_id", "in": "path", "required": true, "type": "string"}, {"name": "optimization_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/optimize-dataset/{model_id}/column-config/right-answers/{optimization_id}/": {"get": {"operationId": "model-hub_optimize-dataset_column-config_right-answers_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/OptimizeDatasetColumnConfigResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "post": {"operationId": "model-hub_optimize-dataset_column-config_right-answers_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/OptimizeDatasetColumnConfigUpdateRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/OptimizeDatasetColumnConfigUpdateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "model_id", "in": "path", "required": true, "type": "string"}, {"name": "optimization_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/optimize-dataset/{model_id}/prompt-template-explore/{optimization_id}/": {"post": {"operationId": "model-hub_optimize-dataset_prompt-template-explore_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/OptimizeDatasetPageRequest"}}], "responses": {"200": {"description": "", "schema": {"required": ["results", "count", "total_pages", "current_page", "next", "previous", "message"], "type": "object", "properties": {"results": {"type": "array", "items": {"type": "object", "properties": {"id": {"type": "string"}, "input": {"type": "string"}, "output": {"type": "string"}, "right_answer": {"type": "string"}}, "additionalProperties": {"description": "Metric score column keyed by metric id and score variant.", "type": "number"}}}, "count": {"type": "integer"}, "total_pages": {"type": "integer"}, "current_page": {"type": "integer"}, "next": {"type": "boolean"}, "previous": {"type": "boolean"}, "message": {"type": "string"}}}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "model_id", "in": "path", "required": true, "type": "string"}, {"name": "optimization_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/optimize-dataset/{model_id}/prompt-template-result/{optimization_id}/": {"post": {"operationId": "model-hub_optimize-dataset_prompt-template-result_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ModelHubEmptyRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/OptimizeDatasetTemplateResultsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "model_id", "in": "path", "required": true, "type": "string"}, {"name": "optimization_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/optimize-dataset/{model_id}/right-answers/{optimization_id}/": {"post": {"operationId": "model-hub_optimize-dataset_right-answers_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/OptimizeDatasetPageRequest"}}], "responses": {"200": {"description": "", "schema": {"required": ["results", "count", "total_pages", "current_page", "next", "previous", "message"], "type": "object", "properties": {"results": {"type": "array", "items": {"type": "object", "properties": {"id": {"type": "string"}, "input": {"type": "string"}, "output": {"type": "string"}, "right_answer": {"type": "string"}}, "additionalProperties": {"description": "Metric score column keyed by metric id and score variant.", "type": "number"}}}, "count": {"type": "integer"}, "total_pages": {"type": "integer"}, "current_page": {"type": "integer"}, "next": {"type": "boolean"}, "previous": {"type": "boolean"}, "message": {"type": "string"}}}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "model_id", "in": "path", "required": true, "type": "string"}, {"name": "optimization_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/optimize-dataset/{model_id}/{optimization_id}/": {"get": {"operationId": "model-hub_optimize-dataset_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/OptimizeDatasetDetailResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "model_id", "in": "path", "required": true, "type": "string"}, {"name": "optimization_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/organizations/{organization_id}/users/": {"get": {"operationId": "model-hub_organizations_users_list", "description": "", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "search", "in": "query", "description": "Filter organization users by name or email.", "required": false, "type": "string"}, {"name": "is_active", "in": "query", "description": "Filter users by active status.", "required": false, "type": "boolean"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/DevelopAnnotationsUser"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "organization_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/organizations/{organization_id}/users/{id}/": {"get": {"operationId": "model-hub_organizations_users_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DevelopAnnotationsUser"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "organization_id", "in": "path", "required": true, "type": "string"}, {"name": "id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/overview/": {"get": {"operationId": "model-hub_overview_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ModelHubOverviewResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/performance/detail/{id}/": {"post": {"operationId": "model-hub_performance_detail_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/PerformanceDetailsRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PerformanceDetailsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/performance/export/{id}/": {"post": {"operationId": "model-hub_performance_export_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/PerformanceExportRequest"}}], "responses": {"200": {"description": "", "schema": {"description": "CSV export payload.", "type": "string"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/performance/options/{model_id}/": {"get": {"operationId": "model-hub_performance_options_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PerformanceOptionsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "model_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/performance/report/{model_id}/": {"get": {"operationId": "model-hub_performance_report_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PerformanceReportPaginatedResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "post": {"operationId": "model-hub_performance_report_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/PerformanceReportCreate"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/PerformanceReportCreateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "model_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/performance/report/{model_id}/{report_id}/": {"delete": {"operationId": "model-hub_performance_report_delete", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ModelHubStringResultResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "model_id", "in": "path", "required": true, "type": "string"}, {"name": "report_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/performance/tag-distribution/{model_id}/": {"post": {"operationId": "model-hub_performance_tag-distribution_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/PerformanceTagDistributionRequest"}}], "responses": {"200": {"description": "", "schema": {"required": ["status", "result"], "type": "object", "properties": {"status": {"type": "boolean"}, "result": {"description": "Tag distribution chart data. `all` returns `good` and `bad`; single-tag views return the selected distribution series.", "type": "object", "properties": {"good": {"type": "array", "items": {"description": "Chart row returned by ClickHouse, for example [timestamp, value].", "type": "array", "items": {"type": "string"}}}, "bad": {"type": "array", "items": {"description": "Chart row returned by ClickHouse, for example [timestamp, value].", "type": "array", "items": {"type": "string"}}}}, "additionalProperties": {"type": "array", "items": {"description": "Chart row returned by ClickHouse, for example [timestamp, value].", "type": "array", "items": {"type": "string"}}}}}}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "model_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/performance/{id}/": {"post": {"operationId": "model-hub_performance_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/PerformanceQueryRequest"}}], "responses": {"200": {"description": "", "schema": {"description": "Map of dataset or breakdown label to chart rows.", "type": "object", "additionalProperties": {"type": "array", "items": {"description": "Chart row returned by ClickHouse, for example [timestamp, value].", "type": "array", "items": {"type": "string"}}}}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/prompt-base-templates/": {"get": {"operationId": "model-hub_prompt-base-templates_list", "description": "List all prompt base templates for the user's organization", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/PromptBaseTemplate"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "post": {"operationId": "model-hub_prompt-base-templates_create", "description": "Create a new prompt base template", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/PromptBaseTemplate"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/PromptBaseTemplate"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/prompt-base-templates/get-all-categories/": {"get": {"operationId": "model-hub_prompt-base-templates_get_all_categories", "description": "Get all categories for the user's organization", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/PromptBaseTemplate"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/prompt-base-templates/{id}/": {"get": {"operationId": "model-hub_prompt-base-templates_read", "description": "Retrieve a specific prompt base template", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PromptBaseTemplate"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "put": {"operationId": "model-hub_prompt-base-templates_update", "description": "Update a prompt base template", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/PromptBaseTemplate"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PromptBaseTemplate"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "patch": {"operationId": "model-hub_prompt-base-templates_partial_update", "description": "Partially update a prompt base template", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/PromptBaseTemplate"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PromptBaseTemplate"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "delete": {"operationId": "model-hub_prompt-base-templates_delete", "description": "Delete a prompt base template (soft delete)", "parameters": [], "responses": {"204": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/prompt-executions/": {"get": {"operationId": "model-hub_prompt-executions_list", "description": "", "parameters": [{"name": "name", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "search", "in": "query", "description": "A search term.", "required": false, "type": "string"}, {"name": "ordering", "in": "query", "description": "Which field to use when ordering the results.", "required": false, "type": "string"}, {"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/PromptExecution"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/prompt-executions/{id}/": {"get": {"operationId": "model-hub_prompt-executions_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PromptExecution"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this prompt template.", "required": true, "type": "string", "format": "uuid"}]}, "/model-hub/prompt-folders/": {"get": {"operationId": "model-hub_prompt-folders_list", "description": "List all prompt folders for the user's organization", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/PromptFolder"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "post": {"operationId": "model-hub_prompt-folders_create", "description": "Create a new prompt folder", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/PromptFolder"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/PromptFolder"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/prompt-folders/{id}/": {"get": {"operationId": "model-hub_prompt-folders_read", "description": "Retrieve a specific prompt folder", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PromptFolder"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "put": {"operationId": "model-hub_prompt-folders_update", "description": "Update a prompt folder", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/PromptFolder"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PromptFolder"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "patch": {"operationId": "model-hub_prompt-folders_partial_update", "description": "Partially update a prompt folder", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/PromptFolder"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PromptFolder"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "delete": {"operationId": "model-hub_prompt-folders_delete", "description": "Delete a prompt folder (soft delete)", "parameters": [], "responses": {"204": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/prompt-history-executions/": {"get": {"operationId": "model-hub_prompt-history-executions_list", "description": "", "parameters": [{"name": "template_name", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "template_version", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "created_at", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "search", "in": "query", "description": "A search term.", "required": false, "type": "string"}, {"name": "ordering", "in": "query", "description": "Which field to use when ordering the results.", "required": false, "type": "string"}, {"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/PromptHistoryExecution"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/prompt-history-executions/execution-details/{execution_id}/": {"get": {"operationId": "model-hub_prompt-history-executions_get_execution_details", "description": "Get detailed information about a specific PromptVersion", "parameters": [{"name": "template_name", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "template_version", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "created_at", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "search", "in": "query", "description": "A search term.", "required": false, "type": "string"}, {"name": "ordering", "in": "query", "description": "Which field to use when ordering the results.", "required": false, "type": "string"}, {"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/PromptHistoryExecution"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "execution_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/prompt-history-executions/{id}/": {"get": {"operationId": "model-hub_prompt-history-executions_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PromptHistoryExecution"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this prompt version.", "required": true, "type": "string", "format": "uuid"}]}, "/model-hub/prompt-labels/": {"get": {"operationId": "model-hub_prompt-labels_list", "description": "", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/PromptLabel"}}}}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "post": {"operationId": "model-hub_prompt-labels_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/PromptLabel"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/PromptLabel"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/prompt-labels/assign-multiple-labels/": {"post": {"operationId": "model-hub_prompt-labels_assign_multiple_labels", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/PromptLabel"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/PromptLabel"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/prompt-labels/create-system-labels/": {"post": {"operationId": "model-hub_prompt-labels_create_system_labels", "description": "Create (idempotently) Production, Staging, Development system labels for the caller's org.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/PromptLabel"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/PromptLabel"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/prompt-labels/get-by-name/": {"get": {"operationId": "model-hub_prompt-labels_get_by_name", "summary": "Fetch a prompt version by template name and either explicit version or label.", "description": "Query params:\n  - name: template name (required)\n  - version: version name like v1 (optional)\n  - label: label name like Production/Staging/Development or custom (optional)", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/PromptLabel"}}}}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/prompt-labels/remove/": {"post": {"operationId": "model-hub_prompt-labels_remove_label_from_version", "description": "Detach label from a prompt version.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/PromptLabel"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/PromptLabel"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/prompt-labels/set-default/": {"post": {"operationId": "model-hub_prompt-labels_set_default", "description": "Set default version for a template by name and version.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/PromptLabel"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/PromptLabel"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/prompt-labels/template-labels/": {"get": {"operationId": "model-hub_prompt-labels_template_labels", "description": "List versions with labels for a template by name or id.", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/PromptLabel"}}}}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/prompt-labels/{id}/": {"get": {"operationId": "model-hub_prompt-labels_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PromptLabel"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "put": {"operationId": "model-hub_prompt-labels_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/PromptLabel"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PromptLabel"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "patch": {"operationId": "model-hub_prompt-labels_partial_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/PromptLabel"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PromptLabel"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "delete": {"operationId": "model-hub_prompt-labels_delete", "description": "", "parameters": [], "responses": {"204": {"description": ""}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/prompt-labels/{template_id}/{label_id}/assign-label-by-id/": {"post": {"operationId": "model-hub_prompt-labels_assign_label_by_id", "description": "Assign a label to a specific version by template name and version name.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/PromptLabel"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/PromptLabel"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "template_id", "in": "path", "required": true, "type": "string"}, {"name": "label_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/prompt-templates/": {"get": {"operationId": "model-hub_prompt-templates_list", "description": "", "parameters": [{"name": "name", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "version", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "created_at", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "search", "in": "query", "description": "A search term.", "required": false, "type": "string"}, {"name": "ordering", "in": "query", "description": "Which field to use when ordering the results.", "required": false, "type": "string"}, {"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "modality", "in": "query", "required": false, "type": "array", "items": {"type": "string", "minLength": 1}}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/PromptTemplate"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true}, "post": {"operationId": "model-hub_prompt-templates_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/PromptTemplate"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/PromptTemplate"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/prompt-templates/analyze-prompt/": {"post": {"operationId": "model-hub_prompt-templates_analyze_prompt", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/PromptTemplate"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/PromptTemplate"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/prompt-templates/bulk-delete/": {"post": {"operationId": "model-hub_prompt-templates_bulk_delete", "description": "Bulk delete prompt templates", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/PromptTemplate"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/PromptTemplate"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/prompt-templates/create-draft/": {"post": {"operationId": "model-hub_prompt-templates_create_draft", "description": "Create a draft version of the PromptTemplate and return its details.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/PromptTemplate"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/PromptTemplate"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/prompt-templates/derived-variables/preview/": {"post": {"operationId": "model-hub_prompt-templates_derived-variables_preview_create", "summary": "Preview derived variables from JSON content without saving.", "description": "Useful for showing what variables would be extracted before running.\n\nRequest body:\n    - content: JSON string or object to analyze\n    - column_name: Name for the variable prefix", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/DerivedVariablePreviewRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DerivedVariableDetailResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/prompt-templates/generate-prompt/": {"post": {"operationId": "model-hub_prompt-templates_generate_prompt", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/PromptTemplate"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/PromptTemplate"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/prompt-templates/generate-variables/": {"post": {"operationId": "model-hub_prompt-templates_generate_variables", "summary": "Generate synthetic data for prompt variables using the SyntheticDataAgent.", "description": "Expected payload:\n{\n    \"prompt_name\": \"string\",\n    \"prompt_instructions\": \"list/array\" ,\n    \"variable_names\": [\"string\"],\n    \"variable_count\": \"int\",\n    \"generation_type\": \"prompt\"\n}", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/PromptTemplate"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/PromptTemplate"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/prompt-templates/get-template-by-name/": {"get": {"operationId": "model-hub_prompt-templates_get_template_by_name", "description": "Retrieve a prompt template by name.\nIf no version is specified, returns the default version (is_default=True).\nIf a version is specified, returns that specific version.", "parameters": [{"name": "name", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "version", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "created_at", "in": "query", "description": "", "required": false, "type": "string"}, {"name": "search", "in": "query", "description": "A search term.", "required": false, "type": "string"}, {"name": "ordering", "in": "query", "description": "Which field to use when ordering the results.", "required": false, "type": "string"}, {"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/PromptTemplate"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/prompt-templates/improve-prompt/": {"post": {"operationId": "model-hub_prompt-templates_improve_prompt", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/PromptTemplate"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/PromptTemplate"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/prompt-templates/{id}/": {"get": {"operationId": "model-hub_prompt-templates_read", "description": "Retrieve a prompt template with version history and execution data.\nHandles caching and error cases.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PromptTemplate"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "put": {"operationId": "model-hub_prompt-templates_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/PromptTemplate"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PromptTemplate"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "patch": {"operationId": "model-hub_prompt-templates_partial_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/PromptTemplatePatch"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PromptTemplatePatch"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "delete": {"operationId": "model-hub_prompt-templates_delete", "description": "", "parameters": [], "responses": {"204": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this prompt template.", "required": true, "type": "string", "format": "uuid"}]}, "/model-hub/prompt-templates/{id}/add-new-draft/": {"post": {"operationId": "model-hub_prompt-templates_add_new_draft", "description": "Create a new draft version of the PromptTemplate and return its details.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/PromptTemplate"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/PromptTemplate"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this prompt template.", "required": true, "type": "string", "format": "uuid"}]}, "/model-hub/prompt-templates/{id}/all-variables/": {"get": {"operationId": "model-hub_prompt-templates_get_all_variables", "description": "Get all variables from template and its executions", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PromptTemplate"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this prompt template.", "required": true, "type": "string", "format": "uuid"}]}, "/model-hub/prompt-templates/{id}/commit/": {"post": {"operationId": "model-hub_prompt-templates_commit", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/PromptTemplate"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/PromptTemplate"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this prompt template.", "required": true, "type": "string", "format": "uuid"}]}, "/model-hub/prompt-templates/{id}/compare-versions/": {"post": {"operationId": "model-hub_prompt-templates_compare_versions", "description": "Compare different versions of the PromptTemplate.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/PromptTemplate"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/PromptTemplate"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this prompt template.", "required": true, "type": "string", "format": "uuid"}]}, "/model-hub/prompt-templates/{id}/delete-evaluation-config/": {"delete": {"operationId": "model-hub_prompt-templates_delete_evaluation_config", "summary": "Delete an evaluation configuration by name from a PromptTemplate.", "description": "This endpoint allows removing an evaluation configuration from a PromptTemplate\nbased on its unique name.", "parameters": [], "responses": {"204": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this prompt template.", "required": true, "type": "string", "format": "uuid"}]}, "/model-hub/prompt-templates/{id}/evaluation-configs/": {"get": {"operationId": "model-hub_prompt-templates_get_evaluation_configs", "description": "Get the evaluation configurations for a specific prompt template.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PromptTemplate"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this prompt template.", "required": true, "type": "string", "format": "uuid"}]}, "/model-hub/prompt-templates/{id}/evaluations/": {"get": {"operationId": "model-hub_prompt-templates_retrieve_evaluations", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PromptTemplate"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this prompt template.", "required": true, "type": "string", "format": "uuid"}]}, "/model-hub/prompt-templates/{id}/get-next-version/": {"get": {"operationId": "model-hub_prompt-templates_get_next_version", "description": "Get the next version of the PromptTemplate", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PromptTemplate"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this prompt template.", "required": true, "type": "string", "format": "uuid"}]}, "/model-hub/prompt-templates/{id}/get-run-status/": {"get": {"operationId": "model-hub_prompt-templates_get_run_status", "description": "Get the current status and results of a template run", "parameters": [{"name": "template_version", "in": "query", "required": false, "type": "string"}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PromptRunStatusResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this prompt template.", "required": true, "type": "string", "format": "uuid"}]}, "/model-hub/prompt-templates/{id}/get-sdk-code/{language}/": {"get": {"operationId": "model-hub_prompt-templates_get_sdk_code", "description": "Get the prompt code in the requested format. If no format is specified, returns all formats.\nSupported languages: python, typescript, curl, langchain, nodejs, go", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PromptTemplate"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this prompt template.", "required": true, "type": "string", "format": "uuid"}, {"name": "language", "in": "path", "required": true, "type": "string"}]}, "/model-hub/prompt-templates/{id}/run-evals-on-multiple-versions/": {"post": {"operationId": "model-hub_prompt-templates_run_evals_on_multiple_versions", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/PromptTemplate"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/PromptTemplate"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this prompt template.", "required": true, "type": "string", "format": "uuid"}]}, "/model-hub/prompt-templates/{id}/run_template/": {"post": {"operationId": "model-hub_prompt-templates_run_template", "description": "Run a prompt template with the given configuration.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/PromptRunRequest"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/PromptRunRequest"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this prompt template.", "required": true, "type": "string", "format": "uuid"}]}, "/model-hub/prompt-templates/{id}/save-name/": {"post": {"operationId": "model-hub_prompt-templates_save_name", "description": "Save/update the name for a template.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/PromptTemplate"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/PromptTemplate"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this prompt template.", "required": true, "type": "string", "format": "uuid"}]}, "/model-hub/prompt-templates/{id}/save-prompt-folder/": {"post": {"operationId": "model-hub_prompt-templates_save_prompt_folder", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/PromptTemplate"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/PromptTemplate"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this prompt template.", "required": true, "type": "string", "format": "uuid"}]}, "/model-hub/prompt-templates/{id}/set_default/": {"post": {"operationId": "model-hub_prompt-templates_set_default", "description": "Set a specific version of a prompt template as default", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/PromptTemplate"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/PromptTemplate"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this prompt template.", "required": true, "type": "string", "format": "uuid"}]}, "/model-hub/prompt-templates/{id}/stop-streaming/": {"get": {"operationId": "model-hub_prompt-templates_stop_streaming", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PromptTemplate"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this prompt template.", "required": true, "type": "string", "format": "uuid"}]}, "/model-hub/prompt-templates/{id}/update-evaluation-configs/": {"post": {"operationId": "model-hub_prompt-templates_update_evaluation_configs", "summary": "Add or update evaluation configurations for a PromptTemplate.", "description": "This endpoint allows adding new evaluation configurations or updating\nexisting ones in a PromptTemplate. If is_run is true, it will also\nrun evaluations on specified versions (or latest version if none specified).", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/PromptTemplate"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/PromptTemplate"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this prompt template.", "required": true, "type": "string", "format": "uuid"}]}, "/model-hub/prompt-templates/{id}/versions/": {"get": {"operationId": "model-hub_prompt-templates_versions", "description": "", "parameters": [{"name": "page", "in": "query", "required": false, "type": "integer", "minimum": 1}, {"name": "limit", "in": "query", "required": false, "type": "integer", "minimum": 1}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PromptTemplate"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this prompt template.", "required": true, "type": "string", "format": "uuid"}]}, "/model-hub/prompt-templates/{prompt_id}/derived-variables/": {"get": {"operationId": "model-hub_prompt-templates_derived-variables_list", "summary": "Get all derived variables for a prompt template.", "description": "Returns derived variables from JSON outputs across all versions.\n\nQuery params:\n    - version: Optional version filter\n    - column_name: Optional column name filter", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PromptDerivedVariablesResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "prompt_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/prompt-templates/{prompt_id}/derived-variables/extract/": {"post": {"operationId": "model-hub_prompt-templates_derived-variables_extract_create", "summary": "Manually trigger extraction of derived variables from outputs.", "description": "This is useful when you want to re-extract variables or extract from\nexisting outputs that weren't processed.\n\nRequest body:\n    - version: Version to extract from\n    - column_name: Name for the output column\n    - output_index: Optional specific output index (default: 0)\n    - response_format_type: Optional response format hint", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/DerivedVariableExtractRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DerivedVariableDetailResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "prompt_id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/prompt-templates/{prompt_id}/derived-variables/{column_name}/schema/": {"get": {"operationId": "model-hub_prompt-templates_derived-variables_schema_list", "summary": "Get the schema for derived variables of a specific column.", "description": "Returns detailed schema information including types and sample values.\n\nPath params:\n    - prompt_id: UUID of the prompt template\n    - column_name: Name of the column\n\nQuery params:\n    - version: Optional version filter", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DerivedVariableDetailResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "prompt_id", "in": "path", "required": true, "type": "string"}, {"name": "column_name", "in": "path", "required": true, "type": "string"}]}, "/model-hub/prompt/metrics/": {"get": {"operationId": "model-hub_prompt_metrics_list", "description": "", "parameters": [{"name": "prompt_template_id", "in": "query", "required": true, "type": "string", "format": "uuid"}, {"name": "filters", "in": "query", "required": false, "type": "string", "default": "[]", "minLength": 1}, {"name": "page_number", "in": "query", "required": false, "type": "integer", "default": 0, "minimum": 0}, {"name": "page_size", "in": "query", "required": false, "type": "integer", "default": 10, "maximum": 100, "minimum": 1}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PromptMetricsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "422": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/prompt/metrics/empty-screen": {"get": {"operationId": "model-hub_prompt_metrics_empty-screen_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PromptMetricsEmptyScreenResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/prompt/span-metrics/": {"get": {"operationId": "model-hub_prompt_span-metrics_list", "description": "", "parameters": [{"name": "prompt_template_id", "in": "query", "required": true, "type": "string", "format": "uuid"}, {"name": "filters", "in": "query", "required": false, "type": "string", "default": "[]", "minLength": 1}, {"name": "page_number", "in": "query", "required": false, "type": "integer", "default": 0, "minimum": 0}, {"name": "page_size", "in": "query", "required": false, "type": "integer", "default": 10, "maximum": 100, "minimum": 1}, {"name": "search_term", "in": "query", "required": false, "type": "string", "default": ""}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PromptMetricsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "422": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/response_schema/": {"get": {"operationId": "model-hub_response_schema_list", "description": "", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/UserResponseSchema"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "post": {"operationId": "model-hub_response_schema_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UserResponseSchema"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/UserResponseSchema"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/response_schema/{id}/": {"get": {"operationId": "model-hub_response_schema_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UserResponseSchema"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "put": {"operationId": "model-hub_response_schema_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UserResponseSchema"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UserResponseSchema"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "patch": {"operationId": "model-hub_response_schema_partial_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UserResponseSchema"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UserResponseSchema"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "delete": {"operationId": "model-hub_response_schema_delete", "description": "", "parameters": [], "responses": {"204": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/run-prompt-for-rows/": {"post": {"operationId": "model-hub_run-prompt-for-rows_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/RunPromptForRowsRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ModelHubSuccessMessageResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/run-prompt/": {"post": {"operationId": "model-hub_run-prompt_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/Litellm"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ModelHubStringResultResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/scores/": {"get": {"operationId": "model-hub_scores_list", "summary": "Universal Score CRUD.", "description": "GET    /model-hub/scores/?source_type=trace&source_id=<uuid>\nPOST   /model-hub/scores/                 (single score)\nPOST   /model-hub/scores/bulk/            (multiple scores on one source)\nDELETE /model-hub/scores/<id>/", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "source_type", "in": "query", "required": false, "type": "string", "enum": ["dataset_row", "trace", "observation_span", "prototype_run", "call_execution", "trace_session"]}, {"name": "source_id", "in": "query", "required": false, "type": "string"}, {"name": "label_id", "in": "query", "required": false, "type": "string", "format": "uuid"}, {"name": "annotator_id", "in": "query", "required": false, "type": "string", "format": "uuid"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/Score"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true}, "post": {"operationId": "model-hub_scores_create", "description": "Create a single score.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/CreateScore"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ScoreResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/scores/bulk/": {"post": {"operationId": "model-hub_scores_bulk_create", "description": "Create multiple scores on a single source (e.g. from inline annotator).", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/BulkCreateScores"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/BulkCreateScoresResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/scores/for-source/": {"get": {"operationId": "model-hub_scores_for_source", "description": "Get all scores for a specific source.\nGET /model-hub/scores/for-source/?source_type=trace&source_id=<uuid>", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "source_type", "in": "query", "required": true, "type": "string", "enum": ["dataset_row", "trace", "observation_span", "prototype_run", "call_execution", "trace_session"]}, {"name": "source_id", "in": "query", "required": true, "type": "string", "minLength": 1}, {"name": "project_id", "in": "query", "description": "Tracer project the trace / span was opened from. The same id can exist in several projects; when supplied, only that project's scores are listed.", "required": false, "type": "string", "format": "uuid", "x-nullable": true}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ScoreForSourceResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/scores/{id}/": {"get": {"operationId": "model-hub_scores_read", "summary": "Universal Score CRUD.", "description": "GET    /model-hub/scores/?source_type=trace&source_id=<uuid>\nPOST   /model-hub/scores/                 (single score)\nPOST   /model-hub/scores/bulk/            (multiple scores on one source)\nDELETE /model-hub/scores/<id>/", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/Score"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "put": {"operationId": "model-hub_scores_update", "summary": "Universal Score CRUD.", "description": "GET    /model-hub/scores/?source_type=trace&source_id=<uuid>\nPOST   /model-hub/scores/                 (single score)\nPOST   /model-hub/scores/bulk/            (multiple scores on one source)\nDELETE /model-hub/scores/<id>/", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UpdateScore"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/Score"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "patch": {"operationId": "model-hub_scores_partial_update", "summary": "Universal Score CRUD.", "description": "GET    /model-hub/scores/?source_type=trace&source_id=<uuid>\nPOST   /model-hub/scores/                 (single score)\nPOST   /model-hub/scores/bulk/            (multiple scores on one source)\nDELETE /model-hub/scores/<id>/", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UpdateScore"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/Score"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "delete": {"operationId": "model-hub_scores_delete", "summary": "Soft-delete a score.", "description": "Only the annotator who created the score or an org Owner/Admin may\ndelete it.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ScoreDeleteResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/secrets/": {"get": {"operationId": "model-hub_secrets_list", "description": "ViewSet for managing secrets.\nProvides CRUD operations with organization-level isolation.", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/Secret"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "post": {"operationId": "model-hub_secrets_create", "description": "ViewSet for managing secrets.\nProvides CRUD operations with organization-level isolation.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/Secret"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/Secret"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/secrets/{id}/": {"get": {"operationId": "model-hub_secrets_read", "description": "ViewSet for managing secrets.\nProvides CRUD operations with organization-level isolation.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/Secret"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "put": {"operationId": "model-hub_secrets_update", "description": "ViewSet for managing secrets.\nProvides CRUD operations with organization-level isolation.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/Secret"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/Secret"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "patch": {"operationId": "model-hub_secrets_partial_update", "description": "ViewSet for managing secrets.\nProvides CRUD operations with organization-level isolation.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/Secret"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/Secret"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "delete": {"operationId": "model-hub_secrets_delete", "description": "ViewSet for managing secrets.\nProvides CRUD operations with organization-level isolation.", "parameters": [], "responses": {"204": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/test-evaluation/": {"post": {"operationId": "model-hub_test-evaluation_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/TestEvalTemplate"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/EvalExecutionResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/tools/": {"get": {"operationId": "model-hub_tools_list", "description": "", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/Tools"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "post": {"operationId": "model-hub_tools_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/Tools"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/Tools"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/tools/{id}/": {"get": {"operationId": "model-hub_tools_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/Tools"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "put": {"operationId": "model-hub_tools_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/Tools"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/Tools"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "patch": {"operationId": "model-hub_tools_partial_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/Tools"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/Tools"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "delete": {"operationId": "model-hub_tools_delete", "description": "", "parameters": [], "responses": {"204": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/tts-voices/": {"get": {"operationId": "model-hub_tts-voices_list", "description": "", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/TTSVoice"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "post": {"operationId": "model-hub_tts-voices_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/TTSVoice"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/TTSVoice"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": []}, "/model-hub/tts-voices/{id}/": {"get": {"operationId": "model-hub_tts-voices_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/TTSVoice"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "put": {"operationId": "model-hub_tts-voices_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/TTSVoice"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/TTSVoice"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "patch": {"operationId": "model-hub_tts-voices_partial_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/TTSVoice"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/TTSVoice"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "delete": {"operationId": "model-hub_tts-voices_delete", "description": "", "parameters": [], "responses": {"204": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/model-hub/update-eval-template/": {"post": {"operationId": "model-hub_update-eval-template_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UpdateEvalTemplate"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/LegacyEvalTemplateUpdateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/model-hub/upload-file/": {"post": {"operationId": "model-hub_upload-file_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UploadFile"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UploadFileResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ModelHubErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["model-hub"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/saml2_auth/acs/": {"post": {"operationId": "saml2_auth_acs_create", "description": "", "parameters": [{"name": "SAMLResponse", "in": "formData", "description": "Base64-encoded SAML response from the identity provider.", "required": true, "type": "string"}, {"name": "RelayState", "in": "formData", "description": "Relay state configured for the organization IdP.", "required": false, "type": "string"}], "responses": {"302": {"description": "Redirects to the configured frontend URL."}, "400": {"description": "", "schema": {"$ref": "#/definitions/SAMLErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "consumes": ["application/x-www-form-urlencoded", "multipart/form-data"], "tags": ["saml2_auth"], "x-runtime-request-validation": true}, "parameters": []}, "/saml2_auth/auth/callback/": {"get": {"operationId": "saml2_auth_auth_callback_list", "description": "", "parameters": [{"name": "code", "in": "query", "required": false, "type": "string"}, {"name": "state", "in": "query", "required": false, "type": "string"}], "responses": {"302": {"description": "Redirects to the configured frontend URL."}, "400": {"description": "", "schema": {"$ref": "#/definitions/SAMLErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["saml2_auth"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/saml2_auth/auth/callback{format}": {"get": {"operationId": "saml2_auth_auth_read", "description": "", "parameters": [{"name": "code", "in": "query", "required": false, "type": "string"}, {"name": "state", "in": "query", "required": false, "type": "string"}], "responses": {"302": {"description": "Redirects to the configured frontend URL."}, "400": {"description": "", "schema": {"$ref": "#/definitions/SAMLErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["saml2_auth"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "format", "in": "path", "required": true, "type": "string"}]}, "/saml2_auth/complete/": {"get": {"operationId": "saml2_auth_complete_list", "description": "", "parameters": [{"name": "c", "in": "query", "description": "One-time SAML response candidate key.", "required": true, "type": "string"}], "responses": {"302": {"description": "Redirects to the configured frontend URL."}, "400": {"description": "", "schema": {"$ref": "#/definitions/SAMLErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["saml2_auth"]}, "parameters": []}, "/saml2_auth/github/callback/": {"get": {"operationId": "saml2_auth_github_callback_list", "description": "", "parameters": [{"name": "code", "in": "query", "required": false, "type": "string"}, {"name": "state", "in": "query", "required": false, "type": "string"}], "responses": {"302": {"description": "Redirects to the configured frontend URL."}, "400": {"description": "", "schema": {"$ref": "#/definitions/SAMLErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["saml2_auth"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/saml2_auth/github/callback{format}": {"get": {"operationId": "saml2_auth_github_read", "description": "", "parameters": [{"name": "code", "in": "query", "required": false, "type": "string"}, {"name": "state", "in": "query", "required": false, "type": "string"}], "responses": {"302": {"description": "Redirects to the configured frontend URL."}, "400": {"description": "", "schema": {"$ref": "#/definitions/SAMLErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["saml2_auth"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "format", "in": "path", "required": true, "type": "string"}]}, "/saml2_auth/idp-login/": {"get": {"operationId": "saml2_auth_idp-login_list", "description": "", "parameters": [{"name": "email", "in": "query", "required": true, "type": "string", "format": "email", "minLength": 1}, {"name": "next", "in": "query", "required": false, "type": "string"}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SAMLUrlResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/SAMLErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["saml2_auth"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/saml2_auth/idp-uploads/": {"get": {"operationId": "saml2_auth_idp-uploads_list", "description": "", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SAMLIDPUploadListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/SAMLErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/SAMLErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "consumes": ["application/x-www-form-urlencoded", "multipart/form-data"], "tags": ["saml2_auth"]}, "post": {"operationId": "saml2_auth_idp-uploads_create", "description": "", "parameters": [{"name": "name", "in": "formData", "description": "Display name for the identity provider.", "required": false, "type": "string"}, {"name": "identity_type", "in": "formData", "description": "Identity provider type.", "required": true, "type": "integer"}, {"name": "is_enabled", "in": "formData", "description": "Whether this IdP is enabled.", "required": false, "type": "boolean"}, {"name": "file", "in": "formData", "description": "SAML metadata XML file.", "required": false, "type": "file"}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SAMLStringResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/SAMLErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/SAMLErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "consumes": ["application/x-www-form-urlencoded", "multipart/form-data"], "tags": ["saml2_auth"], "x-runtime-request-validation": true}, "parameters": []}, "/saml2_auth/idp-uploads/{id}/": {"get": {"operationId": "saml2_auth_idp-uploads_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SAMLIDPUploadDetailResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/SAMLErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/SAMLErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "consumes": ["application/x-www-form-urlencoded", "multipart/form-data"], "tags": ["saml2_auth"]}, "put": {"operationId": "saml2_auth_idp-uploads_update", "description": "", "parameters": [{"name": "name", "in": "formData", "description": "Display name for the identity provider.", "required": false, "type": "string"}, {"name": "identity_type", "in": "formData", "description": "Identity provider type.", "required": true, "type": "integer"}, {"name": "is_enabled", "in": "formData", "description": "Whether this IdP is enabled.", "required": false, "type": "boolean"}, {"name": "file", "in": "formData", "description": "SAML metadata XML file.", "required": false, "type": "file"}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SAMLStringResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/SAMLErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/SAMLErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "consumes": ["application/x-www-form-urlencoded", "multipart/form-data"], "tags": ["saml2_auth"], "x-runtime-request-validation": true}, "delete": {"operationId": "saml2_auth_idp-uploads_delete", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SAMLStringResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/SAMLErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/SAMLErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "consumes": ["application/x-www-form-urlencoded", "multipart/form-data"], "tags": ["saml2_auth"]}, "parameters": [{"name": "id", "in": "path", "description": "A unique value identifying this SAML Meta.", "required": true, "type": "string"}]}, "/saml2_auth/login/": {"get": {"operationId": "saml2_auth_login_list", "description": "", "parameters": [{"name": "provider", "in": "query", "required": true, "type": "string", "enum": ["google", "github", "microsoft"]}, {"name": "onboarding_token", "in": "query", "required": false, "type": "string"}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SAMLUrlResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/SAMLErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["saml2_auth"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/saml2_auth/login{format}": {"get": {"operationId": "saml2_auth_read", "description": "", "parameters": [{"name": "provider", "in": "query", "required": true, "type": "string", "enum": ["google", "github", "microsoft"]}, {"name": "onboarding_token", "in": "query", "required": false, "type": "string"}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SAMLUrlResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/SAMLErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["saml2_auth"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "format", "in": "path", "required": true, "type": "string"}]}, "/saml2_auth/microsoft/callback/": {"get": {"operationId": "saml2_auth_microsoft_callback_list", "description": "", "parameters": [{"name": "code", "in": "query", "required": false, "type": "string"}, {"name": "state", "in": "query", "required": false, "type": "string"}], "responses": {"302": {"description": "Redirects to the configured frontend URL."}, "400": {"description": "", "schema": {"$ref": "#/definitions/SAMLErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["saml2_auth"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/saml2_auth/microsoft/callback{format}": {"get": {"operationId": "saml2_auth_microsoft_read", "description": "", "parameters": [{"name": "code", "in": "query", "required": false, "type": "string"}, {"name": "state", "in": "query", "required": false, "type": "string"}], "responses": {"302": {"description": "Redirects to the configured frontend URL."}, "400": {"description": "", "schema": {"$ref": "#/definitions/SAMLErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["saml2_auth"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "format", "in": "path", "required": true, "type": "string"}]}, "/sdk/api/v1/configure-evaluations/": {"post": {"operationId": "sdk_api_v1_configure-evaluations_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/SDKConfigureEvaluationsRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SDKConfigureEvaluationsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/SDKErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/SDKErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["sdk"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/sdk/api/v1/eval/": {"post": {"operationId": "sdk_api_v1_eval_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/SDKStandaloneEvalRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SDKStandaloneEvalResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/SDKErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/SDKErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["sdk"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/sdk/api/v1/eval/{eval_id}/": {"get": {"operationId": "sdk_api_v1_eval_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SDKEvalTemplateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/SDKErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/SDKErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["sdk"]}, "parameters": [{"name": "eval_id", "in": "path", "required": true, "type": "string"}]}, "/sdk/api/v1/evaluate-pipeline/": {"get": {"operationId": "sdk_api_v1_evaluate-pipeline_list", "description": "", "parameters": [{"name": "project_name", "in": "query", "required": true, "type": "string", "minLength": 1}, {"name": "versions", "in": "query", "required": true, "type": "string", "minLength": 1}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SDKCICDEvaluationRunsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/SDKErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/SDKErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["sdk"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "post": {"operationId": "sdk_api_v1_evaluate-pipeline_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/CICDJob"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SDKCICDEvaluationRunAcceptedResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/SDKErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/SDKErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["sdk"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/sdk/api/v1/get-evals/": {"get": {"operationId": "sdk_api_v1_get-evals_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SDKGetEvalsResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/SDKErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["sdk"]}, "parameters": []}, "/sdk/api/v1/new-eval/": {"get": {"operationId": "sdk_api_v1_new-eval_list", "description": "", "parameters": [{"name": "eval_id", "in": "query", "required": true, "type": "string", "format": "uuid"}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SDKStandaloneEvalV2Response"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/SDKErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/SDKErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["sdk"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "post": {"operationId": "sdk_api_v1_new-eval_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/SDKStandaloneEvalV2Request"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SDKStandaloneEvalResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/SDKErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/SDKErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["sdk"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/sdk/api/v1/simulation/analytics/": {"get": {"operationId": "sdk_api_v1_simulation_analytics_list", "summary": "GET /simulation/analytics/", "description": "Aggregated analytics view: eval scores (radar chart data), critical issues,\nFMA suggestions. Corresponds to the Analytics tab in the UI.", "parameters": [{"name": "run_test_name", "in": "query", "required": false, "type": "string", "minLength": 1}, {"name": "execution_id", "in": "query", "required": false, "type": "string", "format": "uuid"}, {"name": "eval_name", "in": "query", "required": false, "type": "string", "minLength": 1}, {"name": "summary", "in": "query", "required": false, "type": "boolean", "default": true}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SDKSimulationAnalyticsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/SDKErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/SDKErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/SDKErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["sdk"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/sdk/api/v1/simulation/metrics/": {"get": {"operationId": "sdk_api_v1_simulation_metrics_list", "summary": "GET /simulation/metrics/", "description": "Aggregated system metrics: latency (by subsystem), cost, conversation metrics.", "parameters": [{"name": "run_test_name", "in": "query", "required": false, "type": "string", "minLength": 1}, {"name": "execution_id", "in": "query", "required": false, "type": "string", "format": "uuid"}, {"name": "call_execution_id", "in": "query", "required": false, "type": "string", "format": "uuid"}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SDKSimulationMetricsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/SDKErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/SDKErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/SDKErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["sdk"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/sdk/api/v1/simulation/runs/": {"get": {"operationId": "sdk_api_v1_simulation_runs_list", "summary": "GET /simulation/runs/", "description": "Run-level records with eval scores, scenario metadata, call details.", "parameters": [{"name": "run_test_name", "in": "query", "required": false, "type": "string", "minLength": 1}, {"name": "execution_id", "in": "query", "required": false, "type": "string", "format": "uuid"}, {"name": "call_execution_id", "in": "query", "required": false, "type": "string", "format": "uuid"}, {"name": "eval_name", "in": "query", "required": false, "type": "string", "minLength": 1}, {"name": "summary", "in": "query", "required": false, "type": "boolean", "default": false}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SDKSimulationRunsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/SDKErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/SDKErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/SDKErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["sdk"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/simulate/agent-definitions/": {"get": {"operationId": "simulate_agent-definitions_list", "description": "Get paginated list of agent definitions for the user's organization.", "parameters": [{"name": "search", "in": "query", "required": false, "type": "string", "default": ""}, {"name": "agent_type", "in": "query", "required": false, "type": "string", "enum": ["voice", "text"], "x-nullable": true}, {"name": "agent_definition_id", "in": "query", "required": false, "type": "string", "format": "uuid", "x-nullable": true}, {"name": "page", "in": "query", "required": false, "type": "integer", "default": 1, "minimum": 1}, {"name": "limit", "in": "query", "required": false, "type": "integer", "minimum": 1}], "responses": {"200": {"description": "", "schema": {"type": "array", "items": {"$ref": "#/definitions/AgentDefinitionListResponse"}}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "delete": {"operationId": "simulate_agent-definitions_delete", "description": "Bulk soft-delete agent definitions.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentDefinitionBulkDeleteRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentDefinitionBulkDeleteResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/simulate/agent-definitions/create/": {"post": {"operationId": "simulate_agent-definitions_create_create", "description": "Create a new agent definition with its first version.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentDefinitionCreateRequest"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/AgentDefinitionCreateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/simulate/agent-definitions/{agent_id}/": {"get": {"operationId": "simulate_agent-definitions_read", "description": "Get details of a specific agent definition with version information.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentDefinitionResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": [{"name": "agent_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/agent-definitions/{agent_id}/delete/": {"delete": {"operationId": "simulate_agent-definitions_delete_delete", "description": "Soft delete an agent definition.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentDefinitionDeleteResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": [{"name": "agent_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/agent-definitions/{agent_id}/edit/": {"put": {"operationId": "simulate_agent-definitions_edit_update", "description": "Update an existing agent definition.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentDefinitionEditRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentDefinitionEditResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "agent_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/agent-definitions/{agent_id}/versions/": {"get": {"operationId": "simulate_agent-definitions_versions_list", "description": "Get all versions of a specific agent definition.", "parameters": [], "responses": {"200": {"description": "", "schema": {"type": "array", "items": {"$ref": "#/definitions/AgentVersionListResponse"}}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": [{"name": "agent_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/agent-definitions/{agent_id}/versions/create/": {"post": {"operationId": "simulate_agent-definitions_versions_create_create", "description": "Create a new version of an agent definition.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentVersionCreateRequest"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/AgentVersionCreateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "agent_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/agent-definitions/{agent_id}/versions/{version_id}/": {"get": {"operationId": "simulate_agent-definitions_versions_read", "description": "Get details of a specific agent version.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentVersionResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": [{"name": "agent_id", "in": "path", "required": true, "type": "string"}, {"name": "version_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/agent-definitions/{agent_id}/versions/{version_id}/activate/": {"post": {"operationId": "simulate_agent-definitions_versions_activate_create", "description": "Activate a specific agent version.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/EmptyRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentVersionActivateResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "agent_id", "in": "path", "required": true, "type": "string"}, {"name": "version_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/agent-definitions/{agent_id}/versions/{version_id}/call-executions/": {"get": {"operationId": "simulate_agent-definitions_versions_call-executions_list", "description": "Get the call executions of an agent version.", "parameters": [], "responses": {"200": {"description": "", "schema": {"type": "array", "items": {"$ref": "#/definitions/CallExecution"}}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": [{"name": "agent_id", "in": "path", "required": true, "type": "string"}, {"name": "version_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/agent-definitions/{agent_id}/versions/{version_id}/delete/": {"delete": {"operationId": "simulate_agent-definitions_versions_delete_delete", "description": "Soft delete an agent version.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentVersionDeleteResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": [{"name": "agent_id", "in": "path", "required": true, "type": "string"}, {"name": "version_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/agent-definitions/{agent_id}/versions/{version_id}/eval-summary/": {"get": {"operationId": "simulate_agent-definitions_versions_eval-summary_list", "description": "Get the eval summary of an agent version.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/EvalSummaryResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/EvalErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/EvalErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": [{"name": "agent_id", "in": "path", "required": true, "type": "string"}, {"name": "version_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/agent-definitions/{agent_id}/versions/{version_id}/restore/": {"post": {"operationId": "simulate_agent-definitions_versions_restore_create", "description": "Restore agent definition from a specific version.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/EmptyRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentVersionRestoreResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "agent_id", "in": "path", "required": true, "type": "string"}, {"name": "version_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/api/agent-definition-operations/": {"get": {"operationId": "simulate_api_agent-definition-operations_list", "description": "", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/AgentDefinitionResponse"}}}}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "post": {"operationId": "simulate_api_agent-definition-operations_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentDefinition"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/AgentDefinition"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": []}, "/simulate/api/agent-definition-operations/fetch_assistant_from_provider/": {"post": {"operationId": "simulate_api_agent-definition-operations_fetch_assistant_from_provider", "description": "Fetches the details of agent from the provider and sends them to the client.\nIt DOES NOT create a new version.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/FetchAssistantRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/FetchAssistantResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/simulate/api/agent-definition-operations/{id}/": {"get": {"operationId": "simulate_api_agent-definition-operations_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentDefinitionResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "put": {"operationId": "simulate_api_agent-definition-operations_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentDefinition"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentDefinition"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "patch": {"operationId": "simulate_api_agent-definition-operations_partial_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentDefinition"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentDefinition"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "delete": {"operationId": "simulate_api_agent-definition-operations_delete", "description": "", "parameters": [], "responses": {"204": {"description": ""}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/simulate/api/agent-prompt-optimiser/": {"get": {"operationId": "simulate_api_agent-prompt-optimiser_list", "description": "List all agent prompt optimiser runs with table config for dynamic columns.", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/AgentPromptOptimiserRunList"}}}}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "post": {"operationId": "simulate_api_agent-prompt-optimiser_create", "description": "ViewSet for Agent Prompt Optimiser Runs.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentPromptOptimiserRunCreate"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/AgentPromptOptimiserRunCreate"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": []}, "/simulate/api/agent-prompt-optimiser/{id}/": {"get": {"operationId": "simulate_api_agent-prompt-optimiser_read", "description": "Get run details with trial comparison table.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentPromptOptimiserRunDetailResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "put": {"operationId": "simulate_api_agent-prompt-optimiser_update", "description": "ViewSet for Agent Prompt Optimiser Runs.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentPromptOptimiserRun"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentPromptOptimiserRunModelResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "patch": {"operationId": "simulate_api_agent-prompt-optimiser_partial_update", "description": "ViewSet for Agent Prompt Optimiser Runs.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AgentPromptOptimiserRun"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentPromptOptimiserRunModelResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "delete": {"operationId": "simulate_api_agent-prompt-optimiser_delete", "description": "ViewSet for Agent Prompt Optimiser Runs.", "parameters": [], "responses": {"204": {"description": ""}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this agent prompt optimiser run.", "required": true, "type": "string", "format": "uuid"}]}, "/simulate/api/agent-prompt-optimiser/{id}/graph/": {"get": {"operationId": "simulate_api_agent-prompt-optimiser_graph", "description": "Get graph data for this optimization run.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentPromptOptimiserGraphResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this agent prompt optimiser run.", "required": true, "type": "string", "format": "uuid"}]}, "/simulate/api/agent-prompt-optimiser/{id}/steps/": {"get": {"operationId": "simulate_api_agent-prompt-optimiser_steps", "description": "Get all steps for this optimization run.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentPromptOptimiserRunStepsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this agent prompt optimiser run.", "required": true, "type": "string", "format": "uuid"}]}, "/simulate/api/agent-prompt-optimiser/{id}/trial/{trial_id}/evaluations/": {"get": {"operationId": "simulate_api_agent-prompt-optimiser_trial_trial_evaluations", "description": "Get evaluations for a trial grouped by eval_config.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentPromptOptimiserTrialEvaluationsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this agent prompt optimiser run.", "required": true, "type": "string", "format": "uuid"}, {"name": "trial_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/api/agent-prompt-optimiser/{id}/trial/{trial_id}/prompt/": {"get": {"operationId": "simulate_api_agent-prompt-optimiser_trial_trial_prompt", "description": "Get trial prompt and baseline prompt.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentPromptOptimiserTrialPromptResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this agent prompt optimiser run.", "required": true, "type": "string", "format": "uuid"}, {"name": "trial_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/api/agent-prompt-optimiser/{id}/trial/{trial_id}/scenarios/": {"get": {"operationId": "simulate_api_agent-prompt-optimiser_trial_trial_scenarios", "description": "Get scenarios (TrialItemResults) for a trial with eval scores.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AgentPromptOptimiserTrialScenariosResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this agent prompt optimiser run.", "required": true, "type": "string", "format": "uuid"}, {"name": "trial_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/api/alk-simulate/call-executions/{call_execution_id}/recording/": {"post": {"operationId": "simulate_api_alk-simulate_call-executions_recording_upload", "description": "Accept a multipart audio upload and hand it to the shared voice\nstorage helper (``upload_audio_to_s3``). Matches the pattern the\nLiveKit and Vapi voice services already use for their recordings.", "parameters": [{"name": "file", "in": "formData", "required": true, "type": "file"}, {"name": "filename", "in": "formData", "required": false, "type": "string", "maxLength": 200}, {"name": "sha256", "in": "formData", "required": false, "type": "string", "pattern": "^(?:sha256:)?[0-9a-fA-F]{64}$", "minLength": 1}, {"name": "kind", "in": "formData", "required": false, "type": "string", "enum": ["combined", "stereo", "customer", "assistant"], "default": "combined"}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ALKSimulateRecordingUploadResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "consumes": ["multipart/form-data"], "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "call_execution_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/api/alk-simulate/call-executions/{call_execution_id}/result/": {"patch": {"operationId": "simulate_api_alk-simulate_call-executions_result", "summary": "Single view surface for all LiveKit sim ingestion HTTP endpoints.", "description": "Views here are intentionally minimal: they resolve the tenant-scoped\ntarget row, hand the parsed payload to\n`simulate.services.alk_simulate_ingestion`, and format the response.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ALKSimulateResult"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ALKSimulateResultResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "call_execution_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/api/alk-simulate/call-executions/{call_execution_id}/status/": {"patch": {"operationId": "simulate_api_alk-simulate_call-executions_status", "description": "Non-terminal per-call status ping (currently only ``ongoing``): the\nSDK marks a pre-created PENDING row ONGOING the moment its call starts,\nso the UI shows progress instead of PENDING → terminal. PENDING-gated in\nthe service, so a late ping never clobbers a result that already landed.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ALKSimulateStatusUpdate"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ALKSimulateStatusUpdateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "call_execution_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/api/alk-simulate/run-tests/provision/": {"post": {"operationId": "simulate_api_alk-simulate_run-tests_provision_run_test", "description": "Stand up a chat RunTest + scenario-of-record from SDK personas so an\nSDK-first run has somewhere to post — without the native UI's async\nscenario generation. See ``provision_alk_sim_run_test``.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ALKSimulateProvisionRunTestRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ALKSimulateProvisionResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/simulate/api/alk-simulate/run-tests/{run_test_id}/test-executions/": {"post": {"operationId": "simulate_api_alk-simulate_run-tests_start_test_execution", "summary": "Single view surface for all LiveKit sim ingestion HTTP endpoints.", "description": "Views here are intentionally minimal: they resolve the tenant-scoped\ntarget row, hand the parsed payload to\n`simulate.services.alk_simulate_ingestion`, and format the response.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ALKSimulateStartTestExecutionRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ALKSimulateStartTestExecutionResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "run_test_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/api/alk-simulate/test-executions/{test_execution_id}/batch/": {"post": {"operationId": "simulate_api_alk-simulate_test-executions_batch", "summary": "Single view surface for all LiveKit sim ingestion HTTP endpoints.", "description": "Views here are intentionally minimal: they resolve the tenant-scoped\ntarget row, hand the parsed payload to\n`simulate.services.alk_simulate_ingestion`, and format the response.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ALKSimulateBatchCreateRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ALKSimulateBatchCreateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "test_execution_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/api/call-executions/": {"get": {"operationId": "simulate_api_call-executions_list", "description": "Get paginated list of call executions for the user's organization\nQuery Parameters:\n- search: search string to filter call executions by phone number or scenario name\n- status: filter by call status\n- test_execution_id: filter by specific test execution\n- limit: number of items per page (default: 10)\n- page: page number (default: 1)", "parameters": [{"name": "search", "in": "query", "required": false, "type": "string", "default": ""}, {"name": "status", "in": "query", "required": false, "type": "string", "default": ""}, {"name": "test_execution_id", "in": "query", "required": false, "type": "string", "format": "uuid", "x-nullable": true}, {"name": "page", "in": "query", "required": false, "type": "integer", "default": 1, "minimum": 1}, {"name": "limit", "in": "query", "required": false, "type": "integer", "minimum": 1}], "responses": {"200": {"description": "", "schema": {"type": "array", "items": {"$ref": "#/definitions/CallExecution"}}}, "404": {"description": "", "schema": {"$ref": "#/definitions/CallExecutionErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/CallExecutionErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/simulate/api/harness-environments/": {"get": {"operationId": "simulate_api_harness-environments_list", "summary": "The environments surface: list, delete, and start a simulation.", "description": "An environment is the job that built it (the world itself lives in object\nstorage, addressed from the job's metadata), so these endpoints project the\nsame rows the harness-jobs API serves. They exist separately because the\nlist needs a row, not a run: the jobs list returns every event, receipt and\nstage-output payload for up to a hundred jobs, which is a detail document\nrepeated a hundred times.\n\nRunning and grading a simulation are deliberately not here. ``run`` starts\none and returns 202; progress is read from the job.", "parameters": [{"name": "page", "in": "query", "required": false, "type": "integer", "minimum": 1}, {"name": "limit", "in": "query", "required": false, "type": "integer", "maximum": 100, "minimum": 1}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/HarnessEnvironmentListResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/simulate/api/harness-environments/{id}/": {"get": {"operationId": "simulate_api_harness-environments_read", "summary": "One environment: overview, contract, world, scenarios, evaluations, settings.", "description": "Same shape whichever door built it. A section the pipeline has not reached\nyet is null, so the client renders \"building\" rather than an empty pane.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/HarnessEnvironmentDetail"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "patch": {"operationId": "simulate_api_harness-environments_partial_update", "summary": "Rename an environment.", "description": "The name is the only editable field: everything else on an environment\nrecords how it was built, and editing that would make the provenance the\ncontract tab shows a claim rather than a record.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/HarnessEnvironmentRename"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/HarnessEnvironmentDetail"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "delete": {"operationId": "simulate_api_harness-environments_delete", "summary": "Soft-delete an environment, cancelling its run first if one is live.", "description": "Deleting while a sandbox is running would leave that sandbox billing\nagainst a row nobody can see, so cancellation is requested before the\nrow disappears. The authoring archive and the organization's secrets are\nleft in place: neither is owned by this row, and other environments may\nreference the same credentials.", "parameters": [], "responses": {"204": {"description": "Deleted"}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/simulate/api/harness-environments/{id}/evaluations/": {"post": {"operationId": "simulate_api_harness-environments_add_evaluation", "summary": "Grade this environment by one more eval from the catalogue.", "description": "Applies to scenarios graded from here on. Calls that already ran keep\nthe verdicts they were given, so adding an eval does not backfill a\ncolumn onto past results.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/HarnessEnvironmentAddEvaluation"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/HarnessEnvironmentDetail"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/simulate/api/harness-environments/{id}/evaluations/available/": {"get": {"operationId": "simulate_api_harness-environments_evaluations_available_evaluations", "summary": "The evals this environment could still be graded by.", "description": "The same catalogue authoring chose from, filtered to this environment's\nmodality and to the templates the organization can see, minus what is\nalready selected. Every entry is addable as it stands: an eval whose\ninputs this modality does not produce is left out rather than offered\nand then refused.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/HarnessEnvironmentAvailableEvals"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/simulate/api/harness-environments/{id}/evaluations/tool-call/": {"put": {"operationId": "simulate_api_harness-environments_evaluations_set_tool_call_evaluation", "description": "Turn the tool-call judge on or off for this environment. Returns the full environment detail. Turning it on is refused for a hosted voice environment with no agent version yet.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/HarnessEnvironmentToolCallEvaluation"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/HarnessEnvironmentDetail"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/simulate/api/harness-environments/{id}/evaluations/{eval_config_id}/": {"patch": {"operationId": "simulate_api_harness-environments_edit_evaluation", "description": "Change one eval of this environment. Never grades anything; grade a run again afterwards to refresh its scores.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/HarnessEnvironmentEvalEdit"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SimulateEvalConfigResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "delete": {"operationId": "simulate_api_harness-environments_remove_evaluation", "summary": "Stop running one eval against this environment.", "description": "Soft-delete only. The verdicts an eval already produced live on the call\nexecutions and in their receipts, not on this row, so a hard delete would\nleave past runs showing scores for something the environment no longer\nlists. Removing an eval someone added stops future scenarios being\ngraded by it and leaves the history it already wrote intact. An eval the\nharness reported itself comes back the next time the harness grades it.", "parameters": [], "responses": {"204": {"description": "Removed"}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}, {"name": "eval_config_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/api/harness-environments/{id}/run/": {"post": {"operationId": "simulate_api_harness-environments_run", "description": "Create one new Run for the selected scenarios and trial count.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/HarnessRunCreate"}}], "responses": {"202": {"description": "", "schema": {"$ref": "#/definitions/HarnessRunCreateResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/simulate/api/harness-environments/{id}/runs/{execution_id}/evaluations/": {"post": {"operationId": "simulate_api_harness-environments_runs_add_run_evaluation", "description": "Add an eval to the environment and grade this run's already-finished calls with it.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/HarnessEnvironmentAddEvaluation"}}], "responses": {"202": {"description": "", "schema": {"$ref": "#/definitions/HarnessEnvironmentRunEvaluationQueued"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}, {"name": "execution_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/api/harness-environments/{id}/runs/{execution_id}/evaluations/run/": {"post": {"operationId": "simulate_api_harness-environments_runs_evaluations_run_evaluations", "description": "Grade this finished run's calls again with chosen evals of the environment, without rerunning the calls.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/HarnessEnvironmentRunEvaluations"}}], "responses": {"202": {"description": "", "schema": {"$ref": "#/definitions/HarnessEnvironmentRunEvaluationsQueued"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}, {"name": "execution_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/api/harness-jobs/": {"get": {"operationId": "simulate_api_harness-jobs_list", "summary": "Provider-neutral control plane for hosted ALK harness jobs.", "description": "Validates the v1.6 request contract and delegates execution to the public backend selected by\n``settings.HARNESS_PROVIDER`` (``hosted`` or ``sandbox``). The hosted backend independently\nselects its managed sandbox runtime.", "parameters": [], "responses": {"200": {"description": "", "schema": {"type": "array", "items": {"$ref": "#/definitions/HarnessJobRead"}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "post": {"operationId": "simulate_api_harness-jobs_create", "summary": "Provider-neutral control plane for hosted ALK harness jobs.", "description": "Validates the v1.6 request contract and delegates execution to the public backend selected by\n``settings.HARNESS_PROVIDER`` (``hosted`` or ``sandbox``). The hosted backend independently\nselects its managed sandbox runtime.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/HarnessJobCreate"}}], "responses": {"202": {"description": "", "schema": {"$ref": "#/definitions/HarnessJobRead"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/simulate/api/harness-jobs/health/": {"get": {"operationId": "simulate_api_harness-jobs_health", "summary": "Provider-neutral control plane for hosted ALK harness jobs.", "description": "Validates the v1.6 request contract and delegates execution to the public backend selected by\n``settings.HARNESS_PROVIDER`` (``hosted`` or ``sandbox``). The hosted backend independently\nselects its managed sandbox runtime.", "parameters": [], "responses": {"200": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": []}, "/simulate/api/harness-jobs/preflight/": {"post": {"operationId": "simulate_api_harness-jobs_preflight", "summary": "Provider-neutral control plane for hosted ALK harness jobs.", "description": "Validates the v1.6 request contract and delegates execution to the public backend selected by\n``settings.HARNESS_PROVIDER`` (``hosted`` or ``sandbox``). The hosted backend independently\nselects its managed sandbox runtime.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/HarnessPreflight"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/HarnessPreflightResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/simulate/api/harness-jobs/secret-files/": {"post": {"operationId": "simulate_api_harness-jobs_secret_file_upload", "summary": "Provider-neutral control plane for hosted ALK harness jobs.", "description": "Validates the v1.6 request contract and delegates execution to the public backend selected by\n``settings.HARNESS_PROVIDER`` (``hosted`` or ``sandbox``). The hosted backend independently\nselects its managed sandbox runtime.", "parameters": [{"name": "file", "in": "formData", "description": "Credential file; transferred without entering job JSON.", "required": true, "type": "file"}, {"name": "environment_name", "in": "formData", "description": "Environment variable that will point to the mounted file.", "required": true, "type": "string"}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/HarnessSecretFileUploadResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "consumes": ["multipart/form-data"], "tags": ["simulate"]}, "parameters": []}, "/simulate/api/harness-jobs/secret-values/": {"post": {"operationId": "simulate_api_harness-jobs_secret_values", "summary": "Persist uploaded agent values encrypted and return opaque hosted refs.", "description": "Values are intentionally separate from platform/model-provider settings. They are scoped\nto the submitting organization and only resolved inside the selected hosted job.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/HarnessSecretValues"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/HarnessSecretValues"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true}, "parameters": []}, "/simulate/api/harness-jobs/sources/": {"post": {"operationId": "simulate_api_harness-jobs_source_upload", "summary": "Provider-neutral control plane for hosted ALK harness jobs.", "description": "Validates the v1.6 request contract and delegates execution to the public backend selected by\n``settings.HARNESS_PROVIDER`` (``hosted`` or ``sandbox``). The hosted backend independently\nselects its managed sandbox runtime.", "parameters": [{"name": "files", "in": "formData", "description": "Repeat this field once for every source file.", "required": true, "type": "file"}, {"name": "paths", "in": "formData", "description": "Repeat in file order with each repository-relative path.", "required": true, "type": "string"}, {"name": "name", "in": "formData", "required": false, "type": "string"}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/HarnessSourceUploadResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "consumes": ["multipart/form-data"], "tags": ["simulate"]}, "parameters": []}, "/simulate/api/harness-jobs/{id}/": {"get": {"operationId": "simulate_api_harness-jobs_read", "summary": "Provider-neutral control plane for hosted ALK harness jobs.", "description": "Validates the v1.6 request contract and delegates execution to the public backend selected by\n``settings.HARNESS_PROVIDER`` (``hosted`` or ``sandbox``). The hosted backend independently\nselects its managed sandbox runtime.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/HarnessJobRead"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/simulate/api/harness-jobs/{id}/adjust/": {"post": {"operationId": "simulate_api_harness-jobs_adjust", "summary": "Provider-neutral control plane for hosted ALK harness jobs.", "description": "Validates the v1.6 request contract and delegates execution to the public backend selected by\n``settings.HARNESS_PROVIDER`` (``hosted`` or ``sandbox``). The hosted backend independently\nselects its managed sandbox runtime.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/HarnessJobAdjustment"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/HarnessJobAdjustment"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/simulate/api/harness-jobs/{id}/cancel/": {"post": {"operationId": "simulate_api_harness-jobs_cancel", "summary": "Provider-neutral control plane for hosted ALK harness jobs.", "description": "Validates the v1.6 request contract and delegates execution to the public backend selected by\n``settings.HARNESS_PROVIDER`` (``hosted`` or ``sandbox``). The hosted backend independently\nselects its managed sandbox runtime.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/HarnessJobAction"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/HarnessJobRead"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/simulate/api/harness-jobs/{id}/conversation/messages/": {"post": {"operationId": "simulate_api_harness-jobs_conversation_conversation_message", "summary": "Provider-neutral control plane for hosted ALK harness jobs.", "description": "Validates the v1.6 request contract and delegates execution to the public backend selected by\n``settings.HARNESS_PROVIDER`` (``hosted`` or ``sandbox``). The hosted backend independently\nselects its managed sandbox runtime.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/HarnessConversationMessageCreate"}}], "responses": {"202": {"description": "", "schema": {"$ref": "#/definitions/HarnessConversationRead"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/simulate/api/harness-jobs/{id}/extend/": {"post": {"operationId": "simulate_api_harness-jobs_extend", "summary": "Provider-neutral control plane for hosted ALK harness jobs.", "description": "Validates the v1.6 request contract and delegates execution to the public backend selected by\n``settings.HARNESS_PROVIDER`` (``hosted`` or ``sandbox``). The hosted backend independently\nselects its managed sandbox runtime.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/HarnessJobExtend"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/HarnessJobExtend"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/simulate/api/harness-jobs/{id}/runs/": {"post": {"operationId": "simulate_api_harness-jobs_runs", "summary": "Provider-neutral control plane for hosted ALK harness jobs.", "description": "Validates the v1.6 request contract and delegates execution to the public backend selected by\n``settings.HARNESS_PROVIDER`` (``hosted`` or ``sandbox``). The hosted backend independently\nselects its managed sandbox runtime.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/HarnessRunCreate"}}], "responses": {"202": {"description": "", "schema": {"$ref": "#/definitions/HarnessRunCreateResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/simulate/api/harness-jobs/{id}/scenarios/": {"get": {"operationId": "simulate_api_harness-jobs_scenarios", "summary": "Provider-neutral control plane for hosted ALK harness jobs.", "description": "Validates the v1.6 request contract and delegates execution to the public backend selected by\n``settings.HARNESS_PROVIDER`` (``hosted`` or ``sandbox``). The hosted backend independently\nselects its managed sandbox runtime.", "parameters": [], "responses": {"200": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/simulate/api/harness-jobs/{id}/scenarios/amend/": {"post": {"operationId": "simulate_api_harness-jobs_scenarios_amend_scenarios", "summary": "Provider-neutral control plane for hosted ALK harness jobs.", "description": "Validates the v1.6 request contract and delegates execution to the public backend selected by\n``settings.HARNESS_PROVIDER`` (``hosted`` or ``sandbox``). The hosted backend independently\nselects its managed sandbox runtime.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/HarnessScenarioAmend"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/HarnessScenarioAmend"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/simulate/api/harness-jobs/{id}/scenarios/coverage/": {"get": {"operationId": "simulate_api_harness-jobs_scenarios_scenario_coverage", "summary": "Provider-neutral control plane for hosted ALK harness jobs.", "description": "Validates the v1.6 request contract and delegates execution to the public backend selected by\n``settings.HARNESS_PROVIDER`` (``hosted`` or ``sandbox``). The hosted backend independently\nselects its managed sandbox runtime.", "parameters": [], "responses": {"200": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/simulate/api/harness/attempts/{id}/artifacts/manifest/": {"post": {"operationId": "simulate_api_harness_attempts_artifacts_artifact_manifest", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/HarnessManifest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/HarnessAcceptedResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/simulate/api/harness/attempts/{id}/artifacts/{artifact_digest}/": {"put": {"operationId": "simulate_api_harness_attempts_artifact_upload", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"type": "string", "format": "binary"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/HarnessArtifactUploadResponse"}}, "201": {"description": "", "schema": {"$ref": "#/definitions/HarnessArtifactUploadResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}, {"name": "artifact_digest", "in": "path", "required": true, "type": "string"}]}, "/simulate/api/harness/attempts/{id}/events/": {"post": {"operationId": "simulate_api_harness_attempts_events", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/HarnessEventBatch"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/HarnessEventBatchResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/simulate/api/harness/attempts/{id}/ingress/": {"post": {"operationId": "simulate_api_harness_attempts_ingress", "summary": "Mint a short-lived, no-header URL for one guest-selected HTTP port.", "description": "The attempt capability authenticates the trusted ALK guest. Customer processes never\nreceive that bearer and therefore cannot expose arbitrary sandbox ports themselves.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/HarnessIngressRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/HarnessIngressResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/simulate/api/harness/attempts/{id}/results/": {"post": {"operationId": "simulate_api_harness_attempts_results", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/HarnessResultReceipt"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/HarnessAcceptedResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/simulate/api/harness/attempts/{id}/scenarios/": {"post": {"operationId": "simulate_api_harness_attempts_scenarios", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/HarnessScenarioOperation"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/HarnessScenarioOperationResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/simulate/api/harness/attempts/{id}/usage/": {"post": {"operationId": "simulate_api_harness_attempts_usage", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/HarnessUsageRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/HarnessUsageResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/HarnessUsageResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/simulate/api/harness/conversations/{id}/adjust/": {"post": {"operationId": "simulate_api_harness_conversations_adjust", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/HarnessConversationAdjustment"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/HarnessConversationAdjustmentResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/simulate/api/harness/conversations/{id}/commands/": {"get": {"operationId": "simulate_api_harness_conversations_commands", "description": "", "parameters": [{"name": "after", "in": "query", "required": false, "type": "integer", "default": 0, "minimum": 0}], "responses": {"200": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/simulate/api/harness/conversations/{id}/events/": {"post": {"operationId": "simulate_api_harness_conversations_events", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/HarnessConversationEventBatch"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/HarnessConversationEventAck"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/simulate/api/harness/conversations/{id}/overview/": {"post": {"operationId": "simulate_api_harness_conversations_overview", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/HarnessConversationOverviewQuery"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/HarnessConversationOverview"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/simulate/api/harness/conversations/{id}/publish/": {"post": {"operationId": "simulate_api_harness_conversations_publish", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/HarnessConversationPublish"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/HarnessConversationPublish"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/simulate/api/harness/conversations/{id}/rerun/": {"post": {"operationId": "simulate_api_harness_conversations_rerun", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/HarnessConversationRerun"}}], "responses": {"202": {"description": "", "schema": {"$ref": "#/definitions/HarnessConversationRunStatus"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/simulate/api/harness/conversations/{id}/run-status/": {"get": {"operationId": "simulate_api_harness_conversations_run_status", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/HarnessConversationRunStatus"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/simulate/api/harness/conversations/{id}/runs/": {"post": {"operationId": "simulate_api_harness_conversations_runs", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/HarnessConversationRunsQuery"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/HarnessConversationRunsQuery"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/simulate/api/harness/conversations/{id}/runs/start/": {"post": {"operationId": "simulate_api_harness_conversations_runs_start_run", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/HarnessConversationRunStart"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/HarnessConversationRunStart"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/simulate/api/harness/conversations/{id}/scenarios/": {"post": {"operationId": "simulate_api_harness_conversations_scenarios", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/HarnessConversationScenarioQuery"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/HarnessConversationScenarioQuery"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/simulate/api/harness/conversations/{id}/session-store/": {"get": {"operationId": "simulate_api_harness_conversations_session_store", "description": "", "parameters": [{"name": "project_key", "in": "query", "required": true, "type": "string", "maxLength": 255, "minLength": 1}, {"name": "session_id", "in": "query", "required": true, "type": "string", "maxLength": 255, "minLength": 1}, {"name": "subpath", "in": "query", "required": false, "type": "string", "default": "", "maxLength": 512}], "responses": {"200": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/simulate/api/harness/conversations/{id}/session-store/append/": {"post": {"operationId": "simulate_api_harness_conversations_session-store_append_session_store", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/HarnessConversationTranscriptAppend"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/HarnessConversationTranscriptAppendResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/simulate/api/harness/conversations/{id}/workspace/": {"put": {"operationId": "simulate_api_harness_conversations_workspace", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"type": "string", "format": "binary"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/HarnessConversationWorkspaceResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "consumes": [], "tags": ["simulate"], "x-runtime-request-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/simulate/api/harness/ingress/{token}/": {"get": {"operationId": "simulate_api_harness_ingress_read", "description": "Relay a signed callback URL to the active sandbox without exposing provider headers.", "parameters": [], "responses": {"200": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "post": {"operationId": "simulate_api_harness_ingress_create", "description": "Relay a signed callback URL to the active sandbox without exposing provider headers.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/HarnessIngressProxyRequest"}}], "responses": {"200": {"description": "Raw response returned by the sandbox callback service.", "schema": {"type": "string", "format": "binary"}}, "201": {"description": "Raw response returned by the sandbox callback service.", "schema": {"type": "string", "format": "binary"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "put": {"operationId": "simulate_api_harness_ingress_update", "description": "Relay a signed callback URL to the active sandbox without exposing provider headers.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/HarnessIngressProxyRequest"}}], "responses": {"200": {"description": "Raw response returned by the sandbox callback service.", "schema": {"type": "string", "format": "binary"}}, "201": {"description": "Raw response returned by the sandbox callback service.", "schema": {"type": "string", "format": "binary"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "patch": {"operationId": "simulate_api_harness_ingress_partial_update", "description": "Relay a signed callback URL to the active sandbox without exposing provider headers.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/HarnessIngressProxyRequest"}}], "responses": {"200": {"description": "Raw response returned by the sandbox callback service.", "schema": {"type": "string", "format": "binary"}}, "201": {"description": "Raw response returned by the sandbox callback service.", "schema": {"type": "string", "format": "binary"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "delete": {"operationId": "simulate_api_harness_ingress_delete", "description": "Relay a signed callback URL to the active sandbox without exposing provider headers.", "parameters": [], "responses": {"204": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": [{"name": "token", "in": "path", "required": true, "type": "string"}]}, "/simulate/api/harness/ingress/{token}/{target_path}": {"get": {"operationId": "simulate_api_harness_ingress_read", "description": "Relay a signed callback URL to the active sandbox without exposing provider headers.", "parameters": [], "responses": {"200": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "post": {"operationId": "simulate_api_harness_ingress_create", "description": "Relay a signed callback URL to the active sandbox without exposing provider headers.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/HarnessIngressProxyRequest"}}], "responses": {"200": {"description": "Raw response returned by the sandbox callback service.", "schema": {"type": "string", "format": "binary"}}, "201": {"description": "Raw response returned by the sandbox callback service.", "schema": {"type": "string", "format": "binary"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "put": {"operationId": "simulate_api_harness_ingress_update", "description": "Relay a signed callback URL to the active sandbox without exposing provider headers.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/HarnessIngressProxyRequest"}}], "responses": {"200": {"description": "Raw response returned by the sandbox callback service.", "schema": {"type": "string", "format": "binary"}}, "201": {"description": "Raw response returned by the sandbox callback service.", "schema": {"type": "string", "format": "binary"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "patch": {"operationId": "simulate_api_harness_ingress_partial_update", "description": "Relay a signed callback URL to the active sandbox without exposing provider headers.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/HarnessIngressProxyRequest"}}], "responses": {"200": {"description": "Raw response returned by the sandbox callback service.", "schema": {"type": "string", "format": "binary"}}, "201": {"description": "Raw response returned by the sandbox callback service.", "schema": {"type": "string", "format": "binary"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "delete": {"operationId": "simulate_api_harness_ingress_delete", "description": "Relay a signed callback URL to the active sandbox without exposing provider headers.", "parameters": [], "responses": {"204": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": [{"name": "token", "in": "path", "required": true, "type": "string"}, {"name": "target_path", "in": "path", "required": true, "type": "string"}]}, "/simulate/api/livekit/call-config/{call_id}/": {"get": {"operationId": "simulate_api_livekit_call-config_read", "description": "Return call config for a given call execution.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/LiveKitCallConfigResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/LiveKitErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": [{"name": "call_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/api/livekit/call-execution/{call_id}/": {"patch": {"operationId": "simulate_api_livekit_call-execution_partial_update", "description": "Update lifecycle fields on a call execution.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/LiveKitCallExecutionUpdateRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/LiveKitOkResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/LiveKitErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/LiveKitErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "call_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/api/livekit/listener-token/{call_id}/": {"get": {"operationId": "simulate_api_livekit_listener-token_read", "summary": "Generate a read-only LiveKit token for live call monitoring.", "description": "GET /simulate/api/livekit/listener-token/<call_id>/\n\nReturns a JWT that allows the user to join the call's LiveKit room\nas a listener (can subscribe to audio, cannot publish). Used by the\nfrontend to let users hear an ongoing call in real-time.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/LiveKitListenerTokenResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": [{"name": "call_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/api/livekit/phone-resolution/{phone_number}/": {"get": {"operationId": "simulate_api_livekit_phone-resolution_read", "description": "Resolve a phone number to its linked call config.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/LiveKitPhoneResolutionResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/LiveKitErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": [{"name": "phone_number", "in": "path", "required": true, "type": "string"}]}, "/simulate/api/livekit/temporal-signal/": {"post": {"operationId": "simulate_api_livekit_temporal-signal_create", "description": "Send a call_ended signal to a Temporal workflow.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/LiveKitTemporalSignalRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/LiveKitOkResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/LiveKitErrorResponse"}}, "502": {"description": "", "schema": {"$ref": "#/definitions/LiveKitErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/simulate/api/livekit/transcripts/{call_id}/": {"post": {"operationId": "simulate_api_livekit_transcripts_create", "description": "Create transcript row(s) for a call execution.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/LiveKitTranscriptsRequest"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/LiveKitTranscriptCreatedResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/LiveKitErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/LiveKitErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "call_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/api/livekit/validate-credentials/": {"post": {"operationId": "simulate_api_livekit_validate-credentials_create", "summary": "Validate customer-provided LiveKit credentials.", "description": "POST /simulate/api/livekit/validate-credentials/\n\nCreates a temporary room on the customer's LiveKit server using their\ncredentials and immediately deletes it. Returns whether the credentials\nare valid.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ValidateLiveKitCredentialsRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ValidateLiveKitCredentialsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/simulate/api/livekit/webhook/": {"post": {"operationId": "simulate_api_livekit_webhook_create", "summary": "Receive and process LiveKit server webhooks.", "description": "Handles lifecycle events (room start/finish, participant join/leave,\negress completion). This is the **reliable** path for updating call\nlifecycle and signaling Temporal — it fires even if the agent worker\ncrashes mid-call.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"description": "LiveKit webhook payload verified against the Authorization JWT.", "type": "object"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/LiveKitOkResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/LiveKitErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true}, "parameters": []}, "/simulate/api/personas/": {"get": {"operationId": "simulate_api_personas_list", "description": "List personas with pagination", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/PersonaList"}}}}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "post": {"operationId": "simulate_api_personas_create", "description": "Create a new workspace-level persona", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/PersonaCreate"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/PersonaCreate"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": []}, "/simulate/api/personas/duplicate/{persona_id}/": {"post": {"operationId": "simulate_api_personas_duplicate_create", "description": "Duplicate a persona by ID", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/PersonaDuplicateRequest"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/PersonaDuplicateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "persona_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/api/personas/field-options/": {"get": {"operationId": "simulate_api_personas_field_options", "description": "Get field options/choices for persona creation", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/PersonaFieldOptions"}}}}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": []}, "/simulate/api/personas/system/": {"get": {"operationId": "simulate_api_personas_system_personas", "description": "Get only system-level personas", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/Persona"}}}}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": []}, "/simulate/api/personas/workspace/": {"get": {"operationId": "simulate_api_personas_workspace_personas", "description": "Get only workspace-level personas", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/Persona"}}}}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": []}, "/simulate/api/personas/{id}/": {"get": {"operationId": "simulate_api_personas_read", "description": "Retrieve a specific persona", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/Persona"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "put": {"operationId": "simulate_api_personas_update", "description": "Update a persona (workspace-level only)", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/Persona"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/Persona"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "patch": {"operationId": "simulate_api_personas_partial_update", "description": "ViewSet for managing Personas.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/Persona"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/Persona"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "delete": {"operationId": "simulate_api_personas_delete", "description": "Delete a persona (workspace-level only)", "parameters": [], "responses": {"204": {"description": ""}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/simulate/api/personas/{id}/duplicate/": {"post": {"operationId": "simulate_api_personas_duplicate", "description": "Duplicate a persona (creates a workspace-level copy)", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/PersonaDuplicateRequest"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/PersonaDuplicateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/simulate/api/run-tests/": {"get": {"operationId": "simulate_api_run-tests_list", "description": "Get paginated list of run tests for the user's organization\nQuery Parameters:\n- search: search string to filter run tests by name\n- limit: number of items per page (default: 10)\n- page: page number (default: 1)\n- summary: return the bounded list-card representation", "parameters": [{"name": "search", "in": "query", "required": false, "type": "string", "default": ""}, {"name": "simulation_type", "in": "query", "required": false, "type": "string", "enum": ["agent_definition", "prompt"], "default": ""}, {"name": "prompt_template_id", "in": "query", "required": false, "type": "string", "format": "uuid", "x-nullable": true}, {"name": "page", "in": "query", "required": false, "type": "integer", "default": 1, "maximum": 100, "minimum": 1}, {"name": "limit", "in": "query", "required": false, "type": "integer", "maximum": 100, "minimum": 1}, {"name": "summary", "in": "query", "description": "Return the bounded list-card representation instead of the full nested run-test detail payload.", "required": false, "type": "boolean", "default": false}], "responses": {"200": {"description": "", "schema": {"type": "array", "items": {"$ref": "#/definitions/RunTestResponse"}}}, "404": {"description": "", "schema": {"$ref": "#/definitions/RunTestErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/RunTestErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/RunTestErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/simulate/api/test-executions/": {"get": {"operationId": "simulate_api_test-executions_list", "description": "Get paginated list of test executions for the user's organization\nQuery Parameters:\n- search: search string to filter test executions by run test name\n- status: filter by execution status\n- limit: number of items per page (default: 10)\n- page: page number (default: 1)", "parameters": [{"name": "search", "in": "query", "required": false, "type": "string", "default": ""}, {"name": "status", "in": "query", "required": false, "type": "string", "default": ""}, {"name": "page", "in": "query", "required": false, "type": "integer", "minimum": 1}, {"name": "limit", "in": "query", "required": false, "type": "integer", "minimum": 1}], "responses": {"200": {"description": "", "schema": {"type": "array", "items": {"$ref": "#/definitions/TestExecution"}}}, "404": {"description": "", "schema": {"$ref": "#/definitions/RunTestErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/RunTestErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/simulate/call-executions/{call_execution_id}/": {"get": {"operationId": "simulate_call-executions_read", "description": "Get a specific call execution with all its details", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/CallExecutionDetail"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/CallExecutionErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/CallExecutionErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "patch": {"operationId": "simulate_call-executions_partial_update", "description": "Update the status of a specific call execution", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/CallExecutionStatusUpdate"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/CallExecution"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/CallExecutionErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/CallExecutionErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/CallExecutionErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "call_execution_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/call-executions/{call_execution_id}/branch-analysis/": {"get": {"operationId": "simulate_call-executions_branch-analysis_list", "description": "Analyze a call execution against graph branches and identify deviations", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/CallBranchAnalysisResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "post": {"operationId": "simulate_call-executions_branch-analysis_create", "description": "Create deviation nodes and edges for a call execution", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/EmptyRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/CallBranchDeviationCreateResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "call_execution_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/call-executions/{call_execution_id}/chat/send-message/": {"post": {"operationId": "simulate_call-executions_chat_send-message_create", "description": "Send a message to a chat execution", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/SendChatRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ChatSendMessageResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "call_execution_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/call-executions/{call_execution_id}/delete/": {"delete": {"operationId": "simulate_call-executions_delete_delete", "description": "Delete a specific call execution", "parameters": [], "responses": {"204": {"description": "", "schema": {"$ref": "#/definitions/CallExecutionDeleteResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/CallExecutionErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/CallExecutionErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": [{"name": "call_execution_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/call-executions/{call_execution_id}/error-localizer-tasks/": {"get": {"operationId": "simulate_call-executions_error-localizer-tasks_list", "description": "Get error localizer tasks for a specific call execution", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/CallExecutionErrorLocalizerTasksResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/CallExecutionErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/CallExecutionErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": [{"name": "call_execution_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/call-executions/{call_execution_id}/logs/": {"get": {"operationId": "simulate_call-executions_logs_list", "description": "Paginated API to retrieve stored log entries for a call execution.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/CallExecutionLogsResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/CallExecutionErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/CallExecutionErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": [{"name": "call_execution_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/call-executions/{call_execution_id}/session-comparison/": {"get": {"operationId": "simulate_call-executions_session-comparison_list", "description": "API View to compare session chat simulations", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SessionComparisonResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/CallExecutionErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/CallExecutionErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": [{"name": "call_execution_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/call-executions/{call_execution_id}/transcripts/": {"get": {"operationId": "simulate_call-executions_transcripts_list", "description": "Get transcripts for a specific call execution", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/CallTranscriptResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": [{"name": "call_execution_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/export/{item_id}/": {"get": {"operationId": "simulate_export_read", "description": "Export data as CSV based on type parameter\nQuery Parameters:\n- type: 'runtest' or 'testexecution' (required)\n- search: search string to filter call executions by phone number or scenario name\n- status: filter by call execution status", "parameters": [{"name": "type", "in": "query", "description": "Export source type.", "required": true, "type": "string", "enum": ["runtest", "testexecution"]}, {"name": "search", "in": "query", "description": "Optional call-execution search term.", "required": false, "type": "string"}, {"name": "status", "in": "query", "description": "Optional call-execution status filter.", "required": false, "type": "string"}], "responses": {"200": {"description": "CSV export", "schema": {"type": "file"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": [{"name": "item_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/prompt-simulations/scenarios/": {"get": {"operationId": "simulate_prompt-simulations_scenarios_list", "summary": "Get list of scenarios available for prompt simulations.", "description": "Query Parameters:\n- limit: number of items per page (default: 20)\n- page: page number (default: 1)\n- search: search string to filter scenarios by name", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PromptSimulationScenariosResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": []}, "/simulate/prompt-templates/{prompt_template_id}/simulations/": {"get": {"operationId": "simulate_prompt-templates_simulations_list", "summary": "Get paginated list of simulation runs for a specific prompt template.", "description": "Query Parameters:\n- limit: number of items per page (default: 10)\n- page: page number (default: 1)\n- version_id: filter by specific prompt version", "parameters": [{"name": "version_id", "in": "query", "required": false, "type": "string", "format": "uuid"}, {"name": "page", "in": "query", "required": false, "type": "integer", "default": 1, "maximum": 100, "minimum": 1}, {"name": "limit", "in": "query", "required": false, "type": "integer", "default": 10, "maximum": 100, "minimum": 1}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PromptSimulationListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "post": {"operationId": "simulate_prompt-templates_simulations_create", "summary": "Create a new prompt-based simulation run.", "description": "Request Body:\n- name: Name of the simulation run\n- description: Optional description\n- prompt_version_id: The prompt version to use\n- scenario_ids: List of scenario IDs to run\n- dataset_row_ids: Optional list of specific row IDs\n- evaluations_config: Optional evaluation configurations\n- enable_tool_evaluation: Optional boolean to enable tool evaluation", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/CreatePromptSimulationRequest"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/PromptSimulationRunResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "prompt_template_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/prompt-templates/{prompt_template_id}/simulations/{run_test_id}/": {"get": {"operationId": "simulate_prompt-templates_simulations_read", "description": "Retrieve a specific prompt simulation run.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PromptSimulationRunResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "patch": {"operationId": "simulate_prompt-templates_simulations_partial_update", "description": "Update a prompt simulation run (version, scenarios, etc.).", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/PromptSimulationUpdateRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PromptSimulationRunResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "delete": {"operationId": "simulate_prompt-templates_simulations_delete", "description": "Soft delete a prompt simulation run.", "parameters": [], "responses": {"204": {"description": ""}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": [{"name": "prompt_template_id", "in": "path", "required": true, "type": "string"}, {"name": "run_test_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/prompt-templates/{prompt_template_id}/simulations/{run_test_id}/execute/": {"post": {"operationId": "simulate_prompt-templates_simulations_execute_create", "summary": "Execute a prompt-based simulation run.", "description": "Request Body (optional):\n- scenario_ids: List of specific scenario IDs to run (default: all scenarios)\n- select_all: If true, run all scenarios except ones in scenario_ids", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ExecutePromptSimulationRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ExecutePromptSimulationResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "prompt_template_id", "in": "path", "required": true, "type": "string"}, {"name": "run_test_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/run-tests/": {"get": {"operationId": "simulate_run-tests_list", "description": "Get paginated list of run tests for the user's organization\nQuery Parameters:\n- search: search string to filter run tests by name\n- limit: number of items per page (default: 10)\n- page: page number (default: 1)\n- simulation_type: filter by source type (RunTest.SourceTypes values:\n    'agent_definition' or 'prompt')\n- prompt_template_id: filter by prompt template ID (used when\n    simulation_type is 'prompt')\n- summary: return the bounded list-card representation", "parameters": [{"name": "search", "in": "query", "required": false, "type": "string", "default": ""}, {"name": "simulation_type", "in": "query", "required": false, "type": "string", "enum": ["agent_definition", "prompt"], "default": ""}, {"name": "prompt_template_id", "in": "query", "required": false, "type": "string", "format": "uuid", "x-nullable": true}, {"name": "page", "in": "query", "required": false, "type": "integer", "default": 1, "maximum": 100, "minimum": 1}, {"name": "limit", "in": "query", "required": false, "type": "integer", "maximum": 100, "minimum": 1}, {"name": "summary", "in": "query", "description": "Return the bounded list-card representation instead of the full nested run-test detail payload.", "required": false, "type": "boolean", "default": false}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/RunTestListPaginatedResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/RunTestErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/RunTestErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/simulate/run-tests/active/": {"get": {"operationId": "simulate_run-tests_active_list", "description": "Get all active tests", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AllActiveTests"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": []}, "/simulate/run-tests/create/": {"post": {"operationId": "simulate_run-tests_create_create", "description": "Create a new RunTest", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/CreateRunTest"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/RunTestResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/RunTestErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/RunTestErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/RunTestErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/simulate/run-tests/get-id-by-name/{run_test_name}/": {"get": {"operationId": "simulate_run-tests_get-id-by-name_read", "description": "API View to get the id of a run test by name", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/RunTestNameResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": [{"name": "run_test_name", "in": "path", "required": true, "type": "string"}]}, "/simulate/run-tests/{run_test_id}/": {"get": {"operationId": "simulate_run-tests_read", "description": "Retrieve a specific RunTest", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/RunTestResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/RunTestErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/RunTestErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/RunTestErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "patch": {"operationId": "simulate_run-tests_partial_update", "description": "Update a specific RunTest", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UpdateRunTest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/RunTestResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/RunTestErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/RunTestErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/RunTestErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "delete": {"operationId": "simulate_run-tests_delete", "description": "Delete a specific RunTest (soft delete)", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/RunTestMessageResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/RunTestErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/RunTestErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": [{"name": "run_test_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/run-tests/{run_test_id}/analytics/": {"get": {"operationId": "simulate_run-tests_analytics_list", "description": "Get analytics data for a specific run test across multiple test executions", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/RunTestAnalytics"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": [{"name": "run_test_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/run-tests/{run_test_id}/call-executions/": {"get": {"operationId": "simulate_run-tests_call-executions_list", "description": "Get all call executions for a specific run test with pagination and search\nQuery Parameters:\n- search: search string to filter call executions by phone number or scenario name\n- status: filter by call execution status\n- limit: number of call executions per page (default: 10)\n- page: page number for call executions (default: 1)", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/RunTestCallExecutionsResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/CallExecutionErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/CallExecutionErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": [{"name": "run_test_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/run-tests/{run_test_id}/chat-execute/": {"post": {"operationId": "simulate_run-tests_chat-execute_create", "description": "Execute a test run", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/EmptyRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/RunTestChatExecutionResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "run_test_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/run-tests/{run_test_id}/components/": {"patch": {"operationId": "simulate_run-tests_components_partial_update", "description": "Update components of a specific RunTest", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/RunTestComponentsUpdate"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/RunTestResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/RunTestErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/RunTestErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/RunTestErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "run_test_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/run-tests/{run_test_id}/delete-test-executions/": {"post": {"operationId": "simulate_run-tests_delete-test-executions_create", "description": "Delete multiple test executions within a run test.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/TestExecutionBulkDelete"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/TestExecutionBulkDeleteResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "run_test_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/run-tests/{run_test_id}/delete/": {"delete": {"operationId": "simulate_run-tests_delete_delete", "description": "Delete a specific run test", "parameters": [], "responses": {"204": {"description": ""}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": [{"name": "run_test_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/run-tests/{run_test_id}/eval-configs/": {"post": {"operationId": "simulate_run-tests_eval-configs_create", "summary": "Add evaluation configurations", "description": "Adds evaluation configurations to a test run. Returns 201 with the created configs.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AddEvalConfigsRequest"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/AddEvalConfigsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/EvalErrorResponse"}}, "401": {"description": "Unauthorized"}, "404": {"description": "", "schema": {"$ref": "#/definitions/EvalErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/EvalErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["Run Tests - Eval Configs"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "run_test_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/run-tests/{run_test_id}/eval-configs/{eval_config_id}/": {"delete": {"operationId": "simulate_run-tests_eval-configs_delete", "summary": "Delete evaluation configuration", "description": "Soft-deletes an evaluation configuration. Cannot delete the last remaining config in the test run.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DeleteEvalConfigResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/EvalErrorResponse"}}, "401": {"description": "Unauthorized"}, "404": {"description": "", "schema": {"$ref": "#/definitions/EvalErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/EvalErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["Run Tests - Eval Configs"]}, "parameters": [{"name": "run_test_id", "in": "path", "required": true, "type": "string"}, {"name": "eval_config_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/run-tests/{run_test_id}/eval-configs/{eval_config_id}/get-structure/": {"get": {"operationId": "simulate_run-tests_eval-configs_get-structure_list", "description": "Get the structure of an evaluation config", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/EvalConfigStructureResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/EvalErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/EvalErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": [{"name": "run_test_id", "in": "path", "required": true, "type": "string"}, {"name": "eval_config_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/run-tests/{run_test_id}/eval-configs/{eval_config_id}/update/": {"post": {"operationId": "simulate_run-tests_eval-configs_update_create", "summary": "Update evaluation configuration", "description": "Updates an evaluation configuration and optionally triggers a rerun. When run=true, test_execution_id is required.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/EvalConfigUpdateRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/EvalConfigUpdateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/EvalErrorResponse"}}, "401": {"description": "Unauthorized"}, "404": {"description": "", "schema": {"$ref": "#/definitions/EvalErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/EvalErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["Run Tests - Eval Configs"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "run_test_id", "in": "path", "required": true, "type": "string"}, {"name": "eval_config_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/run-tests/{run_test_id}/eval-summary-comparison/": {"get": {"operationId": "simulate_run-tests_eval-summary-comparison_list", "summary": "Compare evaluation summaries", "description": "Compares evaluation summary statistics across multiple test executions.", "parameters": [{"name": "execution_ids", "in": "query", "description": "JSON-encoded array of test execution UUIDs to compare. Example: [\"uuid1\",\"uuid2\"]. Must be URL-encoded.", "required": true, "type": "string", "minLength": 1}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/EvalSummaryComparisonResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/EvalErrorResponse"}}, "401": {"description": "Unauthorized"}, "404": {"description": "", "schema": {"$ref": "#/definitions/EvalErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/EvalErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["Run Tests - Eval Summary"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "run_test_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/run-tests/{run_test_id}/eval-summary/": {"get": {"operationId": "simulate_run-tests_eval-summary_list", "summary": "Get evaluation summary", "description": "Returns evaluation summary statistics for a test run, optionally scoped to a single execution.", "parameters": [{"name": "execution_id", "in": "query", "description": "UUID of a specific test execution to scope the summary to. If omitted, aggregates across all executions.", "required": false, "type": "string", "format": "uuid", "x-nullable": true}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/EvalSummaryResponse"}}, "401": {"description": "Unauthorized"}, "404": {"description": "", "schema": {"$ref": "#/definitions/EvalErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/EvalErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["Run Tests - Eval Summary"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "run_test_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/run-tests/{run_test_id}/execute/": {"post": {"operationId": "simulate_run-tests_execute_create", "description": "Execute a test run", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ExecuteRunTest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/RunTestExecutionResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/RunTestErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/RunTestErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/RunTestErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "run_test_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/run-tests/{run_test_id}/executions/": {"get": {"operationId": "simulate_run-tests_executions_list", "description": "Get test execution data for a specific run test\nQuery Parameters:\n- search: search string to filter test executions by status or scenario name\n- status: filter by execution status\n- limit: number of items per page (default: 10)\n- page: page number (default: 1)", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/RunTestExecutionsResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/RunTestErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/RunTestErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": [{"name": "run_test_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/run-tests/{run_test_id}/preview-executions/": {"get": {"operationId": "simulate_run-tests_preview-executions_list", "description": "", "parameters": [{"name": "cursor", "in": "query", "required": false, "type": "string", "maxLength": 4096, "minLength": 1}, {"name": "page_size", "in": "query", "required": false, "type": "integer", "default": 50, "maximum": 50, "minimum": 1}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SimulationPreviewPage"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/SimulationPreviewError"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/SimulationPreviewError"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/SimulationPreviewError"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/SimulationPreviewError"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "run_test_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/run-tests/{run_test_id}/rerun-test-executions/": {"post": {"operationId": "simulate_run-tests_rerun-test-executions_create", "description": "Rerun multiple test executions (either evaluation only or call + evaluation).\nAll call executions within each test execution are rerun.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/TestExecutionRerun"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/TestExecutionRerunResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "run_test_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/run-tests/{run_test_id}/run-new-evals/": {"post": {"operationId": "simulate_run-tests_run-new-evals_create", "summary": "Run new evaluations on test executions", "description": "Runs new evaluations on completed test executions. Either test_execution_ids or select_all=true must be provided.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/RunNewEvalsOnTestExecution"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/RunNewEvalsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/EvalErrorResponse"}}, "401": {"description": "Unauthorized"}, "404": {"description": "", "schema": {"$ref": "#/definitions/EvalErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/EvalErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/EvalErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["Run Tests - Eval Configs"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "run_test_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/run-tests/{run_test_id}/scenarios/": {"get": {"operationId": "simulate_run-tests_scenarios_list", "description": "Get paginated list of scenarios for a specific run test\nQuery Parameters:\n- search: search string to filter scenarios by name\n- limit: number of items per page (default: 10)\n- page: page number (default: 1)", "parameters": [], "responses": {"200": {"description": "", "schema": {"type": "array", "items": {"$ref": "#/definitions/RunTestScenarioItemResponse"}}}, "404": {"description": "", "schema": {"$ref": "#/definitions/RunTestErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/RunTestErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": [{"name": "run_test_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/run-tests/{run_test_id}/sdk-code/": {"get": {"operationId": "simulate_run-tests_sdk-code_list", "description": "Get the SDK code with placeholders filled", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ChatSDKCodeResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": [{"name": "run_test_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/run-tests/{run_test_id}/status/": {"get": {"operationId": "simulate_run-tests_status_list", "description": "Get test execution status", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/TestExecutionStatus"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": [{"name": "run_test_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/scenarios/": {"get": {"operationId": "simulate_scenarios_list", "summary": "List scenarios", "description": "Returns a paginated list of scenarios for the user's organization.", "parameters": [{"name": "search", "in": "query", "required": false, "type": "string", "default": ""}, {"name": "agent_definition_id", "in": "query", "required": false, "type": "string", "format": "uuid", "x-nullable": true}, {"name": "agent_type", "in": "query", "required": false, "type": "string", "minLength": 1, "x-nullable": true}, {"name": "page", "in": "query", "required": false, "type": "integer", "default": 1, "minimum": 1}, {"name": "limit", "in": "query", "required": false, "type": "integer", "minimum": 1}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ScenarioListResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ScenarioErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ScenarioErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["Scenarios"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/simulate/scenarios/create/": {"post": {"operationId": "simulate_scenarios_create_create", "summary": "Create scenario", "description": "Creates a new scenario (dataset, script, or graph kind). Returns 202 with processing status.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ScenarioCreateRequest"}}], "responses": {"202": {"description": "", "schema": {"$ref": "#/definitions/ScenarioCreateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ScenarioErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ScenarioErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["Scenarios"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/simulate/scenarios/get-columns/": {"get": {"operationId": "simulate_scenarios_get-columns_list", "summary": "List scenarios", "description": "Returns a paginated list of scenarios for the user's organization.", "parameters": [{"name": "search", "in": "query", "required": false, "type": "string", "default": ""}, {"name": "agent_definition_id", "in": "query", "required": false, "type": "string", "format": "uuid", "x-nullable": true}, {"name": "agent_type", "in": "query", "required": false, "type": "string", "minLength": 1, "x-nullable": true}, {"name": "page", "in": "query", "required": false, "type": "integer", "default": 1, "minimum": 1}, {"name": "limit", "in": "query", "required": false, "type": "integer", "minimum": 1}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ScenarioListResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ScenarioErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ScenarioErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["Scenarios"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/simulate/scenarios/{scenario_id}/": {"get": {"operationId": "simulate_scenarios_read", "summary": "Get scenario detail", "description": "Returns full detail of a specific scenario including graph data and prompts.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ScenarioDetailResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ScenarioErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ScenarioErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["Scenarios"]}, "parameters": [{"name": "scenario_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/scenarios/{scenario_id}/add-columns/": {"post": {"operationId": "simulate_scenarios_add-columns_create", "summary": "Add columns to scenario", "description": "Adds new columns to a scenario's dataset via Temporal workflow. Returns 202 Accepted.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ScenarioAddColumnsRequest"}}], "responses": {"202": {"description": "", "schema": {"$ref": "#/definitions/ScenarioAddColumnsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ScenarioErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ScenarioErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ScenarioErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["Scenarios"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "scenario_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/scenarios/{scenario_id}/add-rows/": {"post": {"operationId": "simulate_scenarios_add-rows_create", "summary": "Add rows to scenario", "description": "Adds new rows to a scenario's dataset via Temporal workflow. Returns 202 Accepted.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ScenarioAddRowsRequest"}}], "responses": {"202": {"description": "", "schema": {"$ref": "#/definitions/ScenarioAddRowsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ScenarioErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ScenarioErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ScenarioErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["Scenarios"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "scenario_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/scenarios/{scenario_id}/delete/": {"delete": {"operationId": "simulate_scenarios_delete_delete", "summary": "Delete scenario", "description": "Soft-deletes a scenario by setting deleted=True.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ScenarioDeleteResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ScenarioErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ScenarioErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["Scenarios"]}, "parameters": [{"name": "scenario_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/scenarios/{scenario_id}/edit/": {"put": {"operationId": "simulate_scenarios_edit_update", "summary": "Edit scenario", "description": "Updates scenario name, description, graph, or prompt.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ScenarioEditRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ScenarioEditResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ScenarioErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ScenarioErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ScenarioErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["Scenarios"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "scenario_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/scenarios/{scenario_id}/prompts/": {"put": {"operationId": "simulate_scenarios_prompts_update", "summary": "Edit scenario prompts", "description": "Updates the simulator agent prompt for a scenario.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ScenarioEditPromptsRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ScenarioPromptsUpdateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ScenarioErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ScenarioErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ScenarioErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["Scenarios"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "scenario_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/simulator-agents/": {"get": {"operationId": "simulate_simulator-agents_list", "description": "List simulator agents with pagination and search", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SimulatorAgentListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": []}, "/simulate/simulator-agents/create/": {"post": {"operationId": "simulate_simulator-agents_create_create", "description": "Create a new simulator agent", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/SimulatorAgent"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/SimulatorAgent"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/SimulatorAgentValidationErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/simulate/simulator-agents/{agent_id}/": {"get": {"operationId": "simulate_simulator-agents_read", "description": "Get details of a specific simulator agent", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SimulatorAgent"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": [{"name": "agent_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/simulator-agents/{agent_id}/delete/": {"delete": {"operationId": "simulate_simulator-agents_delete_delete", "description": "Soft delete a simulator agent", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SimulatorAgentDeleteResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorWithDetailsResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": [{"name": "agent_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/simulator-agents/{agent_id}/edit/": {"put": {"operationId": "simulate_simulator-agents_edit_update", "description": "Edit an existing simulator agent", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/SimulatorAgent"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SimulatorAgent"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/SimulatorAgentValidationErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "agent_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/test-executions/{test_execution_id}/": {"get": {"operationId": "simulate_test-executions_read", "description": "Get a specific test execution with all its details and paginated call executions\nQuery Parameters:\n- search: search string to filter call executions\n- page: page number for call executions (default: 1)\n- filters: JSON array of filter objects\n- row_groups: JSON array of column IDs to group by\n- group_keys: JSON array of group keys", "parameters": [{"name": "search", "in": "query", "required": false, "type": "string", "default": ""}, {"name": "filters", "in": "query", "required": false, "type": "string", "default": "[]", "minLength": 1}, {"name": "row_groups", "in": "query", "required": false, "type": "string", "default": "[]", "minLength": 1}, {"name": "group_keys", "in": "query", "required": false, "type": "string", "default": "[]", "minLength": 1}, {"name": "page", "in": "query", "required": false, "type": "integer", "default": 1, "minimum": 1}, {"name": "limit", "in": "query", "required": false, "type": "integer", "default": 30, "minimum": 1}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/TestExecutionDetailResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "test_execution_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/test-executions/{test_execution_id}/analytics/": {"get": {"operationId": "simulate_test-executions_analytics_list", "description": "Get analytics data for a specific test execution", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/TestExecutionAnalytics"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": [{"name": "test_execution_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/test-executions/{test_execution_id}/cancel/": {"post": {"operationId": "simulate_test-executions_cancel_create", "description": "Cancel a test execution", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/EmptyRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/CancelTestExecutionResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "test_execution_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/test-executions/{test_execution_id}/chat/call-executions/batch/": {"post": {"operationId": "simulate_test-executions_chat_call-executions_batch_create", "summary": "Create a batch of CallExecution records for chat execution (exactly 10 per API call).", "description": "This follows the same flow as inbound/outbound calls:\n1. Resolve SimulatorAgent (scenario > run_test > fallback)\n2. Extract base_prompt from SimulatorAgent\n3. Handle dataset scenarios (create one CallExecution per row)\n4. Enhance prompt with row data if applicable\n5. Store proper metadata in CallExecution\n\nReturns exactly 10 CallExecution objects per API call.\nhasMore is true until ALL row_ids of ALL scenarios have CallExecution objects created.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/EmptyRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/TestExecutionChatBatchResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "test_execution_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/test-executions/{test_execution_id}/column-order/": {"put": {"operationId": "simulate_test-executions_column-order_update", "description": "Update column order for a test execution", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/TestExecutionColumnOrder"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/TestExecutionColumnOrderResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "test_execution_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/test-executions/{test_execution_id}/debug-analysis/": {"get": {"operationId": "simulate_test_execution_debug_analysis_retrieve", "summary": "Get Test Execution debug analysis", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/TestExecutionDebugAnalysisResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/TestExecutionDebugAnalysisNotFound"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "post": {"operationId": "simulate_test_execution_debug_analysis_create", "summary": "Request Test Execution debug analysis", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/EmptyRequest"}}], "responses": {"202": {"description": "", "schema": {"$ref": "#/definitions/TestExecutionDebugAnalysisResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/TestExecutionDebugAnalysisNotFound"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/TestExecutionDebugAnalysisError"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "test_execution_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/test-executions/{test_execution_id}/delete/": {"delete": {"operationId": "simulate_test-executions_delete_delete", "description": "Delete a specific test execution", "parameters": [], "responses": {"204": {"description": ""}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": [{"name": "test_execution_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/test-executions/{test_execution_id}/eval-explanation-summary/": {"get": {"operationId": "simulate_test-executions_eval-explanation-summary_list", "description": "Fetch the evaluation explanation summary from the database.\nIf not present, trigger async calculation and return empty response.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/EvalExplanationSummaryResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": [{"name": "test_execution_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/test-executions/{test_execution_id}/eval-explanation-summary/refresh/": {"post": {"operationId": "simulate_test-executions_eval-explanation-summary_refresh_create", "description": "Refresh the evaluation explanation summary by recalculating it.\nThis endpoint triggers the summary calculation task again.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/EmptyRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/EvalExplanationSummaryRefreshResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "test_execution_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/test-executions/{test_execution_id}/kpis/": {"get": {"operationId": "simulate_test-executions_kpis_list", "description": "Get combined KPI values for a specific run test", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/RunTestKPIsResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": [{"name": "test_execution_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/test-executions/{test_execution_id}/optimiser-analysis/": {"get": {"operationId": "simulate_test-executions_optimiser-analysis_list", "description": "Fetch the agent optimiser analysis for a test execution.\nIf not present or pending, returns status information.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/OptimiserAnalysisResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": [{"name": "test_execution_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/test-executions/{test_execution_id}/optimiser-analysis/refresh/": {"post": {"operationId": "simulate_test-executions_optimiser-analysis_refresh_create", "description": "Trigger a new agent optimiser analysis run.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/EmptyRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/OptimiserAnalysisRefreshResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "test_execution_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/test-executions/{test_execution_id}/performance-summary/": {"get": {"operationId": "simulate_test-executions_performance-summary_list", "description": "Get performance summary data for a specific test execution", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PerformanceSummary"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": [{"name": "test_execution_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/test-executions/{test_execution_id}/preview-calls/": {"get": {"operationId": "simulate_test-executions_preview-calls_list", "description": "", "parameters": [{"name": "cursor", "in": "query", "required": false, "type": "string", "maxLength": 4096, "minLength": 1}, {"name": "page_size", "in": "query", "required": false, "type": "integer", "default": 50, "maximum": 50, "minimum": 1}, {"name": "run_test_id", "in": "query", "description": "Run-test scope selected by the preview. The execution and every signed continuation must belong to this run test.", "required": true, "type": "string", "format": "uuid"}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SimulationPreviewPage"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/SimulationPreviewError"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/SimulationPreviewError"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/SimulationPreviewError"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/SimulationPreviewError"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "test_execution_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/test-executions/{test_execution_id}/rerun-calls/": {"post": {"operationId": "simulate_test-executions_rerun-calls_create", "description": "Rerun multiple call executions (either evaluation only or call + evaluation)", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/CallExecutionRerun"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/RerunCallsResponse"}}, "202": {"description": "", "schema": {"$ref": "#/definitions/RerunCallsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "test_execution_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/test-executions/{test_execution_id}/transcripts/": {"get": {"operationId": "simulate_test-executions_transcripts_list", "description": "Get all transcripts for a test execution", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/TestExecutionTranscriptsResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": [{"name": "test_execution_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/v3/call-executions/{call_execution_id}/": {"get": {"operationId": "simulate_v3_call_execution_detail", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/CallExecutionV3DetailResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": [{"name": "call_execution_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/v3/test-executions/{test_execution_id}/analytics/": {"get": {"operationId": "simulate_v3_test_execution_analytics", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/RunAnalyticsV3Response"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"]}, "parameters": [{"name": "test_execution_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/v3/test-executions/{test_execution_id}/calls/": {"get": {"operationId": "simulate_v3_test_execution_calls", "description": "", "parameters": [{"name": "search", "in": "query", "required": false, "type": "string", "default": ""}, {"name": "filters", "in": "query", "required": false, "type": "string", "default": {}}, {"name": "ordering", "in": "query", "required": false, "type": "string", "enum": ["started_at", "-started_at", "duration_seconds", "-duration_seconds", "latency_ms", "-latency_ms", "turn_count", "-turn_count", "tokens", "-tokens", "cost_cents", "-cost_cents", "scenario", "-scenario", "goal", "-goal", "outcome", "-outcome"], "default": "-started_at"}, {"name": "page", "in": "query", "required": false, "type": "integer", "default": 1, "minimum": 1}, {"name": "page_size", "in": "query", "required": false, "type": "integer", "default": 50, "maximum": 500, "minimum": 1}, {"name": "group_by", "in": "query", "required": false, "type": "string", "enum": ["goal", "sub_goal", "accent", "age", "attack", "task", "status"], "default": ""}, {"name": "group_key", "in": "query", "required": false, "type": "string", "x-nullable": true}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/RunCallsV3Response"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "test_execution_id", "in": "path", "required": true, "type": "string"}]}, "/simulate/v3/test-executions/{test_execution_id}/export/": {"post": {"operationId": "simulate_v3_test_execution_export", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/RunExportV3Request"}}], "responses": {"200": {"description": "Filtered simulation calls CSV"}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["simulate"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "test_execution_id", "in": "path", "required": true, "type": "string"}]}, "/telemetry/heartbeat/": {"post": {"operationId": "telemetry_heartbeat_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/DeploymentHeartbeat"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DeploymentHeartbeatResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["telemetry"]}, "parameters": []}, "/telemetry/register/": {"post": {"operationId": "telemetry_register_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/DeploymentRegistration"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DeploymentRegistrationResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["telemetry"]}, "parameters": []}, "/tracer/alerts/": {"get": {"operationId": "tracer_alerts_list", "description": "", "parameters": [{"name": "kind", "in": "query", "required": false, "type": "string", "enum": ["metric", "error_feed"]}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AlertListResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "post": {"operationId": "tracer_alerts_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AlertWriteRequest"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/AlertItemResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/tracer/alerts/error_feed/{alert_id}/test/": {"post": {"operationId": "tracer_alerts_error_feed_test_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AlertTestRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AlertTestResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "alert_id", "in": "path", "required": true, "type": "string"}]}, "/tracer/alerts/options/": {"get": {"operationId": "tracer_alerts_options_list", "description": "", "parameters": [{"name": "kind", "in": "query", "required": false, "type": "string", "enum": ["metric", "error_feed"]}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AlertOptionsResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/tracer/alerts/{kind}/{alert_id}/": {"get": {"operationId": "tracer_alerts_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AlertItemResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-response-validation": true}, "patch": {"operationId": "tracer_alerts_partial_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AlertWriteRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AlertItemResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "delete": {"operationId": "tracer_alerts_delete", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AlertDeletedResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-response-validation": true}, "parameters": [{"name": "kind", "in": "path", "required": true, "type": "string"}, {"name": "alert_id", "in": "path", "required": true, "type": "string"}]}, "/tracer/bulk-annotation/": {"post": {"operationId": "tracer_bulk-annotation_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/BulkAnnotationRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/BulkAnnotationResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/tracer/charts/fetch_graph/": {"get": {"operationId": "tracer_charts_fetch_graph", "summary": "Optimized version of fetch_graph using database-level aggregation.", "description": "Handles 1M+ datapoints efficiently with:\n- Database-level time bucketing and aggregation\n- Subquery-based filtering (no large IN clauses)\n- Query result caching\n- Minimal memory footprint\n\nPerformance targets:\n- 20-30k datapoints: <100ms\n- 100k datapoints: <500ms\n- 1M datapoints: 2-3s\n\nQuery parameters same as fetch_graph.", "parameters": [{"name": "interval", "in": "query", "required": true, "type": "string", "minLength": 1}, {"name": "filters", "in": "query", "required": false, "type": "string", "default": "[]", "minLength": 1}, {"name": "property", "in": "query", "required": false, "type": "string", "default": "average"}, {"name": "req_data_config", "in": "query", "required": true, "type": "string"}, {"name": "project_id", "in": "query", "required": true, "type": "string", "format": "uuid"}, {"name": "allow_sampled", "in": "query", "description": "Deprecated compatibility parameter; accepted but ignored. Aggregate graph results are always exact.", "required": false, "type": "boolean", "default": false}, {"name": "refresh", "in": "query", "description": "Recompute and atomically replace the last complete exact result.", "required": false, "type": "boolean", "default": false}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/FetchGraphResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/tracer/custom-eval-config/": {"get": {"operationId": "tracer_custom-eval-config_list", "description": "", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/CustomEvalConfig"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "post": {"operationId": "tracer_custom-eval-config_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/CustomEvalConfig"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/CustomEvalConfig"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": []}, "/tracer/custom-eval-config/check_exists/": {"post": {"operationId": "tracer_custom-eval-config_check_exists", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/CustomEvalConfig"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/CustomEvalConfig"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": []}, "/tracer/custom-eval-config/get_custom_eval_by_name/": {"post": {"operationId": "tracer_custom-eval-config_get_custom_eval_by_name", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/CustomEvalConfig"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/CustomEvalConfig"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": []}, "/tracer/custom-eval-config/list_custom_eval_configs/": {"get": {"operationId": "tracer_custom-eval-config_list_custom_eval_configs", "description": "List CustomEvalConfigs filtered by canonical query parameters.", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/CustomEvalConfig"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": []}, "/tracer/custom-eval-config/run_evaluation/": {"post": {"operationId": "tracer_custom-eval-config_run_evaluation", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/CustomEvalConfig"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/CustomEvalConfig"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": []}, "/tracer/custom-eval-config/{id}/": {"get": {"operationId": "tracer_custom-eval-config_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/CustomEvalConfig"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "put": {"operationId": "tracer_custom-eval-config_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/CustomEvalConfig"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/CustomEvalConfig"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "patch": {"operationId": "tracer_custom-eval-config_partial_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/CustomEvalConfig"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/CustomEvalConfig"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "delete": {"operationId": "tracer_custom-eval-config_delete", "description": "", "parameters": [], "responses": {"204": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/tracer/dashboard/": {"get": {"operationId": "tracer_dashboard_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"type": "array", "items": {"$ref": "#/definitions/Dashboard"}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "post": {"operationId": "tracer_dashboard_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/DashboardCreateUpdate"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/DashboardCreateUpdate"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": []}, "/tracer/dashboard/filter_values/": {"get": {"operationId": "tracer_dashboard_filter_values", "description": "Return distinct values for a given metric/attribute, for filter value picker.", "parameters": [{"name": "property_id", "in": "query", "description": "Stable namespaced property identity returned by the metrics catalog. Legacy metric_name/metric_type remain accepted during migration.", "required": false, "type": "string", "maxLength": 4113, "minLength": 1}, {"name": "metric_name", "in": "query", "required": false, "type": "string", "minLength": 1}, {"name": "metric_type", "in": "query", "required": false, "type": "string", "enum": ["system_metric", "eval_metric", "annotation_metric", "custom_attribute", "custom_column"]}, {"name": "source", "in": "query", "required": false, "type": "string", "enum": ["traces", "spans", "sessions", "users", "voice_calls", "prompts", "datasets", "dataset_column", "simulation", "both", "all"], "default": "traces"}, {"name": "project_ids", "in": "query", "required": false, "type": "string", "default": ""}, {"name": "dataset_id", "in": "query", "required": false, "type": "string", "format": "uuid"}, {"name": "search", "in": "query", "required": false, "type": "string", "default": "", "maxLength": 512}, {"name": "page_size", "in": "query", "required": false, "type": "integer", "maximum": 50, "minimum": 1}, {"name": "cursor", "in": "query", "required": false, "type": "string", "maxLength": 262144, "minLength": 1}, {"name": "attribute_type", "in": "query", "required": false, "type": "string", "enum": ["string", "number", "boolean", "array", "map", "json"]}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DashboardFilterValuesResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "422": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "post": {"operationId": "tracer_dashboard_filter_values_create", "description": "Return distinct values for a given metric/attribute, for filter value picker.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/DashboardFilterValuesQuery"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DashboardFilterValuesResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "422": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true, "x-read-query-post": true}, "parameters": []}, "/tracer/dashboard/metrics/": {"get": {"operationId": "tracer_dashboard_metrics", "summary": "Return all available metrics across traces and datasets.", "description": "Backward compat: if ``workflow`` param is provided, return only\nthat source's metrics in the old grouped format.", "parameters": [{"name": "workflow", "in": "query", "required": false, "type": "string", "enum": ["observability", "dataset", "simulation"]}, {"name": "project_ids", "in": "query", "required": false, "type": "string", "default": []}, {"name": "agent_definition_id", "in": "query", "required": false, "type": "string", "format": "uuid"}, {"name": "per_eval_config", "in": "query", "required": false, "type": "boolean", "default": false}, {"name": "exclude_custom_attributes", "in": "query", "required": false, "type": "boolean", "default": false}, {"name": "search", "in": "query", "required": false, "type": "string", "default": "", "maxLength": 256}, {"name": "category", "in": "query", "required": false, "type": "string", "enum": ["system_metric", "eval_metric", "annotation_metric", "custom_attribute", "custom_column"], "default": ""}, {"name": "role", "in": "query", "required": false, "type": "string", "enum": ["metric", "dimension"], "default": ""}, {"name": "source", "in": "query", "required": false, "type": "string", "enum": ["traces", "spans", "sessions", "users", "voice_calls", "prompts", "datasets", "simulation", "both", "all"], "default": ""}, {"name": "page", "in": "query", "required": false, "type": "integer", "minimum": 1}, {"name": "page_size", "in": "query", "required": false, "type": "integer", "maximum": 200, "minimum": 1}, {"name": "cursor_mode", "in": "query", "required": false, "type": "boolean", "default": false}, {"name": "cursor", "in": "query", "required": false, "type": "string", "maxLength": 262144, "minLength": 1}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DashboardMetricsCatalogResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "post": {"operationId": "tracer_dashboard_metrics_create", "summary": "Return all available metrics across traces and datasets.", "description": "Backward compat: if ``workflow`` param is provided, return only\nthat source's metrics in the old grouped format.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/DashboardMetricsCatalogQuery"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DashboardMetricsCatalogResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true, "x-read-query-post": true}, "parameters": []}, "/tracer/dashboard/query/": {"post": {"operationId": "tracer_dashboard_query", "summary": "Execute a widget query and return chart data.", "description": "Each metric carries a ``source`` field (\"traces\" or \"datasets\").\nMetrics are partitioned by source and dispatched to the appropriate\nquery builder.  Results are merged into a single response.\n\nEach metric is validated against the canonical query contract before\nit reaches any query builder.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/DashboardQuery"}}, {"name": "refresh", "in": "query", "required": false, "type": "boolean", "default": false}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DashboardQueryApiResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/tracer/dashboard/simulation-agents/": {"get": {"operationId": "tracer_dashboard_simulation_agents", "description": "Return simulation agents with their observability project links.", "parameters": [], "responses": {"200": {"description": "", "schema": {"type": "array", "items": {"$ref": "#/definitions/Dashboard"}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": []}, "/tracer/dashboard/{dashboard_pk}/widgets/": {"get": {"operationId": "tracer_dashboard_widgets_list", "description": "", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/DashboardWidget"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "post": {"operationId": "tracer_dashboard_widgets_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/DashboardWidget"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/DashboardWidget"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": [{"name": "dashboard_pk", "in": "path", "required": true, "type": "string"}]}, "/tracer/dashboard/{dashboard_pk}/widgets/preview/": {"post": {"operationId": "tracer_dashboard_widgets_preview_query", "description": "Execute an ad-hoc query_config without saving, for live preview.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/DashboardPreviewQuery"}}, {"name": "refresh", "in": "query", "required": false, "type": "boolean", "default": false}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DashboardQueryApiResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "dashboard_pk", "in": "path", "required": true, "type": "string"}]}, "/tracer/dashboard/{dashboard_pk}/widgets/reorder/": {"post": {"operationId": "tracer_dashboard_widgets_reorder", "description": "Batch update widget positions.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/DashboardWidget"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/DashboardWidget"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": [{"name": "dashboard_pk", "in": "path", "required": true, "type": "string"}]}, "/tracer/dashboard/{dashboard_pk}/widgets/{id}/": {"get": {"operationId": "tracer_dashboard_widgets_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DashboardWidget"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "put": {"operationId": "tracer_dashboard_widgets_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/DashboardWidget"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DashboardWidget"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "patch": {"operationId": "tracer_dashboard_widgets_partial_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/DashboardWidget"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DashboardWidget"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "delete": {"operationId": "tracer_dashboard_widgets_delete", "description": "", "parameters": [], "responses": {"204": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": [{"name": "dashboard_pk", "in": "path", "required": true, "type": "string"}, {"name": "id", "in": "path", "required": true, "type": "string"}]}, "/tracer/dashboard/{dashboard_pk}/widgets/{id}/duplicate/": {"post": {"operationId": "tracer_dashboard_widgets_duplicate_widget", "description": "Duplicate a widget.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/DashboardWidget"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/DashboardWidget"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": [{"name": "dashboard_pk", "in": "path", "required": true, "type": "string"}, {"name": "id", "in": "path", "required": true, "type": "string"}]}, "/tracer/dashboard/{dashboard_pk}/widgets/{id}/query/": {"post": {"operationId": "tracer_dashboard_widgets_execute_query", "description": "Execute the widget's query_config against ClickHouse and return results.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/DashboardSampleOptIn"}}, {"name": "refresh", "in": "query", "required": false, "type": "boolean", "default": false}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DashboardQueryApiResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "dashboard_pk", "in": "path", "required": true, "type": "string"}, {"name": "id", "in": "path", "required": true, "type": "string"}]}, "/tracer/dashboard/{id}/": {"get": {"operationId": "tracer_dashboard_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DashboardDetail"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "put": {"operationId": "tracer_dashboard_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/DashboardCreateUpdate"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DashboardCreateUpdate"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "patch": {"operationId": "tracer_dashboard_partial_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/DashboardCreateUpdate"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DashboardCreateUpdate"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "delete": {"operationId": "tracer_dashboard_delete", "description": "", "parameters": [], "responses": {"204": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/tracer/dataset/": {"get": {"operationId": "tracer_dataset_list", "description": "", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/ObserveDataset"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "post": {"operationId": "tracer_dataset_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ObserveDataset"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/ObserveDataset"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": []}, "/tracer/dataset/add_to_existing_dataset/": {"post": {"operationId": "tracer_dataset_add_to_existing_dataset", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ObserveDataset"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/ObserveDataset"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": []}, "/tracer/dataset/add_to_new_dataset/": {"post": {"operationId": "tracer_dataset_add_to_new_dataset", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ObserveDataset"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/ObserveDataset"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/DatasetLimitCheckFailedError"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": []}, "/tracer/dataset/{id}/": {"get": {"operationId": "tracer_dataset_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ObserveDataset"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "put": {"operationId": "tracer_dataset_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ObserveDataset"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ObserveDataset"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "patch": {"operationId": "tracer_dataset_partial_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ObserveDataset"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ObserveDataset"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "delete": {"operationId": "tracer_dataset_delete", "description": "", "parameters": [], "responses": {"204": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/tracer/eval-task/": {"get": {"operationId": "tracer_eval-task_list", "description": "Return one finite page without per-task progress queries.", "parameters": [{"name": "page", "in": "query", "description": "A one-based page number. Deep pages whose offset exceeds 50000 are rejected.", "required": false, "type": "integer", "minimum": 1}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer", "default": 10, "maximum": 100, "minimum": 1}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/EvalTask"}}}}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "422": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "post": {"operationId": "tracer_eval-task_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/EvalTask"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/EvalTaskCreateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/tracer/eval-task/get_eval_details/": {"get": {"operationId": "tracer_eval-task_get_eval_details", "description": "", "parameters": [{"name": "page", "in": "query", "description": "A one-based page number. Deep pages whose offset exceeds 50000 are rejected.", "required": false, "type": "integer", "minimum": 1}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer", "default": 10, "maximum": 100, "minimum": 1}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/EvalTask"}}}}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "422": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-response-validation": true}, "parameters": []}, "/tracer/eval-task/get_eval_task_logs/": {"get": {"operationId": "tracer_eval-task_get_eval_task_logs", "description": "", "parameters": [{"name": "page", "in": "query", "description": "A one-based page number. Deep pages whose offset exceeds 50000 are rejected.", "required": false, "type": "integer", "minimum": 1}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer", "default": 10, "maximum": 100, "minimum": 1}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/EvalTask"}}}}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "422": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-response-validation": true}, "parameters": []}, "/tracer/eval-task/get_usage/": {"get": {"operationId": "tracer_eval-task_get_usage", "description": "", "parameters": [{"name": "eval_task_id", "in": "query", "required": true, "type": "string", "format": "uuid"}, {"name": "period", "in": "query", "required": false, "type": "string", "enum": ["30m", "1h", "6h", "1d", "7d", "30d", "90d", "180d", "365d"], "default": "30d"}, {"name": "eval_id", "in": "query", "required": false, "type": "string", "format": "uuid"}, {"name": "page", "in": "query", "required": false, "type": "integer", "default": 1, "maximum": 100, "minimum": 1}, {"name": "page_size", "in": "query", "required": false, "type": "integer", "default": 25, "maximum": 100, "minimum": 1}, {"name": "limit", "in": "query", "description": "Legacy alias for page_size.", "required": false, "type": "integer", "maximum": 100, "minimum": 1}, {"name": "eval_aggregation", "in": "query", "required": false, "type": "boolean", "default": false}, {"name": "span_aggregation", "in": "query", "required": false, "type": "boolean", "default": false}, {"name": "include_summary", "in": "query", "required": false, "type": "boolean", "default": true}, {"name": "start_date", "in": "query", "required": false, "type": "string", "format": "date-time"}, {"name": "end_date", "in": "query", "required": false, "type": "string", "format": "date-time"}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/EvalTaskUsageResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "422": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/tracer/eval-task/list_eval_tasks/": {"get": {"operationId": "tracer_eval-task_list_eval_tasks", "description": "List Eval Tasks filtered", "parameters": [{"name": "project_id", "in": "query", "required": false, "type": "string", "format": "uuid"}, {"name": "name", "in": "query", "required": false, "type": "string"}, {"name": "filters", "in": "query", "required": false, "type": "string", "default": "[]", "minLength": 1}, {"name": "sort_params", "in": "query", "required": false, "type": "string", "default": "[]", "minLength": 1}, {"name": "page_number", "in": "query", "required": false, "type": "integer", "default": 0, "minimum": 0}, {"name": "page_size", "in": "query", "required": false, "type": "integer", "default": 30, "maximum": 100, "minimum": 1}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/_EvalTaskListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "422": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/tracer/eval-task/list_eval_tasks_with_project_name/": {"get": {"operationId": "tracer_eval-task_list_eval_tasks_with_project_name", "description": "List Eval Tasks filtered", "parameters": [{"name": "project_id", "in": "query", "required": false, "type": "string", "format": "uuid"}, {"name": "name", "in": "query", "required": false, "type": "string"}, {"name": "filters", "in": "query", "required": false, "type": "string", "default": "[]", "minLength": 1}, {"name": "sort_params", "in": "query", "required": false, "type": "string", "default": "[]", "minLength": 1}, {"name": "page_number", "in": "query", "required": false, "type": "integer", "default": 0, "minimum": 0}, {"name": "page_size", "in": "query", "required": false, "type": "integer", "default": 10, "maximum": 100, "minimum": 1}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/_EvalTaskListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "422": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/tracer/eval-task/mark_eval_tasks_deleted/": {"post": {"operationId": "tracer_eval-task_mark_eval_tasks_deleted", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/EvalTaskDeleteRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/EvalTaskMessageResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/tracer/eval-task/pause_eval_task/": {"post": {"operationId": "tracer_eval-task_pause_eval_task", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/EmptyRequest"}}, {"name": "eval_task_id", "in": "query", "required": true, "type": "string", "format": "uuid"}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/EvalTaskMessageResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/tracer/eval-task/unpause_eval_task/": {"post": {"operationId": "tracer_eval-task_unpause_eval_task", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/EmptyRequest"}}, {"name": "eval_task_id", "in": "query", "required": true, "type": "string", "format": "uuid"}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/EvalTaskMessageResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/tracer/eval-task/update_eval_task/": {"patch": {"operationId": "tracer_eval-task_update_eval_task", "summary": "Update an evaluation task with either fresh run or edit & re-run logic.", "description": "Fresh Run: Deletes all previous results and starts completely fresh\nEdit & Re-run: Preserves existing results and only runs missing evaluations", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/EvalTaskUpdateRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/EvalTaskUpdateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/tracer/eval-task/{id}/": {"get": {"operationId": "tracer_eval-task_read", "description": "Return one task without unbounded JSON or relation hydration.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/EvalTask"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "422": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "put": {"operationId": "tracer_eval-task_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/EvalTask"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/EvalTask"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true}, "patch": {"operationId": "tracer_eval-task_partial_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/EvalTask"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/EvalTask"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true}, "delete": {"operationId": "tracer_eval-task_delete", "description": "", "parameters": [], "responses": {"204": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/tracer/feed/integrations/linear/teams/": {"get": {"operationId": "tracer_feed_integrations_linear_teams_list", "summary": "GET /tracer/feed/integrations/linear/teams/", "description": "Returns the list of Linear teams for the team picker dropdown.\nRequires an active Linear integration for the user's org.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/LinearTeamsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-response-validation": true}, "parameters": []}, "/tracer/feed/issues/": {"get": {"operationId": "tracer_feed_issues_list", "description": "GET /tracer/feed/issues/ — paginated cluster list with filters/sort.", "parameters": [{"name": "project_id", "in": "query", "required": false, "type": "string", "format": "uuid"}, {"name": "search", "in": "query", "required": false, "type": "string"}, {"name": "status", "in": "query", "required": false, "type": "string", "enum": ["escalating", "for_review", "acknowledged", "resolved"]}, {"name": "severity", "in": "query", "required": false, "type": "string", "enum": ["critical", "high", "medium", "low"]}, {"name": "fix_layer", "in": "query", "required": false, "type": "string"}, {"name": "source", "in": "query", "required": false, "type": "string", "enum": ["scanner", "eval"]}, {"name": "issue_group", "in": "query", "required": false, "type": "string"}, {"name": "time_range_days", "in": "query", "required": false, "type": "integer", "minimum": 1}, {"name": "sort_by", "in": "query", "required": false, "type": "string", "enum": ["last_seen", "first_seen", "error_count", "unique_traces", "severity"], "default": "last_seen"}, {"name": "sort_dir", "in": "query", "required": false, "type": "string", "enum": ["asc", "desc"], "default": "desc"}, {"name": "limit", "in": "query", "required": false, "type": "integer", "default": 25, "maximum": 200, "minimum": 1}, {"name": "offset", "in": "query", "required": false, "type": "integer", "default": 0, "minimum": 0}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/FeedListApiResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/tracer/feed/issues/stats/": {"get": {"operationId": "tracer_feed_issues_stats_list", "description": "GET /tracer/feed/issues/stats/ — top stats bar totals.", "parameters": [{"name": "project_id", "in": "query", "required": false, "type": "string", "format": "uuid"}, {"name": "time_range_days", "in": "query", "required": false, "type": "integer", "minimum": 1}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/FeedStatsApiResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/tracer/feed/issues/{cluster_id}/": {"get": {"operationId": "tracer_feed_issues_read", "description": "GET + PATCH /tracer/feed/issues/{cluster_id}/", "parameters": [{"name": "project_id", "in": "query", "required": false, "type": "string", "format": "uuid"}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/FeedDetailApiResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "patch": {"operationId": "tracer_feed_issues_partial_update", "description": "GET + PATCH /tracer/feed/issues/{cluster_id}/", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/FeedUpdateBody"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/FeedDetailApiResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "cluster_id", "in": "path", "required": true, "type": "string"}]}, "/tracer/feed/issues/{cluster_id}/create-linear-issue/": {"post": {"operationId": "tracer_feed_issues_create-linear-issue_create", "description": "POST /tracer/feed/issues/{cluster_id}/create-linear-issue/", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/CreateLinearIssue"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/CreateLinearIssueResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "cluster_id", "in": "path", "required": true, "type": "string"}]}, "/tracer/feed/issues/{cluster_id}/deep-analysis/": {"post": {"operationId": "tracer_feed_issues_deep-analysis_create", "description": "POST /tracer/feed/issues/{cluster_id}/deep-analysis/", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/DeepAnalysisBody"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DeepAnalysisDispatchApiResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "cluster_id", "in": "path", "required": true, "type": "string"}]}, "/tracer/feed/issues/{cluster_id}/overview/": {"get": {"operationId": "tracer_feed_issues_overview_list", "description": "GET /tracer/feed/issues/{cluster_id}/overview/", "parameters": [{"name": "rep_limit", "in": "query", "required": false, "type": "integer", "default": 20, "maximum": 200, "minimum": 1}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/OverviewApiResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "cluster_id", "in": "path", "required": true, "type": "string"}]}, "/tracer/feed/issues/{cluster_id}/redirect/": {"get": {"operationId": "tracer_feed_issues_redirect_list", "description": "Resolve an old issue ID to its active redirect target.", "parameters": [{"name": "project_id", "in": "query", "required": false, "type": "string", "format": "uuid"}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/FeedRedirectApiResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "cluster_id", "in": "path", "required": true, "type": "string"}]}, "/tracer/feed/issues/{cluster_id}/root-cause/": {"get": {"operationId": "tracer_feed_issues_root-cause_list", "summary": "GET /tracer/feed/issues/{cluster_id}/root-cause/?trace_id=X", "description": "Read cached deep-analysis results for a single trace within the\ncluster. The frontend hits this on mount (to show existing results)\nand polls it after a POST to /deep-analysis/ until ``status`` flips\nfrom ``running`` to ``done`` or ``failed``.", "parameters": [{"name": "trace_id", "in": "query", "required": true, "type": "string", "minLength": 1}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DeepAnalysisApiResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "cluster_id", "in": "path", "required": true, "type": "string"}]}, "/tracer/feed/issues/{cluster_id}/sidebar/": {"get": {"operationId": "tracer_feed_issues_sidebar_list", "summary": "GET /tracer/feed/issues/{cluster_id}/sidebar/", "description": "Accepts an optional ``?trace_id=`` query param. When present, the\ntrace-level sections (AI Metadata + Evaluations) are computed for\nthat trace instead of the cluster's latest, keeping the sidebar in\nsync with the Overview tab's trace selection.", "parameters": [{"name": "trace_id", "in": "query", "required": false, "type": "string", "minLength": 1}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/FeedSidebarApiResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "cluster_id", "in": "path", "required": true, "type": "string"}]}, "/tracer/feed/issues/{cluster_id}/traces/": {"get": {"operationId": "tracer_feed_issues_traces_list", "description": "GET /tracer/feed/issues/{cluster_id}/traces/", "parameters": [{"name": "limit", "in": "query", "required": false, "type": "integer", "default": 50, "maximum": 500, "minimum": 1}, {"name": "offset", "in": "query", "required": false, "type": "integer", "default": 0, "minimum": 0}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/TracesTabApiResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "cluster_id", "in": "path", "required": true, "type": "string"}]}, "/tracer/feed/issues/{cluster_id}/trends/": {"get": {"operationId": "tracer_feed_issues_trends_list", "description": "GET /tracer/feed/issues/{cluster_id}/trends/", "parameters": [{"name": "days", "in": "query", "required": false, "type": "integer", "default": 14, "maximum": 90, "minimum": 1}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/TrendsTabApiResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "cluster_id", "in": "path", "required": true, "type": "string"}]}, "/tracer/get-annotation-labels/": {"get": {"operationId": "tracer_get-annotation-labels_list", "description": "", "parameters": [{"name": "project_id", "in": "query", "required": false, "type": "string", "format": "uuid"}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/GetAnnotationLabelsResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/tracer/imagine-analysis/": {"get": {"operationId": "tracer_imagine-analysis_list", "description": "Poll for analysis results.", "parameters": [{"name": "saved_view_id", "in": "query", "required": true, "type": "string", "format": "uuid"}, {"name": "trace_id", "in": "query", "required": true, "type": "string", "maxLength": 255, "minLength": 1}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ImagineAnalysisResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "post": {"operationId": "tracer_imagine-analysis_create", "description": "Trigger analysis for widgets. Creates DB records + starts Temporal workflows.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/TriggerAnalysis"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ImagineAnalysisResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/tracer/internal/error-feed-v2/attempts/{attempt_id}/": {"patch": {"operationId": "tracer_internal_error-feed-v2_attempts_partial_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UpdateInvestigationAttemptRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UpdateInvestigationAttemptResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/InvestigationControlError"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/InvestigationControlError"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "attempt_id", "in": "path", "required": true, "type": "string"}]}, "/tracer/internal/error-feed-v2/attempts/{attempt_id}/conversation-evidence/": {"post": {"operationId": "tracer_internal_error-feed-v2_attempts_conversation-evidence_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ConversationEvidenceRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ConversationEvidenceResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/InvestigationControlError"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "attempt_id", "in": "path", "required": true, "type": "string"}]}, "/tracer/internal/error-feed-v2/attempts/{attempt_id}/simulation-evidence/": {"post": {"operationId": "tracer_internal_error-feed-v2_attempts_simulation-evidence_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/SimulationEvidenceRequest"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/SimulationEvidenceRequest"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/InvestigationControlError"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "attempt_id", "in": "path", "required": true, "type": "string"}]}, "/tracer/internal/error-feed-v2/claims/": {"post": {"operationId": "tracer_internal_error-feed-v2_claims_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ClaimInvestigationsRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ClaimInvestigationsResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/tracer/internal/error-feed-v2/grouping/attempts/{attempt_id}/": {"patch": {"operationId": "tracer_internal_error-feed-v2_grouping_attempts_partial_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UpdateGroupingAttempt"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/GroupingControlResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/GroupingError"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/GroupingError"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/GroupingError"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "attempt_id", "in": "path", "required": true, "type": "string"}]}, "/tracer/internal/error-feed-v2/grouping/attempts/{attempt_id}/checkpoint/": {"put": {"operationId": "tracer_internal_error-feed-v2_grouping_attempts_checkpoint_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/GroupingCheckpoint"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/GroupingControlResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/GroupingError"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/GroupingError"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/GroupingError"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "attempt_id", "in": "path", "required": true, "type": "string"}]}, "/tracer/internal/error-feed-v2/grouping/attempts/{attempt_id}/publish/": {"post": {"operationId": "tracer_internal_error-feed-v2_grouping_attempts_publish_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/PublishGrouping"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/GroupingControlResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/GroupingError"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/GroupingError"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/GroupingError"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "attempt_id", "in": "path", "required": true, "type": "string"}]}, "/tracer/internal/error-feed-v2/grouping/attempts/{attempt_id}/reserve/": {"post": {"operationId": "tracer_internal_error-feed-v2_grouping_attempts_reserve_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ReserveGroupingCall"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/GroupingControlResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/GroupingError"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/GroupingError"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/GroupingError"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "attempt_id", "in": "path", "required": true, "type": "string"}]}, "/tracer/internal/error-feed-v2/grouping/attempts/{attempt_id}/settle/": {"post": {"operationId": "tracer_internal_error-feed-v2_grouping_attempts_settle_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/SettleGroupingCall"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/GroupingControlResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/GroupingError"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/GroupingError"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/GroupingError"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "attempt_id", "in": "path", "required": true, "type": "string"}]}, "/tracer/internal/error-feed-v2/grouping/claims/": {"post": {"operationId": "tracer_internal_error-feed-v2_grouping_claims_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ClaimGroupingRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/GroupingClaimsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/GroupingError"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/GroupingError"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/GroupingError"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/tracer/internal/error-feed-v2/grouping/feature-attempts/{feature_job_id}/": {"patch": {"operationId": "tracer_internal_error-feed-v2_grouping_feature-attempts_partial_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/RenewGroupingFeature"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/GroupingControlResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/GroupingError"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/GroupingError"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/GroupingError"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "feature_job_id", "in": "path", "required": true, "type": "string"}]}, "/tracer/internal/error-feed-v2/grouping/feature-attempts/{feature_job_id}/complete/": {"post": {"operationId": "tracer_internal_error-feed-v2_grouping_feature-attempts_complete_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/CompleteGroupingFeature"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/GroupingControlResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/GroupingError"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/GroupingError"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/GroupingError"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "feature_job_id", "in": "path", "required": true, "type": "string"}]}, "/tracer/internal/error-feed-v2/grouping/feature-claims/": {"post": {"operationId": "tracer_internal_error-feed-v2_grouping_feature-claims_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ClaimGroupingRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/GroupingClaimsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/GroupingError"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/GroupingError"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/GroupingError"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/tracer/internal/error-feed-v2/grouping/outbox/": {"post": {"operationId": "tracer_internal_error-feed-v2_grouping_outbox_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/GroupingOutboxRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/GroupingOutboxResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/GroupingError"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/GroupingError"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/GroupingError"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/tracer/internal/error-feed-v2/grouping/outbox/{event_id}/ack/": {"post": {"operationId": "tracer_internal_error-feed-v2_grouping_outbox_ack_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/GroupingOutboxAck"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/GroupingControlResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/GroupingError"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/GroupingError"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/GroupingError"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "event_id", "in": "path", "required": true, "type": "string"}]}, "/tracer/internal/error-feed-v2/grouping/severity/attempts/{job_id}/": {"patch": {"operationId": "tracer_internal_error-feed-v2_grouping_severity_attempts_partial_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/RenewGroupingFeature"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/GroupingControlResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/GroupingError"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/GroupingError"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/GroupingError"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "job_id", "in": "path", "required": true, "type": "string"}]}, "/tracer/internal/error-feed-v2/grouping/severity/attempts/{job_id}/publish/": {"post": {"operationId": "tracer_internal_error-feed-v2_grouping_severity_attempts_publish_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/PublishSeverity"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/GroupingControlResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/GroupingError"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/GroupingError"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/GroupingError"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "job_id", "in": "path", "required": true, "type": "string"}]}, "/tracer/internal/error-feed-v2/grouping/severity/attempts/{job_id}/reserve/": {"post": {"operationId": "tracer_internal_error-feed-v2_grouping_severity_attempts_reserve_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ReserveGroupingCall"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/GroupingControlResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/GroupingError"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/GroupingError"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/GroupingError"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "job_id", "in": "path", "required": true, "type": "string"}]}, "/tracer/internal/error-feed-v2/grouping/severity/attempts/{job_id}/settle/": {"post": {"operationId": "tracer_internal_error-feed-v2_grouping_severity_attempts_settle_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/SettleGroupingCall"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/GroupingControlResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/GroupingError"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/GroupingError"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/GroupingError"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "job_id", "in": "path", "required": true, "type": "string"}]}, "/tracer/internal/error-feed-v2/grouping/severity/claims/": {"post": {"operationId": "tracer_internal_error-feed-v2_grouping_severity_claims_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ClaimGroupingRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/GroupingClaimsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/GroupingError"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/GroupingError"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/GroupingError"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/tracer/internal/error-feed-v2/notifications/": {"post": {"operationId": "tracer_internal_error-feed-v2_notifications_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/RecordTraceNotificationsRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/RecordTraceNotificationsResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/InvestigationControlError"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/InvestigationControlError"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/tracer/internal/error-feed-v2/reports/": {"post": {"operationId": "tracer_internal_error-feed-v2_reports_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/PublishInvestigationRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PublishInvestigationResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/InvestigationControlError"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/InvestigationControlError"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/tracer/observability-provider/": {"get": {"operationId": "tracer_observability-provider_list", "description": "API endpoints for managing Observability Providers.", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/ObservabilityProvider"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "post": {"operationId": "tracer_observability-provider_create", "description": "API endpoints for managing Observability Providers.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ObservabilityProvider"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/ObservabilityProvider"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": []}, "/tracer/observability-provider/verify_api_key/": {"post": {"operationId": "tracer_observability-provider_verify_api_key", "description": "API endpoints for managing Observability Providers.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/VerifyApiKeyRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/VerifyResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/tracer/observability-provider/verify_assistant_id/": {"post": {"operationId": "tracer_observability-provider_verify_assistant_id", "description": "API endpoints for managing Observability Providers.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/VerifyAssistantIdRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/VerifyResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/tracer/observability-provider/{id}/": {"get": {"operationId": "tracer_observability-provider_read", "description": "API endpoints for managing Observability Providers.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ObservabilityProvider"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "put": {"operationId": "tracer_observability-provider_update", "description": "API endpoints for managing Observability Providers.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ObservabilityProvider"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ObservabilityProvider"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "patch": {"operationId": "tracer_observability-provider_partial_update", "description": "API endpoints for managing Observability Providers.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ObservabilityProvider"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ObservabilityProvider"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "delete": {"operationId": "tracer_observability-provider_delete", "description": "API endpoints for managing Observability Providers.", "parameters": [], "responses": {"204": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/tracer/observation-span/": {"get": {"operationId": "tracer_observation-span_list", "description": "", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/ObservationSpan"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "post": {"operationId": "tracer_observation-span_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ObservationSpan"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/ObservationSpan"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": []}, "/tracer/observation-span/add_annotations/": {"post": {"operationId": "tracer_observation-span_add_annotations", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AddObservationSpanAnnotations"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/AddObservationSpanAnnotations"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true}, "parameters": []}, "/tracer/observation-span/bulk_create/": {"post": {"operationId": "tracer_observation-span_bulk_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ObservationSpan"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/ObservationSpan"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": []}, "/tracer/observation-span/create_otel_span/": {"post": {"operationId": "tracer_observation-span_create_otel_span", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ObservationSpan"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/ObservationSpan"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": []}, "/tracer/observation-span/delete_annotation_label/": {"delete": {"operationId": "tracer_observation-span_delete_annotation_label", "description": "", "parameters": [], "responses": {"204": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": []}, "/tracer/observation-span/get_eval_attributes_list/": {"get": {"operationId": "tracer_observation-span_get_eval_attributes_list", "summary": "Attribute paths the EvalPicker exposes per row_type.", "description": "Query params:\n    filters: JSON {\"project_id\": \"<uuid>\"} (required)\n    row_type: spans | traces | sessions (default spans;\n              voiceCalls aliases to spans)", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "filters", "in": "query", "required": true, "type": "string", "minLength": 1}, {"name": "row_type", "in": "query", "required": false, "type": "string", "enum": ["spans", "traces", "sessions", "voiceCalls"], "default": "spans"}, {"name": "q", "in": "query", "description": "Nonempty exact attribute key, at most 4096 UTF-8 bytes. Whitespace, controls and case are preserved.", "required": false, "type": "string"}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ObservationAttributeListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/tracer/observation-span/get_evaluation_details/": {"get": {"operationId": "tracer_observation-span_get_evaluation_details", "description": "", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/ObservationSpan"}}}}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-response-validation": true}, "parameters": []}, "/tracer/observation-span/get_graph_methods/": {"post": {"operationId": "tracer_observation-span_get_graph_methods", "description": "Fetch data for the observe graph with optimized queries", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ObserveGraphDataRequest"}}, {"name": "allow_sampled", "in": "query", "description": "Deprecated compatibility parameter. Observe graphs always return complete exact data or a retryable error.", "required": false, "type": "boolean", "default": false}, {"name": "refresh", "in": "query", "description": "Recompute and atomically replace the last complete exact result.", "required": false, "type": "boolean", "default": false}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ObserveGraphDataResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/tracer/observation-span/get_observation_span_fields/": {"get": {"operationId": "tracer_observation-span_get_observation_span_fields", "description": "", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/ObservationSpan"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": []}, "/tracer/observation-span/get_span_attributes_list/": {"get": {"operationId": "tracer_observation-span_get_span_attributes_list", "summary": "Distinct span_attributes keys for a project (spans surface).", "description": "Query params:\n    filters: JSON {\"project_id\": \"<uuid>\"} (required)", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "filters", "in": "query", "required": true, "type": "string", "minLength": 1}, {"name": "row_type", "in": "query", "required": false, "type": "string", "enum": ["spans", "traces", "sessions", "voiceCalls"], "default": "spans"}, {"name": "q", "in": "query", "description": "Nonempty exact attribute key, at most 4096 UTF-8 bytes. Whitespace, controls and case are preserved.", "required": false, "type": "string"}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ObservationAttributeListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/tracer/observation-span/get_spans_export_data/": {"get": {"operationId": "tracer_observation-span_get_spans_export_data", "description": "", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "project_id", "in": "query", "required": true, "type": "string", "format": "uuid"}, {"name": "filters", "in": "query", "required": false, "type": "string", "default": "[]", "minLength": 1}], "responses": {"200": {"description": "Bounded CSV export; a terminal comment row discloses truncation.", "schema": {"type": "string"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "produces": ["text/csv"], "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/tracer/observation-span/get_trace_id_by_index_spans_as_base/": {"get": {"operationId": "tracer_observation-span_get_trace_id_by_index_spans_as_base", "description": "Get the previous and next span id by index for non-observe projects.\nMirrors the query/filter logic of list_spans.", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "span_id", "in": "query", "required": true, "type": "string", "minLength": 1}, {"name": "project_version_id", "in": "query", "required": true, "type": "string", "format": "uuid"}, {"name": "filters", "in": "query", "required": false, "type": "string", "default": "[]", "minLength": 1}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/TraceNavigationResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "post": {"operationId": "tracer_observation-span_get_trace_id_by_index_spans_as_base_create", "description": "Get the previous and next span id by index for non-observe projects.\nMirrors the query/filter logic of list_spans.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/SpanIndexQuery"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/TraceNavigationResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true, "x-read-query-post": true}, "parameters": []}, "/tracer/observation-span/get_trace_id_by_index_spans_as_observe/": {"get": {"operationId": "tracer_observation-span_get_trace_id_by_index_spans_as_observe", "description": "Get the previous and next trace id by index for observe projects.\nMirrors the query/filter logic of list_spans_as_observe.", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "span_id", "in": "query", "required": true, "type": "string", "minLength": 1}, {"name": "project_id", "in": "query", "required": true, "type": "string", "format": "uuid"}, {"name": "user_id", "in": "query", "required": false, "type": "string"}, {"name": "filters", "in": "query", "required": false, "type": "string", "default": "[]", "minLength": 1}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/TraceNavigationResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "post": {"operationId": "tracer_observation-span_get_trace_id_by_index_spans_as_observe_create", "description": "Get the previous and next trace id by index for observe projects.\nMirrors the query/filter logic of list_spans_as_observe.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/SpanObserveIndexQuery"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/TraceNavigationResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true, "x-read-query-post": true}, "parameters": []}, "/tracer/observation-span/list_spans/": {"get": {"operationId": "tracer_observation-span_list_spans", "description": "List spans filtered by project ID and project version ID with optimized queries.", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "project_version_id", "in": "query", "required": true, "type": "string", "format": "uuid"}, {"name": "filters", "in": "query", "required": false, "type": "string", "default": "[]", "minLength": 1}, {"name": "page_number", "in": "query", "description": "Zero-based numbered page. Pages whose required ordered work exceeds the finite read contract return HTTP 422 with code page_depth_exceeded; request an earlier page or narrow the time range.", "required": false, "type": "integer", "default": 0, "minimum": 0}, {"name": "page_size", "in": "query", "required": false, "type": "integer", "default": 30, "maximum": 500, "minimum": 1}, {"name": "allow_sampled", "in": "query", "description": "Omit for backward-compatible complete bounded pages, which may label total_rows as a lower bound. Send false to require an exact total, or true to opt in explicitly to lower-bound totals.", "required": false, "type": "boolean"}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SpanPrototypeListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "422": {"description": "", "schema": {"$ref": "#/definitions/PageDepthExceededError"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "post": {"operationId": "tracer_observation-span_list_spans_create", "description": "List spans filtered by project ID and project version ID with optimized queries.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/SpanListQuery"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SpanPrototypeListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "422": {"description": "", "schema": {"$ref": "#/definitions/PageDepthExceededError"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true, "x-read-query-post": true}, "parameters": []}, "/tracer/observation-span/list_spans_observe/": {"get": {"operationId": "tracer_observation-span_list_spans_observe", "description": "", "parameters": [{"name": "project_id", "in": "query", "required": false, "type": "string", "format": "uuid", "x-nullable": true}, {"name": "user_id", "in": "query", "required": false, "type": "string"}, {"name": "filters", "in": "query", "required": false, "type": "string", "default": "[]", "minLength": 1}, {"name": "page_number", "in": "query", "description": "Zero-based numbered page. Pages whose required ordered work exceeds the finite read contract return HTTP 422 with code page_depth_exceeded; request an earlier page or narrow the time range.", "required": false, "type": "integer", "default": 0, "minimum": 0}, {"name": "page_size", "in": "query", "required": false, "type": "integer", "default": 30, "maximum": 500, "minimum": 1}, {"name": "cursor", "in": "query", "description": "Opaque continuation token returned by the previous page. When supplied, do not also send the numbered-page parameter.", "required": false, "type": "string", "maxLength": 4096, "minLength": 1}, {"name": "cursor_mode", "in": "query", "required": false, "type": "boolean", "default": false}, {"name": "allow_sampled", "in": "query", "description": "Omit for backward-compatible complete bounded pages, which may label total_rows as a lower bound. Send false to require an exact total, or true to opt in explicitly to lower-bound totals.", "required": false, "type": "boolean"}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SpanObserveListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "422": {"description": "", "schema": {"$ref": "#/definitions/PageDepthExceededError"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "post": {"operationId": "tracer_observation-span_list_spans_observe_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/SpanObserveListQuery"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SpanObserveListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "422": {"description": "", "schema": {"$ref": "#/definitions/PageDepthExceededError"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true, "x-read-query-post": true}, "parameters": []}, "/tracer/observation-span/retrieve_loading/": {"get": {"operationId": "tracer_observation-span_retrieve_loading", "description": "", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/ObservationSpan"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": []}, "/tracer/observation-span/root-spans/": {"get": {"operationId": "tracer_observation-span_root_spans", "description": "Given a list of trace_ids, return the root span ID for each trace.\nRoot span = the span where parent_span_id IS NULL for that trace.\n\nQuery params (repeated): trace_ids (required,\n?trace_ids=<id>&trace_ids=<id>) + optional project_ids (prunes the CH\nscan). Response: { \"result\": { \"<trace_id>\": \"<span_id>\", ... } }", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "trace_ids", "in": "query", "required": true, "type": "array", "items": {"type": "string", "minLength": 1}}, {"name": "project_ids", "in": "query", "required": false, "type": "array", "items": {"type": "string", "minLength": 1}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/RootSpansResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/tracer/observation-span/submit_feedback/": {"post": {"operationId": "tracer_observation-span_submit_feedback", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ObservationSpan"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/ObservationSpan"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": []}, "/tracer/observation-span/submit_feedback_action_type/": {"post": {"operationId": "tracer_observation-span_submit_feedback_action_type", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ObservationSpan"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/ObservationSpan"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": []}, "/tracer/observation-span/update-tags/": {"post": {"operationId": "tracer_observation-span_update_tags", "description": "Update tags for an observation span.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ObservationSpan"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/ObservationSpan"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": []}, "/tracer/observation-span/{id}/": {"get": {"operationId": "tracer_observation-span_read", "description": "", "parameters": [{"name": "project_id", "in": "query", "required": false, "type": "string", "format": "uuid"}, {"name": "trace_id", "in": "query", "required": false, "type": "string", "minLength": 1}, {"name": "start_hour", "in": "query", "required": false, "type": "string", "format": "date-time"}, {"name": "observation_type", "in": "query", "required": false, "type": "string"}, {"name": "service_name", "in": "query", "required": false, "type": "string"}, {"name": "expected_start_time", "in": "query", "required": false, "type": "string", "format": "date-time"}, {"name": "expected_version", "in": "query", "required": false, "type": "string", "minLength": 1}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ObservationSpanDetailResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "409": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "put": {"operationId": "tracer_observation-span_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ObservationSpan"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ObservationSpan"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "patch": {"operationId": "tracer_observation-span_partial_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ObservationSpan"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ObservationSpan"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "delete": {"operationId": "tracer_observation-span_delete", "description": "", "parameters": [], "responses": {"204": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/tracer/project-version/": {"get": {"operationId": "tracer_project-version_list", "description": "", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/ProjectVersion"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "post": {"operationId": "tracer_project-version_create", "description": "Create a new project version.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ProjectVersion"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/ProjectVersion"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": []}, "/tracer/project-version/add_annotations/": {"post": {"operationId": "tracer_project-version_add_annotations", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ProjectVersion"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/ProjectVersion"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": []}, "/tracer/project-version/delete_runs/": {"post": {"operationId": "tracer_project-version_delete_runs", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ProjectVersion"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/ProjectVersion"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": []}, "/tracer/project-version/get_export_data/": {"post": {"operationId": "tracer_project-version_get_export_data", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ProjectVersion"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/ProjectVersion"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": []}, "/tracer/project-version/get_project_version_ids/": {"get": {"operationId": "tracer_project-version_get_project_version_ids", "description": "", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/ProjectVersion"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": []}, "/tracer/project-version/get_run_insights/": {"get": {"operationId": "tracer_project-version_get_run_insights", "description": "", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/ProjectVersion"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": []}, "/tracer/project-version/list_runs/": {"get": {"operationId": "tracer_project-version_list_runs", "description": "Get a paginated list of all projects for the organization.", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/ProjectVersion"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": []}, "/tracer/project-version/project_version_winner/": {"post": {"operationId": "tracer_project-version_project_version_winner", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ProjectVersion"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/ProjectVersion"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": []}, "/tracer/project-version/update_project_version_config/": {"post": {"operationId": "tracer_project-version_update_project_version_config", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ProjectVersion"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/ProjectVersion"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": []}, "/tracer/project-version/{id}/": {"get": {"operationId": "tracer_project-version_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ProjectVersion"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "put": {"operationId": "tracer_project-version_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ProjectVersion"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ProjectVersion"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "patch": {"operationId": "tracer_project-version_partial_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ProjectVersion"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ProjectVersion"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "delete": {"operationId": "tracer_project-version_delete", "description": "", "parameters": [], "responses": {"204": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/tracer/project/": {"get": {"operationId": "tracer_project_list", "description": "Get a paginated list of all projects for the organization.", "parameters": [{"name": "name", "in": "query", "required": false, "type": "string"}, {"name": "project_type", "in": "query", "required": false, "type": "string"}, {"name": "tags", "in": "query", "required": false, "type": "string"}, {"name": "filters", "in": "query", "required": false, "type": "string", "default": "[]"}, {"name": "sort_by", "in": "query", "required": false, "type": "string", "default": "created_at"}, {"name": "sort_direction", "in": "query", "required": false, "type": "string", "enum": ["asc", "desc"], "default": "desc"}, {"name": "page_number", "in": "query", "required": false, "type": "integer", "default": 0, "minimum": 0}, {"name": "page_size", "in": "query", "required": false, "type": "integer", "default": 20, "minimum": 1}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/Project"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true}, "post": {"operationId": "tracer_project_create", "description": "Create a new project.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/Project"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/Project"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": []}, "/tracer/project/fetch_system_metrics/": {"get": {"operationId": "tracer_project_fetch_system_metrics", "description": "", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/Project"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": []}, "/tracer/project/get_graph_data/": {"get": {"operationId": "tracer_project_get_graph_data", "description": "", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "project_id", "in": "query", "required": true, "type": "string", "format": "uuid"}, {"name": "interval", "in": "query", "required": false, "type": "string", "default": "hour", "minLength": 1}, {"name": "filters", "in": "query", "required": false, "type": "string", "default": "[]", "minLength": 1}, {"name": "allow_sampled", "in": "query", "description": "Deprecated compatibility parameter; accepted but ignored. Aggregate graph results are always exact.", "required": false, "type": "boolean", "default": false}, {"name": "refresh", "in": "query", "description": "Recompute and atomically replace the last complete exact result.", "required": false, "type": "boolean", "default": false}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ProjectGraphDataResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/tracer/project/get_user_graph_data/": {"post": {"operationId": "tracer_project_get_user_graph_data", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ProjectUserGraphDataRequest"}}, {"name": "project_id", "in": "query", "required": true, "type": "string", "format": "uuid"}, {"name": "end_user_id", "in": "query", "required": true, "type": "string", "format": "uuid"}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ProjectUserGraphDataResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/tracer/project/get_user_metrics/": {"post": {"operationId": "tracer_project_get_user_metrics", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ProjectUserMetricsRequest"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/ProjectUserMetricsRequest"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true}, "parameters": []}, "/tracer/project/get_users_aggregate_graph_data/": {"post": {"operationId": "tracer_project_get_users_aggregate_graph_data", "summary": "Fetch time-series aggregate user metrics for the observe graph.", "description": "Supports SYSTEM_METRIC, EVAL, and ANNOTATION types.\nAll metrics are aggregated at the user level.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ProjectUsersAggregateGraphDataRequest"}}, {"name": "allow_sampled", "in": "query", "description": "Deprecated compatibility parameter. Observe graphs always return complete exact data or a retryable error.", "required": false, "type": "boolean", "default": false}, {"name": "refresh", "in": "query", "description": "Recompute and atomically replace the last complete exact result.", "required": false, "type": "boolean", "default": false}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ObserveGraphDataResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/tracer/project/list_project_ids/": {"get": {"operationId": "tracer_project_list_project_ids", "description": "List project ids for a given project.", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ProjectIdListResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-response-validation": true}, "parameters": []}, "/tracer/project/list_projects/": {"get": {"operationId": "tracer_project_list_projects", "summary": "List projects filtered by organization ID.", "description": "Volume counts come from ClickHouse (fast) instead of a PG\nJOIN on observation_spans (was 12+ seconds).", "parameters": [{"name": "name", "in": "query", "required": false, "type": "string"}, {"name": "project_type", "in": "query", "required": false, "type": "string"}, {"name": "tags", "in": "query", "required": false, "type": "string"}, {"name": "filters", "in": "query", "required": false, "type": "string", "default": "[]"}, {"name": "sort_by", "in": "query", "required": false, "type": "string", "default": "created_at"}, {"name": "sort_direction", "in": "query", "required": false, "type": "string", "enum": ["asc", "desc"], "default": "desc"}, {"name": "page_number", "in": "query", "required": false, "type": "integer", "default": 0, "minimum": 0}, {"name": "page_size", "in": "query", "required": false, "type": "integer", "default": 20, "maximum": 100, "minimum": 1}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ProjectListResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/tracer/project/project_sdk_code/": {"get": {"operationId": "tracer_project_project_sdk_code", "description": "", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/Project"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": []}, "/tracer/project/update_project_config/": {"post": {"operationId": "tracer_project_update_project_config", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/Project"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/Project"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": []}, "/tracer/project/update_project_name/": {"post": {"operationId": "tracer_project_update_project_name", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/Project"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/Project"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": []}, "/tracer/project/update_project_session_config/": {"post": {"operationId": "tracer_project_update_project_session_config", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/Project"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/Project"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": []}, "/tracer/project/{id}/": {"get": {"operationId": "tracer_project_read", "description": "Get a single project by ID with sampling rate.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ProjectDetailResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-response-validation": true}, "put": {"operationId": "tracer_project_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/Project"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/Project"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "patch": {"operationId": "tracer_project_partial_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/Project"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/Project"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "delete": {"operationId": "tracer_project_delete", "description": "", "parameters": [], "responses": {"204": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/tracer/project/{id}/tags/": {"patch": {"operationId": "tracer_project_update_tags", "description": "Update tags for a project.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/Project"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/Project"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/tracer/replay-session/": {"get": {"operationId": "tracer_replay-session_list", "summary": "List replay sessions for a project with pagination.", "description": "Query params:\n    project_id: uuid (optional) - filter by project\n    page: int (optional) - page number\n    limit: int (optional) - items per page", "parameters": [], "responses": {"200": {"description": "", "schema": {"type": "array", "items": {"$ref": "#/definitions/ReplaySessionList"}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "post": {"operationId": "tracer_replay-session_create", "summary": "Create a new replay session in INIT state.", "description": "Request body:\n    project_id: uuid (required)\n    replay_type: \"session\" or \"trace\" (default: \"session\")\n    ids: list of uuids (required if select_all=false)\n    select_all: bool (default: false)", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/CreateReplaySession"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/CreateReplaySession"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": []}, "/tracer/replay-session/eval-configs/": {"get": {"operationId": "tracer_replay-session_get_eval_configs", "summary": "Get all custom eval configs for a project with available models per eval template.", "description": "Query params:\n    project_id: uuid (required)", "parameters": [], "responses": {"200": {"description": "", "schema": {"type": "array", "items": {"$ref": "#/definitions/ReplaySession"}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": []}, "/tracer/replay-session/{id}/": {"get": {"operationId": "tracer_replay-session_read", "summary": "Get a single replay session with all related data.", "description": "URL params:\n    pk: replay session uuid", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ReplaySession"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/tracer/replay-session/{id}/generate-scenario/": {"post": {"operationId": "tracer_replay-session_generate_scenario", "summary": "Create agent definition + scenario and start generation workflow.\nMoves replay session to GENERATING state.", "description": "URL params:\n    pk: replay session uuid\n\nRequest body:\n    agent_name: string (required)\n    agent_description: string (optional)\n    scenario_name: string (required)\n    agent_type: \"text\" or \"voice\" (default: \"text\")\n    no_of_rows: int (default: 20)\n    personas: list of uuids (optional)\n    custom_columns: list of dicts (optional)\n    graph: dict (optional)\n    generate_graph: bool (default: true)", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/GenerateScenario"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/GenerateScenario"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/tracer/saved-views/": {"get": {"operationId": "tracer_saved-views_list", "description": "", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SavedViewListResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-response-validation": true}, "post": {"operationId": "tracer_saved-views_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/SavedViewList"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SavedViewDetailResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-response-validation": true}, "parameters": []}, "/tracer/saved-views/reorder/": {"post": {"operationId": "tracer_saved-views_reorder", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/SavedViewList"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SavedViewMessageResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-response-validation": true}, "parameters": []}, "/tracer/saved-views/{id}/": {"get": {"operationId": "tracer_saved-views_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SavedViewDetailResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-response-validation": true}, "put": {"operationId": "tracer_saved-views_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/SavedViewList"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SavedViewDetailResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-response-validation": true}, "patch": {"operationId": "tracer_saved-views_partial_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/SavedViewList"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SavedViewDetailResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-response-validation": true}, "delete": {"operationId": "tracer_saved-views_delete", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SavedViewMessageResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/tracer/saved-views/{id}/duplicate/": {"post": {"operationId": "tracer_saved-views_duplicate", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/SavedViewList"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SavedViewDetailResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/tracer/shared-links/": {"get": {"operationId": "tracer_shared-links_list", "description": "CRUD for shared links. Requires authentication.", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/SharedLinkList"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "post": {"operationId": "tracer_shared-links_create", "description": "CRUD for shared links. Requires authentication.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/SharedLinkCreate"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/SharedLinkCreate"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": []}, "/tracer/shared-links/{id}/": {"get": {"operationId": "tracer_shared-links_read", "description": "CRUD for shared links. Requires authentication.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SharedLinkDetail"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "put": {"operationId": "tracer_shared-links_update", "description": "CRUD for shared links. Requires authentication.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/SharedLinkUpdate"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SharedLinkUpdate"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "patch": {"operationId": "tracer_shared-links_partial_update", "description": "CRUD for shared links. Requires authentication.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/SharedLinkUpdate"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SharedLinkUpdate"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "delete": {"operationId": "tracer_shared-links_delete", "description": "CRUD for shared links. Requires authentication.", "parameters": [], "responses": {"204": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this shared link.", "required": true, "type": "string", "format": "uuid"}]}, "/tracer/shared-links/{id}/access/": {"post": {"operationId": "tracer_shared-links_add_access", "description": "Add email(s) to the ACL of a shared link.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AddAccess"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/AddAccess"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this shared link.", "required": true, "type": "string", "format": "uuid"}]}, "/tracer/shared-links/{id}/access/{access_id}/": {"delete": {"operationId": "tracer_shared-links_remove_access", "description": "Remove an email from the ACL.", "parameters": [], "responses": {"204": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": [{"name": "id", "in": "path", "description": "A UUID string identifying this shared link.", "required": true, "type": "string", "format": "uuid"}, {"name": "access_id", "in": "path", "required": true, "type": "string"}]}, "/tracer/shared/{token}/": {"get": {"operationId": "tracer_shared_read", "description": "Resolve a share token to the underlying resource data.\n- Public links: no auth needed\n- Restricted links: user must be authenticated + email in ACL", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SharedLinkResolveResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/SharedLinkResolveError"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/SharedLinkResolveError"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/SharedLinkResolveError"}}, "410": {"description": "", "schema": {"$ref": "#/definitions/SharedLinkResolveError"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": [{"name": "token", "in": "path", "required": true, "type": "string"}]}, "/tracer/trace-annotation/get_annotation_values/": {"get": {"operationId": "tracer_trace-annotation_get_annotation_values", "description": "", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "observation_span_id", "in": "query", "required": false, "type": "string", "maxLength": 255, "minLength": 1, "x-nullable": true}, {"name": "trace_id", "in": "query", "required": false, "type": "string", "format": "uuid", "x-nullable": true}, {"name": "annotators", "in": "query", "required": false, "type": "string", "default": []}, {"name": "exclude_annotators", "in": "query", "required": false, "type": "string", "default": []}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/GetTraceAnnotationValuesResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/tracer/trace-error-analysis/{trace_id}/": {"get": {"operationId": "tracer_trace-error-analysis_read", "description": "Get error analysis for a specific trace\nGET /api/trace-error-analysis/<trace_id>/", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/TraceErrorAnalysisResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-response-validation": true}, "parameters": [{"name": "trace_id", "in": "path", "required": true, "type": "string"}]}, "/tracer/trace-error-task/{project_id}/": {"get": {"operationId": "tracer_trace-error-task_read", "description": "Get current task configuration for a project\nGET /api/trace-error-task/<project_id>/", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/TraceErrorTaskResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-response-validation": true}, "post": {"operationId": "tracer_trace-error-task_create", "summary": "Update task configuration for a project\nPOST /api/trace-error-task/<project_id>/", "description": "Request body:\n{\n    \"sampling_rate\": 0.2,  // Required: 0-1\n    \"status\": \"waiting\"    // Optional: \"waiting\" or \"paused\"\n}", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/TraceErrorTaskUpdateRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/TraceErrorTaskUpdateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "project_id", "in": "path", "required": true, "type": "string"}]}, "/tracer/trace-session/": {"get": {"operationId": "tracer_trace-session_list", "description": "", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/TraceSession"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "post": {"operationId": "tracer_trace-session_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/TraceSession"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/TraceSession"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": []}, "/tracer/trace-session/get_session_filter_values/": {"get": {"operationId": "tracer_trace-session_get_session_filter_values", "description": "Return distinct values for a session-level column.\nUsed by the filter panel's value picker for session-specific fields\n(session_id, user_id, first_message, etc.).\n\nQuery params:\n    project_id: required\n    column: canonical session column name, e.g. \"session_id\"\n    search: optional search substring\n    page: page number (0-based), default 0\n    page_size: default 50", "parameters": [{"name": "project_id", "in": "query", "required": true, "type": "string", "format": "uuid"}, {"name": "column", "in": "query", "required": true, "type": "string", "enum": ["session_id", "user_id", "first_message", "last_message"]}, {"name": "search", "in": "query", "required": false, "type": "string", "default": "", "maxLength": 512}, {"name": "page", "in": "query", "required": false, "type": "integer", "default": 0, "minimum": 0}, {"name": "page_size", "in": "query", "required": false, "type": "integer", "default": 50, "maximum": 500, "minimum": 1}], "responses": {"200": {"description": "", "schema": {"type": "array", "items": {"$ref": "#/definitions/TraceSession"}}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/tracer/trace-session/get_session_graph_data/": {"post": {"operationId": "tracer_trace-session_get_session_graph_data", "summary": "Fetch time-series session metrics for the observe graph.", "description": "Supports the same metric types as the trace graph endpoint:\n- SYSTEM_METRIC: latency, tokens, cost, error_rate, session_count,\n  avg_duration, avg_traces_per_session — all aggregated at session level\n- EVAL: eval scores averaged across sessions\n- ANNOTATION: annotation scores averaged across sessions\n\nResponse shape matches trace graph: {metric_name, data: [{timestamp, value, primary_traffic}]}", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/TraceSessionGraphDataRequest"}}, {"name": "allow_sampled", "in": "query", "description": "Deprecated compatibility parameter. Observe graphs always return complete exact data or a retryable error.", "required": false, "type": "boolean", "default": false}, {"name": "refresh", "in": "query", "description": "Recompute and atomically replace the last complete exact result.", "required": false, "type": "boolean", "default": false}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ObserveGraphDataResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ObserveGraphDataErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/tracer/trace-session/get_trace_session_export_data/": {"get": {"operationId": "tracer_trace-session_get_trace_session_export_data", "description": "Export traces filtered by project ID and project version ID with optimized queries.", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "project_id", "in": "query", "required": true, "type": "string", "format": "uuid"}, {"name": "user_id", "in": "query", "required": false, "type": "string"}, {"name": "bookmarked", "in": "query", "required": false, "type": "boolean", "x-nullable": true}, {"name": "filters", "in": "query", "required": false, "type": "string", "default": "[]", "minLength": 1}, {"name": "sort_params", "in": "query", "required": false, "type": "string", "default": "[]", "minLength": 1}, {"name": "page_number", "in": "query", "description": "Zero-based numbered page. Pages whose required ordered work exceeds the finite read contract return HTTP 422 with code page_depth_exceeded; request an earlier page or narrow the time range.", "required": false, "type": "integer", "default": 0, "minimum": 0}, {"name": "page_size", "in": "query", "required": false, "type": "integer", "default": 30, "maximum": 500, "minimum": 1}, {"name": "cursor", "in": "query", "description": "Opaque continuation token returned by the previous page. When supplied, do not also send the numbered-page parameter.", "required": false, "type": "string", "maxLength": 4096, "minLength": 1}, {"name": "cursor_mode", "in": "query", "required": false, "type": "boolean", "default": false}, {"name": "interval", "in": "query", "required": false, "type": "string"}, {"name": "allow_sampled", "in": "query", "description": "Omit for backward-compatible complete bounded pages, which may label total_rows as a lower bound. Send false to require an exact total, or true to opt in explicitly to lower-bound totals.", "required": false, "type": "boolean"}], "responses": {"200": {"description": "Bounded CSV export; a terminal comment row discloses truncation.", "schema": {"type": "string"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "produces": ["text/csv"], "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/tracer/trace-session/list_sessions/": {"get": {"operationId": "tracer_trace-session_list_sessions", "description": "List traces filtered by project ID and project version ID with optimized queries.", "parameters": [{"name": "project_id", "in": "query", "required": false, "type": "string", "format": "uuid"}, {"name": "user_id", "in": "query", "required": false, "type": "string"}, {"name": "bookmarked", "in": "query", "required": false, "type": "boolean", "x-nullable": true}, {"name": "filters", "in": "query", "required": false, "type": "string", "default": "[]", "minLength": 1}, {"name": "sort_params", "in": "query", "required": false, "type": "string", "default": "[]", "minLength": 1}, {"name": "page_number", "in": "query", "description": "Zero-based numbered page. Pages whose required ordered work exceeds the finite read contract return HTTP 422 with code page_depth_exceeded; request an earlier page or narrow the time range.", "required": false, "type": "integer", "default": 0, "minimum": 0}, {"name": "page_size", "in": "query", "required": false, "type": "integer", "default": 30, "maximum": 500, "minimum": 1}, {"name": "cursor", "in": "query", "description": "Opaque continuation token returned by the previous page. When supplied, do not also send the numbered-page parameter.", "required": false, "type": "string", "maxLength": 4096, "minLength": 1}, {"name": "cursor_mode", "in": "query", "required": false, "type": "boolean", "default": false}, {"name": "interval", "in": "query", "required": false, "type": "string"}, {"name": "allow_sampled", "in": "query", "description": "Omit for backward-compatible complete bounded pages, which may label total_rows as a lower bound. Send false to require an exact total, or true to opt in explicitly to lower-bound totals.", "required": false, "type": "boolean"}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/TraceSessionListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "422": {"description": "", "schema": {"$ref": "#/definitions/PageDepthExceededError"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "post": {"operationId": "tracer_trace-session_list_sessions_create", "description": "List traces filtered by project ID and project version ID with optimized queries.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/TraceSessionListQuery"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/TraceSessionListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "422": {"description": "", "schema": {"$ref": "#/definitions/PageDepthExceededError"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true, "x-read-query-post": true}, "parameters": []}, "/tracer/trace-session/{id}/": {"get": {"operationId": "tracer_trace-session_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/TraceSession"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "put": {"operationId": "tracer_trace-session_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/TraceSession"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/TraceSession"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "patch": {"operationId": "tracer_trace-session_partial_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/TraceSession"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/TraceSession"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "delete": {"operationId": "tracer_trace-session_delete", "description": "", "parameters": [], "responses": {"204": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/tracer/trace-session/{id}/eval_logs/": {"get": {"operationId": "tracer_trace-session_eval_logs", "summary": "Session-scoped eval log feed for TracesDrawer's \"Evals\" tab.", "description": "Session-level eval results are walled off from span/trace surfaces\nby ``target_type='session'`` — this endpoint is the only place\nthey appear.\n\nQuery params:\n    page (int, 0-indexed, default 0)\n    page_size (int, default 25, max 100)", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/TraceSession"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/tracer/trace-session/{id}/query/": {"get": {"operationId": "tracer_trace-session_query", "description": "Read the same authorized detail without putting filters in the URL.", "parameters": [{"name": "navigation_context", "in": "query", "required": false, "type": "string"}, {"name": "user_id", "in": "query", "required": false, "type": "string"}, {"name": "filters", "in": "query", "required": false, "type": "string", "default": "[]", "minLength": 1}, {"name": "sort_params", "in": "query", "required": false, "type": "string", "default": "[]", "minLength": 1}, {"name": "page_number", "in": "query", "required": false, "type": "integer", "default": 0, "minimum": 0}, {"name": "page_size", "in": "query", "required": false, "type": "integer", "default": 30, "maximum": 500, "minimum": 1}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/TraceSessionDetailResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "post": {"operationId": "tracer_trace-session_query_create", "description": "Read the same authorized detail without putting filters in the URL.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/TraceSessionRetrieveQuery"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/TraceSessionDetailResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true, "x-read-query-post": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/tracer/trace/": {"get": {"operationId": "tracer_trace_list", "description": "", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/Trace"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "post": {"operationId": "tracer_trace_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/Trace"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/Trace"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": []}, "/tracer/trace/agent_graph/": {"get": {"operationId": "tracer_trace_agent_graph", "summary": "Return one cached exact Agent Graph.", "description": "``path_edges`` remains an empty compatibility field until telemetry\nrecords authoritative chronological execution transitions.", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "project_id", "in": "query", "required": true, "type": "string", "format": "uuid"}, {"name": "filters", "in": "query", "required": false, "type": "string", "default": "[]", "minLength": 1}, {"name": "refresh", "in": "query", "description": "Recompute and atomically replace the last exact graph snapshot.", "required": false, "type": "boolean", "default": false}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/TraceAgentGraphResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "post": {"operationId": "tracer_trace_agent_graph_create", "summary": "Return one cached exact Agent Graph.", "description": "``path_edges`` remains an empty compatibility field until telemetry\nrecords authoritative chronological execution transitions.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/TraceAgentGraphQuery"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/TraceAgentGraphResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true, "x-read-query-post": true}, "parameters": []}, "/tracer/trace/bulk_create/": {"post": {"operationId": "tracer_trace_bulk_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/Trace"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/Trace"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": []}, "/tracer/trace/compare_traces/": {"post": {"operationId": "tracer_trace_compare_traces", "description": "Compare traces across project versions with optimized queries.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/Trace"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/Trace"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": []}, "/tracer/trace/get_eval_names/": {"get": {"operationId": "tracer_trace_get_eval_names", "description": "Fetch all evaluation template names.", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/Trace"}}}}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-response-validation": true}, "parameters": []}, "/tracer/trace/get_graph_methods/": {"post": {"operationId": "tracer_trace_get_graph_methods", "description": "Fetch data for the observe graph with optimized queries", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/TraceGraphDataRequest"}}, {"name": "allow_sampled", "in": "query", "description": "Deprecated compatibility parameter. Observe graphs always return complete exact data or a retryable error.", "required": false, "type": "boolean", "default": false}, {"name": "refresh", "in": "query", "description": "Recompute and atomically replace the last complete exact result.", "required": false, "type": "boolean", "default": false}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ObserveGraphDataResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/tracer/trace/get_properties/": {"get": {"operationId": "tracer_trace_get_properties", "description": "Fetch all properties for graphing.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/TracePropertiesResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-response-validation": true}, "parameters": []}, "/tracer/trace/get_trace_export_data/": {"get": {"operationId": "tracer_trace_get_trace_export_data", "description": "Export one bounded trace/voice page and disclose remaining rows.", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "project_id", "in": "query", "required": true, "type": "string", "format": "uuid"}, {"name": "filters", "in": "query", "required": false, "type": "string", "default": "[]", "minLength": 1}, {"name": "attribute_keys", "in": "query", "description": "JSON-encoded list of custom attribute keys to include as CSV columns. Comma-separated simple keys remain supported.", "required": false, "type": "string"}], "responses": {"200": {"description": "Bounded trace or voice-call CSV export; a terminal comment row discloses truncation.", "schema": {"type": "string"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "produces": ["text/csv"], "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/tracer/trace/get_trace_id_by_index/": {"get": {"operationId": "tracer_trace_get_trace_id_by_index", "description": "Get the previous and next trace id by index using efficient database queries.", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "trace_id", "in": "query", "required": true, "type": "string", "format": "uuid"}, {"name": "project_version_id", "in": "query", "required": true, "type": "string", "format": "uuid"}, {"name": "filters", "in": "query", "required": false, "type": "string", "default": "[]", "minLength": 1}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/TraceNavigationResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "post": {"operationId": "tracer_trace_get_trace_id_by_index_create", "description": "Get the previous and next trace id by index using efficient database queries.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/TraceIndexQuery"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/TraceNavigationResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true, "x-read-query-post": true}, "parameters": []}, "/tracer/trace/get_trace_id_by_index_observe/": {"get": {"operationId": "tracer_trace_get_trace_id_by_index_observe", "description": "Get the previous and next trace id by index.", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "trace_id", "in": "query", "required": true, "type": "string", "format": "uuid"}, {"name": "project_id", "in": "query", "required": true, "type": "string", "format": "uuid"}, {"name": "filters", "in": "query", "required": false, "type": "string", "default": "[]", "minLength": 1}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/TraceNavigationResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "post": {"operationId": "tracer_trace_get_trace_id_by_index_observe_create", "description": "Get the previous and next trace id by index.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/TraceObserveIndexQuery"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/TraceNavigationResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true, "x-read-query-post": true}, "parameters": []}, "/tracer/trace/list_traces/": {"get": {"operationId": "tracer_trace_list_traces", "description": "List traces filtered by project ID and project version ID with optimized queries.", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}, {"name": "project_version_id", "in": "query", "required": true, "type": "string", "format": "uuid"}, {"name": "trace_ids", "in": "query", "required": false, "type": "string", "default": []}, {"name": "filters", "in": "query", "required": false, "type": "string", "default": "[]", "minLength": 1}, {"name": "sort_params", "in": "query", "required": false, "type": "string", "default": "[]", "minLength": 1}, {"name": "page_number", "in": "query", "description": "Zero-based numbered page. Pages whose required ordered work exceeds the finite read contract return HTTP 422 with code page_depth_exceeded; request an earlier page or narrow the time range.", "required": false, "type": "integer", "default": 0, "minimum": 0}, {"name": "page_size", "in": "query", "required": false, "type": "integer", "default": 30, "maximum": 500, "minimum": 1}, {"name": "allow_sampled", "in": "query", "description": "Omit for backward-compatible complete bounded pages, which may label total_rows as a lower bound. Send false to require an exact total, or true to opt in explicitly to lower-bound totals.", "required": false, "type": "boolean"}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/TracePrototypeListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "422": {"description": "", "schema": {"$ref": "#/definitions/PageDepthExceededError"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "post": {"operationId": "tracer_trace_list_traces_create", "description": "List traces filtered by project ID and project version ID with optimized queries.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/TraceListQuery"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/TracePrototypeListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "422": {"description": "", "schema": {"$ref": "#/definitions/PageDepthExceededError"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true, "x-read-query-post": true}, "parameters": []}, "/tracer/trace/list_traces_of_session/": {"get": {"operationId": "tracer_trace_list_traces_of_session", "description": "List traces filtered by project ID with optimized queries.", "parameters": [{"name": "project_id", "in": "query", "required": false, "type": "string", "format": "uuid"}, {"name": "project_version_id", "in": "query", "required": false, "type": "string", "format": "uuid"}, {"name": "session_id", "in": "query", "required": false, "type": "string", "format": "uuid"}, {"name": "filters", "in": "query", "required": false, "type": "string", "default": "[]", "minLength": 1}, {"name": "page_number", "in": "query", "description": "Zero-based numbered page. Pages whose required ordered work exceeds the finite read contract return HTTP 422 with code page_depth_exceeded; request an earlier page or narrow the time range.", "required": false, "type": "integer", "default": 0, "minimum": 0}, {"name": "page_size", "in": "query", "required": false, "type": "integer", "default": 30, "maximum": 500, "minimum": 1}, {"name": "cursor", "in": "query", "description": "Opaque continuation token returned by the previous page. When supplied, do not also send the numbered-page parameter.", "required": false, "type": "string", "maxLength": 4096, "minLength": 1}, {"name": "cursor_mode", "in": "query", "required": false, "type": "boolean", "default": false}, {"name": "attribute_keys", "in": "query", "description": "JSON-encoded list of custom attribute keys to hydrate; only requested keys are returned. Each key resolves to its latest live span value by (start_time, span_id). Comma-separated simple keys remain supported.", "required": false, "type": "string"}, {"name": "allow_sampled", "in": "query", "description": "Omit for backward-compatible complete bounded pages, which may label total_rows as a lower bound. Send false to require an exact total. Send true to opt in explicitly to lower-bound totals and, on the first page, a clearly labelled bounded partial result when the full ordered prefix cannot be proven inside the read budget.", "required": false, "type": "boolean"}, {"name": "interval", "in": "query", "required": false, "type": "string"}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/TraceObserveListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "422": {"description": "", "schema": {"$ref": "#/definitions/PageDepthExceededError"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "post": {"operationId": "tracer_trace_list_traces_of_session_create", "description": "List traces filtered by project ID with optimized queries.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/TraceObserveListQuery"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/TraceObserveListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "422": {"description": "", "schema": {"$ref": "#/definitions/PageDepthExceededError"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true, "x-read-query-post": true}, "parameters": []}, "/tracer/trace/list_voice_calls/": {"get": {"operationId": "tracer_trace_list_voice_calls", "description": "List voice/conversation traces for a project in an optimized way and\nreturn a response similar to the provided call object schema.\n\nQuery params:\n- project_id (required)\n- page (1-based, optional, default 1)\n- page_size (optional, default 30)", "parameters": [{"name": "project_id", "in": "query", "required": true, "type": "string", "format": "uuid"}, {"name": "filters", "in": "query", "required": false, "type": "string", "default": "[]", "minLength": 1}, {"name": "attribute_keys", "in": "query", "description": "JSON-encoded list of custom attribute keys to include as CSV columns. Comma-separated simple keys remain supported.", "required": false, "type": "string"}, {"name": "page", "in": "query", "description": "One-based numbered page. Pages whose required ordered work exceeds the finite read contract return HTTP 422 with code page_depth_exceeded; request an earlier page, use the additive continuation cursor, or narrow the time range.", "required": false, "type": "integer", "default": 1, "minimum": 1}, {"name": "page_size", "in": "query", "required": false, "type": "integer", "default": 30, "maximum": 500, "minimum": 1}, {"name": "remove_simulation_calls", "in": "query", "required": false, "type": "boolean", "default": false}, {"name": "cursor", "in": "query", "description": "Opaque continuation token returned by the previous page. When supplied, do not also send the numbered-page parameter.", "required": false, "type": "string", "maxLength": 4096, "minLength": 1}, {"name": "cursor_mode", "in": "query", "required": false, "type": "boolean", "default": false}, {"name": "allow_sampled", "in": "query", "description": "Omit for backward-compatible complete bounded pages, which may label count as a lower bound. Send false to require an exact total. Send true to opt in explicitly to lower-bound totals and, on the first page, a clearly labelled bounded partial result when the full ordered prefix cannot be proven inside the read budget.", "required": false, "type": "boolean"}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/TraceVoiceCallListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "422": {"description": "", "schema": {"$ref": "#/definitions/PageDepthExceededError"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "post": {"operationId": "tracer_trace_list_voice_calls_create", "description": "List voice/conversation traces for a project in an optimized way and\nreturn a response similar to the provided call object schema.\n\nQuery params:\n- project_id (required)\n- page (1-based, optional, default 1)\n- page_size (optional, default 30)", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/TraceVoiceCallListQuery"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/TraceVoiceCallListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "422": {"description": "", "schema": {"$ref": "#/definitions/PageDepthExceededError"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true, "x-read-query-post": true}, "parameters": []}, "/tracer/trace/voice_call_detail/": {"get": {"operationId": "tracer_trace_voice_call_detail", "summary": "Return the heavy / detail-only fields for a single voice call.", "description": "Query params:\n- trace_id or legacy traceId (required) — UUID of the voice call trace.\n- project_id (optional) — the project the call was opened from.", "parameters": [{"name": "trace_id", "in": "query", "description": "Voice-call trace UUID. Supply this or the legacy traceId alias.", "required": false, "type": "string", "format": "uuid"}, {"name": "traceId", "in": "query", "description": "Legacy alias for trace_id; when both are supplied they must match.", "required": false, "type": "string", "format": "uuid"}, {"name": "project_id", "in": "query", "description": "Project the detail was opened from. The same id can exist in several projects; when supplied, only that project's copy is read.", "required": false, "type": "string", "format": "uuid"}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/TraceVoiceCallDetailResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/tracer/trace/{id}/": {"get": {"operationId": "tracer_trace_read", "summary": "Retrieve a trace by its ID.", "description": "Query params:\n- project_id (optional) — the project the trace was opened from.", "parameters": [{"name": "project_id", "in": "query", "description": "Project the detail was opened from. The same id can exist in several projects; when supplied, only that project's copy is read.", "required": false, "type": "string", "format": "uuid"}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/TraceDetailResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "put": {"operationId": "tracer_trace_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/Trace"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/Trace"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "patch": {"operationId": "tracer_trace_partial_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/Trace"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/Trace"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "delete": {"operationId": "tracer_trace_delete", "description": "", "parameters": [], "responses": {"204": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/tracer/trace/{id}/tags/": {"patch": {"operationId": "tracer_trace_update_tags", "description": "Update tags for a trace.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/TraceTagsUpdate"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/TraceTagsUpdate"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/tracer/user-alert-logs/": {"get": {"operationId": "tracer_user-alert-logs_list", "description": "", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/UserAlertMonitorLog"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "post": {"operationId": "tracer_user-alert-logs_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UserAlertMonitorLogWriteRequest"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/UserAlertMonitorLogWriteResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/tracer/user-alert-logs/all/": {"get": {"operationId": "tracer_user-alert-logs_list_all", "description": "", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/UserAlertMonitorLog"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": []}, "/tracer/user-alert-logs/resolve/": {"post": {"operationId": "tracer_user-alert-logs_mark_as_resolved", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UserAlertMonitorLogResolveRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UserAlertMonitorLogResolveResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/tracer/user-alert-logs/{id}/": {"get": {"operationId": "tracer_user-alert-logs_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UserAlertMonitorLog"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "put": {"operationId": "tracer_user-alert-logs_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UserAlertMonitorLogWriteRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UserAlertMonitorLogWriteResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "patch": {"operationId": "tracer_user-alert-logs_partial_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UserAlertMonitorLogWriteRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UserAlertMonitorLogWriteResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "delete": {"operationId": "tracer_user-alert-logs_delete", "description": "", "parameters": [], "responses": {"204": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/tracer/user-alert-logs/{id}/list/": {"get": {"operationId": "tracer_user-alert-logs_list_for_alert", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UserAlertMonitorLog"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/tracer/user-alerts/": {"get": {"operationId": "tracer_user-alerts_list", "summary": "Return the paginated root monitor list.", "description": "``get_queryset`` returns ``(page_queryset, total_count)`` for list\nrequests because ``list_monitors`` also needs the total count. DRF's\ndefault ``list`` expects only a queryset, so keep the root endpoint\nexplicit instead of letting DRF serialize the tuple incorrectly.", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"required": ["count", "results"], "type": "object", "properties": {"count": {"type": "integer"}, "next": {"type": "string", "format": "uri", "x-nullable": true}, "previous": {"type": "string", "format": "uri", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/UserAlertMonitor"}}}}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "post": {"operationId": "tracer_user-alerts_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UserAlertMonitor"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/UserAlertMonitor"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true}, "parameters": []}, "/tracer/user-alerts/bulk-mute/": {"post": {"operationId": "tracer_user-alerts_bulk_mute", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UserAlertMonitorBulkMuteRequest"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/UserAlertMonitorBulkMuteRequest"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true}, "parameters": []}, "/tracer/user-alerts/duplicate/": {"post": {"operationId": "tracer_user-alerts_duplicate", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UserAlertMonitorDuplicate"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UserAlertMonitorDuplicateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/tracer/user-alerts/list_monitors/": {"get": {"operationId": "tracer_user-alerts_list_monitors", "description": "", "parameters": [{"name": "page_number", "in": "query", "description": "Zero-based page number.", "required": false, "type": "integer", "default": 0, "minimum": 0}, {"name": "page_size", "in": "query", "required": false, "type": "integer", "default": 30, "maximum": 100, "minimum": 1}, {"name": "search_text", "in": "query", "required": false, "type": "string"}, {"name": "project_id", "in": "query", "required": false, "type": "array", "items": {"type": "string", "format": "uuid"}}, {"name": "status", "in": "query", "required": false, "type": "array", "items": {"type": "string", "enum": ["triggered", "healthy"]}}, {"name": "metric_type", "in": "query", "required": false, "type": "array", "items": {"type": "string", "minLength": 1}}, {"name": "sort_by", "in": "query", "required": false, "type": "string", "minLength": 1}, {"name": "sort_direction", "in": "query", "required": false, "type": "string", "enum": ["asc", "desc"]}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UserAlertMonitorListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/tracer/user-alerts/metric-options/": {"get": {"operationId": "tracer_user-alerts_metric_options", "description": "", "parameters": [{"name": "page", "in": "query", "description": "A page number within the paginated result set.", "required": false, "type": "integer"}, {"name": "limit", "in": "query", "description": "Number of results to return per page.", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UserAlertMonitorMetricOptionsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": []}, "/tracer/user-alerts/preview-graph/": {"post": {"operationId": "tracer_user-alerts_preview_graph", "description": "Returns time-series data for a temporary monitor's metric, suitable for graphing a preview.\nAccepts monitor configuration in the request body.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UserAlertMonitorPreviewGraph"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UserAlertMonitorGraphResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-response-validation": true}, "parameters": []}, "/tracer/user-alerts/{id}/": {"get": {"operationId": "tracer_user-alerts_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UserAlertMonitor"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "put": {"operationId": "tracer_user-alerts_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UserAlertMonitor"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UserAlertMonitor"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true}, "patch": {"operationId": "tracer_user-alerts_partial_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UserAlertMonitor"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UserAlertMonitor"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-request-validation": true}, "delete": {"operationId": "tracer_user-alerts_delete", "description": "", "parameters": [], "responses": {"204": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/tracer/user-alerts/{id}/details/": {"get": {"operationId": "tracer_user-alerts_monitor_details", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UserAlertMonitor"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/tracer/user-alerts/{id}/graph/": {"get": {"operationId": "tracer_user-alerts_graph_data", "summary": "Returns time-series data for a monitor's metric, suitable for graphing.", "description": "Accepts `start_date` and `end_date` query parameters (ISO 8601 format).\nIf not provided, it defaults to the last 7 days.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UserAlertMonitorGraphResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"], "x-runtime-response-validation": true}, "parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}]}, "/tracer/users/": {"get": {"operationId": "tracer_users_list", "description": "List traces filtered by project ID with optimized queries.", "parameters": [{"name": "project_id", "in": "query", "required": false, "type": "string", "format": "uuid"}, {"name": "search", "in": "query", "required": false, "type": "string"}, {"name": "page_size", "in": "query", "required": false, "type": "integer", "maximum": 500, "minimum": 1}, {"name": "current_page_index", "in": "query", "required": false, "type": "integer", "minimum": 0}, {"name": "sort_params", "in": "query", "required": false, "type": "string", "default": "[]", "minLength": 1}, {"name": "filters", "in": "query", "required": false, "type": "string", "default": "[]", "minLength": 1}, {"name": "export", "in": "query", "required": false, "type": "boolean", "default": false}, {"name": "cursor", "in": "query", "description": "Opaque continuation token returned by the previous page. When supplied, do not also send the numbered-page parameter.", "required": false, "type": "string", "maxLength": 4096, "minLength": 1}, {"name": "cursor_mode", "in": "query", "required": false, "type": "boolean", "default": false}, {"name": "requested_columns", "in": "query", "description": "JSON-encoded list of visible Users-table fields. Raw-derived metrics are hydrated only when explicitly requested.", "required": false, "type": "string", "default": []}, {"name": "attribute_keys", "in": "query", "description": "JSON-encoded list of visible custom user attribute keys. Only these keys (plus keys required by filters) are hydrated.", "required": false, "type": "string", "default": []}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UsersResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "422": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "produces": ["application/json", "text/csv"], "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "post": {"operationId": "tracer_users_create", "description": "List traces filtered by project ID with optimized queries.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UsersQuery"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UsersResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "422": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "503": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "produces": ["application/json", "text/csv"], "tags": ["tracer"], "x-runtime-request-validation": true, "x-runtime-response-validation": true, "x-read-query-post": true}, "parameters": []}, "/tracer/users/get_code_example/": {"get": {"operationId": "tracer_users_get_code_example_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UserCodeExampleResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": []}, "/tracer/v1/health": {"get": {"operationId": "tracer_v1_health_list", "description": "Health check - always returns OK.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/OTLPHealthResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["tracer"]}, "parameters": []}, "/usage/admin/custom-plan/": {"get": {"operationId": "usage_admin_custom-plan_list", "description": "Get custom plan summary for an org.", "parameters": [{"name": "organization_id", "in": "query", "required": true, "type": "string", "format": "uuid"}, {"name": "dimension", "in": "query", "required": false, "type": "string", "minLength": 1}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AdminCustomPlanResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "post": {"operationId": "usage_admin_custom-plan_create", "summary": "Create full custom plan.", "description": "Request body:\n{\n    \"organization_id\": \"uuid\",\n    \"platform_fee\": 1500.00,\n    \"entitlements\": {\"monitors\": -1, \"has_knowledge_base\": true, ...},\n    \"pricing\": {\n        \"ai_credits\": [\n            {\"tier_start\": 0, \"tier_end\": 10000, \"price_per_unit\": 0.005},\n            {\"tier_start\": 10000, \"tier_end\": null, \"price_per_unit\": 0.003}\n        ], ...\n    }\n}", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AdminCustomPlanRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AdminCustomPlanResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "put": {"operationId": "usage_admin_custom-plan_update", "description": "Update existing custom plan (entitlements/pricing/fee).", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AdminCustomPlanRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AdminCustomPlanResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/usage/admin/entitlements/": {"get": {"operationId": "usage_admin_entitlements_list", "description": "List entitlement overrides for an org.", "parameters": [{"name": "organization_id", "in": "query", "required": true, "type": "string", "format": "uuid"}, {"name": "feature", "in": "query", "required": false, "type": "string", "minLength": 1}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AdminEntitlementsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "post": {"operationId": "usage_admin_entitlements_create", "description": "Create or update an entitlement override.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AdminEntitlementMutationRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AdminEntitlementMutationResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "delete": {"operationId": "usage_admin_entitlements_delete", "description": "Remove an entitlement override (falls back to plan default).", "parameters": [{"name": "organization_id", "in": "query", "required": true, "type": "string", "format": "uuid"}, {"name": "feature", "in": "query", "required": false, "type": "string", "minLength": 1}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AdminEntitlementsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/usage/admin/invoice/generate/": {"post": {"operationId": "usage_admin_invoice_generate_create", "description": "Generate invoice for an org+period.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AdminInvoiceRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AdminInvoiceGenerateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/usage/admin/invoice/preview/": {"post": {"operationId": "usage_admin_invoice_preview_create", "summary": "Preview invoice for an org+period.", "description": "Creates no invoice and deducts no credits, but does backfill missing\n``UsageSummary`` rows for the usage period. Open to staff so the admin's\nread-only Generate Invoice page can show what would be billed.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AdminInvoiceRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AdminInvoicePreviewResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/usage/admin/pricing/": {"get": {"operationId": "usage_admin_pricing_list", "description": "List custom pricing tiers for an org.", "parameters": [{"name": "organization_id", "in": "query", "required": true, "type": "string", "format": "uuid"}, {"name": "dimension", "in": "query", "required": false, "type": "string", "minLength": 1}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AdminPricingListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "post": {"operationId": "usage_admin_pricing_create", "description": "Create or update a pricing tier.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AdminPricingMutationRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AdminPricingMutationResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "delete": {"operationId": "usage_admin_pricing_delete", "description": "Remove all custom pricing tiers for a dimension.", "parameters": [{"name": "organization_id", "in": "query", "required": true, "type": "string", "format": "uuid"}, {"name": "dimension", "in": "query", "required": false, "type": "string", "minLength": 1}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AdminEntitlementsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/usage/api-call-count/": {"get": {"operationId": "usage_api-call-count_list", "description": "", "parameters": [{"name": "year", "in": "query", "required": false, "type": "integer"}, {"name": "month", "in": "query", "required": false, "type": "integer", "maximum": 12, "minimum": 1}, {"name": "api_call_type", "in": "query", "required": false, "type": "string", "minLength": 1}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/APICallCountResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/usage/api-call-type/": {"get": {"operationId": "usage_api-call-type_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/APICallTypeListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"]}, "parameters": []}, "/usage/cancel-subscription/": {"post": {"operationId": "usage_cancel-subscription_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UsageEmptyRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UsageMessageResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/usage/create-auto-recharge-session/": {"post": {"operationId": "usage_create-auto-recharge-session_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UsageEmptyRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/CheckoutSessionResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/usage/create-billing-portal-session/": {"post": {"operationId": "usage_create-billing-portal-session_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UsageEmptyRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/BillingPortalResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/usage/create-checkout-session/": {"post": {"operationId": "usage_create-checkout-session_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/CheckoutSessionRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/CheckoutSessionResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/usage/create-custom-payment-checkout-session/": {"post": {"operationId": "usage_create-custom-payment-checkout-session_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/CustomPaymentCheckoutRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/CheckoutSessionResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/usage/download-invoice/": {"post": {"operationId": "usage_download-invoice_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/DownloadInvoiceRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/DownloadInvoiceResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/usage/get-auto-reload-settings/": {"get": {"operationId": "usage_get-auto-reload-settings_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AutoReloadSettingsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"]}, "parameters": []}, "/usage/get-billing-details/": {"get": {"operationId": "usage_get-billing-details_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/OrganizationBillingLegacyResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"]}, "parameters": []}, "/usage/get-customer-invoices/": {"get": {"operationId": "usage_get-customer-invoices_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/CustomerInvoicesResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"]}, "parameters": []}, "/usage/get-last-four-digits/": {"get": {"operationId": "usage_get-last-four-digits_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/LastFourDigitsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"]}, "parameters": []}, "/usage/get-wallet-balance/": {"get": {"operationId": "usage_get-wallet-balance_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/WalletBalanceResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"]}, "parameters": []}, "/usage/get_latest_prices/": {"get": {"operationId": "usage_get_latest_prices_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PricingCalculationResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"]}, "parameters": []}, "/usage/organization-billing/": {"get": {"operationId": "usage_organization-billing_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/OrganizationBillingListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"]}, "patch": {"operationId": "usage_organization-billing_partial_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UsageOrganizationBilling"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/OrganizationBillingDetailResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/usage/organization-billing/{billing_id}/": {"get": {"operationId": "usage_organization-billing_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/OrganizationBillingListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"]}, "patch": {"operationId": "usage_organization-billing_partial_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UsageOrganizationBilling"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/OrganizationBillingDetailResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": [{"name": "billing_id", "in": "path", "required": true, "type": "string"}]}, "/usage/organization-filter/": {"get": {"operationId": "usage_organization-filter_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/OrganizationListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"]}, "parameters": []}, "/usage/organization-subscription/": {"get": {"operationId": "usage_organization-subscription_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/OrganizationSubscriptionListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"]}, "post": {"operationId": "usage_organization-subscription_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UsageOrganizationSubscriptionCreate"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/OrganizationSubscriptionMutationResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "patch": {"operationId": "usage_organization-subscription_partial_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UsageOrganizationSubscriptionCreate"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/OrganizationSubscriptionMutationResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "delete": {"operationId": "usage_organization-subscription_delete", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UsageStringResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"]}, "parameters": []}, "/usage/organization-subscription/{organization_subscription_id}/": {"get": {"operationId": "usage_organization-subscription_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/OrganizationSubscriptionListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"]}, "post": {"operationId": "usage_organization-subscription_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UsageOrganizationSubscriptionCreate"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/OrganizationSubscriptionMutationResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "patch": {"operationId": "usage_organization-subscription_partial_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UsageOrganizationSubscriptionCreate"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/OrganizationSubscriptionMutationResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "delete": {"operationId": "usage_organization-subscription_delete", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UsageStringResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"]}, "parameters": [{"name": "organization_subscription_id", "in": "path", "required": true, "type": "string"}]}, "/usage/organizations/": {"get": {"operationId": "usage_organizations_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/OrganizationListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"]}, "parameters": []}, "/usage/pricing-card-details/": {"post": {"operationId": "usage_pricing-card-details_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UsageEmptyRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PricingCardDetailsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/usage/pricing/": {"get": {"operationId": "usage_pricing_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PricingListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"]}, "post": {"operationId": "usage_pricing_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UsagePricingCreate"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PricingDetailResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "patch": {"operationId": "usage_pricing_partial_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UsagePricingCreate"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PricingReadResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "delete": {"operationId": "usage_pricing_delete", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UsageStringResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"]}, "parameters": []}, "/usage/pricing/{pricing_id}/": {"get": {"operationId": "usage_pricing_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PricingListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"]}, "post": {"operationId": "usage_pricing_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UsagePricingCreate"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PricingDetailResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "patch": {"operationId": "usage_pricing_partial_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UsagePricingCreate"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PricingReadResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "delete": {"operationId": "usage_pricing_delete", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UsageStringResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"]}, "parameters": [{"name": "pricing_id", "in": "path", "required": true, "type": "string"}]}, "/usage/rate-limits/": {"get": {"operationId": "usage_rate-limits_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/RateLimitListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"]}, "post": {"operationId": "usage_rate-limits_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UsageRateLimitCreate"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/RateLimitMutationResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "patch": {"operationId": "usage_rate-limits_partial_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UsageRateLimitCreate"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/RateLimitDetailResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "delete": {"operationId": "usage_rate-limits_delete", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UsageStringResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"]}, "parameters": []}, "/usage/rate-limits/{rate_limit_id}/": {"get": {"operationId": "usage_rate-limits_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/RateLimitListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"]}, "post": {"operationId": "usage_rate-limits_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UsageRateLimitCreate"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/RateLimitMutationResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "patch": {"operationId": "usage_rate-limits_partial_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UsageRateLimitCreate"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/RateLimitDetailResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "delete": {"operationId": "usage_rate-limits_delete", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UsageStringResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"]}, "parameters": [{"name": "rate_limit_id", "in": "path", "required": true, "type": "string"}]}, "/usage/resource-limits/": {"get": {"operationId": "usage_resource-limits_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ResourceLimitListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"]}, "post": {"operationId": "usage_resource-limits_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UsageResourceLimitCreate"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ResourceLimitMutationResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "patch": {"operationId": "usage_resource-limits_partial_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UsageResourceLimitCreate"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ResourceLimitDetailResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "delete": {"operationId": "usage_resource-limits_delete", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UsageStringResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"]}, "parameters": []}, "/usage/resource-limits/{resource_limit_id}/": {"get": {"operationId": "usage_resource-limits_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ResourceLimitListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"]}, "post": {"operationId": "usage_resource-limits_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UsageResourceLimitCreate"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ResourceLimitMutationResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "patch": {"operationId": "usage_resource-limits_partial_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UsageResourceLimitCreate"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ResourceLimitDetailResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "delete": {"operationId": "usage_resource-limits_delete", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UsageStringResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"]}, "parameters": [{"name": "resource_limit_id", "in": "path", "required": true, "type": "string"}]}, "/usage/resource-type/": {"get": {"operationId": "usage_resource-type_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ResourceTypeListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"]}, "parameters": []}, "/usage/subscription-plans/": {"get": {"operationId": "usage_subscription-plans_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SubscriptionPlansResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"]}, "parameters": []}, "/usage/subscription-status/": {"get": {"operationId": "usage_subscription-status_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SubscriptionStatusResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"]}, "parameters": []}, "/usage/subscription-tier/": {"get": {"operationId": "usage_subscription-tier_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SubscriptionTierListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"]}, "post": {"operationId": "usage_subscription-tier_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UsageSubscriptionTier"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SubscriptionTierDetailResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "patch": {"operationId": "usage_subscription-tier_partial_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UsageSubscriptionTier"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SubscriptionTierDetailResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "delete": {"operationId": "usage_subscription-tier_delete", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UsageStringResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"]}, "parameters": []}, "/usage/subscription-tier/{subscription_id}/": {"get": {"operationId": "usage_subscription-tier_read", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SubscriptionTierListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"]}, "post": {"operationId": "usage_subscription-tier_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UsageSubscriptionTier"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SubscriptionTierDetailResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "patch": {"operationId": "usage_subscription-tier_partial_update", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UsageSubscriptionTier"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/SubscriptionTierDetailResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "delete": {"operationId": "usage_subscription-tier_delete", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UsageStringResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"]}, "parameters": [{"name": "subscription_id", "in": "path", "required": true, "type": "string"}]}, "/usage/update-auto-reload-settings/": {"post": {"operationId": "usage_update-auto-reload-settings_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AutoReloadSettingsRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AutoReloadUpdateResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/usage/update-billing-details/": {"post": {"operationId": "usage_update-billing-details_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UpdateOrganizationBillingRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UpdateBillingDetailsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/usage/usage-summary/": {"get": {"operationId": "usage_usage-summary_list", "description": "", "parameters": [{"name": "month", "in": "query", "required": false, "type": "integer", "maximum": 12, "minimum": 1}, {"name": "year", "in": "query", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UsageSummaryResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/usage/v2/add-addon/": {"post": {"operationId": "usage_v2_add-addon_create", "description": "Add or remove an add-on subscription.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AddonRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AddonPostResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "put": {"operationId": "usage_v2_add-addon_update", "description": "Reinstate a previously-scheduled add-on cancellation.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UsageEmptyRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UsageMessageResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "delete": {"operationId": "usage_v2_add-addon_delete", "description": "Add or remove an add-on subscription.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UsageMessageResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"]}, "parameters": []}, "/usage/v2/addon/": {"post": {"operationId": "usage_v2_addon_create", "description": "Add or remove an add-on subscription.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AddonRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AddonPostResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "put": {"operationId": "usage_v2_addon_update", "description": "Reinstate a previously-scheduled add-on cancellation.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UsageEmptyRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UsageMessageResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "delete": {"operationId": "usage_v2_addon_delete", "description": "Add or remove an add-on subscription.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UsageMessageResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"]}, "parameters": []}, "/usage/v2/billing-overview/": {"get": {"operationId": "usage_v2_billing-overview_list", "summary": "Get current billing period cost breakdown for the billing page.", "description": "Returns platform fee + per-dimension costs + credits + total.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UsageBillingOverviewResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"]}, "parameters": []}, "/usage/v2/budgets/": {"get": {"operationId": "usage_v2_budgets_list", "description": "List or create usage budgets.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UsageBudgetListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"]}, "post": {"operationId": "usage_v2_budgets_create", "description": "List or create usage budgets.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UsageBudgetMutationRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UsageBudgetMutationResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"]}, "parameters": []}, "/usage/v2/budgets/{budget_id}/": {"put": {"operationId": "usage_v2_budgets_update", "description": "Update or delete a budget.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UsageBudgetMutationRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UsageBudgetMutationResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"]}, "delete": {"operationId": "usage_v2_budgets_delete", "description": "Update or delete a budget.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UsageEmptyRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UsageBudgetDeleteResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"]}, "parameters": [{"name": "budget_id", "in": "path", "required": true, "type": "string"}]}, "/usage/v2/downgrade-to-free/": {"post": {"operationId": "usage_v2_downgrade-to-free_create", "summary": "Downgrade from PAYG to Free.", "description": "Cancels any active Stripe subscription and resets plan to free.\nIf user has an add-on, it must be removed first.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UsageEmptyRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PlanResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/usage/v2/invoices/": {"get": {"operationId": "usage_v2_invoices_list", "description": "Get invoice history for the billing page.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UsageInvoiceListResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"]}, "parameters": []}, "/usage/v2/invoices/{invoice_id}/": {"get": {"operationId": "usage_v2_invoices_read", "description": "Get invoice detail with line items.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UsageInvoiceDetailResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"]}, "parameters": [{"name": "invoice_id", "in": "path", "required": true, "type": "string"}]}, "/usage/v2/notifications/": {"get": {"operationId": "usage_v2_notifications_list", "summary": "Get active notification banners for the org.", "description": "Used by the frontend to show billing warnings/alerts.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UsageNotificationsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"]}, "parameters": []}, "/usage/v2/payment-methods/": {"get": {"operationId": "usage_v2_payment-methods_list", "description": "List payment methods or create a Stripe Checkout session for adding a card.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PaymentMethodsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"]}, "post": {"operationId": "usage_v2_payment-methods_create", "description": "List payment methods or create a Stripe Checkout session for adding a card.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UsageEmptyRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PaymentMethodCheckoutResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "put": {"operationId": "usage_v2_payment-methods_update", "summary": "Confirm a completed Checkout setup session.", "description": "Verifies the session, and if the customer has no default payment\nmethod yet, sets the newly-attached card as the default. Parity\nwith UpgradeToPaygView.put so both card-collection flows produce\nthe same end state.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/SetupIntentConfirmRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PaymentMethodConfirmResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/usage/v2/payment-methods/setup-intent/": {"get": {"operationId": "usage_v2_payment-methods_setup-intent_list", "description": "List payment methods or create a Stripe Checkout session for adding a card.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PaymentMethodsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"]}, "post": {"operationId": "usage_v2_payment-methods_setup-intent_create", "description": "List payment methods or create a Stripe Checkout session for adding a card.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UsageEmptyRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PaymentMethodCheckoutResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "put": {"operationId": "usage_v2_payment-methods_setup-intent_update", "summary": "Confirm a completed Checkout setup session.", "description": "Verifies the session, and if the customer has no default payment\nmethod yet, sets the newly-attached card as the default. Parity\nwith UpgradeToPaygView.put so both card-collection flows produce\nthe same end state.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/SetupIntentConfirmRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PaymentMethodConfirmResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/usage/v2/payment-methods/{pm_id}/": {"post": {"operationId": "usage_v2_payment-methods_create", "description": "Manage a specific payment method.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UsageEmptyRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UsageMessageResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "delete": {"operationId": "usage_v2_payment-methods_delete", "description": "Manage a specific payment method.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UsageMessageResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"]}, "parameters": [{"name": "pm_id", "in": "path", "required": true, "type": "string"}]}, "/usage/v2/payment-methods/{pm_id}/default/": {"post": {"operationId": "usage_v2_payment-methods_default_create", "description": "Manage a specific payment method.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UsageEmptyRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UsageMessageResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "delete": {"operationId": "usage_v2_payment-methods_default_delete", "description": "Manage a specific payment method.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UsageMessageResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"]}, "parameters": [{"name": "pm_id", "in": "path", "required": true, "type": "string"}]}, "/usage/v2/plans-and-addons/": {"get": {"operationId": "usage_v2_plans-and-addons_list", "summary": "Get plan comparison data for the pricing page.", "description": "Returns 2 tiers + 3 add-ons with features, limits, pricing.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UsagePlansAndAddonsResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"]}, "parameters": []}, "/usage/v2/reinstate-addon/": {"post": {"operationId": "usage_v2_reinstate-addon_create", "description": "Add or remove an add-on subscription.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AddonRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AddonPostResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "put": {"operationId": "usage_v2_reinstate-addon_update", "description": "Reinstate a previously-scheduled add-on cancellation.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UsageEmptyRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UsageMessageResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "delete": {"operationId": "usage_v2_reinstate-addon_delete", "description": "Add or remove an add-on subscription.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UsageMessageResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"]}, "parameters": []}, "/usage/v2/remove-addon/": {"post": {"operationId": "usage_v2_remove-addon_create", "description": "Add or remove an add-on subscription.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/AddonRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/AddonPostResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "put": {"operationId": "usage_v2_remove-addon_update", "description": "Reinstate a previously-scheduled add-on cancellation.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UsageEmptyRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UsageMessageResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "delete": {"operationId": "usage_v2_remove-addon_delete", "description": "Add or remove an add-on subscription.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UsageMessageResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"]}, "parameters": []}, "/usage/v2/stripe-webhook/": {"post": {"operationId": "usage_v2_stripe-webhook_create", "summary": "Handle Stripe webhook events.", "description": "No auth — Stripe authenticates via signature header.\nAPIView.as_view() auto-applies csrf_exempt.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/StripeWebhookRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/StripeWebhookResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/usage/v2/upgrade-to-payg/": {"post": {"operationId": "usage_v2_upgrade-to-payg_create", "description": "Create a Stripe Checkout session in setup mode for card collection.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UsageEmptyRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UpgradeToPaygPostResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "put": {"operationId": "usage_v2_upgrade-to-payg_update", "description": "Confirm upgrade after Stripe Checkout succeeds.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UpgradeToPaygConfirmRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/PlanResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/usage/v2/usage-overview/": {"get": {"operationId": "usage_v2_usage-overview_list", "summary": "Get usage overview for the current billing period.", "description": "Returns per-dimension totals, free allowances, estimated costs,\nand projected month-end usage.\n\nQuery params:\n    period: YYYY-MM (default: current month)\n    workspace_id: optional (filter by workspace)", "parameters": [{"name": "period", "in": "query", "required": false, "type": "string", "pattern": "^\\d{4}-\\d{2}$", "minLength": 1}, {"name": "period_end", "in": "query", "required": false, "type": "string", "pattern": "^\\d{4}-\\d{2}$", "minLength": 1}, {"name": "workspace_id", "in": "query", "required": false, "type": "string", "format": "uuid"}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UsageOverviewResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"]}, "parameters": []}, "/usage/v2/usage-time-series/": {"get": {"operationId": "usage_v2_usage-time-series_list", "summary": "Get daily usage time-series for a dimension.", "description": "Query params:\n    dimension: required (e.g., \"storage\", \"ai_credits\")\n    period: YYYY-MM (default: current month)\n    period_end: YYYY-MM (optional; defaults to period for a single month)", "parameters": [{"name": "dimension", "in": "query", "required": true, "type": "string", "minLength": 1}, {"name": "period", "in": "query", "required": false, "type": "string", "pattern": "^\\d{4}-\\d{2}$", "minLength": 1}, {"name": "period_end", "in": "query", "required": false, "type": "string", "pattern": "^\\d{4}-\\d{2}$", "minLength": 1}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UsageTimeSeriesResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"]}, "parameters": []}, "/usage/v2/usage-workspace-breakdown/": {"get": {"operationId": "usage_v2_usage-workspace-breakdown_list", "summary": "Get per-workspace usage breakdown for a dimension.", "description": "Query params:\n    dimension: required\n    period: YYYY-MM (default: current month)\n    period_end: YYYY-MM (optional; defaults to period for a single month)", "parameters": [{"name": "dimension", "in": "query", "required": true, "type": "string", "minLength": 1}, {"name": "period", "in": "query", "required": false, "type": "string", "pattern": "^\\d{4}-\\d{2}$", "minLength": 1}, {"name": "period_end", "in": "query", "required": false, "type": "string", "pattern": "^\\d{4}-\\d{2}$", "minLength": 1}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UsageWorkspaceBreakdownResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"]}, "parameters": []}, "/usage/webhook/": {"post": {"operationId": "usage_webhook_create", "summary": "Handle Stripe webhook events.", "description": "No auth — Stripe authenticates via signature header.\nAPIView.as_view() auto-applies csrf_exempt.", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/StripeWebhookRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/StripeWebhookResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/usage/workspace-eval-summary/": {"get": {"operationId": "usage_workspace-eval-summary_list", "description": "", "parameters": [{"name": "month", "in": "query", "required": false, "type": "integer", "maximum": 12, "minimum": 1}, {"name": "year", "in": "query", "required": false, "type": "integer"}, {"name": "workspace_id", "in": "query", "required": true, "type": "string", "format": "uuid"}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UsageSummaryResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/usage/workspace-usage-summary/": {"get": {"operationId": "usage_workspace-usage-summary_list", "description": "", "parameters": [{"name": "month", "in": "query", "required": false, "type": "integer", "maximum": 12, "minimum": 1}, {"name": "year", "in": "query", "required": false, "type": "integer"}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/UsageSummaryResponse"}}, "400": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "401": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "402": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "403": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "404": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/UsageErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["usage"], "x-runtime-request-validation": true, "x-runtime-response-validation": true}, "parameters": []}, "/v1/enterprise/heartbeats": {"post": {"operationId": "v1_enterprise_heartbeats_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/Heartbeat"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/EnterpriseHeartbeatResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["v1"]}, "parameters": []}, "/v1/health": {"get": {"operationId": "v1_health_list", "description": "Health check - always returns OK.", "parameters": [], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/OTLPHealthResponse"}}, "500": {"description": "", "schema": {"$ref": "#/definitions/ApiTextErrorResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["v1"]}, "parameters": []}, "/v1/internal/licenses": {"post": {"operationId": "v1_internal_licenses_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/CreateGrant"}}], "responses": {"201": {"description": "", "schema": {"$ref": "#/definitions/LicenseGrant"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["v1"]}, "parameters": []}, "/v1/internal/licenses/{grant_id}": {"get": {"operationId": "v1_internal_licenses_read", "description": "", "parameters": [], "responses": {"200": {"description": ""}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["v1"]}, "parameters": [{"name": "grant_id", "in": "path", "required": true, "type": "string"}]}, "/v1/internal/licenses/{grant_id}/approve": {"post": {"operationId": "v1_internal_licenses_approve_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/LicenseActionRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/LicenseGrant"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["v1"]}, "parameters": [{"name": "grant_id", "in": "path", "required": true, "type": "string"}]}, "/v1/internal/licenses/{grant_id}/issue": {"post": {"operationId": "v1_internal_licenses_issue_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/LicenseActionRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/IssuedLicenseResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["v1"]}, "parameters": [{"name": "grant_id", "in": "path", "required": true, "type": "string"}]}, "/v1/internal/licenses/{grant_id}/status": {"post": {"operationId": "v1_internal_licenses_status_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/UpdateStatus"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/LicenseGrant"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["v1"]}, "parameters": [{"name": "grant_id", "in": "path", "required": true, "type": "string"}]}, "/v1/self-hosted/activations": {"post": {"operationId": "v1_self-hosted_activations_create", "description": "", "parameters": [{"name": "data", "in": "body", "required": true, "schema": {"$ref": "#/definitions/ActivationRequest"}}], "responses": {"200": {"description": "", "schema": {"$ref": "#/definitions/ActivationResponse"}}, "default": {"description": "Default error response", "schema": {"$ref": "#/definitions/ManagementAPIErrorResponse"}}}, "tags": ["v1"]}, "parameters": []}}, "definitions": {"RecoveryCodesRemainingResponse": {"required": ["remaining"], "type": "object", "properties": {"remaining": {"title": "Remaining", "type": "integer"}}}, "AccountsErrorResponse": {"type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": false}, "type": {"title": "Type", "type": "string", "enum": ["validation_error", "authentication_error", "payment_required", "entitlement_error", "permission_error", "not_found", "conflict", "client_error", "rate_limit", "server_error", "service_unavailable", "timeout", "api_error"], "x-nullable": true}, "code": {"title": "Code", "type": "string", "x-nullable": true}, "detail": {"title": "Detail", "type": "string", "x-nullable": true}, "result": {"title": "Result", "type": "object", "x-nullable": true, "description": "String error message or structured account/login error metadata.", "x-string-or-object": true, "properties": {"error": {"type": "string"}, "error_code": {"type": "string"}, "message": {"type": "string"}, "blocked": {"type": "boolean"}, "remaining_attempts": {"type": "integer"}, "block_time": {"type": "integer"}, "block_time_remaining": {"type": "integer"}}}, "message": {"title": "Message", "type": "string", "x-nullable": true}, "error": {"title": "Error", "type": "string", "x-nullable": true}, "attr": {"title": "Attr", "type": "string", "x-nullable": true}, "details": {"title": "Details", "type": "object", "additionalProperties": {"type": "array", "items": {"type": "string", "minLength": 1}}}}}, "ManagementAPIErrorResponse": {"type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": false}, "type": {"title": "Type", "type": "string", "enum": ["validation_error", "authentication_error", "payment_required", "entitlement_error", "permission_error", "not_found", "conflict", "client_error", "rate_limit", "server_error", "service_unavailable", "timeout", "api_error"], "x-nullable": true}, "code": {"title": "Code", "type": "string", "x-nullable": true}, "detail": {"title": "Detail", "type": "string", "x-nullable": true}, "result": {"title": "Result", "type": "string", "x-nullable": true}, "message": {"title": "Message", "type": "string", "x-nullable": true}, "error": {"title": "Error", "type": "string", "x-nullable": true}, "attr": {"title": "Attr", "type": "string", "x-nullable": true}, "details": {"title": "Details", "type": "object", "additionalProperties": {"type": "array", "items": {"type": "string", "minLength": 1}}}}}, "RecoveryCodesRegenerate": {"type": "object", "properties": {"code": {"title": "Code", "type": "string", "maxLength": 10, "minLength": 6}, "password": {"title": "Password", "type": "string", "minLength": 1}}}, "RecoveryCodesRegenerateResponse": {"required": ["recovery_codes"], "type": "object", "properties": {"recovery_codes": {"type": "array", "items": {"type": "string", "minLength": 1}}}}, "TwoFactorStatus": {"required": ["two_factor_enabled", "methods", "recovery_codes_remaining"], "type": "object", "properties": {"two_factor_enabled": {"title": "Two factor enabled", "type": "boolean"}, "methods": {"title": "Methods", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}}, "recovery_codes_remaining": {"title": "Recovery codes remaining", "type": "integer", "x-nullable": true}}}, "TOTPDisable": {"required": ["code"], "type": "object", "properties": {"code": {"title": "Code", "type": "string", "maxLength": 10, "minLength": 6}}}, "TOTPDisableResponse": {"required": ["success"], "type": "object", "properties": {"success": {"title": "Success", "type": "boolean"}}}, "TOTPConfirm": {"required": ["code"], "type": "object", "properties": {"code": {"title": "Code", "type": "string", "maxLength": 6, "minLength": 6}}}, "TOTPConfirmResponse": {"required": ["success", "recovery_codes"], "type": "object", "properties": {"success": {"title": "Success", "type": "boolean"}, "recovery_codes": {"type": "array", "items": {"type": "string", "minLength": 1}}}}, "AccountsEmptyRequest": {"type": "object", "properties": {}, "additionalProperties": false}, "TOTPSetupResponse": {"required": ["qr_code", "secret", "provisioning_uri"], "type": "object", "properties": {"qr_code": {"title": "Qr code", "type": "string", "minLength": 1}, "secret": {"title": "Secret", "type": "string", "minLength": 1}, "provisioning_uri": {"title": "Provisioning uri", "type": "string", "minLength": 1}}}, "TwoFactorPasskeyVerifyRequest": {"required": ["challenge_token", "credential"], "type": "object", "properties": {"challenge_token": {"title": "Challenge token", "type": "string", "format": "uuid"}, "credential": {"title": "Credential", "type": "object"}, "session_id": {"title": "Session id", "type": "string"}}}, "AccountsTokenPairResponse": {"type": "object", "properties": {"access": {"title": "Access", "type": "string", "minLength": 1}, "refresh": {"title": "Refresh", "type": "string", "minLength": 1}, "requires_two_factor": {"title": "Requires two factor", "type": "boolean"}, "challenge_token": {"title": "Challenge token", "type": "string", "format": "uuid"}, "methods": {"type": "array", "items": {"type": "string", "minLength": 1}}, "requires_org_setup": {"title": "Requires org setup", "type": "boolean"}, "message": {"title": "Message", "type": "string", "minLength": 1}, "new_org": {"title": "New org", "type": "boolean"}, "org_name": {"title": "Org name", "type": "string", "minLength": 1}, "is_first_login": {"title": "Is first login", "type": "boolean"}, "recovery_codes_warning": {"title": "Recovery codes warning", "type": "string", "minLength": 1}}}, "TwoFactorChallengeToken": {"required": ["challenge_token"], "type": "object", "properties": {"challenge_token": {"title": "Challenge token", "type": "string", "format": "uuid"}}}, "WebAuthnRelyingParty": {"type": "object", "properties": {"id": {"title": "Id", "type": "string", "minLength": 1}, "name": {"title": "Name", "type": "string", "minLength": 1}}}, "WebAuthnUser": {"required": ["id", "name"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "minLength": 1}, "name": {"title": "Name", "type": "string", "minLength": 1}, "displayName": {"title": "Displayname", "type": "string", "minLength": 1}}}, "WebAuthnPublicKeyCredentialParam": {"required": ["type", "alg"], "type": "object", "properties": {"type": {"title": "Type", "type": "string", "minLength": 1}, "alg": {"title": "Alg", "type": "integer"}}}, "WebAuthnCredentialDescriptor": {"required": ["type", "id"], "type": "object", "properties": {"type": {"title": "Type", "type": "string", "minLength": 1}, "id": {"title": "Id", "type": "string", "minLength": 1}, "transports": {"type": "array", "items": {"type": "string", "minLength": 1}}}}, "WebAuthnAuthenticatorSelection": {"type": "object", "properties": {"authenticatorAttachment": {"title": "Authenticatorattachment", "type": "string", "minLength": 1}, "residentKey": {"title": "Residentkey", "type": "string", "minLength": 1}, "requireResidentKey": {"title": "Requireresidentkey", "type": "boolean"}, "userVerification": {"title": "Userverification", "type": "string", "minLength": 1}}}, "WebAuthnExtensions": {"type": "object", "properties": {"appid": {"title": "Appid", "type": "string", "minLength": 1}, "credProps": {"title": "Credprops", "type": "boolean"}, "uvm": {"title": "Uvm", "type": "boolean"}}}, "PasskeyOptionsResponse": {"required": ["challenge"], "type": "object", "properties": {"challenge": {"title": "Challenge", "type": "string", "minLength": 1}, "timeout": {"title": "Timeout", "type": "integer"}, "rp": {"$ref": "#/definitions/WebAuthnRelyingParty"}, "user": {"$ref": "#/definitions/WebAuthnUser"}, "pubKeyCredParams": {"type": "array", "items": {"$ref": "#/definitions/WebAuthnPublicKeyCredentialParam"}}, "excludeCredentials": {"type": "array", "items": {"$ref": "#/definitions/WebAuthnCredentialDescriptor"}}, "allowCredentials": {"type": "array", "items": {"$ref": "#/definitions/WebAuthnCredentialDescriptor"}}, "authenticatorSelection": {"$ref": "#/definitions/WebAuthnAuthenticatorSelection"}, "attestation": {"title": "Attestation", "type": "string", "minLength": 1}, "rpId": {"title": "Rpid", "type": "string", "minLength": 1}, "userVerification": {"title": "Userverification", "type": "string", "minLength": 1}, "extensions": {"$ref": "#/definitions/WebAuthnExtensions"}, "session_id": {"title": "Session id", "type": "string", "format": "uuid"}}}, "TwoFactorVerify": {"required": ["challenge_token", "code"], "type": "object", "properties": {"challenge_token": {"title": "Challenge token", "type": "string", "format": "uuid"}, "code": {"title": "Code", "type": "string", "maxLength": 10, "minLength": 6}}}, "AcceptInvitationPreviewResponse": {"required": ["valid", "email", "org_name"], "type": "object", "properties": {"valid": {"title": "Valid", "type": "boolean"}, "email": {"title": "Email", "type": "string", "format": "email", "minLength": 1}, "org_name": {"title": "Org name", "type": "string", "minLength": 1}}}, "AcceptInvitationRequest": {"required": ["new_password", "repeat_password"], "type": "object", "properties": {"new_password": {"title": "New password", "type": "string", "minLength": 1}, "repeat_password": {"title": "Repeat password", "type": "string", "minLength": 1}}}, "AccountOrganizationDetail": {"required": ["id", "name", "display_name"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "created_at": {"title": "Created at", "type": "string", "format": "date-time"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "display_name": {"title": "Display name", "type": "string"}, "is_new": {"title": "Is new", "type": "boolean"}, "ws_enabled": {"title": "Ws enabled", "type": "boolean"}, "region": {"title": "Region", "type": "string", "minLength": 1}, "require_2fa": {"title": "Require 2fa", "type": "boolean"}, "require_2fa_grace_period_days": {"title": "Require 2fa grace period days", "type": "integer"}, "require_2fa_enforced_at": {"title": "Require 2fa enforced at", "type": "string", "format": "date-time", "x-nullable": true}}, "x-nullable": true}, "AccountUserItemResponse": {"required": ["id", "email", "name", "organization_role", "organization", "created_at", "status", "role"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "email": {"title": "Email", "type": "string", "format": "email", "minLength": 1}, "name": {"title": "Name", "type": "string", "x-nullable": true}, "organization_role": {"title": "Organization role", "type": "string", "x-nullable": true}, "organization": {"$ref": "#/definitions/AccountOrganizationDetail"}, "created_at": {"title": "Created at", "type": "string", "format": "date-time"}, "status": {"title": "Status", "type": "string", "minLength": 1}, "role": {"title": "Role", "type": "string", "x-nullable": true}, "goals": {"type": "array", "items": {"type": "string", "minLength": 1}}}}, "AccountsPaginatedUserResponse": {"required": ["count", "next", "previous", "results", "total_pages", "current_page"], "type": "object", "properties": {"count": {"title": "Count", "type": "integer"}, "next": {"title": "Next", "type": "string", "minLength": 1, "x-nullable": true}, "previous": {"title": "Previous", "type": "string", "minLength": 1, "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/AccountUserItemResponse"}}, "total_pages": {"title": "Total pages", "type": "integer"}, "current_page": {"title": "Current page", "type": "integer"}, "total_queries": {"title": "Total queries", "type": "integer"}}}, "UserCreate": {"required": ["email", "password", "organization_name", "send_credential"], "type": "object", "properties": {"email": {"title": "Email", "type": "string", "format": "email", "maxLength": 255, "minLength": 1}, "password": {"title": "Password", "type": "string", "maxLength": 128, "minLength": 8}, "organization_name": {"title": "Organization name", "type": "string", "maxLength": 255, "minLength": 1}, "send_credential": {"title": "Send credential", "type": "boolean"}}}, "AppsmithUserCreateResponse": {"required": ["email", "password", "organization_name", "send_credential"], "type": "object", "properties": {"email": {"title": "Email", "type": "string", "format": "email", "minLength": 1}, "password": {"title": "Password", "type": "string", "minLength": 1}, "organization_name": {"title": "Organization name", "type": "string", "minLength": 1}, "send_credential": {"title": "Send credential", "type": "boolean"}}}, "PasswordValidation": {"required": ["password"], "type": "object", "properties": {"password": {"title": "Password", "type": "string", "maxLength": 128, "minLength": 8}}}, "AppsmithPasswordUpdateResponse": {"required": ["password"], "type": "object", "properties": {"password": {"title": "Password", "type": "string", "minLength": 1}}}, "SOSLogin": {"required": ["email"], "type": "object", "properties": {"email": {"title": "Email", "type": "string", "format": "email", "maxLength": 255, "minLength": 1}}}, "AWSMarketplaceSignupRequest": {"required": ["onboarding_token", "email", "full_name"], "type": "object", "properties": {"onboarding_token": {"title": "Onboarding token", "type": "string", "minLength": 1}, "email": {"title": "Email", "type": "string", "format": "email", "minLength": 1}, "full_name": {"title": "Full name", "type": "string", "minLength": 1}}}, "AWSMarketplaceSignupResult": {"required": ["message", "user_email"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}, "user_email": {"title": "User email", "type": "string", "format": "email", "minLength": 1}}}, "AWSMarketplaceSignupResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/AWSMarketplaceSignupResult"}}}, "PublicRegionConfig": {"required": ["code", "label", "app_url"], "type": "object", "properties": {"code": {"title": "Code", "type": "string", "minLength": 1}, "label": {"title": "Label", "type": "string", "minLength": 1}, "app_url": {"title": "App url", "type": "string", "format": "uri", "minLength": 1}}}, "PublicConfigResult": {"required": ["cloud", "region", "available_regions"], "type": "object", "properties": {"cloud": {"title": "Cloud", "type": "boolean"}, "region": {"title": "Region", "type": "string", "minLength": 1, "x-nullable": true}, "available_regions": {"type": "array", "items": {"$ref": "#/definitions/PublicRegionConfig"}}}}, "PublicConfigResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/PublicConfigResult"}}}, "UserIdsRequest": {"required": ["user_ids"], "type": "object", "properties": {"user_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}}}}, "AccountsBulkUserMutationItem": {"required": ["user_id"], "type": "object", "properties": {"user_id": {"title": "User id", "type": "string", "format": "uuid"}, "message": {"title": "Message", "type": "string", "minLength": 1}, "error": {"title": "Error", "type": "string", "minLength": 1}}}, "UserChecksResult": {"required": ["keys", "dataset", "evaluation", "experiment", "observe", "invite"], "type": "object", "properties": {"keys": {"title": "Keys", "type": "boolean"}, "dataset": {"title": "Dataset", "type": "boolean"}, "evaluation": {"title": "Evaluation", "type": "boolean"}, "experiment": {"title": "Experiment", "type": "boolean"}, "observe": {"title": "Observe", "type": "boolean"}, "invite": {"title": "Invite", "type": "boolean"}}}, "UserChecksResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/UserChecksResult"}}}, "GCPMarketplaceSignupRequest": {"required": ["onboarding_token", "email", "full_name"], "type": "object", "properties": {"onboarding_token": {"title": "Onboarding token", "type": "string", "minLength": 1}, "email": {"title": "Email", "type": "string", "format": "email", "minLength": 1}, "full_name": {"title": "Full name", "type": "string", "minLength": 1}}}, "GCPMarketplaceSignupResult": {"required": ["message", "user_email"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}, "user_email": {"title": "User email", "type": "string", "format": "email", "minLength": 1}}}, "GCPMarketplaceSignupResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/GCPMarketplaceSignupResult"}}}, "AccountsUserProfileResponse": {"required": ["name", "email", "org_name"], "type": "object", "properties": {"name": {"title": "Name", "type": "string", "x-nullable": true}, "email": {"title": "Email", "type": "string", "format": "email", "minLength": 1}, "org_name": {"title": "Org name", "type": "string", "x-nullable": true}}}, "UserSecretKey": {"required": ["key_id"], "type": "object", "properties": {"key_id": {"title": "Key id", "type": "string", "format": "uuid"}}}, "AccountsStringResultResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"title": "Result", "type": "string", "minLength": 1}}}, "CreateSecretKey": {"required": ["key_name"], "type": "object", "properties": {"key_name": {"title": "Key name", "type": "string", "maxLength": 100, "minLength": 1}}}, "SecretKeyCreateResult": {"required": ["key_id", "key_name", "api_key", "masked_api_key", "secret_key", "masked_secret_key"], "type": "object", "properties": {"key_id": {"title": "Key id", "type": "string", "format": "uuid"}, "key_name": {"title": "Key name", "type": "string", "minLength": 1}, "api_key": {"title": "Api key", "type": "string", "minLength": 1}, "masked_api_key": {"title": "Masked api key", "type": "string", "minLength": 1}, "secret_key": {"title": "Secret key", "type": "string", "minLength": 1}, "masked_secret_key": {"title": "Masked secret key", "type": "string", "minLength": 1}}}, "SecretKeyCreateResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/SecretKeyCreateResult"}}}, "SecretKeyListMetadata": {"required": ["total_rows", "total_pages", "page_number", "page_size"], "type": "object", "properties": {"total_rows": {"title": "Total rows", "type": "integer"}, "total_pages": {"title": "Total pages", "type": "integer"}, "page_number": {"title": "Page number", "type": "integer"}, "page_size": {"title": "Page size", "type": "integer"}}}, "SecretKeyListItem": {"required": ["id", "key_name", "api_key", "secret_key", "created_by", "created_at", "enabled", "type"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "key_name": {"title": "Key name", "type": "string", "x-nullable": true}, "api_key": {"title": "Api key", "type": "string", "minLength": 1}, "secret_key": {"title": "Secret key", "type": "string", "minLength": 1}, "created_by": {"title": "Created by", "type": "string", "minLength": 1, "x-nullable": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time"}, "enabled": {"title": "Enabled", "type": "boolean"}, "type": {"title": "Type", "type": "string", "minLength": 1}}}, "SecretKeyListResult": {"required": ["metadata", "table"], "type": "object", "properties": {"metadata": {"$ref": "#/definitions/SecretKeyListMetadata"}, "table": {"type": "array", "items": {"$ref": "#/definitions/SecretKeyListItem"}}}}, "SecretKeyListResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/SecretKeyListResult"}}}, "SecretKeyDataResponse": {"required": ["id", "api_key", "secret_key"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "api_key": {"title": "Api key", "type": "string", "minLength": 1}, "secret_key": {"title": "Secret key", "type": "string", "minLength": 1}}}, "SecretKeysResponse": {"required": ["status", "data"], "type": "object", "properties": {"status": {"title": "Status", "type": "string", "minLength": 1}, "data": {"$ref": "#/definitions/SecretKeyDataResponse"}}}, "LogoutRequest": {"type": "object", "properties": {"refresh": {"title": "Refresh", "type": "string"}}}, "AccountsMessageResult": {"required": ["message"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}}}, "AccountsMessageResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/AccountsMessageResult"}}}, "TimezoneRequest": {"required": ["timezone"], "type": "object", "properties": {"timezone": {"title": "Timezone", "type": "string", "maxLength": 64, "minLength": 1}}}, "TimezoneResponse": {"required": ["timezone"], "type": "object", "properties": {"timezone": {"title": "Timezone", "type": "string", "minLength": 1}}}, "UserOnboardingResult": {"required": ["role", "goals", "completed"], "type": "object", "properties": {"role": {"title": "Role", "type": "string"}, "goals": {"type": "array", "items": {"type": "string", "minLength": 1}}, "completed": {"title": "Completed", "type": "boolean"}}}, "UserOnboardingResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/UserOnboardingResult"}}}, "UserOnboarding": {"required": ["role", "goals"], "type": "object", "properties": {"role": {"title": "Role", "type": "string", "maxLength": 255, "minLength": 1}, "goals": {"type": "array", "items": {"type": "string", "maxLength": 255, "minLength": 1}}}}, "UserOnboardingData": {"required": ["role", "goals"], "type": "object", "properties": {"role": {"title": "Role", "type": "string", "minLength": 1}, "goals": {"type": "array", "items": {"type": "string", "minLength": 1}}}}, "UserOnboardingSaveResult": {"required": ["message", "data"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}, "data": {"$ref": "#/definitions/UserOnboardingData"}}}, "UserOnboardingSaveResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/UserOnboardingSaveResult"}}}, "OrgTwoFactorPolicyResponse": {"required": ["require_2fa", "require_2fa_grace_period_days", "require_2fa_enforced_at"], "type": "object", "properties": {"require_2fa": {"title": "Require 2fa", "type": "boolean"}, "require_2fa_grace_period_days": {"title": "Require 2fa grace period days", "type": "integer"}, "require_2fa_enforced_at": {"title": "Require 2fa enforced at", "type": "string", "format": "date-time", "x-nullable": true}}}, "OrgTwoFactorPolicy": {"required": ["require_2fa"], "type": "object", "properties": {"require_2fa": {"title": "Require 2fa", "type": "boolean"}, "require_2fa_grace_period_days": {"title": "Require 2fa grace period days", "type": "integer", "maximum": 30, "minimum": 1}}}, "WorkspaceAccessInput": {"description": "List of {\"workspace_id\": \"<uuid>\", \"level\": <int>}.", "required": ["workspace_id"], "type": "object", "properties": {"workspace_id": {"title": "Workspace id", "type": "string", "format": "uuid"}, "level": {"title": "Level", "type": "integer", "enum": [8, 3, 1]}}}, "InviteCreate": {"required": ["emails", "org_level"], "type": "object", "properties": {"emails": {"type": "array", "items": {"type": "string", "format": "email", "minLength": 1}, "maxItems": 50, "minItems": 1}, "org_level": {"title": "Org level", "description": "Integer org level to grant (Owner=15, Admin=8, Member=3, Viewer=1).", "type": "integer", "enum": [15, 8, 3, 1]}, "workspace_access": {"description": "List of {\"workspace_id\": \"<uuid>\", \"level\": <int>}.", "type": "array", "items": {"$ref": "#/definitions/WorkspaceAccessInput"}, "default": []}}}, "InviteLink": {"description": "Accept-invite links for the invites just created. Present on OSS deployments only, where SMTP may not be configured; omitted on Cloud/EE.", "required": ["email", "invite_link"], "type": "object", "properties": {"email": {"title": "Email", "type": "string", "format": "email", "minLength": 1}, "invite_link": {"title": "Invite link", "type": "string", "minLength": 1}}}, "InviteCreateResult": {"required": ["invited"], "type": "object", "properties": {"invited": {"type": "array", "items": {"type": "string", "format": "email", "minLength": 1}}, "already_members": {"type": "array", "items": {"type": "string", "format": "email", "minLength": 1}}, "invites": {"description": "Accept-invite links for the invites just created. Present on OSS deployments only, where SMTP may not be configured; omitted on Cloud/EE.", "type": "array", "items": {"$ref": "#/definitions/InviteLink"}}}}, "InviteCreateResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/InviteCreateResult"}}}, "InviteCancel": {"required": ["invite_id"], "type": "object", "properties": {"invite_id": {"title": "Invite id", "type": "string", "format": "uuid"}}}, "RBACMessageResult": {"required": ["message"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}}}, "RBACMessageResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/RBACMessageResult"}}}, "InviteResend": {"required": ["invite_id"], "type": "object", "properties": {"invite_id": {"title": "Invite id", "type": "string", "format": "uuid"}, "org_level": {"title": "Org level", "type": "integer", "enum": [15, 8, 3, 1], "x-nullable": true}}}, "MemberWorkspaceAccess": {"required": ["workspace_id", "workspace_name", "ws_level", "ws_role"], "type": "object", "properties": {"workspace_id": {"title": "Workspace id", "type": "string", "format": "uuid"}, "workspace_name": {"title": "Workspace name", "type": "string", "minLength": 1}, "ws_level": {"title": "Ws level", "type": "integer"}, "ws_role": {"title": "Ws role", "type": "string", "minLength": 1}, "auto_access": {"title": "Auto access", "type": "boolean"}}}, "MemberListItem": {"required": ["id", "name", "email", "status", "created_at", "type"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string"}, "email": {"title": "Email", "type": "string", "format": "email", "minLength": 1}, "org_level": {"title": "Org level", "type": "integer", "x-nullable": true}, "org_role": {"title": "Org role", "type": "string", "minLength": 1, "x-nullable": true}, "ws_level": {"title": "Ws level", "type": "integer", "x-nullable": true}, "ws_role": {"title": "Ws role", "type": "string", "minLength": 1, "x-nullable": true}, "workspaces": {"type": "array", "items": {"$ref": "#/definitions/MemberWorkspaceAccess"}}, "status": {"title": "Status", "type": "string", "minLength": 1}, "created_at": {"title": "Created at", "type": "string"}, "type": {"title": "Type", "type": "string", "enum": ["member", "invite"]}, "auto_access": {"title": "Auto access", "type": "boolean"}, "invite_link": {"title": "Invite link", "description": "Accept-invite link for a pending invite. Present on OSS deployments only, where SMTP may not be configured; omitted on Cloud/EE and on active-member rows.", "type": "string", "minLength": 1}}}, "MemberListResult": {"required": ["results", "total", "page", "limit"], "type": "object", "properties": {"results": {"type": "array", "items": {"$ref": "#/definitions/MemberListItem"}}, "total": {"title": "Total", "type": "integer"}, "page": {"title": "Page", "type": "integer"}, "limit": {"title": "Limit", "type": "integer"}}}, "MemberListResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/MemberListResult"}}}, "MemberRemove": {"required": ["user_id"], "type": "object", "properties": {"user_id": {"title": "User id", "type": "string", "format": "uuid"}}}, "MemberUserMutationResult": {"required": ["message", "user_id"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}, "user_id": {"title": "User id", "type": "string", "format": "uuid"}}}, "MemberUserMutationResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/MemberUserMutationResult"}}}, "MemberRoleUpdate": {"required": ["user_id"], "type": "object", "properties": {"user_id": {"title": "User id", "type": "string", "format": "uuid"}, "org_level": {"title": "Org level", "type": "integer", "enum": [15, 8, 3, 1], "x-nullable": true}, "ws_level": {"title": "Ws level", "type": "integer", "enum": [8, 3, 1], "x-nullable": true}, "workspace_id": {"title": "Workspace id", "description": "Required when updating ws_level.", "type": "string", "format": "uuid", "x-nullable": true}, "workspace_access": {"description": "List of {workspace_id, level} for explicit workspace grants on demotion.", "type": "array", "items": {"$ref": "#/definitions/WorkspaceAccessInput"}, "default": []}}}, "MemberRoleUpdateResult": {"required": ["message", "changes"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}, "changes": {"title": "Changes", "type": "object"}}}, "MemberRoleUpdateResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/MemberRoleUpdateResult"}}}, "OrganizationSelectionItem": {"required": ["id", "name", "display_name", "role", "level", "is_selected"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "display_name": {"title": "Display name", "type": "string"}, "role": {"title": "Role", "type": "string", "x-nullable": true}, "level": {"title": "Level", "type": "integer", "x-nullable": true}, "is_selected": {"title": "Is selected", "type": "boolean"}}}, "OrganizationSelectionListResult": {"required": ["organizations", "total_count"], "type": "object", "properties": {"organizations": {"type": "array", "items": {"$ref": "#/definitions/OrganizationSelectionItem"}}, "total_count": {"title": "Total count", "type": "integer"}}}, "OrganizationSelectionListResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/OrganizationSelectionListResult"}}}, "OrganizationSwitchRequest": {"required": ["organization_id"], "type": "object", "properties": {"organization_id": {"title": "Organization id", "type": "string", "format": "uuid"}}}, "OrganizationSummary": {"required": ["id", "name", "display_name"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "display_name": {"title": "Display name", "type": "string"}, "ws_enabled": {"title": "Ws enabled", "type": "boolean"}}}, "OrganizationSelectResult": {"required": ["message", "organization"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}, "organization": {"$ref": "#/definitions/OrganizationSummary"}}}, "OrganizationSelectResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/OrganizationSelectResult"}}}, "OrganizationNameRequest": {"type": "object", "properties": {"organization_name": {"title": "Organization name", "type": "string"}}}, "OrganizationCreateResult": {"required": ["organization_id", "organization_name", "workspace_id", "message"], "type": "object", "properties": {"organization_id": {"title": "Organization id", "type": "string", "format": "uuid"}, "organization_name": {"title": "Organization name", "type": "string"}, "workspace_id": {"title": "Workspace id", "type": "string", "format": "uuid"}, "message": {"title": "Message", "type": "string", "minLength": 1}}}, "OrganizationCreateResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/OrganizationCreateResult"}}}, "CurrentOrganizationResult": {"required": ["organization"], "type": "object", "properties": {"organization": {"$ref": "#/definitions/OrganizationSummary"}, "role": {"title": "Role", "type": "string", "x-nullable": true}, "level": {"title": "Level", "type": "integer", "x-nullable": true}, "source": {"title": "Source", "type": "string", "x-nullable": true}, "message": {"title": "Message", "type": "string", "minLength": 1}}}, "CurrentOrganizationResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/CurrentOrganizationResult"}}}, "OrganizationCreateRequest": {"required": ["name"], "type": "object", "properties": {"name": {"title": "Name", "type": "string", "minLength": 1}, "display_name": {"title": "Display name", "type": "string"}}}, "WorkspaceSummary": {"required": ["id", "name", "display_name"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "display_name": {"title": "Display name", "type": "string"}, "description": {"title": "Description", "type": "string"}, "is_default": {"title": "Is default", "type": "boolean"}}}, "AdditionalOrganizationCreateResult": {"required": ["organization", "workspace", "message"], "type": "object", "properties": {"organization": {"$ref": "#/definitions/OrganizationSummary"}, "workspace": {"$ref": "#/definitions/WorkspaceSummary"}, "message": {"title": "Message", "type": "string", "minLength": 1}}}, "AdditionalOrganizationCreateResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/AdditionalOrganizationCreateResult"}}}, "OrganizationSwitchResult": {"required": ["organization", "org_role", "org_level", "workspace_role"], "type": "object", "properties": {"organization": {"$ref": "#/definitions/OrganizationSummary"}, "org_role": {"title": "Org role", "type": "string", "x-nullable": true}, "org_level": {"title": "Org level", "type": "integer", "x-nullable": true}, "workspace_role": {"title": "Workspace role", "type": "string", "x-nullable": true}, "workspace": {"$ref": "#/definitions/WorkspaceSummary"}}}, "OrganizationSwitchResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/OrganizationSwitchResult"}}}, "OrganizationUpdateRequest": {"type": "object", "properties": {"name": {"title": "Name", "type": "string"}, "display_name": {"title": "Display name", "type": "string"}}}, "OrganizationUpdateResult": {"required": ["id", "name", "display_name"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "display_name": {"title": "Display name", "type": "string"}}}, "OrganizationUpdateResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/OrganizationUpdateResult"}}}, "PasskeyCredentialRequest": {"required": ["credential"], "type": "object", "properties": {"credential": {"title": "Credential", "type": "object"}, "session_id": {"title": "Session id", "type": "string"}, "name": {"title": "Name", "type": "string", "maxLength": 255}}}, "PasskeyRegisterVerify": {"required": ["credential"], "type": "object", "properties": {"credential": {"title": "Credential", "type": "object"}, "name": {"title": "Name", "type": "string", "default": "", "maxLength": 255, "minLength": 1}}}, "PasskeyRegisterVerifyResponse": {"required": ["id", "name", "created_at"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "created_at": {"title": "Created at", "type": "string", "format": "date-time"}, "recovery_codes": {"type": "array", "items": {"type": "string", "minLength": 1}}}}, "WebAuthnCredential": {"required": ["id", "name", "created_at", "last_used_at"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "created_at": {"title": "Created at", "type": "string", "format": "date-time"}, "last_used_at": {"title": "Last used at", "type": "string", "format": "date-time", "x-nullable": true}}}, "PasskeyRename": {"required": ["name"], "type": "object", "properties": {"name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}}}, "PasskeyRenameResponse": {"required": ["id", "name"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1}}}, "PasswordResetConfirmRequest": {"required": ["new_password", "repeat_password"], "type": "object", "properties": {"new_password": {"title": "New password", "type": "string", "minLength": 1}, "repeat_password": {"title": "Repeat password", "type": "string", "minLength": 1}}}, "PasswordResetInitiateRequest": {"required": ["email"], "type": "object", "properties": {"email": {"title": "Email", "type": "string", "format": "email", "minLength": 1}}}, "PasswordResetInitiateResult": {"required": ["message"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}, "reset_link": {"title": "Reset link", "description": "Password-reset link, returned on OSS deployments only, where SMTP is usually not configured and the emailed link would never arrive. Never present on Cloud/EE, and never present for an email with no matching account. Treat as a credential: anyone holding it can set that account's password.", "type": "string", "minLength": 1}}}, "PasswordResetInitiateResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/PasswordResetInitiateResult"}}}, "RedisKeyRequest": {"required": ["access_token_id", "key"], "type": "object", "properties": {"access_token_id": {"title": "Access token id", "type": "string", "minLength": 1}, "key": {"title": "Key", "type": "string", "minLength": 1}, "value": {"title": "Value", "type": "object"}, "expiry": {"title": "Expiry", "type": "integer", "minimum": 1}}}, "AccountsRedisSetResult": {"required": ["message", "key", "value"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}, "key": {"title": "Key", "type": "string", "minLength": 1}, "value": {"title": "Value", "type": "object"}}}, "AccountsRedisSetResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/AccountsRedisSetResult"}}}, "AccountsRedisDeleteResult": {"required": ["message", "key"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}, "key": {"title": "Key", "type": "string", "minLength": 1}}}, "AccountsRedisDeleteResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/AccountsRedisDeleteResult"}}}, "SignupRequest": {"required": ["email", "full_name"], "type": "object", "properties": {"email": {"title": "Email", "type": "string", "format": "email", "minLength": 1}, "full_name": {"title": "Full name", "type": "string", "minLength": 1}, "company_name": {"title": "Company name", "type": "string"}, "password": {"title": "Password", "type": "string"}, "allow_email": {"title": "Allow email", "type": "boolean", "default": false}, "recaptcha_response": {"title": "Recaptcha response", "type": "string"}}}, "SignupResult": {"type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}, "access": {"title": "Access", "type": "string", "minLength": 1}, "refresh": {"title": "Refresh", "type": "string", "minLength": 1}, "new_org": {"title": "New org", "type": "boolean"}}}, "SignupResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/SignupResult"}}}, "TeamWorkspaceSummary": {"required": ["id", "name", "role"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "role": {"title": "Role", "type": "string", "minLength": 1}}}, "TeamUserItemResponse": {"required": ["id", "email", "name", "organization_role", "created_at", "status", "role"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "email": {"title": "Email", "type": "string", "format": "email", "minLength": 1}, "name": {"title": "Name", "type": "string", "x-nullable": true}, "organization_role": {"title": "Organization role", "type": "string", "x-nullable": true}, "organization": {"$ref": "#/definitions/AccountOrganizationDetail"}, "created_at": {"title": "Created at", "type": "string", "minLength": 1}, "status": {"title": "Status", "type": "string", "minLength": 1}, "role": {"title": "Role", "type": "string", "x-nullable": true}, "goals": {"type": "array", "items": {"type": "string", "minLength": 1}}, "membership_type": {"title": "Membership type", "type": "string", "minLength": 1}, "workspace_role": {"title": "Workspace role", "type": "string", "minLength": 1, "x-nullable": true}, "workspace_member": {"title": "Workspace member", "type": "boolean"}, "workspaces": {"type": "array", "items": {"$ref": "#/definitions/TeamWorkspaceSummary"}}}}, "TeamUsersResult": {"required": ["org_name", "results", "total"], "type": "object", "properties": {"org_name": {"title": "Org name", "type": "string", "minLength": 1}, "workspace_name": {"title": "Workspace name", "type": "string", "minLength": 1}, "results": {"type": "array", "items": {"$ref": "#/definitions/TeamUserItemResponse"}}, "total": {"title": "Total", "type": "integer"}}}, "TeamUsersResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/TeamUsersResult"}}}, "TeamWorkspaceInput": {"type": "object", "properties": {"name": {"title": "Name", "type": "string", "maxLength": 255}, "display_name": {"title": "Display name", "type": "string", "maxLength": 255}, "description": {"title": "Description", "type": "string"}}}, "CreateMember": {"required": ["email", "name"], "type": "object", "properties": {"email": {"title": "Email", "type": "string", "format": "email", "maxLength": 255, "minLength": 1}, "role": {"title": "Role", "type": "string", "enum": ["Owner", "Admin", "Member", "Viewer", "workspace_admin", "workspace_member", "workspace_viewer"], "x-nullable": true}, "organization_role": {"title": "Organization role", "type": "string", "enum": ["Owner", "Admin", "Member", "Viewer"], "x-nullable": true}, "name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}}}, "TeamCreateRequest": {"type": "object", "properties": {"org_name": {"title": "Org name", "type": "string", "maxLength": 255}, "workspace": {"$ref": "#/definitions/TeamWorkspaceInput"}, "members": {"type": "array", "items": {"$ref": "#/definitions/CreateMember"}, "default": []}}}, "TeamCreateErrorItem": {"required": ["error"], "type": "object", "properties": {"index": {"title": "Index", "type": "integer"}, "email": {"title": "Email", "type": "string", "format": "email", "minLength": 1}, "error": {"title": "Error", "type": "string", "minLength": 1}}}, "TeamCreateResult": {"required": ["created_members", "workspace"], "type": "object", "properties": {"created_members": {"type": "array", "items": {"$ref": "#/definitions/AccountUserItemResponse"}}, "workspace": {"$ref": "#/definitions/WorkspaceSummary"}, "errors": {"type": "array", "items": {"$ref": "#/definitions/TeamCreateErrorItem"}}}}, "TeamCreateResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/TeamCreateResult"}}}, "TeamRemoveResult": {"required": ["message", "removed_from"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}, "removed_from": {"title": "Removed from", "type": "string", "minLength": 1}}}, "TeamRemoveResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/TeamRemoveResult"}}}, "LoginRequest": {"required": ["email", "password"], "type": "object", "properties": {"email": {"title": "Email", "type": "string", "format": "email", "minLength": 1}, "password": {"title": "Password", "type": "string", "minLength": 1}, "remember_me": {"title": "Remember me", "type": "boolean", "default": false}, "recaptcha_response": {"title": "Recaptcha response", "type": "string"}}}, "TokenRefreshRequest": {"required": ["refresh"], "type": "object", "properties": {"refresh": {"title": "Refresh", "type": "string", "minLength": 1}, "recaptcha_response": {"title": "Recaptcha response", "type": "string"}, "localhost_bypass": {"title": "Localhost bypass", "type": "boolean", "default": false}}}, "AccountsAccessTokenResponse": {"required": ["access"], "type": "object", "properties": {"access": {"title": "Access", "type": "string", "minLength": 1}}}, "UserFullNameUpdateRequest": {"type": "object", "properties": {"full_name": {"title": "Full name", "type": "string"}, "name": {"title": "Name", "type": "string"}}}, "AccountsDirectMessageResponse": {"required": ["message"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}}}, "UpdateUser": {"required": ["user_id"], "type": "object", "properties": {"user_id": {"title": "User id", "type": "string", "format": "uuid"}, "email": {"title": "Email", "type": "string", "format": "email", "minLength": 1}, "name": {"title": "Name", "type": "string", "minLength": 1}, "organization_role": {"title": "Organization role", "type": "string", "enum": ["Owner", "Admin", "Member", "Viewer", "workspace_admin", "workspace_member", "workspace_viewer"]}}}, "UserInfoOrganization": {"required": ["id", "name", "display_name"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "display_name": {"title": "Display name", "type": "string"}, "ws_enabled": {"title": "Ws enabled", "type": "boolean"}}, "x-nullable": true}, "UserInfoTwoFactorMethods": {"required": ["totp", "passkey"], "type": "object", "properties": {"totp": {"title": "Totp", "type": "boolean"}, "passkey": {"title": "Passkey", "type": "boolean"}}}, "UserInfoResponse": {"required": ["id", "email", "name", "organization_role", "organization", "created_at", "status", "role", "remember_me", "get_started_completed", "onboarding_completed", "ws_enabled", "default_workspace_id", "default_workspace_name", "default_workspace_display_name", "default_workspace_role", "org_level", "ws_level", "effective_level"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "email": {"title": "Email", "type": "string", "format": "email", "minLength": 1}, "name": {"title": "Name", "type": "string", "x-nullable": true}, "organization_role": {"title": "Organization role", "type": "string", "x-nullable": true}, "organization": {"$ref": "#/definitions/UserInfoOrganization"}, "created_at": {"title": "Created at", "type": "string", "format": "date-time"}, "status": {"title": "Status", "type": "string", "minLength": 1}, "role": {"title": "Role", "type": "string", "x-nullable": true}, "goals": {"type": "array", "items": {"type": "string", "minLength": 1}}, "remember_me": {"title": "Remember me", "type": "boolean"}, "get_started_completed": {"title": "Get started completed", "type": "boolean"}, "onboarding_completed": {"title": "Onboarding completed", "type": "boolean"}, "ws_enabled": {"title": "Ws enabled", "type": "boolean"}, "requires_org_setup": {"title": "Requires org setup", "type": "boolean"}, "default_workspace_id": {"title": "Default workspace id", "type": "string", "format": "uuid", "x-nullable": true}, "default_workspace_name": {"title": "Default workspace name", "type": "string", "x-nullable": true}, "default_workspace_display_name": {"title": "Default workspace display name", "type": "string", "x-nullable": true}, "default_workspace_role": {"title": "Default workspace role", "type": "string", "x-nullable": true}, "org_level": {"title": "Org level", "type": "integer", "x-nullable": true}, "ws_level": {"title": "Ws level", "type": "integer", "x-nullable": true}, "effective_level": {"title": "Effective level", "type": "integer", "x-nullable": true}, "has_2fa_enabled": {"title": "Has 2fa enabled", "type": "boolean"}, "two_factor_methods": {"$ref": "#/definitions/UserInfoTwoFactorMethods"}, "org_2fa_required": {"title": "Org 2fa required", "type": "boolean"}, "org_2fa_grace_ends_at": {"title": "Org 2fa grace ends at", "type": "string", "format": "date-time"}}}, "DeactivateUser": {"required": ["user_id"], "type": "object", "properties": {"user_id": {"title": "User id", "type": "string", "format": "uuid"}}}, "DeactivateUserResult": {"required": ["message", "user_id", "user_email", "user_name"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}, "user_id": {"title": "User id", "type": "string", "format": "uuid"}, "user_email": {"title": "User email", "type": "string", "format": "email", "minLength": 1}, "user_name": {"title": "User name", "type": "string", "x-nullable": true}}}, "DeactivateUserResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/DeactivateUserResult"}}}, "DeleteUser": {"required": ["user_id"], "type": "object", "properties": {"user_id": {"title": "User id", "type": "string", "format": "uuid"}}}, "DeleteUserResult": {"required": ["message", "user_id", "level"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}, "user_id": {"title": "User id", "type": "string", "format": "uuid"}, "workspace": {"title": "Workspace", "type": "string", "minLength": 1}, "level": {"title": "Level", "type": "string", "minLength": 1}}}, "DeleteUserResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/DeleteUserResult"}}}, "UserListItemResponse": {"required": ["id", "name", "email", "role", "status", "start_date", "last_updated_date"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "x-nullable": true}, "email": {"title": "Email", "type": "string", "format": "email", "minLength": 1}, "role": {"title": "Role", "type": "string", "x-nullable": true}, "status": {"title": "Status", "type": "string", "minLength": 1}, "start_date": {"title": "Start date", "type": "string"}, "last_updated_date": {"title": "Last updated date", "type": "string"}, "workspace_role": {"title": "Workspace role", "type": "string", "minLength": 1, "x-nullable": true}, "workspace_member_since": {"title": "Workspace member since", "type": "string"}, "invited_by": {"title": "Invited by", "type": "string", "minLength": 1, "x-nullable": true}}}, "UserListPaginatedResponse": {"required": ["count", "next", "previous", "results", "total_pages", "current_page"], "type": "object", "properties": {"count": {"title": "Count", "type": "integer"}, "next": {"title": "Next", "type": "string", "minLength": 1, "x-nullable": true}, "previous": {"title": "Previous", "type": "string", "minLength": 1, "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/UserListItemResponse"}}, "total_pages": {"title": "Total pages", "type": "integer"}, "current_page": {"title": "Current page", "type": "integer"}}}, "ResendInvite": {"required": ["user_id"], "type": "object", "properties": {"user_id": {"title": "User id", "type": "string", "format": "uuid"}}}, "ResendInviteResult": {"required": ["message", "user_id"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}, "user_id": {"title": "User id", "type": "string", "format": "uuid"}, "workspace": {"title": "Workspace", "type": "string", "minLength": 1}}}, "ResendInviteResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/ResendInviteResult"}}}, "UserRoleUpdate": {"required": ["user_id", "new_role"], "type": "object", "properties": {"user_id": {"title": "User id", "type": "string", "format": "uuid"}, "new_role": {"title": "New role", "type": "string", "enum": ["Owner", "Admin", "Member", "Viewer", "workspace_admin", "workspace_member", "workspace_viewer"]}, "workspace_id": {"title": "Workspace id", "type": "string", "format": "uuid", "x-nullable": true}}}, "UserRoleUpdateResult": {"required": ["message", "user_id", "new_role", "level"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}, "user_id": {"title": "User id", "type": "string", "format": "uuid"}, "new_role": {"title": "New role", "type": "string", "minLength": 1}, "workspace_role": {"title": "Workspace role", "type": "string", "minLength": 1, "x-nullable": true}, "workspace": {"title": "Workspace", "type": "string", "minLength": 1, "x-nullable": true}, "level": {"title": "Level", "type": "string", "minLength": 1}}}, "UserRoleUpdateResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/UserRoleUpdateResult"}}}, "WorkspaceInvite": {"required": ["emails"], "type": "object", "properties": {"emails": {"type": "array", "items": {"type": "string", "format": "email", "minLength": 1}, "minItems": 1}, "role": {"title": "Role", "type": "string", "enum": ["workspace_member", "workspace_admin", "workspace_viewer", "Member", "Viewer", "Owner", "Admin"], "default": "workspace_member"}, "select_all": {"title": "Select all", "type": "boolean", "default": false}, "workspace_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}}}}, "WorkspaceInviteResultItem": {"required": ["email", "status", "workspaces", "select_all", "total_workspaces"], "type": "object", "properties": {"email": {"title": "Email", "type": "string", "format": "email", "minLength": 1}, "status": {"title": "Status", "type": "string", "minLength": 1}, "workspaces": {"type": "array", "items": {"type": "string", "format": "uuid"}}, "select_all": {"title": "Select all", "type": "boolean"}, "total_workspaces": {"title": "Total workspaces", "type": "integer"}}}, "WorkspaceInviteErrorItem": {"required": ["error"], "type": "object", "properties": {"email": {"title": "Email", "type": "string", "format": "email", "minLength": 1}, "error": {"title": "Error", "type": "string", "minLength": 1}}}, "WorkspaceInviteResult": {"required": ["results", "total_invited", "select_all", "total_workspaces"], "type": "object", "properties": {"results": {"type": "array", "items": {"$ref": "#/definitions/WorkspaceInviteResultItem"}}, "total_invited": {"title": "Total invited", "type": "integer"}, "select_all": {"title": "Select all", "type": "boolean"}, "total_workspaces": {"title": "Total workspaces", "type": "integer"}, "errors": {"type": "array", "items": {"$ref": "#/definitions/WorkspaceInviteErrorItem"}}}}, "WorkspaceInviteResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/WorkspaceInviteResult"}}}, "WorkspaceAdminSummary": {"required": ["name", "id"], "type": "object", "properties": {"name": {"title": "Name", "type": "string", "x-nullable": true}, "id": {"title": "Id", "type": "string", "format": "uuid"}}}, "WorkspaceListItemResponse": {"required": ["id", "name", "display_name"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "display_name": {"title": "Display name", "type": "string"}, "admin_names": {"type": "array", "items": {"$ref": "#/definitions/WorkspaceAdminSummary"}}, "start_data": {"title": "Start data", "type": "string"}, "last_update_date": {"title": "Last update date", "type": "string"}, "invite_link": {"title": "Invite link", "type": "string"}, "user_ws_level": {"title": "User ws level", "type": "integer", "x-nullable": true}, "user_ws_role": {"title": "User ws role", "type": "string", "minLength": 1, "x-nullable": true}}}, "WorkspaceListPaginatedResponse": {"required": ["count", "next", "previous", "results", "total_pages", "current_page"], "type": "object", "properties": {"count": {"title": "Count", "type": "integer"}, "next": {"title": "Next", "type": "string", "minLength": 1, "x-nullable": true}, "previous": {"title": "Previous", "type": "string", "minLength": 1, "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/WorkspaceListItemResponse"}}, "total_pages": {"title": "Total pages", "type": "integer"}, "current_page": {"title": "Current page", "type": "integer"}}}, "SwitchWorkspace": {"required": ["new_workspace_id"], "type": "object", "properties": {"old_workspace_id": {"title": "Old workspace id", "type": "string", "format": "uuid"}, "new_workspace_id": {"title": "New workspace id", "type": "string", "format": "uuid"}}}, "SwitchWorkspaceResult": {"required": ["message", "workspace", "user_role", "access_type", "organization"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}, "workspace": {"$ref": "#/definitions/WorkspaceSummary"}, "user_role": {"title": "User role", "type": "string", "minLength": 1}, "access_type": {"title": "Access type", "type": "string", "minLength": 1}, "organization": {"title": "Organization", "type": "string", "minLength": 1}}}, "SwitchWorkspaceResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/SwitchWorkspaceResult"}}}, "WorkspaceMemberRow": {"required": ["id", "name", "email", "status", "created_at", "type"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string"}, "email": {"title": "Email", "type": "string", "format": "email", "minLength": 1}, "ws_level": {"title": "Ws level", "type": "integer", "x-nullable": true}, "ws_role": {"title": "Ws role", "type": "string", "minLength": 1, "x-nullable": true}, "org_level": {"title": "Org level", "type": "integer", "x-nullable": true}, "org_role": {"title": "Org role", "type": "string", "minLength": 1, "x-nullable": true}, "status": {"title": "Status", "type": "string", "minLength": 1}, "created_at": {"title": "Created at", "type": "string"}, "type": {"title": "Type", "type": "string", "enum": ["member", "invite"]}, "auto_access": {"title": "Auto access", "type": "boolean"}, "invite_link": {"title": "Invite link", "description": "Accept-invite link for a pending invite. Present on OSS deployments only, where SMTP may not be configured; omitted on Cloud/EE, on active-member rows, and on Admin+ invites when the caller is only a workspace admin.", "type": "string", "minLength": 1}}}, "WorkspaceMemberListResult": {"required": ["results", "total", "page", "limit"], "type": "object", "properties": {"results": {"type": "array", "items": {"$ref": "#/definitions/WorkspaceMemberRow"}}, "total": {"title": "Total", "type": "integer"}, "page": {"title": "Page", "type": "integer"}, "limit": {"title": "Limit", "type": "integer"}}}, "WorkspaceMemberListResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/WorkspaceMemberListResult"}}}, "WorkspaceMemberRemove": {"required": ["user_id"], "type": "object", "properties": {"user_id": {"title": "User id", "type": "string", "format": "uuid"}}}, "WorkspaceMemberRoleUpdate": {"required": ["user_id", "ws_level"], "type": "object", "properties": {"user_id": {"title": "User id", "type": "string", "format": "uuid"}, "ws_level": {"title": "Ws level", "type": "integer", "enum": [8, 3, 1]}}}, "WorkspaceMemberRoleUpdateResult": {"required": ["message", "user_id", "ws_level", "ws_role"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}, "user_id": {"title": "User id", "type": "string", "format": "uuid"}, "ws_level": {"title": "Ws level", "type": "integer"}, "ws_role": {"title": "Ws role", "type": "string", "minLength": 1}}}, "WorkspaceMemberRoleUpdateResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/WorkspaceMemberRoleUpdateResult"}}}, "WorkspaceManagementItem": {"required": ["id", "name", "display_name", "description", "is_default", "member_count", "created_at", "created_by"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "display_name": {"title": "Display name", "type": "string"}, "description": {"title": "Description", "type": "string"}, "is_default": {"title": "Is default", "type": "boolean"}, "member_count": {"title": "Member count", "type": "integer"}, "created_at": {"title": "Created at", "type": "string", "minLength": 1}, "created_by": {"title": "Created by", "type": "string", "x-nullable": true}}}, "WorkspaceManagementListResult": {"required": ["organization", "workspaces", "total"], "type": "object", "properties": {"organization": {"title": "Organization", "type": "string", "minLength": 1}, "workspaces": {"type": "array", "items": {"$ref": "#/definitions/WorkspaceManagementItem"}}, "total": {"title": "Total", "type": "integer"}}}, "WorkspaceManagementListResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/WorkspaceManagementListResult"}}}, "WorkspaceCreateRequest": {"required": ["name"], "type": "object", "properties": {"name": {"title": "Name", "type": "string", "minLength": 1}, "display_name": {"title": "Display name", "type": "string"}, "description": {"title": "Description", "type": "string"}, "emails": {"type": "array", "items": {"type": "string", "format": "email", "minLength": 1}, "default": []}, "role": {"title": "Role", "type": "string"}}}, "WorkspaceCreateUserError": {"required": ["email", "error"], "type": "object", "properties": {"email": {"title": "Email", "type": "string", "format": "email", "minLength": 1}, "error": {"title": "Error", "type": "string", "minLength": 1}}}, "WorkspaceCreateResult": {"required": ["workspace", "message", "added_users", "created_users", "total_users_added", "total_users_created", "failed_users", "other_org_users"], "type": "object", "properties": {"workspace": {"$ref": "#/definitions/WorkspaceSummary"}, "message": {"title": "Message", "type": "string", "minLength": 1}, "added_users": {"type": "array", "items": {"type": "string", "format": "email", "minLength": 1}}, "created_users": {"type": "array", "items": {"type": "string", "format": "email", "minLength": 1}}, "total_users_added": {"title": "Total users added", "type": "integer"}, "total_users_created": {"title": "Total users created", "type": "integer"}, "failed_users": {"type": "array", "items": {"$ref": "#/definitions/WorkspaceCreateUserError"}}, "other_org_users": {"type": "array", "items": {"$ref": "#/definitions/WorkspaceCreateUserError"}}}}, "WorkspaceCreateResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/WorkspaceCreateResult"}}}, "WorkspaceUpdateRequest": {"type": "object", "properties": {"name": {"title": "Name", "type": "string"}, "display_name": {"title": "Display name", "type": "string"}, "description": {"title": "Description", "type": "string"}}}, "WorkspaceUpdateResult": {"required": ["workspace", "message"], "type": "object", "properties": {"workspace": {"$ref": "#/definitions/WorkspaceSummary"}, "message": {"title": "Message", "type": "string", "minLength": 1}}}, "WorkspaceUpdateResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/WorkspaceUpdateResult"}}}, "WorkspaceDeleteResult": {"required": ["message"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}}}, "WorkspaceDeleteResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/WorkspaceDeleteResult"}}}, "WorkspaceMemberItem": {"required": ["user_id", "email", "name", "role", "joined_at", "invited_by"], "type": "object", "properties": {"user_id": {"title": "User id", "type": "string", "format": "uuid"}, "email": {"title": "Email", "type": "string", "format": "email", "minLength": 1}, "name": {"title": "Name", "type": "string", "x-nullable": true}, "role": {"title": "Role", "type": "string", "minLength": 1}, "joined_at": {"title": "Joined at", "type": "string", "minLength": 1}, "invited_by": {"title": "Invited by", "type": "string", "minLength": 1, "x-nullable": true}}}, "WorkspaceMembersListResult": {"required": ["workspace", "members", "total"], "type": "object", "properties": {"workspace": {"$ref": "#/definitions/WorkspaceSummary"}, "members": {"type": "array", "items": {"$ref": "#/definitions/WorkspaceMemberItem"}}, "total": {"title": "Total", "type": "integer"}}}, "WorkspaceMembersListResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/WorkspaceMembersListResult"}}}, "WorkspaceMembersRequest": {"required": ["users"], "type": "object", "properties": {"users": {"type": "array", "items": {"type": "object", "additionalProperties": {"type": "string", "x-nullable": true}}}}}, "WorkspaceMemberAddedItem": {"required": ["email", "name", "role", "action"], "type": "object", "properties": {"email": {"title": "Email", "type": "string", "format": "email", "minLength": 1}, "name": {"title": "Name", "type": "string", "x-nullable": true}, "role": {"title": "Role", "type": "string", "minLength": 1}, "action": {"title": "Action", "type": "string", "minLength": 1}}}, "WorkspaceMemberAddError": {"required": ["error"], "type": "object", "properties": {"email": {"title": "Email", "type": "string", "format": "email"}, "error": {"title": "Error", "type": "string", "minLength": 1}}}, "WorkspaceMembersAddResult": {"required": ["workspace", "added_users"], "type": "object", "properties": {"workspace": {"$ref": "#/definitions/WorkspaceSummary"}, "added_users": {"type": "array", "items": {"$ref": "#/definitions/WorkspaceMemberAddedItem"}}, "errors": {"type": "array", "items": {"$ref": "#/definitions/WorkspaceMemberAddError"}}}}, "WorkspaceMembersAddResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/WorkspaceMembersAddResult"}}}, "WorkspaceMemberRemoveResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/AccountsMessageResult"}}}, "NodeExecutionData": {"type": "object", "properties": {"port_id": {"title": "Port id", "type": "string", "format": "uuid", "readOnly": true}, "port_key": {"title": "Port key", "type": "string", "readOnly": true, "minLength": 1}, "port_direction": {"title": "Port direction", "type": "string", "readOnly": true, "minLength": 1}, "payload": {"title": "Payload", "type": "object", "readOnly": true, "x-nullable": true}, "is_valid": {"title": "Is valid", "type": "boolean", "readOnly": true}, "validation_errors": {"title": "Validation errors", "type": "object", "readOnly": true, "x-nullable": true}}}, "NodeExecutionDetailResult": {"type": "object", "properties": {"node_execution_id": {"title": "Node execution id", "type": "string", "format": "uuid", "readOnly": true}, "node_id": {"title": "Node id", "type": "string", "format": "uuid", "readOnly": true}, "node_name": {"title": "Node name", "type": "string", "readOnly": true, "minLength": 1}, "node_type": {"title": "Node type", "type": "string", "readOnly": true, "minLength": 1}, "status": {"title": "Status", "type": "string", "readOnly": true, "minLength": 1}, "started_at": {"title": "Started at", "type": "string", "format": "date-time", "readOnly": true, "x-nullable": true}, "completed_at": {"title": "Completed at", "type": "string", "format": "date-time", "readOnly": true, "x-nullable": true}, "duration_seconds": {"title": "Duration seconds", "type": "number", "readOnly": true, "x-nullable": true}, "error_message": {"title": "Error message", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "inputs": {"type": "array", "items": {"$ref": "#/definitions/NodeExecutionData"}, "readOnly": true}, "outputs": {"type": "array", "items": {"$ref": "#/definitions/NodeExecutionData"}, "readOnly": true}}}, "NodeExecutionDetailResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/NodeExecutionDetailResult"}}}, "AgentPlaygroundErrorResponse": {"type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": false}, "result": {"title": "Result", "type": "string", "x-nullable": true}, "message": {"title": "Message", "type": "string", "x-nullable": true}, "error": {"title": "Error", "type": "string", "x-nullable": true}}}, "UserBrief": {"type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "type": "string", "readOnly": true, "minLength": 1}, "email": {"title": "Email", "type": "string", "format": "email", "readOnly": true, "minLength": 1}}}, "GraphList": {"type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "description": "Display name", "type": "string", "readOnly": true, "minLength": 1}, "description": {"title": "Description", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "is_template": {"title": "Is template", "type": "boolean", "readOnly": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}, "created_by": {"$ref": "#/definitions/UserBrief"}, "collaborators": {"type": "array", "items": {"$ref": "#/definitions/UserBrief"}, "readOnly": true}, "active_version_id": {"title": "Active version id", "type": "string", "format": "uuid", "readOnly": true}, "active_version_number": {"title": "Active version number", "type": "integer", "readOnly": true}, "node_count": {"title": "Node count", "type": "integer", "readOnly": true}}}, "GraphCreate": {"required": ["name"], "type": "object", "properties": {"name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "description": {"title": "Description", "type": "string", "x-nullable": true}}}, "TraceToGraphRequest": {"required": ["trace_id"], "type": "object", "properties": {"trace_id": {"title": "Trace id", "type": "string", "format": "uuid"}}}, "TraceToGraphResult": {"required": ["graph_id", "version_id"], "type": "object", "properties": {"graph_id": {"title": "Graph id", "type": "string", "format": "uuid"}, "version_id": {"title": "Version id", "type": "string", "format": "uuid"}}}, "TraceToGraphResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/TraceToGraphResult"}}}, "CellUpdate": {"type": "object", "properties": {"value": {"title": "Value", "type": "string", "default": "", "x-nullable": true}}}, "ExecuteRequest": {"type": "object", "properties": {"row_ids": {"description": "Optional list of row IDs to execute. If omitted, all rows are executed.", "type": "array", "items": {"type": "string", "format": "uuid"}}, "task_queue": {"title": "Task queue", "type": "string", "default": "tasks_l", "minLength": 1}}}, "GraphExecutionList": {"type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "status": {"title": "Status", "type": "string", "enum": ["pending", "running", "success", "failed", "cancelled"], "readOnly": true}, "started_at": {"title": "Started at", "type": "string", "format": "date-time", "readOnly": true, "x-nullable": true}, "completed_at": {"title": "Completed at", "type": "string", "format": "date-time", "readOnly": true, "x-nullable": true}, "graph_version": {"title": "Graph version", "type": "string", "format": "uuid", "readOnly": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}}}, "PaginationMetadata": {"required": ["total_count", "current_page", "page_size", "total_pages"], "type": "object", "properties": {"total_count": {"title": "Total count", "type": "integer"}, "current_page": {"title": "Current page", "type": "integer"}, "page_size": {"title": "Page size", "type": "integer"}, "total_pages": {"title": "Total pages", "type": "integer"}, "next_page": {"title": "Next page", "type": "integer", "x-nullable": true}}}, "GraphExecutionListResult": {"type": "object", "properties": {"executions": {"type": "array", "items": {"$ref": "#/definitions/GraphExecutionList"}, "readOnly": true}, "metadata": {"$ref": "#/definitions/PaginationMetadata"}}}, "GraphExecutionListResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/GraphExecutionListResult"}}}, "GraphExecutionDetailResult": {"type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "status": {"title": "Status", "type": "string", "enum": ["pending", "running", "success", "failed", "cancelled"], "readOnly": true}, "input_payload": {"title": "Input payload", "type": "object", "readOnly": true, "x-nullable": true}, "output_payload": {"title": "Output payload", "type": "object", "readOnly": true, "x-nullable": true}, "started_at": {"title": "Started at", "type": "string", "format": "date-time", "readOnly": true, "x-nullable": true}, "completed_at": {"title": "Completed at", "type": "string", "format": "date-time", "readOnly": true, "x-nullable": true}, "error_message": {"title": "Error message", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "nodes": {"type": "array", "items": {"type": "object"}, "readOnly": true}, "node_connections": {"type": "array", "items": {"type": "object"}, "readOnly": true}}}, "GraphExecutionDetailResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/GraphExecutionDetailResult"}}}, "GraphDetail": {"type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "description": "Display name", "type": "string", "readOnly": true, "minLength": 1}, "description": {"title": "Description", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "is_template": {"title": "Is template", "type": "boolean", "readOnly": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}, "active_version": {"title": "Active version", "type": "string", "readOnly": true}}}, "GraphUpdate": {"type": "object", "properties": {"name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "description": {"title": "Description", "type": "string", "x-nullable": true}}}, "CreateNodeConnection": {"required": ["id", "source_node_id", "target_node_id"], "type": "object", "properties": {"id": {"title": "Id", "description": "FE-generated UUID", "type": "string", "format": "uuid"}, "source_node_id": {"title": "Source node id", "type": "string", "format": "uuid"}, "target_node_id": {"title": "Target node id", "type": "string", "format": "uuid"}}}, "MessageContentItem": {"description": "Array of content items", "required": ["type"], "type": "object", "properties": {"type": {"title": "Type", "description": "Type of content item", "type": "string", "enum": ["text", "image_url", "audio_url", "pdf_url"]}, "text": {"title": "Text", "description": "Text content (required when type=text)", "type": "string"}, "image_url": {"title": "Image url", "description": "Image URL (required when type=image_url)", "type": "string", "format": "uri", "minLength": 1}, "audio_url": {"title": "Audio url", "description": "Audio URL (required when type=audio_url)", "type": "string", "format": "uri", "minLength": 1}, "pdf_url": {"title": "Pdf url", "description": "PDF URL (required when type=pdf_url)", "type": "string", "format": "uri", "minLength": 1}}}, "Message": {"description": "Array of message objects with id, role, and content array", "required": ["id", "role", "content"], "type": "object", "properties": {"id": {"title": "Id", "description": "Unique identifier for the message (frontend-provided)", "type": "string", "minLength": 1}, "role": {"title": "Role", "description": "Message role (e.g., 'system', 'user', 'assistant')", "type": "string", "minLength": 1}, "content": {"description": "Array of content items", "type": "array", "items": {"$ref": "#/definitions/MessageContentItem"}}}}, "PromptTemplateData": {"required": ["messages"], "type": "object", "properties": {"prompt_template_id": {"title": "Prompt template id", "type": "string", "format": "uuid", "x-nullable": true}, "prompt_version_id": {"title": "Prompt version id", "type": "string", "format": "uuid", "x-nullable": true}, "messages": {"description": "Array of message objects with id, role, and content array", "type": "array", "items": {"$ref": "#/definitions/Message"}}, "response_format": {"title": "Response format", "description": "String or JSON object.", "type": "object", "default": "text", "x-string-or-object": true}, "response_schema": {"title": "Response schema", "description": "JSON Schema (Draft 7) for structured outputs. Required when response_format='json_schema'. Example: {'type': 'object', 'properties': {...}, 'required': [...]}", "type": "object", "x-nullable": true}, "model": {"title": "Model", "type": "string", "x-nullable": true}, "temperature": {"title": "Temperature", "type": "number", "x-nullable": true}, "max_tokens": {"title": "Max tokens", "type": "integer", "x-nullable": true}, "top_p": {"title": "Top p", "type": "number", "x-nullable": true}, "frequency_penalty": {"title": "Frequency penalty", "type": "number", "x-nullable": true}, "presence_penalty": {"title": "Presence penalty", "type": "number", "x-nullable": true}, "output_format": {"title": "Output format", "type": "string", "x-nullable": true}, "tools": {"type": "array", "items": {"type": "object", "additionalProperties": {"type": "string", "x-nullable": true}}, "x-nullable": true}, "tool_choice": {"title": "Tool choice", "type": "object", "x-nullable": true}, "model_detail": {"title": "Model detail", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}, "x-nullable": true}, "variable_names": {"title": "Variable names", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}, "x-nullable": true}, "metadata": {"title": "Metadata", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}, "x-nullable": true}, "commit_message": {"title": "Commit message", "type": "string", "x-nullable": true}, "template_format": {"title": "Template format", "description": "Template format: 'mustache' or 'jinja'", "type": "string", "x-nullable": true}, "save_prompt_version": {"title": "Save prompt version", "type": "boolean", "default": false}}, "x-nullable": true}, "PortCreate": {"required": ["id", "key", "display_name", "direction"], "type": "object", "properties": {"id": {"title": "Id", "description": "FE-generated UUID", "type": "string", "format": "uuid"}, "key": {"title": "Key", "type": "string", "maxLength": 100, "minLength": 1}, "display_name": {"title": "Display name", "type": "string", "maxLength": 100, "minLength": 1}, "direction": {"title": "Direction", "type": "string", "enum": ["input", "output"]}, "data_schema": {"title": "Data schema", "type": "object", "default": {}}, "ref_port_id": {"title": "Ref port id", "type": "string", "format": "uuid", "x-nullable": true}}}, "InputMapping": {"description": "List of input mappings from port display_name to source reference", "required": ["key"], "type": "object", "properties": {"key": {"title": "Key", "description": "Input port display_name", "type": "string", "minLength": 1}, "value": {"title": "Value", "description": "Source reference in format \"NodeName.port_display_name\" or null", "type": "string", "minLength": 1, "x-nullable": true}}}, "CreateNode": {"required": ["id", "type", "name"], "type": "object", "properties": {"id": {"title": "Id", "description": "FE-generated UUID for the node", "type": "string", "format": "uuid"}, "type": {"title": "Type", "type": "string", "enum": ["subgraph", "atomic"]}, "name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "node_template_id": {"title": "Node template id", "type": "string", "format": "uuid", "x-nullable": true}, "ref_graph_version_id": {"title": "Ref graph version id", "type": "string", "format": "uuid", "x-nullable": true}, "position": {"title": "Position", "type": "object", "default": {}}, "source_node_id": {"title": "Source node id", "type": "string", "format": "uuid", "x-nullable": true}, "prompt_template": {"$ref": "#/definitions/PromptTemplateData"}, "ports": {"type": "array", "items": {"$ref": "#/definitions/PortCreate"}, "default": []}, "input_mappings": {"description": "List of input mappings from port display_name to source reference", "type": "array", "items": {"$ref": "#/definitions/InputMapping"}, "default": []}}}, "PortRead": {"type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "key": {"title": "Key", "description": "Identifier (e.g., 'prompt', 'result')", "type": "string", "readOnly": true, "minLength": 1}, "display_name": {"title": "Display name", "description": "User-facing name for the port", "type": "string", "readOnly": true, "minLength": 1}, "direction": {"title": "Direction", "type": "string", "enum": ["input", "output"], "readOnly": true}, "data_schema": {"title": "Data schema", "description": "JSON Schema for validation", "type": "object", "readOnly": true}, "required": {"title": "Required", "type": "boolean", "readOnly": true}, "default_value": {"title": "Default value", "type": "object", "readOnly": true, "x-nullable": true}, "metadata": {"title": "Metadata", "type": "object", "readOnly": true}, "ref_port_id": {"title": "Ref port id", "type": "string", "format": "uuid", "readOnly": true}}}, "NodeRead": {"type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "type": {"title": "Type", "description": "'subgraph' for subgraph nodes, 'atomic' for nodes using a NodeTemplate", "type": "string", "enum": ["subgraph", "atomic"], "readOnly": true}, "name": {"title": "Name", "description": "Display name", "type": "string", "readOnly": true, "minLength": 1}, "config": {"title": "Config", "description": "Node-specific configuration (validated against node_template.config_schema for atomic nodes)", "type": "object", "readOnly": true}, "position": {"title": "Position", "description": "UI coordinates {\"x\": 0, \"y\": 0}", "type": "object", "readOnly": true}, "node_template_id": {"title": "Node template id", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}, "ref_graph_version_id": {"title": "Ref graph version id", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}, "ref_graph_name": {"title": "Ref graph name", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "ref_graph_id": {"title": "Ref graph id", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}, "prompt_template": {"title": "Prompt template", "type": "string", "readOnly": true}, "node_connection": {"title": "Node connection", "type": "string", "readOnly": true}, "input_mappings": {"title": "Input mappings", "type": "string", "readOnly": true}, "ports": {"type": "array", "items": {"$ref": "#/definitions/PortRead"}, "readOnly": true}}}, "UpdateNode": {"type": "object", "properties": {"name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "position": {"title": "Position", "type": "object"}, "prompt_template": {"$ref": "#/definitions/PromptTemplateData"}, "ref_graph_version_id": {"title": "Ref graph version id", "type": "string", "format": "uuid", "x-nullable": true}, "input_mappings": {"description": "List of input mappings from port display_name to source reference", "type": "array", "items": {"$ref": "#/definitions/InputMapping"}}, "ports": {"description": "Replace all OUTPUT ports with this new set (input ports preserved)", "type": "array", "items": {"$ref": "#/definitions/PortCreate"}}}}, "UpdatePort": {"required": ["display_name"], "type": "object", "properties": {"display_name": {"title": "Display name", "type": "string", "maxLength": 100, "minLength": 1}}}, "NodeTemplateList": {"type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "type": "string", "readOnly": true, "minLength": 1}, "display_name": {"title": "Display name", "type": "string", "readOnly": true, "minLength": 1}, "description": {"title": "Description", "type": "string", "readOnly": true, "minLength": 1}, "icon": {"title": "Icon", "type": "string", "format": "uri", "readOnly": true, "minLength": 1, "x-nullable": true}, "categories": {"title": "Categories", "type": "object", "readOnly": true}}}, "NodeTemplateDetail": {"type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "type": "string", "readOnly": true, "minLength": 1}, "display_name": {"title": "Display name", "type": "string", "readOnly": true, "minLength": 1}, "description": {"title": "Description", "type": "string", "readOnly": true, "minLength": 1}, "icon": {"title": "Icon", "type": "string", "format": "uri", "readOnly": true, "minLength": 1, "x-nullable": true}, "categories": {"title": "Categories", "type": "object", "readOnly": true}, "input_definition": {"title": "Input definition", "type": "object", "readOnly": true}, "output_definition": {"title": "Output definition", "type": "object", "readOnly": true}, "input_mode": {"title": "Input mode", "type": "string", "enum": ["strict", "extensible", "dynamic"], "readOnly": true}, "output_mode": {"title": "Output mode", "type": "string", "enum": ["strict", "extensible", "dynamic"], "readOnly": true}, "config_schema": {"title": "Config schema", "description": "JSON Schema for Node.config validation", "type": "object", "readOnly": true}}}, "AgentccRequestLog": {"type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "request_id": {"title": "Request id", "type": "string", "readOnly": true, "minLength": 1}, "model": {"title": "Model", "type": "string", "readOnly": true, "minLength": 1}, "provider": {"title": "Provider", "type": "string", "readOnly": true, "minLength": 1}, "resolved_model": {"title": "Resolved model", "type": "string", "readOnly": true, "minLength": 1}, "latency_ms": {"title": "Latency ms", "type": "integer", "readOnly": true}, "started_at": {"title": "Started at", "type": "string", "format": "date-time", "readOnly": true, "x-nullable": true}, "input_tokens": {"title": "Input tokens", "type": "integer", "readOnly": true}, "output_tokens": {"title": "Output tokens", "type": "integer", "readOnly": true}, "total_tokens": {"title": "Total tokens", "type": "integer", "readOnly": true}, "cost": {"title": "Cost", "type": "string", "format": "decimal", "readOnly": true}, "status_code": {"title": "Status code", "type": "integer", "readOnly": true}, "is_stream": {"title": "Is stream", "type": "boolean", "readOnly": true}, "is_error": {"title": "Is error", "type": "boolean", "readOnly": true}, "error_message": {"title": "Error message", "type": "string", "readOnly": true, "minLength": 1}, "cache_hit": {"title": "Cache hit", "type": "boolean", "readOnly": true}, "fallback_used": {"title": "Fallback used", "type": "boolean", "readOnly": true}, "guardrail_triggered": {"title": "Guardrail triggered", "type": "boolean", "readOnly": true}, "api_key_id": {"title": "Api key id", "type": "string", "readOnly": true, "minLength": 1}, "user_id": {"title": "User id", "type": "string", "readOnly": true, "minLength": 1}, "session_id": {"title": "Session id", "type": "string", "readOnly": true, "minLength": 1}, "routing_strategy": {"title": "Routing strategy", "type": "string", "readOnly": true, "minLength": 1}, "metadata": {"title": "Metadata", "type": "object", "readOnly": true}, "organization": {"title": "Organization", "type": "string", "format": "uuid", "readOnly": true}, "workspace": {"title": "Workspace", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}}}, "AgentccAPIKey": {"required": ["name"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "project": {"title": "Project", "type": "string", "format": "uuid", "x-nullable": true}, "user": {"title": "User", "type": "string", "format": "uuid", "x-nullable": true}, "gateway_key_id": {"title": "Gateway key id", "type": "string", "readOnly": true, "minLength": 1}, "key_prefix": {"title": "Key prefix", "type": "string", "readOnly": true, "minLength": 1}, "name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "owner": {"title": "Owner", "type": "string", "maxLength": 255}, "status": {"title": "Status", "type": "string", "enum": ["active", "revoked", "expired"], "readOnly": true}, "allowed_models": {"title": "Allowed models", "type": "object"}, "allowed_providers": {"title": "Allowed providers", "type": "object"}, "metadata": {"title": "Metadata", "type": "object"}, "last_used_at": {"title": "Last used at", "type": "string", "format": "date-time", "x-nullable": true}, "expires_at": {"title": "Expires at", "type": "string", "format": "date-time", "x-nullable": true}, "organization": {"title": "Organization", "type": "string", "format": "uuid", "readOnly": true}, "workspace": {"title": "Workspace", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}}}, "APIKeyBulkItem": {"required": ["id", "name", "owner", "key_hash", "key_prefix", "models", "providers", "metadata", "expires_at"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "minLength": 1}, "name": {"title": "Name", "type": "string", "minLength": 1}, "owner": {"title": "Owner", "type": "string"}, "key_hash": {"title": "Key hash", "type": "string", "minLength": 1}, "key_prefix": {"title": "Key prefix", "type": "string"}, "models": {"type": "array", "items": {"type": "string", "minLength": 1}}, "providers": {"type": "array", "items": {"type": "string", "minLength": 1}}, "metadata": {"title": "Metadata", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}}, "expires_at": {"title": "Expires at", "type": "string", "format": "date-time", "x-nullable": true}}}, "APIKeyBulkResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"type": "array", "items": {"$ref": "#/definitions/APIKeyBulkItem"}}}}, "AgentccErrorResponse": {"type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": false}, "type": {"title": "Type", "type": "string", "enum": ["validation_error", "authentication_error", "payment_required", "entitlement_error", "permission_error", "not_found", "conflict", "client_error", "rate_limit", "server_error", "service_unavailable", "timeout", "api_error"], "x-nullable": true}, "code": {"title": "Code", "type": "string", "x-nullable": true}, "detail": {"title": "Detail", "type": "string", "x-nullable": true}, "result": {"title": "Result", "type": "string", "x-nullable": true}, "message": {"title": "Message", "type": "string", "x-nullable": true}, "error": {"title": "Error", "type": "string", "x-nullable": true}, "attr": {"title": "Attr", "type": "string", "x-nullable": true}, "details": {"title": "Details", "type": "object", "additionalProperties": {"type": "array", "items": {"type": "string", "minLength": 1}}}}}, "AgentccBlocklist": {"required": ["name"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "organization": {"title": "Organization", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "description": {"title": "Description", "type": "string"}, "words": {"title": "Words", "type": "object"}, "is_active": {"title": "Is active", "type": "boolean"}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}}}, "AgentccCustomPropertySchema": {"required": ["name"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "organization": {"title": "Organization", "type": "string", "format": "uuid", "readOnly": true}, "project": {"title": "Project", "type": "string", "format": "uuid", "x-nullable": true}, "name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "description": {"title": "Description", "type": "string"}, "property_type": {"title": "Property type", "type": "string", "enum": ["string", "number", "boolean", "enum"]}, "required": {"title": "Required", "type": "boolean"}, "allowed_values": {"title": "Allowed values", "type": "object"}, "default_value": {"title": "Default value", "type": "object", "x-nullable": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}}}, "AgentccEmailAlert": {"required": ["name"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "organization": {"title": "Organization", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "recipients": {"title": "Recipients", "type": "object"}, "events": {"title": "Events", "type": "object"}, "thresholds": {"title": "Thresholds", "type": "object"}, "provider": {"title": "Provider", "type": "string", "enum": ["sendgrid", "resend", "smtp"]}, "provider_config": {"title": "Provider config", "type": "string", "readOnly": true}, "is_active": {"title": "Is active", "type": "boolean"}, "cooldown_minutes": {"title": "Cooldown minutes", "type": "integer", "maximum": 2147483647, "minimum": -2147483648}, "last_triggered_at": {"title": "Last triggered at", "type": "string", "format": "date-time", "readOnly": true, "x-nullable": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}}}, "GatewaySummaryResult": {"required": ["id", "name", "base_url", "status"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "minLength": 1}, "name": {"title": "Name", "type": "string", "minLength": 1}, "base_url": {"title": "Base url", "type": "string", "format": "uri", "minLength": 1}, "status": {"title": "Status", "type": "string", "minLength": 1}, "provider_count": {"title": "Provider count", "type": "integer"}, "model_count": {"title": "Model count", "type": "integer"}}}, "GatewayListResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"type": "array", "items": {"$ref": "#/definitions/GatewaySummaryResult"}}}}, "AgentccListResultResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"type": "array", "items": {"type": "object"}}}}, "GatewayDetailResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/GatewaySummaryResult"}}}, "GatewayBatchRequest": {"required": ["batch_id"], "type": "object", "properties": {"batch_id": {"title": "Batch id", "type": "string", "minLength": 1}}}, "GatewayBatchCancelResult": {"required": ["batch_id", "status"], "type": "object", "properties": {"batch_id": {"title": "Batch id", "type": "string", "minLength": 1}, "status": {"title": "Status", "type": "string", "minLength": 1}}}, "GatewayBatchCancelResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/GatewayBatchCancelResult"}}}, "GatewayConfigProvider": {"required": ["id", "name", "display_name", "base_url", "api_format", "models", "is_active", "default_timeout", "max_concurrent", "conn_pool_size"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "display_name": {"title": "Display name", "type": "string", "minLength": 1}, "base_url": {"title": "Base url", "type": "string", "x-nullable": true}, "api_format": {"title": "Api format", "description": "Gateway protocol adapter name. This intentionally remains a string because self-hosted/custom providers may register adapters outside the built-in openai/anthropic/gemini/google set.", "type": "string", "x-nullable": true}, "api_path_prefix": {"title": "Api path prefix", "type": "string", "x-nullable": true}, "models": {"type": "array", "items": {"type": "object"}}, "is_active": {"title": "Is active", "type": "boolean"}, "default_timeout": {"title": "Default timeout", "type": "integer", "x-nullable": true}, "max_concurrent": {"title": "Max concurrent", "type": "integer", "x-nullable": true}, "conn_pool_size": {"title": "Conn pool size", "type": "integer", "x-nullable": true}}}, "GatewayStatus": {"required": ["status"], "type": "object", "properties": {"status": {"title": "Status", "type": "string", "minLength": 1}}}, "GatewayConfigResult": {"required": ["providers", "gateway"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "organization": {"title": "Organization", "type": "string", "format": "uuid"}, "version": {"title": "Version", "type": "integer"}, "guardrails": {"title": "Guardrails", "type": "object"}, "routing": {"title": "Routing", "type": "object"}, "cache": {"title": "Cache", "type": "object"}, "rate_limiting": {"title": "Rate limiting", "type": "object"}, "budgets": {"title": "Budgets", "type": "object"}, "cost_tracking": {"title": "Cost tracking", "type": "object"}, "ip_acl": {"title": "Ip acl", "type": "object"}, "alerting": {"title": "Alerting", "type": "object"}, "privacy": {"title": "Privacy", "type": "object"}, "tool_policy": {"title": "Tool policy", "type": "object"}, "mcp": {"title": "Mcp", "type": "object"}, "a2a": {"title": "A2a", "type": "object"}, "audit": {"title": "Audit", "type": "object"}, "model_database": {"title": "Model database", "type": "object"}, "model_map": {"title": "Model map", "type": "object"}, "is_active": {"title": "Is active", "type": "boolean"}, "created_by": {"title": "Created by", "type": "string", "format": "uuid", "x-nullable": true}, "change_description": {"title": "Change description", "type": "string", "x-nullable": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time"}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time"}, "providers": {"title": "Providers", "type": "object", "additionalProperties": {"$ref": "#/definitions/GatewayConfigProvider"}}, "gateway": {"$ref": "#/definitions/GatewayStatus"}}}, "GatewayConfigResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/GatewayConfigResult"}}}, "GatewayBatchSummary": {"required": ["total_cost", "total_input_tokens", "total_output_tokens", "completed", "failed", "cancelled"], "type": "object", "properties": {"total_cost": {"title": "Total cost", "type": "number"}, "total_input_tokens": {"title": "Total input tokens", "type": "integer"}, "total_output_tokens": {"title": "Total output tokens", "type": "integer"}, "completed": {"title": "Completed", "type": "integer"}, "failed": {"title": "Failed", "type": "integer"}, "cancelled": {"title": "Cancelled", "type": "integer"}}}, "GatewayBatchDetailResult": {"required": ["batch_id", "status", "total", "max_concurrency", "created_at"], "type": "object", "properties": {"batch_id": {"title": "Batch id", "type": "string", "minLength": 1}, "status": {"title": "Status", "type": "string", "minLength": 1}, "total": {"title": "Total", "type": "integer"}, "max_concurrency": {"title": "Max concurrency", "type": "integer"}, "created_at": {"title": "Created at", "type": "string", "format": "date-time"}, "completed_at": {"title": "Completed at", "type": "string", "format": "date-time"}, "results": {"type": "array", "items": {"type": "object"}}, "summary": {"$ref": "#/definitions/GatewayBatchSummary"}}}, "GatewayBatchDetailResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/GatewayBatchDetailResult"}}}, "AgentccEmptyRequest": {"type": "object", "properties": {}, "additionalProperties": false}, "GatewayConfiguredProvider": {"required": ["name"], "type": "object", "properties": {"name": {"title": "Name", "type": "string", "minLength": 1}, "display_name": {"title": "Display name", "type": "string"}, "models": {"type": "array", "items": {"type": "object"}}, "status": {"title": "Status", "type": "string"}}}, "GatewayConfiguredProviders": {"required": ["providers"], "type": "object", "properties": {"providers": {"type": "array", "items": {"$ref": "#/definitions/GatewayConfiguredProvider"}}}}, "GatewayHealthResult": {"required": ["status", "providers", "provider_count", "model_count"], "type": "object", "properties": {"status": {"title": "Status", "type": "string", "minLength": 1}, "health": {"title": "Health", "type": "object"}, "providers": {"$ref": "#/definitions/GatewayConfiguredProviders"}, "provider_count": {"title": "Provider count", "type": "integer"}, "model_count": {"title": "Model count", "type": "integer"}}}, "GatewayHealthResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/GatewayHealthResult"}}}, "GatewayMCPStatusResult": {"required": ["enabled", "sessions", "tools", "resources", "prompts", "servers"], "type": "object", "properties": {"enabled": {"title": "Enabled", "type": "boolean"}, "sessions": {"title": "Sessions", "type": "integer"}, "tools": {"title": "Tools", "type": "integer"}, "resources": {"title": "Resources", "type": "integer"}, "prompts": {"title": "Prompts", "type": "integer"}, "servers": {"description": "Gateway MCP server statuses are adapter-specific objects; the Django fallback normalizes configured servers to objects with id and status.", "type": "array", "items": {"type": "object"}}}}, "GatewayMCPStatusResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/GatewayMCPStatusResult"}}}, "GatewayProviderStatus": {"required": ["id", "name", "status", "healthy", "circuit_state"], "type": "object", "properties": {"id": {"title": "Id", "description": "Provider key/name used by the gateway, not a database UUID.", "type": "string", "minLength": 1}, "name": {"title": "Name", "type": "string", "minLength": 1}, "status": {"title": "Status", "type": "string", "minLength": 1}, "healthy": {"title": "Healthy", "type": "boolean"}, "circuit_state": {"title": "Circuit state", "type": "string", "minLength": 1}, "display_name": {"title": "Display name", "type": "string"}, "base_url": {"title": "Base url", "type": "string"}, "api_format": {"title": "Api format", "description": "Gateway protocol adapter name. This intentionally remains a string because self-hosted/custom providers may register adapters outside the built-in openai/anthropic/gemini/google set.", "type": "string"}, "models": {"type": "array", "items": {"type": "object"}}, "request_count": {"title": "Request count", "type": "integer"}, "avg_latency": {"title": "Avg latency", "type": "number"}, "error_rate": {"title": "Error rate", "type": "number"}}}, "GatewayProvidersResult": {"required": ["providers"], "type": "object", "properties": {"providers": {"type": "array", "items": {"$ref": "#/definitions/GatewayProviderStatus"}}}}, "GatewayProvidersResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/GatewayProvidersResult"}}}, "GatewayMutationResult": {"type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "version": {"title": "Version", "type": "integer"}, "gateway_synced": {"title": "Gateway synced", "type": "boolean"}, "gateway_warning": {"title": "Gateway warning", "type": "string"}, "action": {"title": "Action", "type": "string"}, "provider": {"title": "Provider", "type": "string"}, "guardrail": {"title": "Guardrail", "type": "string"}, "budget": {"title": "Budget", "type": "string"}, "server": {"title": "Server", "type": "string"}, "enabled": {"title": "Enabled", "type": "boolean"}}}, "GatewayMutationResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/GatewayMutationResult"}}}, "GatewayBudgetRemoveRequest": {"required": ["level"], "type": "object", "properties": {"level": {"title": "Level", "type": "string", "minLength": 1}}}, "GatewayMCPServerRemoveRequest": {"required": ["server_id"], "type": "object", "properties": {"server_id": {"title": "Server id", "type": "string", "minLength": 1}}}, "GatewayNameRequest": {"required": ["name"], "type": "object", "properties": {"name": {"title": "Name", "type": "string", "minLength": 1}}}, "GatewayBudgetSetRequest": {"required": ["level", "config"], "type": "object", "properties": {"level": {"title": "Level", "type": "string", "minLength": 1}, "config": {"title": "Config", "type": "object", "additionalProperties": {"type": "object"}}}}, "GatewayBatchSubmitRequest": {"required": ["requests"], "type": "object", "properties": {"requests": {"type": "array", "items": {"type": "object", "additionalProperties": {"type": "object"}}}, "max_concurrency": {"title": "Max concurrency", "type": "integer", "default": 5, "minimum": 1}}}, "GatewayBatchSubmitResult": {"required": ["batch_id", "status", "total", "max_concurrency", "created_at"], "type": "object", "properties": {"batch_id": {"title": "Batch id", "type": "string", "minLength": 1}, "status": {"title": "Status", "type": "string", "minLength": 1}, "total": {"title": "Total", "type": "integer"}, "max_concurrency": {"title": "Max concurrency", "type": "integer"}, "created_at": {"title": "Created at", "type": "string", "format": "date-time"}}}, "GatewayBatchSubmitResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/GatewayBatchSubmitResult"}}}, "GatewayMCPToolTestRequest": {"required": ["name"], "type": "object", "properties": {"name": {"title": "Name", "type": "string", "minLength": 1}, "arguments": {"title": "Arguments", "type": "object", "additionalProperties": {"type": "object"}, "default": {}}}}, "GatewayMCPToolTestContent": {"required": ["type"], "type": "object", "properties": {"type": {"title": "Type", "type": "string", "minLength": 1}, "text": {"title": "Text", "type": "string"}, "data": {"title": "Data", "type": "string"}, "mimeType": {"title": "Mimetype", "type": "string"}}}, "GatewayMCPToolTestResult": {"type": "object", "properties": {"content": {"type": "array", "items": {"$ref": "#/definitions/GatewayMCPToolTestContent"}}, "is_error": {"title": "Is error", "type": "boolean"}, "duration_ms": {"title": "Duration ms", "type": "number"}, "guardrail_pre": {"title": "Guardrail pre", "type": "string", "enum": ["pass", "blocked", "skipped"]}, "guardrail_post": {"title": "Guardrail post", "type": "string", "enum": ["pass", "blocked", "skipped"]}, "error": {"title": "Error", "type": "string"}, "server": {"title": "Server", "type": "string"}}}, "GatewayMCPToolTestResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/GatewayMCPToolTestResult"}}}, "GatewayPlaygroundTestRequest": {"required": ["prompt"], "type": "object", "properties": {"prompt": {"title": "Prompt", "type": "string", "minLength": 1}, "model": {"title": "Model", "type": "string"}, "system_prompt": {"title": "System prompt", "type": "string"}}}, "GatewayPlaygroundTestResult": {"required": ["status_code", "body", "guardrail_headers", "model", "blocked", "warned"], "type": "object", "properties": {"status_code": {"title": "Status code", "type": "integer"}, "body": {"title": "Body", "type": "object"}, "guardrail_headers": {"title": "Guardrail headers", "type": "object", "additionalProperties": {"type": "string", "minLength": 1}}, "model": {"title": "Model", "type": "string", "minLength": 1}, "blocked": {"title": "Blocked", "type": "boolean"}, "warned": {"title": "Warned", "type": "boolean"}}}, "GatewayPlaygroundTestResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/GatewayPlaygroundTestResult"}}}, "GatewayToggleGuardrailRequest": {"required": ["name", "enabled"], "type": "object", "properties": {"name": {"title": "Name", "type": "string", "minLength": 1}, "enabled": {"title": "Enabled", "type": "boolean"}}}, "GatewayConfigPatchRequest": {"type": "object", "properties": {"guardrails": {"title": "Guardrails", "type": "object", "additionalProperties": {"type": "object"}}, "routing": {"title": "Routing", "type": "object", "additionalProperties": {"type": "object"}}, "cache": {"title": "Cache", "type": "object", "additionalProperties": {"type": "object"}}, "rate_limiting": {"title": "Rate limiting", "type": "object", "additionalProperties": {"type": "object"}}, "budgets": {"title": "Budgets", "type": "object", "additionalProperties": {"type": "object"}}, "cost_tracking": {"title": "Cost tracking", "type": "object", "additionalProperties": {"type": "object"}}, "ip_acl": {"title": "Ip acl", "type": "object", "additionalProperties": {"type": "object"}}, "alerting": {"title": "Alerting", "type": "object", "additionalProperties": {"type": "object"}}, "privacy": {"title": "Privacy", "type": "object", "additionalProperties": {"type": "object"}}, "tool_policy": {"title": "Tool policy", "type": "object", "additionalProperties": {"type": "object"}}, "mcp": {"title": "Mcp", "type": "object", "additionalProperties": {"type": "object"}}, "a2a": {"title": "A2a", "type": "object", "additionalProperties": {"type": "object"}}, "audit": {"title": "Audit", "type": "object", "additionalProperties": {"type": "object"}}, "model_database": {"title": "Model database", "type": "object", "additionalProperties": {"type": "object"}}, "model_map": {"title": "Model map", "type": "object", "additionalProperties": {"type": "object"}}}}, "GatewayNamedConfigRequest": {"required": ["name", "config"], "type": "object", "properties": {"name": {"title": "Name", "type": "string", "minLength": 1}, "config": {"title": "Config", "type": "object", "additionalProperties": {"type": "object", "x-json-value": true, "description": "Any valid JSON value."}}}}, "GatewayMCPGuardrailsUpdateRequest": {"required": ["config"], "type": "object", "properties": {"config": {"title": "Config", "type": "object", "additionalProperties": {"type": "object"}}}}, "GatewayMCPServerUpdateRequest": {"required": ["server_id", "config"], "type": "object", "properties": {"server_id": {"title": "Server id", "type": "string", "minLength": 1}, "config": {"title": "Config", "type": "object", "additionalProperties": {"type": "object"}}}}, "GatewayProviderUpdateRequest": {"required": ["name", "config"], "type": "object", "properties": {"name": {"title": "Name", "type": "string", "minLength": 1}, "config": {"title": "Config", "type": "object", "additionalProperties": {"type": "object", "x-json-value": true, "description": "Any valid JSON value."}}}}, "PIIEntity": {"required": ["id", "label", "category"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "minLength": 1}, "label": {"title": "Label", "type": "string", "minLength": 1}, "category": {"title": "Category", "type": "string", "minLength": 1}}}, "PIIEntitiesResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"type": "array", "items": {"$ref": "#/definitions/PIIEntity"}}}}, "TopicCategory": {"required": ["id", "label", "subcategories"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "minLength": 1}, "label": {"title": "Label", "type": "string", "minLength": 1}, "subcategories": {"type": "array", "items": {"type": "string", "minLength": 1}}}}, "TopicCategoriesResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"type": "array", "items": {"$ref": "#/definitions/TopicCategory"}}}}, "ValidateCELRequest": {"required": ["expression"], "type": "object", "properties": {"expression": {"title": "Expression", "type": "string", "minLength": 1}}}, "ValidateCELResult": {"required": ["expression", "valid"], "type": "object", "properties": {"expression": {"title": "Expression", "type": "string", "minLength": 1}, "valid": {"title": "Valid", "type": "boolean"}, "error": {"title": "Error", "type": "string", "x-nullable": true}}}, "ValidateCELResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/ValidateCELResult"}}}, "AgentccGuardrailFeedback": {"required": ["request_log", "check_name", "feedback"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "organization": {"title": "Organization", "type": "string", "format": "uuid", "readOnly": true}, "request_log": {"title": "Request log", "type": "string", "format": "uuid"}, "check_name": {"title": "Check name", "type": "string", "maxLength": 255, "minLength": 1}, "feedback": {"title": "Feedback", "type": "string", "enum": ["correct", "false_positive", "false_negative", "unsure"]}, "comment": {"title": "Comment", "type": "string"}, "created_by": {"title": "Created by", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}}}, "AgentccGuardrailPolicy": {"required": ["name"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "organization": {"title": "Organization", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "description": {"title": "Description", "type": "string"}, "scope": {"title": "Scope", "type": "string", "enum": ["global", "project", "key"]}, "checks": {"title": "Checks", "type": "object"}, "mode": {"title": "Mode", "type": "string", "enum": ["enforce", "monitor"]}, "is_active": {"title": "Is active", "type": "boolean"}, "priority": {"title": "Priority", "type": "integer", "maximum": 2147483647, "minimum": -2147483648}, "applied_keys": {"title": "Applied keys", "type": "object"}, "applied_projects": {"title": "Applied projects", "type": "object"}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}}}, "AgentccOrgConfig": {"type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "organization": {"title": "Organization", "type": "string", "format": "uuid", "readOnly": true}, "version": {"title": "Version", "type": "integer", "readOnly": true}, "guardrails": {"title": "Guardrails", "type": "object"}, "routing": {"title": "Routing", "type": "object"}, "cache": {"title": "Cache", "type": "object"}, "rate_limiting": {"title": "Rate limiting", "type": "object"}, "budgets": {"title": "Budgets", "type": "object"}, "cost_tracking": {"title": "Cost tracking", "type": "object"}, "ip_acl": {"title": "Ip acl", "type": "object"}, "alerting": {"title": "Alerting", "type": "object"}, "privacy": {"title": "Privacy", "type": "object"}, "tool_policy": {"title": "Tool policy", "type": "object"}, "mcp": {"title": "Mcp", "type": "object"}, "a2a": {"title": "A2a", "type": "object"}, "audit": {"title": "Audit", "type": "object"}, "model_database": {"title": "Model database", "type": "object"}, "model_map": {"title": "Model map", "type": "object"}, "is_active": {"title": "Is active", "type": "boolean", "readOnly": true}, "created_by": {"title": "Created by", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}, "change_description": {"title": "Change description", "type": "string"}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}}}, "OrgConfigBulkItem": {"required": ["providers", "guardrails", "routing", "cache", "rate_limiting", "budgets", "cost_tracking", "ip_acl", "alerting", "privacy", "tool_policy", "mcp", "a2a", "audit", "model_database", "model_map"], "type": "object", "properties": {"providers": {"title": "Providers", "type": "object", "additionalProperties": {"type": "object"}}, "guardrails": {"title": "Guardrails", "type": "object"}, "routing": {"title": "Routing", "type": "object"}, "cache": {"title": "Cache", "type": "object"}, "rate_limiting": {"title": "Rate limiting", "type": "object"}, "budgets": {"title": "Budgets", "type": "object"}, "cost_tracking": {"title": "Cost tracking", "type": "object"}, "ip_acl": {"title": "Ip acl", "type": "object"}, "alerting": {"title": "Alerting", "type": "object"}, "privacy": {"title": "Privacy", "type": "object"}, "tool_policy": {"title": "Tool policy", "type": "object"}, "mcp": {"title": "Mcp", "type": "object"}, "a2a": {"title": "A2a", "type": "object"}, "audit": {"title": "Audit", "type": "object"}, "model_database": {"title": "Model database", "type": "object"}, "model_map": {"title": "Model map", "type": "object"}}}, "OrgConfigBulkResponse": {"required": ["status", "result", "unbuilt_org_ids"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"title": "Result", "type": "object", "additionalProperties": {"$ref": "#/definitions/OrgConfigBulkItem"}}, "unbuilt_org_ids": {"description": "Orgs with an active config that could not be built. The gateway keeps their last good config instead of dropping them.", "type": "array", "items": {"type": "string", "minLength": 1}}}}, "AgentccProviderCredential": {"required": ["provider_name"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "organization": {"title": "Organization", "type": "string", "format": "uuid", "readOnly": true}, "workspace": {"title": "Workspace", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}, "provider_name": {"title": "Provider name", "type": "string", "maxLength": 100, "minLength": 1}, "display_name": {"title": "Display name", "type": "string", "maxLength": 255}, "credentials": {"title": "Credentials", "type": "string", "readOnly": true}, "base_url": {"title": "Base url", "type": "string", "format": "uri", "maxLength": 500}, "api_format": {"title": "Api format", "type": "string", "maxLength": 50, "minLength": 1}, "models_list": {"title": "Models list", "type": "object"}, "default_timeout_seconds": {"title": "Default timeout seconds", "type": "integer", "maximum": 2147483647, "minimum": -2147483648}, "max_concurrent": {"title": "Max concurrent", "type": "integer", "maximum": 2147483647, "minimum": -2147483648}, "conn_pool_size": {"title": "Conn pool size", "type": "integer", "maximum": 2147483647, "minimum": -2147483648}, "extra_config": {"title": "Extra config", "type": "object"}, "is_active": {"title": "Is active", "type": "boolean"}, "last_rotated_at": {"title": "Last rotated at", "type": "string", "format": "date-time", "x-nullable": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}}}, "AgentccRequestLogMetadataValues": {"required": ["application", "service", "tags"], "type": "object", "properties": {"application": {"type": "array", "items": {"type": "string", "minLength": 1}}, "service": {"type": "array", "items": {"type": "string", "minLength": 1}}, "tags": {"description": "key:value pairs, for keys declared as custom properties.", "type": "array", "items": {"type": "string", "minLength": 1}}}}, "AgentccRequestLogMetadataValuesResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/AgentccRequestLogMetadataValues"}}}, "AgentccRequestLogDetail": {"type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "request_id": {"title": "Request id", "type": "string", "readOnly": true, "minLength": 1}, "model": {"title": "Model", "type": "string", "readOnly": true, "minLength": 1}, "provider": {"title": "Provider", "type": "string", "readOnly": true, "minLength": 1}, "resolved_model": {"title": "Resolved model", "type": "string", "readOnly": true, "minLength": 1}, "latency_ms": {"title": "Latency ms", "type": "integer", "readOnly": true}, "started_at": {"title": "Started at", "type": "string", "format": "date-time", "readOnly": true, "x-nullable": true}, "input_tokens": {"title": "Input tokens", "type": "integer", "readOnly": true}, "output_tokens": {"title": "Output tokens", "type": "integer", "readOnly": true}, "total_tokens": {"title": "Total tokens", "type": "integer", "readOnly": true}, "cost": {"title": "Cost", "type": "string", "format": "decimal", "readOnly": true}, "status_code": {"title": "Status code", "type": "integer", "readOnly": true}, "is_stream": {"title": "Is stream", "type": "boolean", "readOnly": true}, "is_error": {"title": "Is error", "type": "boolean", "readOnly": true}, "error_message": {"title": "Error message", "type": "string", "readOnly": true, "minLength": 1}, "cache_hit": {"title": "Cache hit", "type": "boolean", "readOnly": true}, "fallback_used": {"title": "Fallback used", "type": "boolean", "readOnly": true}, "guardrail_triggered": {"title": "Guardrail triggered", "type": "boolean", "readOnly": true}, "api_key_id": {"title": "Api key id", "type": "string", "readOnly": true, "minLength": 1}, "user_id": {"title": "User id", "type": "string", "readOnly": true, "minLength": 1}, "session_id": {"title": "Session id", "type": "string", "readOnly": true, "minLength": 1}, "routing_strategy": {"title": "Routing strategy", "type": "string", "readOnly": true, "minLength": 1}, "metadata": {"title": "Metadata", "type": "object", "readOnly": true}, "request_body": {"title": "Request body", "type": "object", "readOnly": true, "x-nullable": true}, "response_body": {"title": "Response body", "type": "object", "readOnly": true, "x-nullable": true}, "request_headers": {"title": "Request headers", "type": "object", "readOnly": true, "x-nullable": true}, "response_headers": {"title": "Response headers", "type": "object", "readOnly": true, "x-nullable": true}, "guardrail_results": {"title": "Guardrail results", "type": "object", "readOnly": true, "x-nullable": true}, "organization": {"title": "Organization", "type": "string", "format": "uuid", "readOnly": true}, "workspace": {"title": "Workspace", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}}}, "AgentccRoutingPolicy": {"required": ["name"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "organization": {"title": "Organization", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "description": {"title": "Description", "type": "string"}, "version": {"title": "Version", "type": "integer", "readOnly": true}, "config": {"title": "Config", "type": "object"}, "is_active": {"title": "Is active", "type": "boolean"}, "created_by": {"title": "Created by", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}}}, "AgentccSession": {"required": ["session_id"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "organization": {"title": "Organization", "type": "string", "format": "uuid", "readOnly": true}, "session_id": {"title": "Session id", "type": "string", "maxLength": 255, "minLength": 1}, "name": {"title": "Name", "type": "string", "maxLength": 255}, "status": {"title": "Status", "type": "string", "enum": ["active", "closed"]}, "metadata": {"title": "Metadata", "type": "object"}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}}}, "AgentccShadowExperiment": {"required": ["name", "source_model", "shadow_model", "shadow_provider"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "type": "string", "maxLength": 128, "minLength": 1}, "description": {"title": "Description", "type": "string"}, "source_model": {"title": "Source model", "description": "Production model being tested against", "type": "string", "maxLength": 255, "minLength": 1}, "shadow_model": {"title": "Shadow model", "description": "Shadow model receiving mirrored traffic", "type": "string", "maxLength": 255, "minLength": 1}, "shadow_provider": {"title": "Shadow provider", "description": "Provider for the shadow model", "type": "string", "maxLength": 128, "minLength": 1}, "sample_rate": {"title": "Sample rate", "description": "Fraction of traffic to mirror (0.0–1.0)", "type": "number"}, "status": {"title": "Status", "type": "string", "enum": ["active", "paused", "completed"]}, "total_comparisons": {"title": "Total comparisons", "type": "integer", "readOnly": true}, "config": {"title": "Config", "description": "Extra configuration", "type": "object", "x-nullable": true}, "created_by": {"title": "Created by", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}}}, "AgentccShadowResult": {"type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "experiment": {"title": "Experiment", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}, "request_id": {"title": "Request id", "type": "string", "readOnly": true, "minLength": 1}, "source_model": {"title": "Source model", "type": "string", "readOnly": true, "minLength": 1}, "shadow_model": {"title": "Shadow model", "type": "string", "readOnly": true, "minLength": 1}, "source_response": {"title": "Source response", "type": "string", "readOnly": true, "minLength": 1}, "shadow_response": {"title": "Shadow response", "type": "string", "readOnly": true, "minLength": 1}, "source_latency_ms": {"title": "Source latency ms", "type": "integer", "readOnly": true}, "shadow_latency_ms": {"title": "Shadow latency ms", "type": "integer", "readOnly": true}, "source_tokens": {"title": "Source tokens", "type": "integer", "readOnly": true}, "shadow_tokens": {"title": "Shadow tokens", "type": "integer", "readOnly": true}, "source_status_code": {"title": "Source status code", "type": "integer", "readOnly": true}, "shadow_status_code": {"title": "Shadow status code", "type": "integer", "readOnly": true}, "shadow_error": {"title": "Shadow error", "type": "string", "readOnly": true, "minLength": 1}, "prompt_hash": {"title": "Prompt hash", "type": "string", "readOnly": true, "minLength": 1}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}}}, "SpendSummaryOrg": {"required": ["total_spend", "per_key", "per_user", "per_model"], "type": "object", "properties": {"total_spend": {"title": "Total spend", "type": "number"}, "per_key": {"title": "Per key", "type": "object", "additionalProperties": {"type": "number"}}, "per_user": {"title": "Per user", "type": "object", "additionalProperties": {"type": "number"}}, "per_model": {"title": "Per model", "type": "object", "additionalProperties": {"type": "number"}}}}, "SpendSummaryResult": {"required": ["period", "period_start", "orgs"], "type": "object", "properties": {"period": {"title": "Period", "type": "string", "enum": ["daily", "weekly", "monthly", "total"]}, "period_start": {"title": "Period start", "type": "string", "format": "date-time"}, "orgs": {"title": "Orgs", "type": "object", "additionalProperties": {"$ref": "#/definitions/SpendSummaryOrg"}}}}, "SpendSummaryResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/SpendSummaryResult"}}}, "AgentccWebhookEvent": {"type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "organization": {"title": "Organization", "type": "string", "format": "uuid", "readOnly": true}, "webhook": {"title": "Webhook", "type": "string", "format": "uuid", "readOnly": true}, "webhook_name": {"title": "Webhook name", "type": "string", "readOnly": true, "minLength": 1}, "event_type": {"title": "Event type", "type": "string", "readOnly": true, "minLength": 1}, "payload": {"title": "Payload", "type": "object", "readOnly": true}, "status": {"title": "Status", "type": "string", "enum": ["pending", "delivered", "failed", "dead_letter"], "readOnly": true}, "attempts": {"title": "Attempts", "type": "integer", "readOnly": true}, "max_attempts": {"title": "Max attempts", "type": "integer", "readOnly": true}, "last_attempt_at": {"title": "Last attempt at", "type": "string", "format": "date-time", "readOnly": true, "x-nullable": true}, "last_response_code": {"title": "Last response code", "type": "integer", "readOnly": true, "x-nullable": true}, "last_error": {"title": "Last error", "type": "string", "readOnly": true, "minLength": 1}, "next_retry_at": {"title": "Next retry at", "type": "string", "format": "date-time", "readOnly": true, "x-nullable": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}}}, "WebhookLogsRequest": {"type": "object", "properties": {"gateway_id": {"title": "Gateway id", "type": "string"}, "logs": {"type": "array", "items": {"type": "object", "additionalProperties": {"type": "string", "x-nullable": true}}}}}, "WebhookIngestResult": {"required": ["ingested"], "type": "object", "properties": {"ingested": {"title": "Ingested", "type": "integer"}}}, "WebhookIngestResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/WebhookIngestResult"}}}, "ShadowResultsWebhookRequest": {"type": "object", "properties": {"results": {"type": "array", "items": {"type": "object", "additionalProperties": {"type": "string", "x-nullable": true}}}}}, "AgentccWebhook": {"required": ["name", "url"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "organization": {"title": "Organization", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "url": {"title": "Url", "type": "string", "format": "uri", "maxLength": 2048, "minLength": 1}, "secret": {"title": "Secret", "type": "string", "maxLength": 255}, "events": {"title": "Events", "type": "object"}, "is_active": {"title": "Is active", "type": "boolean"}, "headers": {"title": "Headers", "type": "object"}, "description": {"title": "Description", "type": "string"}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}}}, "ToolParameter": {"type": "object", "properties": {"name": {"title": "Name", "type": "string", "readOnly": true, "minLength": 1}, "type": {"title": "Type", "type": "string", "readOnly": true, "minLength": 1}, "description": {"title": "Description", "type": "string", "readOnly": true}, "required": {"title": "Required", "type": "boolean", "readOnly": true}}}, "ToolDiscoveryItem": {"type": "object", "properties": {"name": {"title": "Name", "type": "string", "readOnly": true, "minLength": 1}, "category": {"title": "Category", "type": "string", "readOnly": true, "minLength": 1}, "description": {"title": "Description", "type": "string", "readOnly": true}, "parameters": {"type": "array", "items": {"$ref": "#/definitions/ToolParameter"}, "readOnly": true}, "returns": {"title": "Returns", "type": "object", "readOnly": true, "x-nullable": true}, "metadata": {"title": "Metadata", "type": "object", "readOnly": true, "x-nullable": true}}}, "ToolDiscoveryResult": {"type": "object", "properties": {"tools": {"type": "array", "items": {"$ref": "#/definitions/ToolDiscoveryItem"}, "readOnly": true}, "categories": {"type": "array", "items": {"type": "string", "minLength": 1}, "readOnly": true}, "total": {"title": "Total", "type": "integer", "readOnly": true}}}, "ToolDiscoveryResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/ToolDiscoveryResult"}}}, "ApiDetailErrorResponse": {"required": ["detail"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": false}, "type": {"title": "Type", "type": "string", "enum": ["validation_error", "authentication_error", "payment_required", "entitlement_error", "permission_error", "not_found", "conflict", "client_error", "rate_limit", "server_error", "service_unavailable", "timeout", "api_error"], "x-nullable": true}, "code": {"title": "Code", "type": "string", "x-nullable": true}, "detail": {"title": "Detail", "type": "string"}, "result": {"title": "Result", "type": "string", "minLength": 1, "x-nullable": true}, "message": {"title": "Message", "type": "string", "minLength": 1, "x-nullable": true}, "error": {"title": "Error", "type": "string", "x-nullable": true}, "attr": {"title": "Attr", "type": "string", "x-nullable": true}, "details": {"title": "Details", "type": "object", "additionalProperties": {"type": "array", "items": {"type": "string", "minLength": 1}}}}}, "ApiTextErrorResponse": {"type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": false}, "type": {"title": "Type", "type": "string", "enum": ["validation_error", "authentication_error", "payment_required", "entitlement_error", "permission_error", "not_found", "conflict", "client_error", "rate_limit", "server_error", "service_unavailable", "timeout", "api_error"], "x-nullable": true}, "code": {"title": "Code", "type": "string", "x-nullable": true}, "detail": {"title": "Detail", "type": "string", "x-nullable": true}, "result": {"title": "Result", "type": "string", "minLength": 1, "x-nullable": true}, "message": {"title": "Message", "type": "string", "minLength": 1, "x-nullable": true}, "error": {"title": "Error", "type": "string", "x-nullable": true}, "attr": {"title": "Attr", "type": "string", "x-nullable": true}, "details": {"title": "Details", "type": "object", "additionalProperties": {"type": "array", "items": {"type": "string", "minLength": 1}}}}}, "CapabilityFeature": {"required": ["display_name", "allowed", "reason_code", "requires_network", "oss_baseline"], "type": "object", "properties": {"display_name": {"title": "Display name", "type": "string", "minLength": 1}, "allowed": {"title": "Allowed", "type": "boolean"}, "reason_code": {"title": "Reason code", "type": "string", "enum": ["FEATURE_UNKNOWN", "LICENSE_MISSING", "LICENSE_INVALID", "LICENSE_EXPIRED", "LICENSE_TRIAL_EXPIRED", "LICENSE_FEATURE_MISSING", "FEATURE_NOT_IN_GRACE", "EE_CODE_UNAVAILABLE", "RESOLVER_UNAVAILABLE", "QUOTA_EXCEEDED", "SERVICE_UNAVAILABLE", "NETWORK_REQUIRED", "USAGE_LIMIT_REACHED", "PLAN_FEATURE_MISSING", "LICENSE_VERSION_UNSUPPORTED"], "x-nullable": true}, "requires_network": {"title": "Requires network", "type": "boolean", "x-nullable": true}, "oss_baseline": {"title": "Oss baseline", "type": "boolean"}}}, "LicenseDetails": {"required": ["issued_to", "band", "license_type", "expires_at", "grace_ends_at", "features_count", "state"], "type": "object", "properties": {"issued_to": {"title": "Issued to", "type": "string", "x-nullable": true}, "band": {"title": "Band", "type": "string", "x-nullable": true}, "license_type": {"title": "License type", "type": "string", "enum": ["production", "trial"], "x-nullable": true}, "expires_at": {"title": "Expires at", "type": "string", "format": "date-time", "x-nullable": true}, "grace_ends_at": {"title": "Grace ends at", "type": "string", "format": "date-time", "x-nullable": true}, "features_count": {"title": "Features count", "type": "integer", "minimum": 0}, "state": {"title": "State", "type": "string", "enum": ["not_applicable", "missing", "invalid", "active", "grace", "expired", "trial_active", "trial_expired"]}}, "x-nullable": true}, "CapabilitiesResponse": {"required": ["deployment_flavor", "display_mode", "license_state", "features"], "type": "object", "properties": {"deployment_flavor": {"title": "Deployment flavor", "type": "string", "enum": ["oss_image", "self_hosted_ee_image", "cloud_image"]}, "display_mode": {"title": "Display mode", "type": "string", "enum": ["oss", "oss_locked", "enterprise", "cloud"]}, "license_state": {"title": "License state", "type": "string", "enum": ["not_applicable", "missing", "invalid", "active", "grace", "expired", "trial_active", "trial_expired"]}, "features": {"title": "Features", "type": "object", "additionalProperties": {"$ref": "#/definitions/CapabilityFeature"}}, "license": {"$ref": "#/definitions/LicenseDetails"}, "instance_id": {"title": "Instance id", "type": "string", "format": "uuid", "x-nullable": true}}}, "DeploymentInfoResult": {"required": ["mode"], "type": "object", "properties": {"mode": {"title": "Mode", "type": "string", "enum": ["oss", "ee", "cloud"]}}}, "DeploymentInfoResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/DeploymentInfoResult"}}}, "ClickHouseHealthResponse": {"required": ["status", "clickhouse_connected", "cdc_lag", "routing"], "type": "object", "properties": {"status": {"title": "Status", "type": "string", "enum": ["healthy", "degraded", "unhealthy", "disabled"]}, "clickhouse_connected": {"title": "Clickhouse connected", "type": "boolean"}, "cdc_lag": {"title": "Cdc lag", "type": "object", "additionalProperties": {"type": "number"}}, "routing": {"title": "Routing", "type": "object", "additionalProperties": {"type": "object"}}, "error": {"title": "Error", "type": "string", "minLength": 1}}}, "ClickHouseHealthErrorResponse": {"type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": false}, "type": {"title": "Type", "type": "string", "enum": ["validation_error", "authentication_error", "payment_required", "entitlement_error", "permission_error", "not_found", "conflict", "client_error", "rate_limit", "server_error", "service_unavailable", "timeout", "api_error"], "x-nullable": true}, "code": {"title": "Code", "type": "string", "x-nullable": true}, "detail": {"title": "Detail", "type": "string", "x-nullable": true}, "result": {"title": "Result", "type": "string", "minLength": 1, "x-nullable": true}, "message": {"title": "Message", "type": "string", "minLength": 1, "x-nullable": true}, "error": {"title": "Error", "type": "string", "x-nullable": true}, "attr": {"title": "Attr", "type": "string", "x-nullable": true}, "details": {"title": "Details", "type": "object", "additionalProperties": {"type": "array", "items": {"type": "string", "minLength": 1}}}, "health_status": {"title": "Health status", "type": "string", "enum": ["healthy", "degraded", "unhealthy", "disabled"]}, "clickhouse_connected": {"title": "Clickhouse connected", "type": "boolean"}, "cdc_lag": {"title": "Cdc lag", "type": "object", "additionalProperties": {"type": "number"}}, "routing": {"title": "Routing", "type": "object", "additionalProperties": {"type": "object"}}}}, "LangfuseHealthResponse": {"required": ["status", "version"], "type": "object", "properties": {"status": {"title": "Status", "type": "string", "enum": ["OK"]}, "version": {"title": "Version", "type": "string", "minLength": 1}}}, "LangfuseIngestionEvent": {"required": ["type"], "type": "object", "properties": {"id": {"title": "Id", "type": "string"}, "type": {"title": "Type", "type": "string", "minLength": 1}, "body": {"title": "Body", "type": "object", "x-nullable": true}, "timestamp": {"title": "Timestamp", "type": "string"}}}, "LangfuseIngestionRequest": {"required": ["batch"], "type": "object", "properties": {"batch": {"type": "array", "items": {"$ref": "#/definitions/LangfuseIngestionEvent"}}}}, "LangfuseIngestionSuccess": {"required": ["id", "status"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "minLength": 1}, "status": {"title": "Status", "type": "integer"}}}, "LangfuseIngestionError": {"required": ["id", "status", "message"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "minLength": 1}, "status": {"title": "Status", "type": "integer"}, "message": {"title": "Message", "type": "string", "minLength": 1}}}, "LangfuseIngestionResponse": {"required": ["successes", "errors"], "type": "object", "properties": {"successes": {"type": "array", "items": {"$ref": "#/definitions/LangfuseIngestionSuccess"}}, "errors": {"type": "array", "items": {"$ref": "#/definitions/LangfuseIngestionError"}}}}, "LangfuseTracesMeta": {"required": ["page", "limit", "total_items", "total_pages"], "type": "object", "properties": {"page": {"title": "Page", "type": "integer"}, "limit": {"title": "Limit", "type": "integer"}, "total_items": {"title": "Total items", "type": "integer"}, "total_pages": {"title": "Total pages", "type": "integer"}}}, "LangfuseTracesResponse": {"required": ["data", "meta"], "type": "object", "properties": {"data": {"type": "array", "items": {"type": "object"}}, "meta": {"$ref": "#/definitions/LangfuseTracesMeta"}}}, "SetupCheck": {"required": ["id", "label", "status", "required", "detail", "fix", "docs_url"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "minLength": 1}, "label": {"title": "Label", "type": "string", "minLength": 1}, "status": {"title": "Status", "type": "string", "enum": ["passed", "warning", "failed", "skipped"]}, "required": {"title": "Required", "type": "boolean"}, "detail": {"title": "Detail", "type": "string"}, "fix": {"title": "Fix", "type": "string"}, "docs_url": {"title": "Docs url", "type": "string"}}}, "SetupChecksResult": {"required": ["status", "mode", "setup", "collector_http_url", "account_exists", "checks"], "type": "object", "properties": {"status": {"title": "Status", "type": "string", "enum": ["ok", "issues"]}, "mode": {"title": "Mode", "type": "string", "enum": ["live", "experiment"]}, "setup": {"title": "Setup", "type": "string", "enum": ["standalone", "distributed", "helm"]}, "collector_http_url": {"title": "Collector http url", "type": "string", "minLength": 1}, "account_exists": {"title": "Account exists", "type": "boolean"}, "checks": {"type": "array", "items": {"$ref": "#/definitions/SetupCheck"}}}}, "SetupChecksResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/SetupChecksResult"}}}, "SpanAttributeTypeSummary": {"required": ["type", "count", "unique_values"], "type": "object", "properties": {"type": {"title": "Type", "type": "string", "enum": ["string", "number", "boolean", "array", "map", "json"]}, "count": {"title": "Count", "type": "integer", "minimum": 0}, "unique_values": {"title": "Unique values", "type": "integer", "minimum": 0}}}, "SpanAttributeTopValue": {"required": ["value", "count", "percentage"], "type": "object", "properties": {"value": {"title": "Value", "type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}, "type": {"title": "Type", "type": "string", "enum": ["string", "number", "boolean", "array", "map", "json"]}, "count": {"title": "Count", "type": "integer"}, "percentage": {"title": "Percentage", "type": "number"}}}, "SpanAttributeNumericStats": {"type": "object", "properties": {"min": {"title": "Min", "type": "number", "x-nullable": true}, "max": {"title": "Max", "type": "number", "x-nullable": true}, "avg": {"title": "Avg", "type": "number", "x-nullable": true}, "p50": {"title": "P50", "type": "number", "x-nullable": true}, "p95": {"title": "P95", "type": "number", "x-nullable": true}}}, "SpanAttributeDetailResponse": {"required": ["key", "type", "count", "query_complete", "query_status", "query_sampled"], "type": "object", "properties": {"key": {"title": "Key", "type": "string", "minLength": 1}, "type": {"title": "Type", "type": "string", "enum": ["string", "number", "boolean", "array", "map", "json"], "x-nullable": true}, "count": {"title": "Count", "type": "integer"}, "unique_values": {"title": "Unique values", "type": "integer"}, "types": {"type": "array", "items": {"$ref": "#/definitions/SpanAttributeTypeSummary"}}, "top_values": {"type": "array", "items": {"$ref": "#/definitions/SpanAttributeTopValue"}}, "min": {"title": "Min", "type": "number", "x-nullable": true}, "max": {"title": "Max", "type": "number", "x-nullable": true}, "avg": {"title": "Avg", "type": "number", "x-nullable": true}, "p50": {"title": "P50", "type": "number", "x-nullable": true}, "p95": {"title": "P95", "type": "number", "x-nullable": true}, "stats": {"$ref": "#/definitions/SpanAttributeNumericStats"}, "query_complete": {"title": "Query complete", "type": "boolean"}, "query_status": {"title": "Query status", "type": "string", "enum": ["complete", "pending", "sampled", "degraded"]}, "query_sampled": {"title": "Query sampled", "type": "boolean"}, "query_error_code": {"title": "Query error code", "type": "string", "enum": ["sample_limit", "read_budget_exceeded", "query_failed"]}, "query_window_start": {"title": "Query window start", "type": "string", "format": "date-time"}, "query_window_end": {"title": "Query window end", "type": "string", "format": "date-time"}, "query_count": {"title": "Query count", "type": "integer", "minimum": 0}, "query_elapsed_ms": {"title": "Query elapsed ms", "type": "number", "minimum": 0}, "query_completed_at": {"title": "Query completed at", "type": "string", "format": "date-time"}, "query_cached": {"title": "Query cached", "type": "boolean"}, "query_refreshing": {"title": "Query refreshing", "type": "boolean"}, "query_refresh_failed": {"title": "Query refresh failed", "type": "boolean"}}}, "SpanAttributeKey": {"required": ["key", "type", "count"], "type": "object", "properties": {"key": {"title": "Key", "type": "string", "minLength": 1}, "type": {"title": "Type", "type": "string", "enum": ["string", "number", "boolean", "array", "map", "json"]}, "count": {"title": "Count", "type": "integer"}, "count_exact": {"title": "Count exact", "type": "boolean"}, "types": {"type": "array", "items": {"type": "string", "enum": ["string", "number", "boolean", "array", "map", "json"]}}}}, "SpanAttributeKeysResponse": {"required": ["result", "query_complete", "query_status", "query_window_start", "query_window_end"], "type": "object", "properties": {"result": {"type": "array", "items": {"$ref": "#/definitions/SpanAttributeKey"}}, "total_count": {"title": "Total count", "type": "integer", "minimum": 0}, "query_complete": {"title": "Query complete", "type": "boolean"}, "query_status": {"title": "Query status", "type": "string", "enum": ["complete", "sampled", "degraded"]}, "query_error_code": {"title": "Query error code", "type": "string", "enum": ["sample_limit", "read_budget_exceeded", "query_failed"]}, "query_window_start": {"title": "Query window start", "type": "string", "format": "date-time"}, "query_window_end": {"title": "Query window end", "type": "string", "format": "date-time"}, "query_window_mode": {"title": "Query window mode", "type": "string", "enum": ["frozen_snapshot"]}, "query_count": {"title": "Query count", "type": "integer", "minimum": 0}, "has_more": {"title": "Has more", "type": "boolean"}, "next_cursor": {"title": "Next cursor", "type": "string", "maxLength": 8192, "minLength": 1, "x-nullable": true}, "browse_mode": {"title": "Browse mode", "type": "string", "enum": ["recent_suggestions"]}, "browse_status": {"title": "Browse status", "type": "string", "enum": ["continuation", "exhausted", "limit_reached"]}, "browse_limit": {"title": "Browse limit", "type": "integer", "minimum": 1}, "lookup_mode": {"title": "Lookup mode", "type": "string", "enum": ["exact"]}, "exact_match": {"title": "Exact match", "type": "boolean"}}}, "SpanAttributeValue": {"required": ["value", "count"], "type": "object", "properties": {"value": {"title": "Value", "type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}, "count": {"title": "Count", "type": "integer"}, "type": {"title": "Type", "type": "string", "enum": ["string", "number", "boolean", "array", "map", "json"]}}}, "SpanAttributeValuesResponse": {"required": ["result", "query_complete", "query_status", "query_window_start", "query_window_end"], "type": "object", "properties": {"result": {"type": "array", "items": {"$ref": "#/definitions/SpanAttributeValue"}}, "query_complete": {"title": "Query complete", "type": "boolean"}, "query_status": {"title": "Query status", "type": "string", "enum": ["complete", "sampled", "degraded"]}, "query_error_code": {"title": "Query error code", "type": "string", "enum": ["sample_limit", "read_budget_exceeded", "query_failed"]}, "query_window_start": {"title": "Query window start", "type": "string", "format": "date-time"}, "query_window_end": {"title": "Query window end", "type": "string", "format": "date-time"}}}, "CallWebsocketRequest": {"required": ["message"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}, "send_to_uuid": {"title": "Send to uuid", "type": "boolean", "default": false}, "uuid": {"title": "Uuid", "type": "string"}}}, "CallWebsocketResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"title": "Result", "type": "string", "minLength": 1}}}, "CallWebsocketErrorResponse": {"required": ["result", "message"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": false}, "type": {"title": "Type", "type": "string", "enum": ["validation_error", "authentication_error", "payment_required", "entitlement_error", "permission_error", "not_found", "conflict", "client_error", "rate_limit", "server_error", "service_unavailable", "timeout", "api_error"], "x-nullable": true}, "code": {"title": "Code", "type": "string", "x-nullable": true}, "detail": {"title": "Detail", "type": "string", "x-nullable": true}, "result": {"title": "Result", "type": "string", "minLength": 1}, "message": {"title": "Message", "type": "string", "minLength": 1}, "error": {"title": "Error", "type": "string", "x-nullable": true}, "attr": {"title": "Attr", "type": "string", "x-nullable": true}, "details": {"title": "Details", "type": "object", "additionalProperties": {"type": "array", "items": {"type": "string", "minLength": 1}}}}}, "FalconConversationList": {"type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "title": {"title": "Title", "type": "string", "maxLength": 255, "minLength": 1}, "context_page": {"title": "Context page", "type": "string", "maxLength": 500}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}, "message_count": {"title": "Message count", "type": "integer", "readOnly": true}, "last_message_at": {"title": "Last message at", "type": "string", "format": "date-time", "readOnly": true}}}, "ConversationListResponse": {"required": ["status", "results", "total", "limit", "offset", "has_more"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "results": {"type": "array", "items": {"$ref": "#/definitions/FalconConversationList"}}, "total": {"title": "Total", "type": "integer"}, "limit": {"title": "Limit", "type": "integer"}, "offset": {"title": "Offset", "type": "integer"}, "has_more": {"title": "Has more", "type": "boolean"}}}, "FalconErrorResponse": {"type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": false}, "type": {"title": "Type", "type": "string", "enum": ["validation_error", "authentication_error", "payment_required", "entitlement_error", "permission_error", "not_found", "conflict", "client_error", "rate_limit", "server_error", "service_unavailable", "timeout", "api_error"], "x-nullable": true}, "code": {"title": "Code", "type": "string", "x-nullable": true}, "detail": {"title": "Detail", "type": "string", "x-nullable": true}, "result": {"title": "Result", "type": "string", "minLength": 1, "x-nullable": true}, "message": {"title": "Message", "type": "string", "minLength": 1, "x-nullable": true}, "error": {"title": "Error", "type": "string", "x-nullable": true}, "attr": {"title": "Attr", "type": "string", "x-nullable": true}, "details": {"title": "Details", "type": "object", "additionalProperties": {"type": "array", "items": {"type": "string", "minLength": 1}}}}}, "ConversationCreateRequest": {"type": "object", "properties": {"title": {"title": "Title", "type": "string", "maxLength": 255}, "context_page": {"title": "Context page", "type": "string", "maxLength": 500}, "hidden": {"title": "Hidden", "type": "boolean", "default": false}}}, "FalconMessage": {"required": ["conversation", "role"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "conversation": {"title": "Conversation", "type": "string", "format": "uuid"}, "role": {"title": "Role", "type": "string", "enum": ["user", "assistant", "system"]}, "content": {"title": "Content", "type": "string", "minLength": 1}, "thoughts": {"title": "Thoughts", "type": "object"}, "tool_calls": {"title": "Tool calls", "type": "object"}, "completion_card": {"title": "Completion card", "type": "object", "x-nullable": true}, "files": {"title": "Files", "type": "object"}, "feedback": {"title": "Feedback", "type": "string", "maxLength": 20}, "input_tokens": {"title": "Input tokens", "type": "integer", "maximum": 2147483647, "minimum": 0}, "output_tokens": {"title": "Output tokens", "type": "integer", "maximum": 2147483647, "minimum": 0}, "model_used": {"title": "Model used", "type": "string", "maxLength": 100}, "latency_ms": {"title": "Latency ms", "type": "integer", "maximum": 2147483647, "minimum": 0}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}}}, "FalconConversationDetail": {"type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "user": {"title": "User", "type": "string", "format": "uuid", "readOnly": true}, "organization": {"title": "Organization", "type": "string", "format": "uuid", "readOnly": true}, "workspace": {"title": "Workspace", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}, "title": {"title": "Title", "type": "string", "maxLength": 255, "minLength": 1}, "context_page": {"title": "Context page", "type": "string", "maxLength": 500}, "metadata": {"title": "Metadata", "type": "object"}, "messages": {"type": "array", "items": {"$ref": "#/definitions/FalconMessage"}, "readOnly": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}}}, "ConversationDetailResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/FalconConversationDetail"}}}, "ConversationUpdateRequest": {"type": "object", "properties": {"title": {"title": "Title", "type": "string", "maxLength": 255}}}, "StreamStatusResult": {"required": ["stream_status"], "type": "object", "properties": {"stream_status": {"title": "Stream status", "type": "string", "minLength": 1}}}, "StreamStatusResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/StreamStatusResult"}}}, "FileUploadResult": {"required": ["id", "name", "size", "content_type", "url"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "size": {"title": "Size", "type": "integer"}, "content_type": {"title": "Content type", "type": "string", "minLength": 1}, "url": {"title": "Url", "type": "string", "format": "uri", "minLength": 1}}}, "FileUploadResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/FileUploadResult"}}}, "MCPConnectorList": {"required": ["name", "server_url"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "type": "string", "maxLength": 100, "minLength": 1}, "server_url": {"title": "Server url", "type": "string", "format": "uri", "maxLength": 200, "minLength": 1}, "transport": {"title": "Transport", "type": "string", "enum": ["sse", "streamable_http"]}, "auth_type": {"title": "Auth type", "type": "string", "enum": ["none", "api_key", "bearer", "oauth"]}, "is_active": {"title": "Is active", "type": "boolean"}, "is_verified": {"title": "Is verified", "type": "boolean"}, "tool_count": {"title": "Tool count", "type": "string", "readOnly": true}, "last_discovery_at": {"title": "Last discovery at", "type": "string", "format": "date-time", "x-nullable": true}, "last_error": {"title": "Last error", "type": "string"}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}}}, "MCPConnectorListResponse": {"required": ["status", "results"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "results": {"type": "array", "items": {"$ref": "#/definitions/MCPConnectorList"}}}}, "MCPConnectorCreate": {"required": ["name", "server_url"], "type": "object", "properties": {"name": {"title": "Name", "type": "string", "maxLength": 100, "minLength": 1}, "server_url": {"title": "Server url", "type": "string", "format": "uri", "minLength": 1}, "transport": {"title": "Transport", "type": "string", "enum": ["sse", "streamable_http"], "default": "streamable_http"}, "auth_type": {"title": "Auth type", "type": "string", "enum": ["none", "api_key", "bearer", "oauth"], "default": "none"}, "auth_header_name": {"title": "Auth header name", "type": "string", "default": "Authorization", "maxLength": 100}, "auth_header_value": {"title": "Auth header value", "type": "string", "default": ""}}}, "MCPConnectorDetail": {"required": ["name", "server_url"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "type": "string", "maxLength": 100, "minLength": 1}, "server_url": {"title": "Server url", "type": "string", "format": "uri", "maxLength": 200, "minLength": 1}, "transport": {"title": "Transport", "type": "string", "enum": ["sse", "streamable_http"]}, "auth_type": {"title": "Auth type", "type": "string", "enum": ["none", "api_key", "bearer", "oauth"]}, "auth_header_name": {"title": "Auth header name", "type": "string", "maxLength": 100}, "is_active": {"title": "Is active", "type": "boolean"}, "is_verified": {"title": "Is verified", "type": "boolean"}, "discovered_tools": {"title": "Discovered tools", "type": "object"}, "enabled_tool_names": {"title": "Enabled tool names", "type": "object"}, "last_discovery_at": {"title": "Last discovery at", "type": "string", "format": "date-time", "x-nullable": true}, "last_error": {"title": "Last error", "type": "string"}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}}}, "MCPConnectorDetailResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/MCPConnectorDetail"}}}, "MCPConnectorUpdateRequest": {"type": "object", "properties": {"name": {"title": "Name", "type": "string", "maxLength": 100}, "server_url": {"title": "Server url", "type": "string", "format": "uri", "minLength": 1}, "transport": {"title": "Transport", "type": "string", "enum": ["sse", "streamable_http"]}, "auth_type": {"title": "Auth type", "type": "string", "enum": ["none", "api_key", "bearer", "oauth"]}, "auth_header_name": {"title": "Auth header name", "type": "string", "maxLength": 100}, "auth_header_value": {"title": "Auth header value", "type": "string"}, "is_active": {"title": "Is active", "type": "boolean"}}}, "FalconEmptyRequest": {"type": "object", "properties": {}}, "MCPConnectorAuthenticateResponse": {"required": ["status"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/MCPConnectorDetail"}, "auth_type": {"title": "Auth type", "type": "string"}, "authorization_url": {"title": "Authorization url", "type": "string", "format": "uri", "minLength": 1}, "message": {"title": "Message", "type": "string"}}}, "MCPConnectorDiscoverResponse": {"required": ["status", "result", "discovered_count"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/MCPConnectorDetail"}, "discovered_count": {"title": "Discovered count", "type": "integer"}}}, "MCPConnectorTestResult": {"required": ["success"], "type": "object", "properties": {"success": {"title": "Success", "type": "boolean"}, "status_code": {"title": "Status code", "type": "integer"}, "error": {"title": "Error", "type": "string"}}}, "MCPConnectorTestResponse": {"required": ["status"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/MCPConnectorTestResult"}, "error": {"title": "Error", "type": "string"}}}, "MCPConnectorTools": {"required": ["enabled_tool_names"], "type": "object", "properties": {"enabled_tool_names": {"type": "array", "items": {"type": "string", "minLength": 1}}}}, "FalconMemory": {"required": ["key", "value"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "key": {"title": "Key", "type": "string", "maxLength": 200, "minLength": 1}, "value": {"title": "Value", "type": "string", "minLength": 1}, "source": {"title": "Source", "type": "string", "enum": ["user", "agent", "init"]}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}}}, "FalconMemoryListResponse": {"required": ["status", "results"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "results": {"type": "array", "items": {"$ref": "#/definitions/FalconMemory"}}}}, "FalconMemoryCreate": {"required": ["key", "value"], "type": "object", "properties": {"key": {"title": "Key", "type": "string", "maxLength": 200, "minLength": 1}, "value": {"title": "Value", "type": "string", "minLength": 1}}}, "FalconMemoryDetailResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/FalconMemory"}}}, "MessageFeedback": {"required": ["feedback"], "type": "object", "properties": {"feedback": {"title": "Feedback", "type": "string", "enum": ["thumbs_up", "thumbs_down", ""]}}}, "MessageFeedbackResult": {"required": ["feedback"], "type": "object", "properties": {"feedback": {"title": "Feedback", "type": "string"}}}, "MessageFeedbackResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/MessageFeedbackResult"}}}, "QuickAnalysis": {"required": ["prompt"], "type": "object", "properties": {"prompt": {"title": "Prompt", "type": "string", "maxLength": 8000, "minLength": 1}}}, "QuickAnalysisResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"title": "Result", "type": "string", "minLength": 1}}}, "SkillList": {"required": ["name", "slug"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "type": "string", "maxLength": 100, "minLength": 1}, "slug": {"title": "Slug", "type": "string", "format": "slug", "pattern": "^[-a-zA-Z0-9_]+$", "maxLength": 100, "minLength": 1}, "description": {"title": "Description", "type": "string", "minLength": 1}, "icon": {"title": "Icon", "type": "string", "maxLength": 50, "minLength": 1}, "is_builtin": {"title": "Is builtin", "type": "boolean"}, "is_active": {"title": "Is active", "type": "boolean"}, "tool_names": {"title": "Tool names", "type": "object"}, "trigger_phrases": {"title": "Trigger phrases", "type": "object"}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "created_by_display": {"title": "Created by display", "type": "string", "readOnly": true}}}, "SkillListResponse": {"required": ["status", "results"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "results": {"type": "array", "items": {"$ref": "#/definitions/SkillList"}}}}, "SkillCreate": {"required": ["name", "instructions", "trigger_phrases"], "type": "object", "properties": {"name": {"title": "Name", "type": "string", "maxLength": 100, "minLength": 1}, "description": {"title": "Description", "type": "string", "default": ""}, "icon": {"title": "Icon", "type": "string", "default": "mdi:star", "maxLength": 50, "minLength": 1}, "instructions": {"title": "Instructions", "type": "string", "minLength": 1}, "tool_names": {"type": "array", "items": {"type": "string", "minLength": 1}, "default": []}, "trigger_phrases": {"type": "array", "items": {"type": "string", "minLength": 1}, "minItems": 1}}}, "SkillDetail": {"required": ["name", "slug"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "type": "string", "maxLength": 100, "minLength": 1}, "slug": {"title": "Slug", "type": "string", "format": "slug", "pattern": "^[-a-zA-Z0-9_]+$", "maxLength": 100, "minLength": 1}, "description": {"title": "Description", "type": "string", "minLength": 1}, "icon": {"title": "Icon", "type": "string", "maxLength": 50, "minLength": 1}, "is_builtin": {"title": "Is builtin", "type": "boolean"}, "is_active": {"title": "Is active", "type": "boolean"}, "instructions": {"title": "Instructions", "type": "string", "minLength": 1}, "tool_names": {"title": "Tool names", "type": "object"}, "example_trajectories": {"title": "Example trajectories", "type": "object"}, "trigger_phrases": {"title": "Trigger phrases", "type": "object"}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}, "created_by_display": {"title": "Created by display", "type": "string", "readOnly": true}}}, "SkillDetailResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/SkillDetail"}}}, "SkillUpdateRequest": {"type": "object", "properties": {"name": {"title": "Name", "type": "string", "maxLength": 100, "minLength": 1}, "description": {"title": "Description", "type": "string"}, "icon": {"title": "Icon", "type": "string", "maxLength": 50, "minLength": 1}, "instructions": {"title": "Instructions", "type": "string", "minLength": 1}, "tool_names": {"type": "array", "items": {"type": "string", "minLength": 1}}, "trigger_phrases": {"type": "array", "items": {"type": "string", "minLength": 1}}, "is_active": {"title": "Is active", "type": "boolean"}}}, "HealthCheckResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"title": "Result", "type": "string", "minLength": 1}}}, "IntegrationConnectionList": {"required": ["platform", "display_name", "host_url", "external_project_name"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "platform": {"title": "Platform", "type": "string", "enum": ["langfuse", "datadog", "posthog", "pagerduty", "mixpanel", "cloud_storage", "message_queue", "linear", "slack"]}, "display_name": {"title": "Display name", "type": "string", "maxLength": 255, "minLength": 1}, "host_url": {"title": "Host url", "type": "string", "format": "uri", "maxLength": 500, "minLength": 1}, "status": {"title": "Status", "type": "string", "enum": ["active", "paused", "error", "syncing", "backfilling"]}, "status_message": {"title": "Status message", "type": "string", "x-nullable": true}, "external_project_name": {"title": "External project name", "type": "string", "maxLength": 255, "minLength": 1}, "last_synced_at": {"title": "Last synced at", "type": "string", "format": "date-time", "x-nullable": true}, "total_traces_synced": {"title": "Total traces synced", "type": "integer", "maximum": 2147483647, "minimum": 0}, "total_spans_synced": {"title": "Total spans synced", "type": "integer", "maximum": 2147483647, "minimum": 0}, "total_scores_synced": {"title": "Total scores synced", "type": "integer", "maximum": 2147483647, "minimum": 0}, "backfill_completed": {"title": "Backfill completed", "type": "boolean"}, "backfill_progress": {"title": "Backfill progress", "type": "object"}, "sync_interval_seconds": {"title": "Sync interval seconds", "type": "integer", "maximum": 1800, "minimum": 60}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}}}, "IntegrationConnectionListResult": {"required": ["metadata", "connections"], "type": "object", "properties": {"metadata": {"$ref": "#/definitions/PaginationMetadata"}, "connections": {"type": "array", "items": {"$ref": "#/definitions/IntegrationConnectionList"}}}}, "IntegrationConnectionListResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/IntegrationConnectionListResult"}}}, "IntegrationErrorResponse": {"type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": false}, "type": {"title": "Type", "type": "string", "enum": ["validation_error", "authentication_error", "payment_required", "entitlement_error", "permission_error", "not_found", "conflict", "client_error", "rate_limit", "server_error", "service_unavailable", "timeout", "api_error"], "x-nullable": true}, "code": {"title": "Code", "type": "string", "x-nullable": true}, "detail": {"title": "Detail", "type": "string", "x-nullable": true}, "result": {"title": "Result", "type": "string", "x-nullable": true}, "message": {"title": "Message", "type": "string", "x-nullable": true}, "error": {"title": "Error", "type": "string", "x-nullable": true}, "attr": {"title": "Attr", "type": "string", "x-nullable": true}, "details": {"title": "Details", "type": "object", "additionalProperties": {"type": "array", "items": {"type": "string", "minLength": 1}}}}}, "IntegrationConnectionCreate": {"required": ["platform"], "type": "object", "properties": {"platform": {"title": "Platform", "type": "string", "enum": ["langfuse", "datadog", "posthog", "pagerduty", "mixpanel", "cloud_storage", "message_queue", "linear", "slack"]}, "host_url": {"title": "Host url", "type": "string", "format": "uri", "default": "", "maxLength": 500, "minLength": 1}, "public_key": {"title": "Public key", "type": "string", "default": "", "maxLength": 500, "minLength": 1}, "secret_key": {"title": "Secret key", "type": "string", "default": "", "maxLength": 500, "minLength": 1}, "ca_certificate": {"title": "Ca certificate", "type": "string", "default": ""}, "credentials": {"title": "Credentials", "type": "object", "default": {}}, "project_id": {"title": "Project id", "description": "Existing FutureAGI project ID. If null, a new project is created.", "type": "string", "format": "uuid", "x-nullable": true}, "new_project_name": {"title": "New project name", "description": "Name for the new project (used when project_id is null).", "type": "string", "default": ""}, "backfill_option": {"title": "Backfill option", "type": "string", "enum": ["all", "from_date", "new_only"], "default": "new_only"}, "backfill_from_date": {"title": "Backfill from date", "type": "string", "format": "date-time", "x-nullable": true}, "backfill_to_date": {"title": "Backfill to date", "type": "string", "format": "date-time", "x-nullable": true}, "sync_interval_seconds": {"title": "Sync interval seconds", "type": "integer", "default": 300, "maximum": 1800, "minimum": 60}, "display_name": {"title": "Display name", "type": "string", "default": ""}, "external_project_name": {"title": "External project name", "type": "string", "default": ""}, "export_config": {"title": "Export config", "type": "object", "default": {}}}}, "IntegrationConnectionDetail": {"required": ["platform", "display_name", "host_url", "external_project_name"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "platform": {"title": "Platform", "type": "string", "enum": ["langfuse", "datadog", "posthog", "pagerduty", "mixpanel", "cloud_storage", "message_queue", "linear", "slack"]}, "display_name": {"title": "Display name", "type": "string", "maxLength": 255, "minLength": 1}, "host_url": {"title": "Host url", "type": "string", "format": "uri", "maxLength": 500, "minLength": 1}, "status": {"title": "Status", "type": "string", "enum": ["active", "paused", "error", "syncing", "backfilling"]}, "status_message": {"title": "Status message", "type": "string", "x-nullable": true}, "external_project_name": {"title": "External project name", "type": "string", "maxLength": 255, "minLength": 1}, "project": {"title": "Project", "type": "string", "format": "uuid", "x-nullable": true}, "project_name": {"title": "Project name", "type": "string", "readOnly": true}, "public_key_display": {"title": "Public key display", "type": "string", "readOnly": true}, "secret_key_display": {"title": "Secret key display", "type": "string", "readOnly": true}, "last_synced_at": {"title": "Last synced at", "type": "string", "format": "date-time", "x-nullable": true}, "sync_cursor": {"title": "Sync cursor", "type": "object"}, "sync_interval_seconds": {"title": "Sync interval seconds", "type": "integer", "maximum": 1800, "minimum": 60}, "last_error_notified_at": {"title": "Last error notified at", "type": "string", "format": "date-time", "x-nullable": true}, "backfill_from": {"title": "Backfill from", "type": "string", "format": "date-time", "x-nullable": true}, "backfill_completed": {"title": "Backfill completed", "type": "boolean"}, "backfill_progress": {"title": "Backfill progress", "type": "object"}, "total_traces_synced": {"title": "Total traces synced", "type": "integer", "maximum": 2147483647, "minimum": 0}, "total_spans_synced": {"title": "Total spans synced", "type": "integer", "maximum": 2147483647, "minimum": 0}, "total_scores_synced": {"title": "Total scores synced", "type": "integer", "maximum": 2147483647, "minimum": 0}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}, "created_by": {"title": "Created by", "type": "string", "format": "uuid", "x-nullable": true}}}, "IntegrationConnectionDetailResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/IntegrationConnectionDetail"}}}, "ValidateCredentials": {"required": ["platform"], "type": "object", "properties": {"platform": {"title": "Platform", "type": "string", "enum": ["langfuse", "datadog", "posthog", "pagerduty", "mixpanel", "cloud_storage", "message_queue", "linear", "slack"]}, "host_url": {"title": "Host url", "type": "string", "format": "uri", "default": "", "maxLength": 500, "minLength": 1}, "public_key": {"title": "Public key", "type": "string", "default": "", "maxLength": 500, "minLength": 1}, "secret_key": {"title": "Secret key", "type": "string", "default": "", "maxLength": 500, "minLength": 1}, "ca_certificate": {"title": "Ca certificate", "type": "string", "default": ""}, "credentials": {"title": "Credentials", "type": "object", "default": {}}}}, "IntegrationValidationProject": {"type": "object", "properties": {"id": {"title": "Id", "type": "string", "x-nullable": true}, "name": {"title": "Name", "type": "string", "x-nullable": true}}}, "IntegrationValidationViewer": {"type": "object", "properties": {"id": {"title": "Id", "type": "string", "x-nullable": true}, "name": {"title": "Name", "type": "string", "x-nullable": true}, "email": {"title": "Email", "type": "string", "format": "email", "x-nullable": true}}}, "IntegrationValidationResult": {"required": ["valid"], "type": "object", "properties": {"valid": {"title": "Valid", "type": "boolean"}, "projects": {"type": "array", "items": {"$ref": "#/definitions/IntegrationValidationProject"}}, "total_traces": {"title": "Total traces", "type": "integer", "minimum": 0}, "error": {"title": "Error", "type": "string", "x-nullable": true}, "viewer": {"$ref": "#/definitions/IntegrationValidationViewer"}}}, "IntegrationValidationResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/IntegrationValidationResult"}}}, "SlackChannel": {"required": ["id", "name", "is_private", "is_member"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "minLength": 1}, "name": {"title": "Name", "type": "string", "minLength": 1}, "is_private": {"title": "Is private", "type": "boolean"}, "is_member": {"title": "Is member", "type": "boolean"}}}, "SlackChannelsResult": {"required": ["channels", "next_cursor"], "type": "object", "properties": {"channels": {"type": "array", "items": {"$ref": "#/definitions/SlackChannel"}}, "next_cursor": {"title": "Next cursor", "type": "string", "minLength": 1, "x-nullable": true}}}, "SlackChannelsResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/SlackChannelsResult"}}}, "IntegrationConnectionUpdate": {"type": "object", "properties": {"display_name": {"title": "Display name", "type": "string", "maxLength": 255, "minLength": 1}, "public_key": {"title": "Public key", "type": "string", "maxLength": 500, "minLength": 1}, "secret_key": {"title": "Secret key", "type": "string", "maxLength": 500, "minLength": 1}, "host_url": {"title": "Host url", "type": "string", "format": "uri", "maxLength": 500, "minLength": 1}, "ca_certificate": {"title": "Ca certificate", "type": "string"}, "sync_interval_seconds": {"title": "Sync interval seconds", "type": "integer", "maximum": 3600, "minimum": 60}}}, "IntegrationEmptyRequest": {"type": "object", "properties": {}, "additionalProperties": false}, "IntegrationMessageResult": {"required": ["message"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}}}, "IntegrationMessageResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/IntegrationMessageResult"}}}, "SlackInstall": {"type": "object", "properties": {"connection_id": {"title": "Connection id", "type": "string", "format": "uuid"}}}, "SlackInstallResult": {"required": ["authorization_url"], "type": "object", "properties": {"authorization_url": {"title": "Authorization url", "type": "string", "format": "uri", "minLength": 1}}}, "SlackInstallResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/SlackInstallResult"}}}, "SyncLog": {"type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "connection": {"title": "Connection", "type": "string", "format": "uuid", "readOnly": true}, "status": {"title": "Status", "type": "string", "enum": ["success", "partial", "failed", "rate_limited", "no_new_data"], "readOnly": true}, "started_at": {"title": "Started at", "type": "string", "format": "date-time", "readOnly": true}, "completed_at": {"title": "Completed at", "type": "string", "format": "date-time", "readOnly": true, "x-nullable": true}, "traces_fetched": {"title": "Traces fetched", "type": "integer", "readOnly": true}, "traces_created": {"title": "Traces created", "type": "integer", "readOnly": true}, "traces_updated": {"title": "Traces updated", "type": "integer", "readOnly": true}, "spans_synced": {"title": "Spans synced", "type": "integer", "readOnly": true}, "scores_synced": {"title": "Scores synced", "type": "integer", "readOnly": true}, "error_message": {"title": "Error message", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "error_details": {"title": "Error details", "type": "object", "readOnly": true}, "sync_from": {"title": "Sync from", "type": "string", "format": "date-time", "readOnly": true, "x-nullable": true}, "sync_to": {"title": "Sync to", "type": "string", "format": "date-time", "readOnly": true, "x-nullable": true}}}, "SyncLogListResult": {"required": ["metadata", "sync_logs"], "type": "object", "properties": {"metadata": {"$ref": "#/definitions/PaginationMetadata"}, "sync_logs": {"type": "array", "items": {"$ref": "#/definitions/SyncLog"}}}}, "SyncLogListResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/SyncLogListResult"}}}, "MCPUsageSummary": {"required": ["total_calls", "total_sessions", "avg_latency_ms", "error_rate", "active_sessions"], "type": "object", "properties": {"total_calls": {"title": "Total calls", "type": "integer"}, "total_sessions": {"title": "Total sessions", "type": "integer"}, "avg_latency_ms": {"title": "Avg latency ms", "type": "number"}, "error_rate": {"title": "Error rate", "type": "number"}, "active_sessions": {"title": "Active sessions", "type": "integer"}}}, "MCPAnalyticsSummaryResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/MCPUsageSummary"}}}, "MCPErrorResponse": {"type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": false}, "type": {"title": "Type", "type": "string", "enum": ["validation_error", "authentication_error", "payment_required", "entitlement_error", "permission_error", "not_found", "conflict", "client_error", "rate_limit", "server_error", "service_unavailable", "timeout", "api_error"], "x-nullable": true}, "code": {"title": "Code", "type": "string", "x-nullable": true}, "detail": {"title": "Detail", "type": "string", "x-nullable": true}, "result": {"title": "Result", "type": "string", "x-nullable": true}, "message": {"title": "Message", "type": "string", "x-nullable": true}, "error": {"title": "Error", "type": "string", "x-nullable": true}, "attr": {"title": "Attr", "type": "string", "x-nullable": true}, "details": {"title": "Details", "type": "object", "additionalProperties": {"type": "array", "items": {"type": "string", "minLength": 1}}}, "retry_after": {"title": "Retry after", "type": "integer"}}}, "MCPUsageTimeline": {"required": ["timestamp", "call_count"], "type": "object", "properties": {"timestamp": {"title": "Timestamp", "type": "string", "format": "date-time"}, "call_count": {"title": "Call count", "type": "integer"}}}, "MCPAnalyticsTimelineResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"type": "array", "items": {"$ref": "#/definitions/MCPUsageTimeline"}}}}, "MCPUsageToolBreakdown": {"required": ["tool_name", "call_count", "avg_latency_ms", "error_rate"], "type": "object", "properties": {"tool_name": {"title": "Tool name", "type": "string", "minLength": 1}, "call_count": {"title": "Call count", "type": "integer"}, "avg_latency_ms": {"title": "Avg latency ms", "type": "number"}, "error_rate": {"title": "Error rate", "type": "number"}}}, "MCPAnalyticsToolsResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"type": "array", "items": {"$ref": "#/definitions/MCPUsageToolBreakdown"}}}}, "MCPToolGroupConfig": {"type": "object", "properties": {"enabled_groups": {"title": "Enabled groups", "type": "object"}, "disabled_tools": {"title": "Disabled tools", "type": "object"}, "available_groups": {"title": "Available groups", "type": "string", "readOnly": true}}}, "MCPConnectionResult": {"type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "connection_mode": {"title": "Connection mode", "type": "string", "enum": ["remote", "stdio"]}, "is_active": {"title": "Is active", "type": "boolean"}, "client_name": {"title": "Client name", "type": "string", "maxLength": 100}, "client_version": {"title": "Client version", "type": "string", "maxLength": 50}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}, "tool_config": {"$ref": "#/definitions/MCPToolGroupConfig"}, "mcp_url": {"title": "Mcp url", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}}}, "MCPConnectionResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/MCPConnectionResult"}}}, "MCPConnectionUpdate": {"type": "object", "properties": {"connection_mode": {"title": "Connection mode", "type": "string", "enum": ["remote", "stdio"]}, "is_active": {"title": "Is active", "type": "boolean"}}}, "MCPToolGroupsResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/MCPToolGroupConfig"}}}, "MCPToolGroupConfigUpdate": {"type": "object", "properties": {"enabled_groups": {"type": "array", "items": {"type": "string", "minLength": 1}}, "disabled_tools": {"type": "array", "items": {"type": "string", "minLength": 1}}}}, "MCPHealthResult": {"required": ["healthy", "tool_count", "version"], "type": "object", "properties": {"healthy": {"title": "Healthy", "type": "boolean"}, "tool_count": {"title": "Tool count", "type": "integer"}, "version": {"title": "Version", "type": "string", "minLength": 1}}}, "MCPHealthResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/MCPHealthResult"}}}, "MCPToolCallRequest": {"required": ["tool_name"], "type": "object", "properties": {"tool_name": {"title": "Tool name", "type": "string", "minLength": 1}, "params": {"title": "Params", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}, "default": {}}, "session_id": {"title": "Session id", "type": "string", "format": "uuid", "x-nullable": true}}}, "MCPToolCallResult": {"required": ["content", "data", "is_error", "error_code"], "type": "object", "properties": {"content": {"title": "Content", "type": "string", "x-nullable": true}, "data": {"title": "Data", "type": "object", "x-nullable": true}, "is_error": {"title": "Is error", "type": "boolean"}, "error_code": {"title": "Error code", "type": "string", "x-nullable": true}}}, "MCPToolCallResponse": {"required": ["status", "result", "session_id"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/MCPToolCallResult"}, "session_id": {"title": "Session id", "type": "string", "format": "uuid"}}}, "MCPToolParameter": {"type": "object", "properties": {"name": {"title": "Name", "type": "string", "readOnly": true, "minLength": 1}, "type": {"title": "Type", "type": "string", "readOnly": true, "minLength": 1}, "description": {"title": "Description", "type": "string", "readOnly": true}, "required": {"title": "Required", "type": "boolean", "readOnly": true}}}, "MCPToolDiscoveryItem": {"type": "object", "properties": {"name": {"title": "Name", "type": "string", "readOnly": true, "minLength": 1}, "category": {"title": "Category", "type": "string", "readOnly": true, "minLength": 1}, "description": {"title": "Description", "type": "string", "readOnly": true}, "parameters": {"type": "array", "items": {"$ref": "#/definitions/MCPToolParameter"}, "readOnly": true}, "input_schema": {"title": "Input schema", "type": "object", "readOnly": true}}}, "MCPToolListResult": {"required": ["tools", "total", "session_id"], "type": "object", "properties": {"tools": {"type": "array", "items": {"$ref": "#/definitions/MCPToolDiscoveryItem"}}, "total": {"title": "Total", "type": "integer"}, "session_id": {"title": "Session id", "type": "string", "format": "uuid", "x-nullable": true}}}, "MCPToolListResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/MCPToolListResult"}}}, "MCPToolGroupChoice": {"required": ["slug", "name", "description"], "type": "object", "properties": {"slug": {"title": "Slug", "type": "string", "minLength": 1}, "name": {"title": "Name", "type": "string", "minLength": 1}, "description": {"title": "Description", "type": "string", "minLength": 1}, "checked": {"title": "Checked", "type": "boolean"}, "enabled": {"title": "Enabled", "type": "boolean"}}}, "MCPOAuthApproveInfoResult": {"required": ["client_name", "client_id", "scopes", "redirect_uri", "available_groups"], "type": "object", "properties": {"client_name": {"title": "Client name", "type": "string", "minLength": 1}, "client_id": {"title": "Client id", "type": "string", "minLength": 1}, "scopes": {"type": "array", "items": {"type": "string", "minLength": 1}}, "redirect_uri": {"title": "Redirect uri", "type": "string", "minLength": 1}, "available_groups": {"type": "array", "items": {"$ref": "#/definitions/MCPToolGroupChoice"}}}}, "MCPOAuthApproveInfoResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/MCPOAuthApproveInfoResult"}}}, "MCPOAuthApproveRequest": {"required": ["request_id"], "type": "object", "properties": {"request_id": {"title": "Request id", "type": "string", "minLength": 1}, "approved": {"title": "Approved", "type": "boolean", "default": false}, "selected_groups": {"type": "array", "items": {"type": "string", "minLength": 1}, "default": []}}}, "MCPOAuthRedirectResult": {"required": ["redirect_url"], "type": "object", "properties": {"redirect_url": {"title": "Redirect url", "type": "string", "minLength": 1}}}, "MCPOAuthRedirectResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/MCPOAuthRedirectResult"}}}, "MCPOAuthAuthorizeResponseResult": {"required": ["client_name", "client_id", "redirect_uri", "state", "available_groups"], "type": "object", "properties": {"client_name": {"title": "Client name", "type": "string", "minLength": 1}, "client_id": {"title": "Client id", "type": "string", "minLength": 1}, "redirect_uri": {"title": "Redirect uri", "type": "string", "minLength": 1}, "state": {"title": "State", "type": "string"}, "available_groups": {"type": "array", "items": {"$ref": "#/definitions/MCPToolGroupChoice"}}}}, "MCPOAuthAuthorizeResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/MCPOAuthAuthorizeResponseResult"}}}, "MCPOAuthConsentRequest": {"required": ["client_id", "redirect_uri"], "type": "object", "properties": {"client_id": {"title": "Client id", "type": "string", "minLength": 1}, "redirect_uri": {"title": "Redirect uri", "type": "string", "minLength": 1}, "state": {"title": "State", "type": "string"}, "approved": {"title": "Approved", "type": "boolean", "default": false}, "selected_groups": {"type": "array", "items": {"type": "string", "minLength": 1}, "default": []}}}, "MCPOAuthTokenRequest": {"required": ["grant_type", "client_id", "client_secret"], "type": "object", "properties": {"grant_type": {"title": "Grant type", "type": "string", "enum": ["authorization_code", "refresh_token"]}, "code": {"title": "Code", "type": "string", "minLength": 1}, "refresh_token": {"title": "Refresh token", "type": "string", "minLength": 1}, "client_id": {"title": "Client id", "type": "string", "minLength": 1}, "client_secret": {"title": "Client secret", "type": "string", "minLength": 1}, "redirect_uri": {"title": "Redirect uri", "type": "string", "minLength": 1}}}, "MCPOAuthTokenResponse": {"required": ["access_token", "token_type", "expires_in", "scope"], "type": "object", "properties": {"access_token": {"title": "Access token", "type": "string", "minLength": 1}, "token_type": {"title": "Token type", "type": "string", "enum": ["Bearer"]}, "expires_in": {"title": "Expires in", "type": "integer"}, "refresh_token": {"title": "Refresh token", "type": "string", "minLength": 1}, "scope": {"title": "Scope", "type": "string"}}}, "MCPOAuthTokenErrorResponse": {"required": ["error"], "type": "object", "properties": {"error": {"title": "Error", "type": "string", "minLength": 1}, "error_description": {"title": "Error description", "type": "string", "minLength": 1}}}, "MCPSession": {"type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "status": {"title": "Status", "type": "string", "enum": ["active", "idle", "disconnected", "revoked"]}, "transport": {"title": "Transport", "type": "string", "enum": ["streamable_http", "sse", "stdio"]}, "client_name": {"title": "Client name", "type": "string", "maxLength": 100}, "client_version": {"title": "Client version", "type": "string", "maxLength": 50}, "client_os": {"title": "Client os", "type": "string", "maxLength": 50}, "started_at": {"title": "Started at", "type": "string", "format": "date-time", "readOnly": true}, "last_activity_at": {"title": "Last activity at", "type": "string", "format": "date-time", "readOnly": true}, "ended_at": {"title": "Ended at", "type": "string", "format": "date-time", "x-nullable": true}, "tool_call_count": {"title": "Tool call count", "type": "integer", "maximum": 2147483647, "minimum": 0}, "error_count": {"title": "Error count", "type": "integer", "maximum": 2147483647, "minimum": 0}}}, "MCPSessionListResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"type": "array", "items": {"$ref": "#/definitions/MCPSession"}}}}, "MCPSessionRevokeResult": {"required": ["message"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}}}, "MCPSessionRevokeResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/MCPSessionRevokeResult"}}}, "AIEvalWriterRequest": {"required": ["description"], "type": "object", "properties": {"description": {"title": "Description", "type": "string", "minLength": 1}, "output_format": {"title": "Output format", "type": "string", "enum": ["prompt", "messages", "test_data"], "default": "prompt"}}}, "AIEvalWriterResult": {"type": "object", "properties": {"prompt": {"title": "Prompt", "type": "string", "minLength": 1, "x-nullable": true}, "messages": {"type": "array", "items": {"type": "object", "additionalProperties": {"type": "string", "x-nullable": true}}, "x-nullable": true}, "test_data": {"title": "Test data", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}, "x-nullable": true}}}, "AIEvalWriterResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/AIEvalWriterResult"}}}, "ModelHubErrorResponse": {"type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "type": {"title": "Type", "type": "string", "enum": ["validation_error", "authentication_error", "payment_required", "entitlement_error", "permission_error", "not_found", "conflict", "client_error", "rate_limit", "server_error", "service_unavailable", "timeout", "api_error"], "x-nullable": true}, "code": {"title": "Code", "type": "string", "x-nullable": true}, "detail": {"title": "Detail", "type": "string", "x-nullable": true}, "result": {"title": "Result", "type": "string", "x-nullable": true}, "message": {"title": "Message", "type": "string", "x-nullable": true}, "error": {"title": "Error", "type": "string", "x-nullable": true}, "attr": {"title": "Attr", "type": "string", "x-nullable": true}, "details": {"title": "Details", "type": "object", "additionalProperties": {"type": "array", "items": {"type": "string", "minLength": 1}}}}}, "AIFilterSchemaField": {"required": ["field"], "type": "object", "properties": {"field": {"title": "Field", "type": "string", "maxLength": 512, "minLength": 1}, "property_id": {"title": "Property id", "type": "string", "maxLength": 512, "minLength": 1}, "label": {"title": "Label", "type": "string", "maxLength": 512}, "type": {"title": "Type", "type": "string", "maxLength": 64}, "category": {"title": "Category", "type": "string", "maxLength": 64}, "operators": {"type": "array", "items": {"type": "string", "maxLength": 64, "minLength": 1}, "default": [], "maxItems": 32}, "choices": {"type": "array", "items": {"type": "object"}, "default": [], "maxItems": 256}, "choice_labels": {"title": "Choice labels", "type": "object", "additionalProperties": {"type": "string", "maxLength": 512, "minLength": 1}, "default": {}}}}, "AIFilterRequest": {"required": ["query", "schema"], "type": "object", "properties": {"mode": {"title": "Mode", "type": "string", "enum": ["build_filters", "select_fields", "smart"], "default": "build_filters"}, "query": {"title": "Query", "type": "string", "maxLength": 4096, "minLength": 1}, "schema": {"type": "array", "items": {"$ref": "#/definitions/AIFilterSchemaField"}}, "source": {"title": "Source", "type": "string", "enum": ["traces", "sessions", "simulation", "dataset"], "default": "traces"}, "project_id": {"title": "Project id", "type": "string", "format": "uuid", "x-nullable": true}, "dataset_id": {"title": "Dataset id", "type": "string", "format": "uuid", "x-nullable": true}, "agent_definition_id": {"title": "Agent definition id", "type": "string", "format": "uuid", "x-nullable": true}, "run_test_id": {"title": "Run test id", "type": "string", "format": "uuid", "x-nullable": true}, "test_execution_id": {"title": "Test execution id", "type": "string", "format": "uuid", "x-nullable": true}}}, "AIFilterCondition": {"required": ["field", "operator"], "type": "object", "properties": {"field": {"title": "Field", "type": "string", "minLength": 1}, "property_id": {"title": "Property id", "type": "string", "minLength": 1}, "operator": {"title": "Operator", "type": "string", "minLength": 1}, "value": {"title": "Value", "type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}}}, "AIFilterResult": {"type": "object", "properties": {"filters": {"type": "array", "items": {"$ref": "#/definitions/AIFilterCondition"}}, "fields": {"type": "array", "items": {"type": "string", "minLength": 1}}}}, "AIFilterResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/AIFilterResult"}}}, "QueueLabelNested": {"required": ["label_id"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "label_id": {"title": "Label id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "readOnly": true, "minLength": 1}, "type": {"title": "Type", "type": "string", "readOnly": true, "minLength": 1}, "required": {"title": "Required", "type": "boolean"}, "order": {"title": "Order", "type": "integer", "maximum": 2147483647, "minimum": -2147483648}}}, "QueueAnnotatorNested": {"required": ["user_id"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "user_id": {"title": "User id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "readOnly": true, "minLength": 1}, "email": {"title": "Email", "type": "string", "format": "email", "readOnly": true, "minLength": 1}, "role": {"title": "Role", "type": "string", "default": "annotator", "minLength": 1}, "roles": {"type": "array", "items": {"type": "string", "minLength": 1}, "readOnly": true}}}, "AnnotationQueue": {"required": ["name", "label_ids"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "description": {"title": "Description", "type": "string", "x-nullable": true}, "instructions": {"title": "Instructions", "type": "string", "x-nullable": true}, "status": {"title": "Status", "type": "string", "enum": ["draft", "active", "paused", "completed"], "readOnly": true}, "assignment_strategy": {"title": "Assignment strategy", "type": "string", "enum": ["manual", "round_robin", "load_balanced"]}, "annotations_required": {"title": "Annotations required", "type": "integer", "maximum": 2147483647, "minimum": -2147483648}, "reservation_timeout_minutes": {"title": "Reservation timeout minutes", "type": "integer", "maximum": 2147483647, "minimum": -2147483648}, "requires_review": {"title": "Requires review", "type": "boolean"}, "auto_assign": {"title": "Auto assign", "description": "When enabled, all queue members can annotate any item without explicit assignment.", "type": "boolean"}, "organization": {"title": "Organization", "type": "string", "format": "uuid", "readOnly": true}, "project": {"title": "Project", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}, "dataset": {"title": "Dataset", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}, "agent_definition": {"title": "Agent definition", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}, "is_default": {"title": "Is default", "type": "boolean", "readOnly": true}, "labels": {"type": "array", "items": {"$ref": "#/definitions/QueueLabelNested"}, "readOnly": true}, "annotators": {"type": "array", "items": {"$ref": "#/definitions/QueueAnnotatorNested"}, "readOnly": true}, "label_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}, "minItems": 1}, "annotator_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}, "default": []}, "annotator_roles": {"title": "Annotator roles", "type": "object", "additionalProperties": {"type": "object"}, "default": {}}, "label_count": {"title": "Label count", "type": "integer", "readOnly": true}, "annotator_count": {"title": "Annotator count", "type": "integer", "readOnly": true}, "item_count": {"title": "Item count", "type": "integer", "readOnly": true}, "completed_count": {"title": "Completed count", "type": "integer", "readOnly": true}, "created_by": {"title": "Created by", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}, "created_by_name": {"title": "Created by name", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "viewer_role": {"title": "Viewer role", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "viewer_roles": {"type": "array", "items": {"type": "string", "minLength": 1}, "readOnly": true}, "deleted": {"title": "Deleted", "type": "boolean", "readOnly": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}}}, "QueueForSourceQueue": {"required": ["id", "name", "instructions", "is_default"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "instructions": {"title": "Instructions", "type": "string"}, "is_default": {"title": "Is default", "type": "boolean"}}}, "QueueForSourceItem": {"required": ["id", "status", "source_type", "source_id"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "status": {"title": "Status", "type": "string", "minLength": 1}, "source_type": {"title": "Source type", "type": "string", "minLength": 1}, "source_id": {"title": "Source id", "type": "string", "minLength": 1, "x-nullable": true}}, "x-nullable": true}, "QueueLabelResult": {"required": ["id", "name", "type", "settings", "allow_notes", "required", "order"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "type": {"title": "Type", "type": "string", "minLength": 1}, "settings": {"title": "Settings", "type": "object"}, "description": {"title": "Description", "type": "string"}, "allow_notes": {"title": "Allow notes", "type": "boolean"}, "required": {"title": "Required", "type": "boolean"}, "order": {"title": "Order", "type": "integer"}}}, "QueueForSourceEntry": {"required": ["queue", "item", "labels", "existing_scores", "existing_notes", "existing_label_notes", "span_notes"], "type": "object", "properties": {"queue": {"$ref": "#/definitions/QueueForSourceQueue"}, "item": {"$ref": "#/definitions/QueueForSourceItem"}, "labels": {"type": "array", "items": {"$ref": "#/definitions/QueueLabelResult"}}, "existing_scores": {"title": "Existing scores", "type": "object", "additionalProperties": {"type": "object"}}, "existing_notes": {"title": "Existing notes", "type": "string"}, "existing_label_notes": {"title": "Existing label notes", "type": "object", "additionalProperties": {"type": "string", "minLength": 1}}, "span_notes": {"type": "array", "items": {"type": "object"}}, "span_notes_source_id": {"title": "Span notes source id", "type": "string", "minLength": 1, "x-nullable": true}}}, "QueueForSourceResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"type": "array", "items": {"$ref": "#/definitions/QueueForSourceEntry"}}}}, "QueueDefaultRequest": {"type": "object", "properties": {"project_id": {"title": "Project id", "type": "string", "format": "uuid"}, "dataset_id": {"title": "Dataset id", "type": "string", "format": "uuid"}, "agent_definition_id": {"title": "Agent definition id", "type": "string", "format": "uuid"}}}, "QueueDefaultQueue": {"required": ["id", "name", "status", "is_default"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "description": {"title": "Description", "type": "string"}, "instructions": {"title": "Instructions", "type": "string"}, "status": {"title": "Status", "type": "string", "minLength": 1}, "is_default": {"title": "Is default", "type": "boolean"}}}, "QueueDefaultResult": {"required": ["queue", "labels", "created", "action"], "type": "object", "properties": {"queue": {"$ref": "#/definitions/QueueDefaultQueue"}, "labels": {"type": "array", "items": {"$ref": "#/definitions/QueueLabelResult"}}, "created": {"title": "Created", "type": "boolean"}, "action": {"title": "Action", "type": "string", "enum": ["created", "restored", "fetched"]}}}, "QueueDefaultResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/QueueDefaultResult"}}}, "QueueLabelRequest": {"required": ["label_id"], "type": "object", "properties": {"label_id": {"title": "Label id", "type": "string", "format": "uuid"}, "required": {"title": "Required", "type": "boolean", "default": false}}}, "QueueAddLabelResult": {"required": ["label", "created", "reopened_items", "queue_status"], "type": "object", "properties": {"label": {"$ref": "#/definitions/QueueLabelResult"}, "created": {"title": "Created", "type": "boolean"}, "reopened_items": {"title": "Reopened items", "type": "integer"}, "queue_status": {"title": "Queue status", "type": "string", "minLength": 1}}}, "QueueAddLabelResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/QueueAddLabelResult"}}}, "QueueAgreementLabel": {"required": ["label_name", "label_type", "agreement_pct", "cohens_kappa", "disagreement_count", "disagreement_items"], "type": "object", "properties": {"label_name": {"title": "Label name", "type": "string", "x-nullable": true}, "label_type": {"title": "Label type", "type": "string", "x-nullable": true}, "agreement_pct": {"title": "Agreement pct", "type": "number", "x-nullable": true}, "cohens_kappa": {"title": "Cohens kappa", "type": "number", "x-nullable": true}, "disagreement_count": {"title": "Disagreement count", "type": "integer"}, "disagreement_items": {"type": "array", "items": {"type": "string", "minLength": 1}}}}, "QueueAgreementAnnotatorPair": {"required": ["annotator_1_id", "annotator_2_id", "agreement_pct", "total_comparisons"], "type": "object", "properties": {"annotator_1_id": {"title": "Annotator 1 id", "type": "string", "minLength": 1}, "annotator_2_id": {"title": "Annotator 2 id", "type": "string", "minLength": 1}, "agreement_pct": {"title": "Agreement pct", "type": "number"}, "total_comparisons": {"title": "Total comparisons", "type": "integer"}}}, "QueueAgreementResult": {"required": ["overall_agreement", "labels", "annotator_pairs"], "type": "object", "properties": {"overall_agreement": {"title": "Overall agreement", "type": "number", "x-nullable": true}, "labels": {"title": "Labels", "type": "object", "additionalProperties": {"$ref": "#/definitions/QueueAgreementLabel"}}, "annotator_pairs": {"type": "array", "items": {"$ref": "#/definitions/QueueAgreementAnnotatorPair"}}}}, "QueueAgreementResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/QueueAgreementResult"}}}, "QueueAnalyticsThroughputDaily": {"required": ["date", "count"], "type": "object", "properties": {"date": {"title": "Date", "type": "string", "minLength": 1}, "count": {"title": "Count", "type": "integer"}}}, "QueueAnalyticsThroughput": {"required": ["daily", "total_completed", "avg_per_day"], "type": "object", "properties": {"daily": {"type": "array", "items": {"$ref": "#/definitions/QueueAnalyticsThroughputDaily"}}, "total_completed": {"title": "Total completed", "type": "integer"}, "avg_per_day": {"title": "Avg per day", "type": "number"}}}, "QueueAnalyticsAnnotatorPerformance": {"required": ["completed"], "type": "object", "properties": {"user_id": {"title": "User id", "type": "string", "minLength": 1, "x-nullable": true}, "name": {"title": "Name", "type": "string", "x-nullable": true}, "completed": {"title": "Completed", "type": "integer"}, "last_active": {"title": "Last active", "type": "string", "format": "date-time", "x-nullable": true}}}, "QueueAnalyticsResult": {"required": ["throughput", "annotator_performance", "label_distribution", "status_breakdown", "total"], "type": "object", "properties": {"throughput": {"$ref": "#/definitions/QueueAnalyticsThroughput"}, "annotator_performance": {"type": "array", "items": {"$ref": "#/definitions/QueueAnalyticsAnnotatorPerformance"}}, "label_distribution": {"title": "Label distribution", "type": "object", "additionalProperties": {"type": "object"}}, "status_breakdown": {"title": "Status breakdown", "type": "object", "additionalProperties": {"type": "integer"}}, "total": {"title": "Total", "type": "integer"}}}, "QueueAnalyticsResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/QueueAnalyticsResult"}}}, "QueueExportField": {"required": ["id", "label", "column", "data_type", "group", "default"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "minLength": 1}, "label": {"title": "Label", "type": "string", "minLength": 1}, "column": {"title": "Column", "type": "string", "minLength": 1}, "data_type": {"title": "Data type", "type": "string", "minLength": 1}, "group": {"title": "Group", "type": "string", "minLength": 1}, "default": {"title": "Default", "type": "boolean"}, "path": {"title": "Path", "type": "string"}, "source_type": {"title": "Source type", "type": "string"}, "kind": {"title": "Kind", "type": "string"}, "label_id": {"title": "Label id", "type": "string", "format": "uuid"}, "slot": {"title": "Slot", "type": "integer"}, "eval_key": {"title": "Eval key", "type": "string"}, "expand_fields": {"type": "array", "items": {"type": "string", "minLength": 1}}}}, "QueueExportDefaultMapping": {"required": ["field", "column", "enabled"], "type": "object", "properties": {"field": {"title": "Field", "type": "string", "minLength": 1}, "column": {"title": "Column", "type": "string", "minLength": 1}, "enabled": {"title": "Enabled", "type": "boolean"}}}, "QueueExportFieldsResult": {"required": ["fields", "default_mapping"], "type": "object", "properties": {"fields": {"type": "array", "items": {"$ref": "#/definitions/QueueExportField"}}, "default_mapping": {"type": "array", "items": {"$ref": "#/definitions/QueueExportDefaultMapping"}}}}, "QueueExportFieldsResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/QueueExportFieldsResult"}}}, "QueueExportColumnMapping": {"type": "object", "properties": {"field": {"title": "Field", "type": "string"}, "id": {"title": "Id", "type": "string"}, "column": {"title": "Column", "type": "string"}, "enabled": {"title": "Enabled", "type": "boolean", "default": true}}, "default": {"enabled": true}}, "QueueExportToDatasetRequest": {"type": "object", "properties": {"dataset_id": {"title": "Dataset id", "type": "string", "format": "uuid"}, "dataset_name": {"title": "Dataset name", "type": "string"}, "status_filter": {"title": "Status filter", "type": "string", "default": "completed"}, "column_mapping": {"type": "array", "items": {"$ref": "#/definitions/QueueExportColumnMapping"}, "default": []}}}, "QueueExportToDatasetResult": {"required": ["dataset_id", "dataset_name", "rows_created", "columns"], "type": "object", "properties": {"dataset_id": {"title": "Dataset id", "type": "string", "format": "uuid"}, "dataset_name": {"title": "Dataset name", "type": "string", "minLength": 1}, "rows_created": {"title": "Rows created", "type": "integer"}, "columns": {"type": "array", "items": {"type": "string", "minLength": 1}}}}, "QueueExportToDatasetResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/QueueExportToDatasetResult"}}}, "QueueExportAnnotationsResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"type": "array", "items": {"type": "object"}}}}, "QueueHardDeleteRequest": {"required": ["force", "confirm_name"], "type": "object", "properties": {"force": {"title": "Force", "type": "boolean"}, "confirm_name": {"title": "Confirm name", "type": "string", "minLength": 1}}}, "QueueHardDeleteResult": {"required": ["deleted", "queue_id"], "type": "object", "properties": {"deleted": {"title": "Deleted", "type": "boolean"}, "hard_deleted": {"title": "Hard deleted", "type": "boolean"}, "archived": {"title": "Archived", "type": "boolean"}, "queue_id": {"title": "Queue id", "type": "string", "format": "uuid"}}}, "QueueHardDeleteResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/QueueHardDeleteResult"}}}, "QueueProgressAnnotatorStat": {"required": ["user_id", "completed", "pending", "in_progress", "in_review", "annotations_count"], "type": "object", "properties": {"user_id": {"title": "User id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1, "x-nullable": true}, "completed": {"title": "Completed", "type": "integer"}, "pending": {"title": "Pending", "type": "integer"}, "in_progress": {"title": "In progress", "type": "integer"}, "in_review": {"title": "In review", "type": "integer"}, "annotations_count": {"title": "Annotations count", "type": "integer"}}}, "QueueProgressUserProgress": {"required": ["total", "completed", "pending", "in_progress", "in_review", "skipped", "progress_pct"], "type": "object", "properties": {"total": {"title": "Total", "type": "integer"}, "completed": {"title": "Completed", "type": "integer"}, "pending": {"title": "Pending", "type": "integer"}, "in_progress": {"title": "In progress", "type": "integer"}, "in_review": {"title": "In review", "type": "integer"}, "skipped": {"title": "Skipped", "type": "integer"}, "progress_pct": {"title": "Progress pct", "type": "number"}}}, "QueueProgressResult": {"required": ["total", "pending", "in_progress", "in_review", "completed", "skipped", "progress_pct", "annotator_stats", "user_progress"], "type": "object", "properties": {"total": {"title": "Total", "type": "integer"}, "pending": {"title": "Pending", "type": "integer"}, "in_progress": {"title": "In progress", "type": "integer"}, "in_review": {"title": "In review", "type": "integer"}, "completed": {"title": "Completed", "type": "integer"}, "skipped": {"title": "Skipped", "type": "integer"}, "progress_pct": {"title": "Progress pct", "type": "number"}, "annotator_stats": {"type": "array", "items": {"$ref": "#/definitions/QueueProgressAnnotatorStat"}}, "user_progress": {"$ref": "#/definitions/QueueProgressUserProgress"}}}, "QueueProgressResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/QueueProgressResult"}}}, "QueueRemoveLabelResult": {"required": ["removed"], "type": "object", "properties": {"removed": {"title": "Removed", "type": "boolean"}}}, "QueueRemoveLabelResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/QueueRemoveLabelResult"}}}, "EmptyRequest": {"type": "object", "properties": {}, "additionalProperties": false}, "QueueStatusResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/AnnotationQueue"}}}, "QueueStatusRequest": {"required": ["status"], "type": "object", "properties": {"status": {"title": "Status", "type": "string", "enum": ["draft", "active", "paused", "completed"]}}}, "AutomationRuleScope": {"type": "object", "properties": {"dataset_id": {"title": "Dataset id", "type": "string", "format": "uuid"}, "project_id": {"title": "Project id", "type": "string", "format": "uuid"}, "is_voice_call": {"title": "Is voice call", "type": "boolean"}, "remove_simulation_calls": {"title": "Remove simulation calls", "type": "boolean"}}}, "AutomationRuleConditions": {"type": "object", "properties": {"operator": {"title": "Operator", "type": "string", "enum": ["and"], "default": "and"}, "filter": {"type": "array", "items": {"type": "object", "properties": {"column_id": {"type": "string", "description": "Column or attribute id to filter on."}, "property_id": {"type": "string", "description": "Optional stable namespaced Property Registry identity."}, "display_name": {"type": "string", "description": "Optional UI label for chips and saved views."}, "source": {"type": "string", "description": "Optional source surface for mixed-source filters, for example traces, datasets, or simulation."}, "output_type": {"type": "string", "description": "Optional metric output type metadata used by eval and annotation filters."}, "filter_config": {"type": "object", "properties": {"filter_type": {"type": "string", "description": "Canonical field type, for example text, number, boolean, datetime, categorical, thumbs, annotator, array, or map. Legacy json is value-sensitive for SPAN_ATTRIBUTE filters: list values become array and object values become map."}, "filter_op": {"type": "string", "description": "Canonical operator from api_contracts/filter_contract.json, for example equals, not_equals, in, not_in, between, not_between, is_null, or is_not_null."}, "filter_value": {"description": "Scalar, list, range tuple, boolean, or null depending on filter_op and filter_type."}, "col_type": {"type": "string", "description": "Column family such as SYSTEM_METRIC, SPAN_ATTRIBUTE, EVAL_METRIC, ANNOTATION, or NORMAL."}, "attribute_value_types": {"type": "array", "items": {"type": "string", "enum": ["string", "number", "boolean"], "x-nullable": true}, "description": "Optional storage-family provenance aligned one-for-one with filter_value for mixed SPAN_ATTRIBUTE in/not_in filters. Null entries retain filter_type semantics for manually entered values."}}, "required": ["filter_type", "filter_op"], "additionalProperties": false}}, "required": ["column_id", "filter_config"], "additionalProperties": false}}, "scope": {"$ref": "#/definitions/AutomationRuleScope"}, "rules": {"title": "Rules", "type": "array", "items": {"type": "object", "properties": {"field": {"type": "string", "minLength": 1}, "op": {"type": "string", "default": "eq", "minLength": 1}, "value": {"description": "Rule comparison value. Can be a scalar, list, object, boolean, or null depending on the operator."}}, "required": ["field"], "additionalProperties": false}}}}, "AutomationRule": {"required": ["name", "source_type"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "queue": {"title": "Queue", "type": "string", "format": "uuid", "readOnly": true}, "source_type": {"title": "Source type", "type": "string", "enum": ["dataset_row", "trace", "observation_span", "prototype_run", "call_execution", "trace_session"]}, "conditions": {"$ref": "#/definitions/AutomationRuleConditions"}, "enabled": {"title": "Enabled", "type": "boolean"}, "trigger_frequency": {"title": "Trigger frequency", "type": "string", "enum": ["manual", "hourly", "daily", "weekly", "monthly"]}, "organization": {"title": "Organization", "type": "string", "format": "uuid", "readOnly": true}, "created_by": {"title": "Created by", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}, "created_by_name": {"title": "Created by name", "type": "string", "readOnly": true, "minLength": 1}, "last_triggered_at": {"title": "Last triggered at", "type": "string", "format": "date-time", "readOnly": true, "x-nullable": true}, "trigger_count": {"title": "Trigger count", "type": "integer", "readOnly": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}}}, "AutomationRuleEvaluateResult": {"required": ["matched", "added", "duplicates"], "type": "object", "properties": {"matched": {"title": "Matched", "type": "integer"}, "added": {"title": "Added", "type": "integer"}, "duplicates": {"title": "Duplicates", "type": "integer"}, "truncated": {"title": "Truncated", "type": "boolean"}, "error": {"title": "Error", "type": "string"}}}, "AutomationRuleEvaluateResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/AutomationRuleEvaluateResult"}}}, "AutomationRuleEvaluateAcceptedResponse": {"required": ["status", "workflow_id", "message"], "type": "object", "properties": {"status": {"title": "Status", "type": "string", "minLength": 1}, "workflow_id": {"title": "Workflow id", "type": "string", "minLength": 1}, "message": {"title": "Message", "type": "string", "minLength": 1}}}, "QueueItemAssignedUser": {"required": ["id", "name", "email"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1, "x-nullable": true}, "email": {"title": "Email", "type": "string", "format": "email", "minLength": 1, "x-nullable": true}}}, "QueueItem": {"required": ["source_type"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "queue": {"title": "Queue", "type": "string", "format": "uuid", "readOnly": true}, "source_type": {"title": "Source type", "type": "string", "enum": ["dataset_row", "trace", "observation_span", "prototype_run", "call_execution", "trace_session"]}, "source_id": {"title": "Source id", "type": "string", "minLength": 1}, "status": {"title": "Status", "type": "string", "enum": ["pending", "in_progress", "completed", "skipped"]}, "workflow_status": {"title": "Workflow status", "type": "string", "readOnly": true}, "workflow_status_label": {"title": "Workflow status label", "type": "string", "readOnly": true}, "priority": {"title": "Priority", "type": "integer", "maximum": 2147483647, "minimum": -2147483648}, "order": {"title": "Order", "type": "integer", "maximum": 2147483647, "minimum": -2147483648}, "metadata": {"title": "Metadata", "type": "object"}, "assigned_to": {"title": "Assigned to", "type": "string", "format": "uuid", "x-nullable": true}, "assigned_to_name": {"title": "Assigned to name", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "assigned_users": {"type": "array", "items": {"$ref": "#/definitions/QueueItemAssignedUser"}, "readOnly": true}, "reserved_by": {"title": "Reserved by", "type": "string", "format": "uuid", "x-nullable": true}, "reserved_by_name": {"title": "Reserved by name", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "reservation_expires_at": {"title": "Reservation expires at", "type": "string", "format": "date-time", "x-nullable": true}, "review_status": {"title": "Review status", "type": "string", "maxLength": 20, "x-nullable": true}, "reviewed_by": {"title": "Reviewed by", "type": "string", "format": "uuid", "x-nullable": true}, "reviewed_by_name": {"title": "Reviewed by name", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "reviewed_at": {"title": "Reviewed at", "type": "string", "format": "date-time", "x-nullable": true}, "review_notes": {"title": "Review notes", "type": "string", "x-nullable": true}, "source_preview": {"title": "Source preview", "type": "object", "readOnly": true, "x-json-value": true, "description": "Any valid JSON value."}, "comment_count": {"title": "Comment count", "type": "integer", "readOnly": true}, "open_feedback_count": {"title": "Open feedback count", "type": "integer", "readOnly": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}}}, "AddQueueItem": {"required": ["source_type", "source_id"], "type": "object", "properties": {"source_type": {"title": "Source type", "type": "string", "enum": ["call_execution", "dataset_row", "observation_span", "prototype_run", "trace", "trace_session"]}, "source_id": {"title": "Source id", "type": "string", "minLength": 1}}}, "Selection": {"required": ["mode", "source_type", "project_id"], "type": "object", "properties": {"mode": {"title": "Mode", "type": "string", "enum": ["filter"]}, "source_type": {"title": "Source type", "type": "string", "enum": ["call_execution", "observation_span", "trace", "trace_session"]}, "project_id": {"title": "Project id", "type": "string", "format": "uuid"}, "filter": {"type": "array", "items": {"type": "object", "properties": {"column_id": {"type": "string", "description": "Column or attribute id to filter on."}, "property_id": {"type": "string", "description": "Optional stable namespaced Property Registry identity."}, "display_name": {"type": "string", "description": "Optional UI label for chips and saved views."}, "source": {"type": "string", "description": "Optional source surface for mixed-source filters, for example traces, datasets, or simulation."}, "output_type": {"type": "string", "description": "Optional metric output type metadata used by eval and annotation filters."}, "filter_config": {"type": "object", "properties": {"filter_type": {"type": "string", "description": "Canonical field type, for example text, number, boolean, datetime, categorical, thumbs, annotator, array, or map. Legacy json is value-sensitive for SPAN_ATTRIBUTE filters: list values become array and object values become map."}, "filter_op": {"type": "string", "description": "Canonical operator from api_contracts/filter_contract.json, for example equals, not_equals, in, not_in, between, not_between, is_null, or is_not_null."}, "filter_value": {"description": "Scalar, list, range tuple, boolean, or null depending on filter_op and filter_type."}, "col_type": {"type": "string", "description": "Column family such as SYSTEM_METRIC, SPAN_ATTRIBUTE, EVAL_METRIC, ANNOTATION, or NORMAL."}, "attribute_value_types": {"type": "array", "items": {"type": "string", "enum": ["string", "number", "boolean"], "x-nullable": true}, "description": "Optional storage-family provenance aligned one-for-one with filter_value for mixed SPAN_ATTRIBUTE in/not_in filters. Null entries retain filter_type semantics for manually entered values."}}, "required": ["filter_type", "filter_op"], "additionalProperties": false}}, "required": ["column_id", "filter_config"], "additionalProperties": false}, "default": []}, "exclude_ids": {"type": "array", "items": {"type": "string", "minLength": 1}, "default": []}, "cursor": {"title": "Cursor", "description": "Opaque continuation returned by a previous filter-mode add. Reuse the same selection fields and queue when continuing.", "type": "string", "maxLength": 4096, "minLength": 1}, "remove_simulation_calls": {"title": "Remove simulation calls", "type": "boolean", "default": false}, "is_voice_call": {"title": "Is voice call", "type": "boolean", "default": false}}}, "AddItems": {"type": "object", "properties": {"items": {"type": "array", "items": {"$ref": "#/definitions/AddQueueItem"}}, "selection": {"$ref": "#/definitions/Selection"}, "project_id": {"title": "Project id", "type": "string", "format": "uuid"}}}, "QueueAddItemsResult": {"required": ["added", "duplicates", "errors", "queue_status"], "type": "object", "properties": {"added": {"title": "Added", "type": "integer"}, "duplicates": {"title": "Duplicates", "type": "integer"}, "errors": {"type": "array", "items": {"type": "string", "minLength": 1}}, "queue_status": {"title": "Queue status", "type": "string", "minLength": 1}, "total_matching": {"title": "Total matching", "type": "integer"}, "total_matching_is_lower_bound": {"title": "Total matching is lower bound", "type": "boolean"}, "has_more": {"title": "Has more", "type": "boolean"}, "next_cursor": {"title": "Next cursor", "type": "string", "minLength": 1, "x-nullable": true}, "next_cursor_fingerprint": {"title": "Next cursor fingerprint", "type": "string", "pattern": "^[0-9a-f]{64}$", "minLength": 1, "x-nullable": true}}}, "QueueAddItemsResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/QueueAddItemsResult"}}}, "ApiTooLargeError": {"type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": false}, "type": {"title": "Type", "type": "string", "enum": ["validation_error", "authentication_error", "payment_required", "entitlement_error", "permission_error", "not_found", "conflict", "client_error", "rate_limit", "server_error", "service_unavailable", "timeout", "api_error"], "x-nullable": true}, "code": {"title": "Code", "type": "string", "enum": ["export_too_large", "items_too_large"]}, "detail": {"title": "Detail", "type": "string", "x-nullable": true}, "result": {"title": "Result", "type": "string", "minLength": 1, "x-nullable": true}, "message": {"title": "Message", "type": "string", "minLength": 1, "x-nullable": true}, "error": {"title": "Error", "type": "string", "x-nullable": true}, "attr": {"title": "Attr", "type": "string", "x-nullable": true}, "details": {"title": "Details", "type": "object", "additionalProperties": {"type": "array", "items": {"type": "string", "minLength": 1}}}}}, "AssignItems": {"required": ["item_ids"], "type": "object", "properties": {"item_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}, "minItems": 1}, "user_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}, "default": []}, "action": {"title": "Action", "type": "string", "enum": ["add", "set", "remove"], "default": "add"}}}, "QueueAssignItemsResult": {"required": ["assigned"], "type": "object", "properties": {"assigned": {"title": "Assigned", "type": "integer"}}}, "QueueAssignItemsResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/QueueAssignItemsResult"}}}, "BulkRemoveItems": {"required": ["item_ids"], "type": "object", "properties": {"item_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}, "minItems": 1}}}, "QueueBulkRemoveItemsResult": {"required": ["removed"], "type": "object", "properties": {"removed": {"title": "Removed", "type": "integer"}}}, "QueueBulkRemoveItemsResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/QueueBulkRemoveItemsResult"}}}, "BulkReviewItemsRequest": {"required": ["item_ids", "action"], "type": "object", "properties": {"item_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}, "minItems": 1}, "action": {"title": "Action", "type": "string", "enum": ["approve", "request_changes", "reject"]}, "notes": {"title": "Notes", "type": "string"}}}, "QueueBulkReviewItemsError": {"required": ["item_id", "error"], "type": "object", "properties": {"item_id": {"title": "Item id", "type": "string", "minLength": 1}, "error": {"title": "Error", "type": "string", "minLength": 1}}}, "QueueBulkReviewItemsResult": {"required": ["reviewed", "reviewed_item_ids", "errors", "action"], "type": "object", "properties": {"reviewed": {"title": "Reviewed", "type": "integer"}, "reviewed_item_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}}, "errors": {"type": "array", "items": {"$ref": "#/definitions/QueueBulkReviewItemsError"}}, "action": {"title": "Action", "type": "string", "enum": ["approve", "request_changes", "reject"]}}}, "QueueBulkReviewItemsResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/QueueBulkReviewItemsResult"}}}, "QueueNextItemResult": {"required": ["item"], "type": "object", "properties": {"item": {"title": "Item", "type": "object", "x-nullable": true}}}, "QueueNextItemResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/QueueNextItemResult"}}}, "QueueAnnotateDetailResult": {"required": ["item", "queue", "labels", "annotations", "review_comments", "review_threads", "existing_notes", "span_notes", "progress"], "type": "object", "properties": {"item": {"title": "Item", "type": "object"}, "queue": {"title": "Queue", "type": "object"}, "labels": {"type": "array", "items": {"type": "object"}}, "annotations": {"type": "array", "items": {"type": "object"}}, "review_comments": {"type": "array", "items": {"type": "object"}}, "review_threads": {"type": "array", "items": {"type": "object"}}, "existing_notes": {"title": "Existing notes", "type": "string"}, "span_notes": {"type": "array", "items": {"type": "object"}}, "span_notes_source_id": {"title": "Span notes source id", "type": "string", "minLength": 1, "x-nullable": true}, "progress": {"title": "Progress", "type": "object"}, "next_item_id": {"title": "Next item id", "type": "string", "minLength": 1, "x-nullable": true}, "prev_item_id": {"title": "Prev item id", "type": "string", "minLength": 1, "x-nullable": true}}}, "QueueAnnotateDetailResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/QueueAnnotateDetailResult"}}}, "Score": {"required": ["source_type", "value"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "source_type": {"title": "Source type", "type": "string", "enum": ["dataset_row", "trace", "observation_span", "prototype_run", "call_execution", "trace_session"]}, "source_id": {"title": "Source id", "type": "string", "readOnly": true}, "label_id": {"title": "Label id", "type": "string", "format": "uuid", "readOnly": true}, "label_name": {"title": "Label name", "type": "string", "readOnly": true, "minLength": 1}, "label_type": {"title": "Label type", "type": "string", "readOnly": true, "minLength": 1}, "label_settings": {"title": "Label settings", "type": "object", "readOnly": true}, "label_allow_notes": {"title": "Label allow notes", "type": "boolean", "readOnly": true}, "value": {"title": "Value", "type": "object"}, "value_history": {"title": "Value history", "type": "object"}, "score_source": {"title": "Score source", "type": "string", "enum": ["human", "api", "auto", "imported"], "default": "human"}, "notes": {"title": "Notes", "type": "string", "x-nullable": true}, "annotator": {"title": "Annotator", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}, "annotator_name": {"title": "Annotator name", "type": "string", "readOnly": true, "minLength": 1}, "annotator_email": {"title": "Annotator email", "type": "string", "readOnly": true, "minLength": 1}, "queue_item": {"title": "Queue item", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}, "queue_id": {"title": "Queue id", "type": "string", "readOnly": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}}}, "QueueItemAnnotationsResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"type": "array", "items": {"$ref": "#/definitions/Score"}}}}, "ImportAnnotationEntry": {"required": ["label_id", "value"], "type": "object", "properties": {"label_id": {"title": "Label id", "type": "string", "format": "uuid"}, "value": {"title": "Value", "type": "object"}, "notes": {"title": "Notes", "type": "string"}, "score_source": {"title": "Score source", "type": "string"}}}, "ImportAnnotations": {"required": ["annotations"], "type": "object", "properties": {"annotations": {"type": "array", "items": {"$ref": "#/definitions/ImportAnnotationEntry"}}, "annotator_id": {"title": "Annotator id", "type": "string", "format": "uuid"}}}, "QueueImportAnnotationsResult": {"required": ["imported"], "type": "object", "properties": {"imported": {"title": "Imported", "type": "integer"}}}, "QueueImportAnnotationsResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/QueueImportAnnotationsResult"}}}, "SubmitAnnotationEntry": {"required": ["label_id", "value"], "type": "object", "properties": {"label_id": {"title": "Label id", "type": "string", "format": "uuid"}, "value": {"title": "Value", "type": "object"}, "notes": {"title": "Notes", "type": "string"}}}, "SubmitAnnotations": {"required": ["annotations"], "type": "object", "properties": {"annotations": {"type": "array", "items": {"$ref": "#/definitions/SubmitAnnotationEntry"}}, "notes": {"title": "Notes", "type": "string", "default": ""}, "item_notes": {"title": "Item notes", "type": "string", "x-nullable": true}}}, "QueueSubmitAnnotationsResult": {"required": ["submitted"], "type": "object", "properties": {"submitted": {"title": "Submitted", "type": "integer"}}}, "QueueSubmitAnnotationsResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/QueueSubmitAnnotationsResult"}}}, "QueueItemNavigationRequest": {"type": "object", "properties": {"exclude": {"type": "array", "items": {"type": "string"}, "default": []}, "exclude_review_status": {"title": "Exclude review status", "type": "string"}, "include_completed": {"title": "Include completed", "type": "boolean", "default": false}}}, "QueueNavigationResult": {"required": ["next_item"], "type": "object", "properties": {"completed_item_id": {"title": "Completed item id", "type": "string", "format": "uuid"}, "skipped_item_id": {"title": "Skipped item id", "type": "string", "format": "uuid"}, "next_item": {"title": "Next item", "type": "object", "x-nullable": true}}}, "QueueNavigationResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/QueueNavigationResult"}}}, "QueueDiscussionResult": {"required": ["review_comments", "review_threads"], "type": "object", "properties": {"review_comments": {"type": "array", "items": {"type": "object"}}, "review_threads": {"type": "array", "items": {"type": "object"}}, "comment": {"title": "Comment", "type": "object"}, "thread": {"title": "Thread", "type": "object"}}}, "QueueDiscussionResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/QueueDiscussionResult"}}}, "DiscussionCommentRequest": {"type": "object", "properties": {"comment": {"title": "Comment", "type": "string"}, "label_id": {"title": "Label id", "type": "string", "format": "uuid"}, "target_annotator_id": {"title": "Target annotator id", "type": "string", "format": "uuid"}, "thread_id": {"title": "Thread id", "type": "string", "format": "uuid"}, "mentioned_user_ids": {"type": "array", "items": {"type": "string", "minLength": 1}, "default": []}}}, "DiscussionReactionRequest": {"type": "object", "properties": {"emoji": {"title": "Emoji", "type": "string", "maxLength": 16}}}, "DiscussionThreadStatusRequest": {"type": "object", "properties": {"comment": {"title": "Comment", "type": "string"}}}, "QueueReleaseReservationResult": {"required": ["released"], "type": "object", "properties": {"released": {"title": "Released", "type": "boolean"}}}, "QueueReleaseReservationResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/QueueReleaseReservationResult"}}}, "ReviewLabelCommentRequest": {"type": "object", "properties": {"label_id": {"title": "Label id", "type": "string", "format": "uuid"}, "target_annotator_id": {"title": "Target annotator id", "type": "string", "format": "uuid"}, "comment": {"title": "Comment", "type": "string"}}, "default": {}}, "ReviewItemRequest": {"required": ["action"], "type": "object", "properties": {"action": {"title": "Action", "type": "string", "enum": ["approve", "request_changes", "reject", "comment"]}, "notes": {"title": "Notes", "type": "string"}, "label_comments": {"type": "array", "items": {"$ref": "#/definitions/ReviewLabelCommentRequest"}, "default": []}}}, "QueueReviewItemResult": {"required": ["reviewed_item_id", "action", "next_item", "review_comments", "review_threads"], "type": "object", "properties": {"reviewed_item_id": {"title": "Reviewed item id", "type": "string", "format": "uuid"}, "action": {"title": "Action", "type": "string", "minLength": 1}, "next_item": {"title": "Next item", "type": "object", "x-nullable": true}, "review_comments": {"type": "array", "items": {"type": "object"}}, "review_threads": {"type": "array", "items": {"type": "object"}}}}, "QueueReviewItemResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/QueueReviewItemResult"}}}, "Organization": {"required": ["name"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "display_name": {"title": "Display name", "type": "string", "maxLength": 255}, "is_new": {"title": "Is new", "type": "boolean"}, "ws_enabled": {"title": "Ws enabled", "type": "boolean"}, "region": {"title": "Region", "type": "string", "maxLength": 16, "minLength": 1}, "require_2fa": {"title": "Require 2fa", "type": "boolean"}, "require_2fa_grace_period_days": {"title": "Require 2fa grace period days", "type": "integer", "maximum": 32767, "minimum": 0}, "require_2fa_enforced_at": {"title": "Require 2fa enforced at", "type": "string", "format": "date-time", "x-nullable": true}}}, "User": {"required": ["email", "name"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "email": {"title": "Email", "type": "string", "format": "email", "maxLength": 254, "minLength": 1}, "name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "organization_role": {"title": "Organization role", "type": "string", "enum": ["Owner", "Admin", "Member", "Viewer", "workspace_admin", "workspace_member", "workspace_viewer"], "x-nullable": true}, "organization": {"$ref": "#/definitions/Organization"}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "status": {"title": "Status", "type": "string", "readOnly": true}, "role": {"title": "Role", "description": "User's job role (e.g., Data Scientist, ML Engineer, or custom role)", "type": "string", "maxLength": 255, "x-nullable": true}, "goals": {"title": "Goals", "description": "List of user's goals for using the platform", "type": "object", "x-nullable": true}}}, "Monitor": {"required": ["name", "monitor_type", "dimension", "metric", "current_value", "trigger_value"], "type": "object", "properties": {"id": {"title": "ID", "type": "integer", "readOnly": true}, "status": {"title": "Status", "description": "Indicates if the alert is executed", "type": "boolean"}, "name": {"title": "Name", "description": "Name of the monitor", "type": "string", "maxLength": 255, "minLength": 1}, "monitor_type": {"title": "Monitor type", "type": "string", "enum": ["Analytics", "DataDrift", "Performance"]}, "dimension": {"title": "Dimension", "description": "Dimension of the monitor", "type": "string", "maxLength": 255, "minLength": 1}, "metric": {"title": "Metric", "description": "Metric used by the monitor", "type": "string", "maxLength": 255, "minLength": 1}, "current_value": {"title": "Current value", "description": "Current value of the metric", "type": "number"}, "trigger_value": {"title": "Trigger value", "description": "Value at which the alert is triggered", "type": "number"}, "is_mute": {"title": "Is mute", "description": "Indicates if the monitor is muted", "type": "boolean"}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}}}, "AIModel": {"required": ["user_model_id", "model_type", "organization"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "monitors": {"type": "array", "items": {"$ref": "#/definitions/Monitor"}, "readOnly": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "user_model_id": {"title": "User model id", "type": "string", "maxLength": 255, "minLength": 1}, "deleted": {"title": "Deleted", "type": "boolean", "default": false}, "model_type": {"title": "Model type", "type": "string", "enum": ["Numeric", "ScoreCategorical", "Ranking", "BinaryClassification", "Regression", "ObjectDetection", "Segmentation", "GenerativeLLM", "GenerativeImage", "GenerativeVideo", "TTS", "STT", "MultiModal"]}, "baseline_model_environment": {"title": "Baseline model environment", "type": "string", "enum": ["Production", "Training", "Validation", "Corpus"], "x-nullable": true}, "baseline_model_version": {"title": "Baseline model version", "type": "string", "maxLength": 255, "x-nullable": true}, "default_metric": {"title": "Default metric", "type": "string", "format": "uuid", "x-nullable": true}, "organization": {"title": "Organization", "type": "string", "format": "uuid"}, "workspace": {"title": "Workspace", "type": "string", "format": "uuid", "x-nullable": true}}}, "AnnotationTask": {"required": ["task_name"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "assigned_users": {"type": "array", "items": {"$ref": "#/definitions/User"}, "readOnly": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}, "ai_model": {"$ref": "#/definitions/AIModel"}, "task_name": {"title": "Task name", "type": "string", "maxLength": 255, "minLength": 1}}}, "AnnotationsLabels": {"required": ["name", "type"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "type": {"title": "Type", "type": "string", "enum": ["text", "numeric", "categorical", "star", "thumbs_up_down"]}, "organization": {"title": "Organization", "type": "string", "format": "uuid", "readOnly": true}, "settings": {"title": "Settings", "type": "object"}, "project": {"title": "Project", "type": "string", "format": "uuid"}, "description": {"title": "Description", "type": "string", "x-nullable": true}, "allow_notes": {"title": "Allow notes", "type": "boolean"}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "trace_annotations_count": {"title": "Trace annotations count", "type": "integer", "readOnly": true}, "annotation_count": {"title": "Annotation count", "type": "integer", "readOnly": true}, "archived": {"title": "Archived", "type": "boolean", "readOnly": true}}}, "AnnotationLabelCreateResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/AnnotationsLabels"}}}, "AnnotationLabelRestoreResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/AnnotationsLabels"}}}, "Annotations": {"required": ["name"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "assigned_users": {"title": "Assigned users", "type": "string", "readOnly": true}, "organization": {"title": "Organization", "type": "string", "format": "uuid", "readOnly": true}, "labels": {"title": "Labels", "type": "string", "readOnly": true}, "columns": {"type": "array", "items": {"type": "string", "format": "uuid"}, "uniqueItems": true}, "static_fields": {"title": "Static fields", "type": "object"}, "response_fields": {"title": "Response fields", "type": "object"}, "dataset": {"title": "Dataset", "type": "string", "format": "uuid", "x-nullable": true}, "summary": {"title": "Summary", "type": "string", "readOnly": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "responses": {"title": "Responses", "type": "integer", "maximum": 2147483647, "minimum": -2147483648}, "lowest_unfinished_row": {"title": "Lowest unfinished row", "type": "string", "readOnly": true}, "label_requirements": {"title": "Label requirements", "type": "string", "readOnly": true}}}, "BulkDestroyAnnotationsRequest": {"required": ["annotation_ids"], "type": "object", "properties": {"annotation_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}}}}, "BulkDestroyAnnotationsResult": {"required": ["message", "deleted_count"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}, "deleted_count": {"title": "Deleted count", "type": "integer"}, "errors": {"type": "array", "items": {"type": "string", "minLength": 1}}}}, "BulkDestroyAnnotationsResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/BulkDestroyAnnotationsResult"}}}, "PreviewAnnotationsRequest": {"required": ["dataset_id"], "type": "object", "properties": {"dataset_id": {"title": "Dataset id", "type": "string", "format": "uuid"}, "static_column": {"type": "array", "items": {"type": "string", "format": "uuid"}, "default": []}, "response_column": {"type": "array", "items": {"type": "string", "format": "uuid"}, "default": []}}}, "PreviewAnnotationField": {"required": ["column_id", "column_name", "data_type", "value"], "type": "object", "properties": {"column_id": {"title": "Column id", "type": "string", "format": "uuid"}, "column_name": {"title": "Column name", "type": "string", "minLength": 1}, "data_type": {"title": "Data type", "type": "string", "minLength": 1}, "value": {"title": "Value", "type": "object", "x-nullable": true}}}, "PreviewAnnotationData": {"required": ["static_fields", "response_fields"], "type": "object", "properties": {"static_fields": {"type": "array", "items": {"$ref": "#/definitions/PreviewAnnotationField"}}, "response_fields": {"type": "array", "items": {"$ref": "#/definitions/PreviewAnnotationField"}}}}, "PreviewAnnotationsResult": {"required": ["row_id", "row_number", "preview_data"], "type": "object", "properties": {"row_id": {"title": "Row id", "type": "string", "format": "uuid"}, "row_number": {"title": "Row number", "type": "integer"}, "preview_data": {"$ref": "#/definitions/PreviewAnnotationData"}}}, "PreviewAnnotationsResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/PreviewAnnotationsResult"}}}, "ResetAnnotationsRequest": {"required": ["row_id"], "type": "object", "properties": {"row_id": {"title": "Row id", "type": "string", "format": "uuid"}}}, "AnnotationActionMessageResult": {"required": ["message"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}}}, "AnnotationActionMessageResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/AnnotationActionMessageResult"}}}, "AnnotationLabelValueUpdate": {"required": ["row_id", "label_id", "value", "column_id"], "type": "object", "properties": {"row_id": {"title": "Row id", "type": "string", "format": "uuid"}, "label_id": {"title": "Label id", "type": "string", "format": "uuid"}, "value": {"title": "Value", "type": "object"}, "description": {"title": "Description", "type": "string", "default": ""}, "column_id": {"title": "Column id", "type": "string", "format": "uuid"}, "time_taken": {"title": "Time taken", "type": "number", "x-nullable": true}}}, "AnnotationResponseFieldUpdate": {"required": ["row_id", "column_id", "value"], "type": "object", "properties": {"row_id": {"title": "Row id", "type": "string", "format": "uuid"}, "column_id": {"title": "Column id", "type": "string", "format": "uuid"}, "value": {"title": "Value", "type": "object"}}}, "UpdateAnnotationCellsRequest": {"type": "object", "properties": {"label_values": {"type": "array", "items": {"$ref": "#/definitions/AnnotationLabelValueUpdate"}, "default": []}, "response_field_values": {"type": "array", "items": {"$ref": "#/definitions/AnnotationResponseFieldUpdate"}, "default": []}}}, "ApiKeyResponse": {"required": ["provider"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "provider": {"title": "Provider", "type": "string", "maxLength": 50, "minLength": 1}, "organization": {"title": "Organization", "type": "string", "format": "uuid", "x-nullable": true}, "masked_actual_key": {"title": "Masked actual key", "type": "object", "x-nullable": true}}}, "ApiKeyListResponse": {"required": ["count", "results"], "type": "object", "properties": {"count": {"title": "Count", "type": "integer"}, "next": {"title": "Next", "type": "string", "x-nullable": true}, "previous": {"title": "Previous", "type": "string", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/ApiKeyResponse"}}}}, "ApiKeyRequest": {"required": ["provider"], "type": "object", "properties": {"provider": {"title": "Provider", "type": "string", "maxLength": 50, "minLength": 1}, "key": {"title": "Key", "type": "string", "maxLength": 2500, "x-nullable": true}, "config_json": {"title": "Config json", "type": "object", "x-nullable": true}}}, "ApiKeySuccessResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/ApiKeyResponse"}}}, "ModelParameterSlider": {"required": ["label"], "type": "object", "properties": {"label": {"title": "Label", "type": "string", "minLength": 1}, "min": {"title": "Min", "type": "number", "x-nullable": true}, "max": {"title": "Max", "type": "number", "x-nullable": true}, "step": {"title": "Step", "type": "number", "x-nullable": true}, "default": {"title": "Default", "type": "object", "x-nullable": true}, "description": {"title": "Description", "type": "string"}}}, "ModelParameterChoice": {"required": ["label", "options"], "type": "object", "properties": {"label": {"title": "Label", "type": "string", "minLength": 1}, "options": {"type": "array", "items": {"type": "object"}}, "default": {"title": "Default", "type": "object", "x-nullable": true}, "description": {"title": "Description", "type": "string"}}}, "ModelParameterBoolean": {"required": ["label"], "type": "object", "properties": {"label": {"title": "Label", "type": "string", "minLength": 1}, "default": {"title": "Default", "type": "boolean"}, "description": {"title": "Description", "type": "string"}}}, "ModelParameterTextInput": {"required": ["label"], "type": "object", "properties": {"label": {"title": "Label", "type": "string", "minLength": 1}, "default": {"title": "Default", "type": "object", "x-nullable": true}, "placeholder": {"title": "Placeholder", "type": "string"}, "description": {"title": "Description", "type": "string"}}}, "ModelParameterResponseFormat": {"required": ["value"], "type": "object", "properties": {"value": {"title": "Value", "type": "string", "minLength": 1}}}, "ModelParameterReasoning": {"type": "object", "properties": {"dropdowns": {"type": "array", "items": {"$ref": "#/definitions/ModelParameterChoice"}}, "sliders": {"type": "array", "items": {"$ref": "#/definitions/ModelParameterSlider"}}}}, "ModelParametersResult": {"type": "object", "properties": {"sliders": {"type": "array", "items": {"$ref": "#/definitions/ModelParameterSlider"}}, "dropdowns": {"type": "array", "items": {"$ref": "#/definitions/ModelParameterChoice"}}, "booleans": {"type": "array", "items": {"$ref": "#/definitions/ModelParameterBoolean"}}, "boolean": {"type": "array", "items": {"$ref": "#/definitions/ModelParameterBoolean"}}, "checkboxes": {"type": "array", "items": {"$ref": "#/definitions/ModelParameterBoolean"}}, "text_inputs": {"type": "array", "items": {"$ref": "#/definitions/ModelParameterTextInput"}}, "responseFormat": {"type": "array", "items": {"$ref": "#/definitions/ModelParameterResponseFormat"}}, "reasoning": {"$ref": "#/definitions/ModelParameterReasoning"}}}, "ModelParametersResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/ModelParametersResult"}}}, "LiteLLMVoiceOption": {"required": ["id", "name", "type"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "minLength": 1}, "name": {"title": "Name", "type": "string", "minLength": 1}, "type": {"title": "Type", "type": "string", "minLength": 1}}}, "LiteLLMModelVoicesResult": {"required": ["model_name", "provider", "custom_voice_supported", "supported_voices", "supported_formats"], "type": "object", "properties": {"model_name": {"title": "Model name", "type": "string", "minLength": 1}, "provider": {"title": "Provider", "type": "string"}, "custom_voice_supported": {"title": "Custom voice supported", "type": "boolean"}, "supported_voices": {"type": "array", "items": {"$ref": "#/definitions/LiteLLMVoiceOption"}}, "supported_formats": {"type": "array", "items": {"type": "string", "minLength": 1}}, "default_voice": {"title": "Default voice", "type": "string", "minLength": 1, "x-nullable": true}, "default_format": {"title": "Default format", "type": "string", "minLength": 1, "x-nullable": true}}}, "LiteLLMModelVoicesResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/LiteLLMModelVoicesResult"}}}, "ModelHubPaginatedResponse": {"required": ["count", "results"], "type": "object", "properties": {"count": {"title": "Count", "type": "integer"}, "next": {"title": "Next", "type": "string", "x-nullable": true}, "previous": {"title": "Previous", "type": "string", "x-nullable": true}, "results": {"type": "array", "items": {"type": "object"}}}}, "CellErrorLocalizerResult": {"required": ["cell_id"], "type": "object", "properties": {"task_id": {"title": "Task id", "type": "string", "format": "uuid"}, "cell_id": {"title": "Cell id", "type": "string", "format": "uuid"}, "status": {"title": "Status", "type": "string", "x-nullable": true}, "error_analysis": {"title": "Error analysis", "type": "object", "x-nullable": true}, "selected_input_key": {"title": "Selected input key", "type": "string", "x-nullable": true}, "input_data": {"title": "Input data", "type": "object", "x-nullable": true}, "input_types": {"title": "Input types", "type": "object", "x-nullable": true}, "error_message": {"title": "Error message", "type": "string", "x-nullable": true}}}, "CellErrorLocalizerResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/CellErrorLocalizerResult"}}}, "ModelHubEmptyRequest": {"type": "object", "properties": {}}, "ColumnConfigResult": {"required": ["name"], "type": "object", "properties": {"name": {"title": "Name", "type": "string", "minLength": 1}, "template": {"title": "Template", "type": "string", "format": "uuid"}, "template_config": {"title": "Template config", "type": "object"}, "description": {"title": "Description", "type": "string", "x-nullable": true}, "config": {"title": "Config", "type": "object"}, "status": {"title": "Status", "type": "string", "x-nullable": true}, "prompt_config": {"title": "Prompt config", "type": "object"}, "model": {"title": "Model", "type": "string", "x-nullable": true}, "messages": {"title": "Messages", "type": "object"}, "output_format": {"title": "Output format", "type": "string", "x-nullable": true}, "temperature": {"title": "Temperature", "type": "number", "x-nullable": true}, "frequency_penalty": {"title": "Frequency penalty", "type": "number", "x-nullable": true}, "presence_penalty": {"title": "Presence penalty", "type": "number", "x-nullable": true}, "max_tokens": {"title": "Max tokens", "type": "integer", "x-nullable": true}, "top_p": {"title": "Top p", "type": "number", "x-nullable": true}, "response_format": {"title": "Response format", "type": "object", "x-string-or-object": true, "description": "String or JSON object."}, "tool_choice": {"title": "Tool choice", "type": "string", "x-nullable": true}, "tools": {"type": "array", "items": {"type": "string", "minLength": 1}}, "optimize_type": {"title": "Optimize type", "type": "string", "x-nullable": true}, "optimized_k_prompts": {"title": "Optimized k prompts", "type": "object"}, "model_config": {"title": "Model config", "type": "object"}, "user_eval_template_ids": {"type": "array", "items": {"type": "object"}}, "optimisation_name": {"title": "Optimisation name", "type": "string", "x-nullable": true}, "optimisation_config": {"title": "Optimisation config", "type": "object"}, "experiment_dataset": {"title": "Experiment dataset", "type": "string", "x-nullable": true}, "experiment_dataset_config": {"title": "Experiment dataset config", "type": "object"}}}, "ColumnConfigResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/ColumnConfigResult"}}}, "OperationConfigResult": {"required": ["column_id", "metadata"], "type": "object", "properties": {"column_id": {"title": "Column id", "type": "string", "format": "uuid"}, "metadata": {"title": "Metadata", "type": "object"}}}, "OperationConfigResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/OperationConfigResult"}}}, "RerunOperationRequest": {"required": ["operation_type"], "type": "object", "properties": {"operation_type": {"title": "Operation type", "type": "string", "minLength": 1}, "config": {"title": "Config", "type": "object"}}}, "RerunOperationResult": {"required": ["message", "column_id", "status"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}, "column_id": {"title": "Column id", "type": "string", "format": "uuid"}, "status": {"title": "Status", "type": "string", "minLength": 1}}}, "RerunOperationResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/RerunOperationResult"}}}, "CustomEvalTemplateCreate": {"required": ["name", "required_keys"], "type": "object", "properties": {"template_type": {"title": "Template type", "type": "string", "enum": ["Llm", "Futureagi", "Function"], "default": "Futureagi"}, "name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "description": {"title": "Description", "type": "string", "x-nullable": true}, "tags": {"type": "array", "items": {"type": "string", "minLength": 1}, "default": [], "x-nullable": true}, "criteria": {"title": "Criteria", "type": "string", "default": "", "maxLength": 100000, "x-nullable": true}, "output_type": {"title": "Output type", "type": "string", "enum": ["Pass/Fail", "score", "choices"], "default": "Pass/Fail"}, "required_keys": {"type": "array", "items": {"type": "string", "minLength": 1}}, "config": {"title": "Config", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}, "default": {}}, "check_internet": {"title": "Check internet", "type": "boolean", "default": false}, "choices": {"title": "Choices", "type": "object", "additionalProperties": {"type": "string", "minLength": 1}, "default": {}, "x-nullable": true}, "multi_choice": {"title": "Multi choice", "type": "boolean", "default": false}, "template_id": {"title": "Template id", "type": "string", "maxLength": 500, "x-nullable": true}}}, "CustomEvalTemplateCreateResponseResult": {"required": ["eval_template_id"], "type": "object", "properties": {"eval_template_id": {"title": "Eval template id", "type": "string", "format": "uuid"}}}, "CustomEvalTemplateCreateResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/CustomEvalTemplateCreateResponseResult"}}}, "CustomMetricListItem": {"required": ["id", "name", "evaluation_type"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "evaluation_type": {"title": "Evaluation type", "type": "string", "minLength": 1}}}, "CustomMetricListResponse": {"required": ["metrics"], "type": "object", "properties": {"metrics": {"type": "array", "items": {"$ref": "#/definitions/CustomMetricListItem"}}}}, "CustomMetricMutationRequest": {"type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "model_id": {"title": "Model id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string"}, "prompt": {"title": "Prompt", "type": "string"}, "metric_type": {"title": "Metric type", "type": "string"}, "evaluation_type": {"title": "Evaluation type", "type": "string"}, "datasets": {"title": "Datasets", "type": "object"}}}, "ModelHubStatusResponse": {"required": ["status"], "type": "object", "properties": {"status": {"title": "Status", "type": "string", "minLength": 1}}}, "MetricTagOption": {"required": ["label", "value"], "type": "object", "properties": {"label": {"title": "Label", "type": "string", "minLength": 1}, "value": {"title": "Value", "type": "string", "minLength": 1}}}, "CustomMetricTestRequest": {"required": ["prompt"], "type": "object", "properties": {"prompt": {"title": "Prompt", "type": "string", "minLength": 1}}}, "CustomMetricTestResponse": {"required": ["status"], "type": "object", "properties": {"status": {"title": "Status", "type": "string", "minLength": 1}, "prompts": {"title": "Prompts", "type": "object"}}}, "CustomAIModel": {"required": ["user_model_id", "provider", "input_token_cost", "output_token_cost"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "user_model_id": {"title": "User model id", "type": "string", "maxLength": 255, "minLength": 1}, "deleted": {"title": "Deleted", "type": "boolean"}, "provider": {"title": "Provider", "type": "string", "maxLength": 50, "minLength": 1}, "input_token_cost": {"title": "Input token cost", "type": "number"}, "output_token_cost": {"title": "Output token cost", "type": "number"}, "config_json": {"title": "Config json", "type": "string", "readOnly": true}, "user": {"title": "User", "type": "string", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}}}, "CustomAIModelUpdateRequest": {"type": "object", "properties": {"model_name": {"title": "Model name", "type": "string"}, "input_token_cost": {"title": "Input token cost", "type": "number", "x-nullable": true}, "output_token_cost": {"title": "Output token cost", "type": "number", "x-nullable": true}}}, "CustomAIModelCreateRequest": {"required": ["model_provider", "model_name"], "type": "object", "properties": {"model_provider": {"title": "Model provider", "type": "string", "minLength": 1}, "model_name": {"title": "Model name", "type": "string", "minLength": 1}, "input_token_cost": {"title": "Input token cost", "type": "number", "x-nullable": true}, "output_token_cost": {"title": "Output token cost", "type": "number", "x-nullable": true}, "config_json": {"title": "Config json", "type": "object", "default": {}}, "key": {"title": "Key", "type": "string", "x-nullable": true}}}, "CustomAIModelCreateResponseData": {"required": ["id"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}}}, "CustomAIModelCreateResponse": {"required": ["status", "message", "data"], "type": "object", "properties": {"status": {"title": "Status", "type": "string", "minLength": 1}, "message": {"title": "Message", "type": "string", "minLength": 1}, "data": {"$ref": "#/definitions/CustomAIModelCreateResponseData"}}}, "CustomAIModelDeleteRequest": {"type": "object", "properties": {"ids": {"type": "array", "items": {"type": "string", "format": "uuid"}, "default": []}}}, "ModelHubStringResultResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"title": "Result", "type": "string", "minLength": 1}}}, "CustomAIModelEditResult": {"required": ["model_name", "model_provider"], "type": "object", "properties": {"model_name": {"title": "Model name", "type": "string", "minLength": 1}, "input_token_cost": {"title": "Input token cost", "type": "number", "x-nullable": true}, "output_token_cost": {"title": "Output token cost", "type": "number", "x-nullable": true}, "model_provider": {"title": "Model provider", "type": "string", "minLength": 1}, "key": {"title": "Key", "type": "object"}, "config_json": {"title": "Config json", "type": "object"}}}, "CustomAIModelEditResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/CustomAIModelEditResult"}}}, "CustomAIModelEditRequest": {"required": ["id"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "model_name": {"title": "Model name", "type": "string"}, "input_token_cost": {"title": "Input token cost", "type": "number", "x-nullable": true}, "output_token_cost": {"title": "Output token cost", "type": "number", "x-nullable": true}, "config_json": {"title": "Config json", "type": "object", "default": {}}, "key": {"title": "Key", "type": "string", "x-nullable": true}}}, "CustomAIModelBaselineRequest": {"type": "object", "properties": {"environment": {"title": "Environment", "type": "string", "x-nullable": true}, "model_version": {"title": "Model version", "type": "string", "x-nullable": true}}}, "ModelHubStatusMessageResponse": {"required": ["status", "message"], "type": "object", "properties": {"status": {"title": "Status", "type": "string", "minLength": 1}, "message": {"title": "Message", "type": "string", "minLength": 1}}}, "CustomAIModelDefaultMetricRequest": {"required": ["metric_id"], "type": "object", "properties": {"metric_id": {"title": "Metric id", "type": "string", "format": "uuid"}}}, "DatasetOptimizationList": {"required": ["optimization_name", "started_at"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "optimization_name": {"title": "Optimization name", "type": "string", "minLength": 1}, "started_at": {"title": "Started at", "type": "string", "format": "date-time"}, "trial_count": {"title": "Trial count", "type": "string", "readOnly": true}, "optimizer_algorithm": {"title": "Optimizer algorithm", "type": "string", "enum": ["random_search", "bayesian", "metaprompt", "protegi", "promptwizard", "gepa"], "x-nullable": true}, "optimizer_model_id": {"title": "Optimizer model id", "type": "string", "readOnly": true}, "model_deprecated": {"title": "Model deprecated", "type": "boolean", "readOnly": true}, "column_id": {"title": "Column id", "type": "string", "format": "uuid", "readOnly": true}, "status": {"title": "Status", "type": "string", "enum": ["not_started", "pending", "running", "completed", "failed", "cancelled"]}, "error_message": {"title": "Error message", "type": "string", "x-nullable": true}, "optimizer_config": {"title": "Optimizer config", "description": "Optimizer-specific configuration (num_trials, etc.)", "type": "object", "x-nullable": true}, "best_score": {"title": "Best score", "type": "number", "x-nullable": true}, "baseline_score": {"title": "Baseline score", "type": "number", "x-nullable": true}}}, "DatasetOptimizationCreate": {"required": ["name", "column_id", "optimizer_algorithm"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "column_id": {"title": "Column id", "type": "string", "format": "uuid"}, "optimizer_algorithm": {"title": "Optimizer algorithm", "type": "string", "enum": ["random_search", "bayesian", "metaprompt", "protegi", "promptwizard", "gepa"]}, "optimizer_model_id": {"title": "Optimizer model id", "type": "string"}, "optimizer_config": {"title": "Optimizer config", "description": "Optimizer-specific configuration (num_trials, etc.)", "type": "object", "x-nullable": true}, "user_eval_template_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}, "default": []}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}}}, "DatasetOptimizationParameterItem": {"required": ["key", "label", "description", "value"], "type": "object", "properties": {"key": {"title": "Key", "type": "string", "minLength": 1}, "label": {"title": "Label", "type": "string", "minLength": 1}, "description": {"title": "Description", "type": "string"}, "value": {"title": "Value", "type": "object"}}}, "DatasetOptimizationTrialEvalScore": {"type": "object", "properties": {"score": {"title": "Score", "type": "number", "x-nullable": true}, "percentage_change": {"title": "Percentage change", "type": "number", "x-nullable": true}}}, "DatasetOptimizationTrialTableRow": {"required": ["id", "trial", "prompt", "is_best", "eval_scores"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "minLength": 1}, "trial": {"title": "Trial", "type": "string", "minLength": 1}, "prompt": {"title": "Prompt", "type": "string"}, "is_best": {"title": "Is best", "type": "boolean"}, "score_percentage_change": {"title": "Score percentage change", "type": "number", "x-nullable": true}, "eval_scores": {"title": "Eval scores", "type": "object", "additionalProperties": {"$ref": "#/definitions/DatasetOptimizationTrialEvalScore"}}}}, "DatasetOptimizationColumnConfigItem": {"required": ["id", "name", "is_visible"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "minLength": 1}, "name": {"title": "Name", "type": "string", "minLength": 1}, "is_visible": {"title": "Is visible", "type": "boolean"}}}, "DatasetOptimizationEvalTemplateItem": {"required": ["id", "eval_id", "name", "template_id"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "minLength": 1}, "eval_id": {"title": "Eval id", "type": "string", "minLength": 1}, "name": {"title": "Name", "type": "string", "minLength": 1}, "template_id": {"title": "Template id", "type": "string", "minLength": 1, "x-nullable": true}}}, "DatasetOptimizationDetail": {"type": "object", "properties": {"optimiser_name": {"title": "Optimiser name", "type": "string", "readOnly": true, "minLength": 1}, "optimiser_type": {"title": "Optimiser type", "type": "string", "readOnly": true, "minLength": 1}, "model": {"title": "Model", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "model_deprecated": {"title": "Model deprecated", "type": "boolean", "readOnly": true}, "provider_logo": {"title": "Provider logo", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "configuration": {"title": "Configuration", "type": "object", "readOnly": true}, "status": {"title": "Status", "type": "string", "enum": ["not_started", "pending", "running", "completed", "failed", "cancelled"]}, "error_message": {"title": "Error message", "type": "string", "x-nullable": true}, "start_time": {"title": "Start time", "type": "string", "format": "date-time", "readOnly": true}, "parameters": {"type": "array", "items": {"$ref": "#/definitions/DatasetOptimizationParameterItem"}, "readOnly": true}, "column_id": {"title": "Column id", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "column_name": {"title": "Column name", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "best_score": {"title": "Best score", "type": "number", "x-nullable": true}, "baseline_score": {"title": "Baseline score", "type": "number", "x-nullable": true}, "table": {"type": "array", "items": {"$ref": "#/definitions/DatasetOptimizationTrialTableRow"}, "readOnly": true}, "column_config": {"type": "array", "items": {"$ref": "#/definitions/DatasetOptimizationColumnConfigItem"}, "readOnly": true}, "optimizer_model_id": {"title": "Optimizer model id", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "user_eval_templates": {"type": "array", "items": {"$ref": "#/definitions/DatasetOptimizationEvalTemplateItem"}, "readOnly": true}}}, "DatasetOptimizationDetailApiResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/DatasetOptimizationDetail"}}}, "DatasetOptimization": {"required": ["name"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "column": {"title": "Column", "description": "Column being optimized", "type": "string", "format": "uuid", "x-nullable": true}, "optimizer_algorithm": {"title": "Optimizer algorithm", "type": "string", "enum": ["random_search", "bayesian", "metaprompt", "protegi", "promptwizard", "gepa"], "x-nullable": true}, "optimizer_model": {"title": "Optimizer model", "description": "Model used for optimization (separate from eval model)", "type": "string", "format": "uuid", "x-nullable": true}, "optimizer_config": {"title": "Optimizer config", "description": "Optimizer-specific configuration (num_trials, etc.)", "type": "object", "x-nullable": true}, "status": {"title": "Status", "type": "string", "enum": ["not_started", "pending", "running", "completed", "failed", "cancelled"]}, "error_message": {"title": "Error message", "type": "string", "x-nullable": true}, "best_score": {"title": "Best score", "type": "number", "x-nullable": true}, "baseline_score": {"title": "Baseline score", "type": "number", "x-nullable": true}, "optimized_k_prompts": {"type": "array", "items": {"title": "Optimized k prompts", "type": "string", "minLength": 1}, "x-nullable": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}}}, "DatasetColumnDetailItem": {"required": ["id", "name"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "data_type": {"title": "Data type", "type": "string", "x-nullable": true}}}, "DatasetColumnDetailResult": {"required": ["columns"], "type": "object", "properties": {"columns": {"type": "array", "items": {"$ref": "#/definitions/DatasetColumnDetailItem"}}}}, "DatasetColumnDetailResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/DatasetColumnDetailResult"}}}, "AnnotationSummaryHeader": {"type": "object", "properties": {"dataset_coverage": {"title": "Dataset coverage", "type": "number", "x-nullable": true}, "completion_eta": {"title": "Completion eta", "type": "number", "x-nullable": true}, "overall_agreement": {"title": "Overall agreement", "type": "number", "x-nullable": true}}}, "AnnotationSummaryResult": {"type": "object", "properties": {"labels": {"type": "array", "items": {"type": "object"}, "default": []}, "annotators": {"type": "array", "items": {"type": "object"}, "default": []}, "header": {"$ref": "#/definitions/AnnotationSummaryHeader"}}}, "AnnotationSummaryResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/AnnotationSummaryResult"}}}, "DatasetEvalStatsMetric": {"required": ["name", "output"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "total_cells": {"title": "Total cells", "type": "integer", "x-nullable": true}, "output": {"title": "Output", "type": "object"}}}, "DatasetEvalStatsItem": {"required": ["id", "name", "output_type", "result"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "output_type": {"title": "Output type", "type": "string", "minLength": 1}, "result": {"type": "array", "items": {"$ref": "#/definitions/DatasetEvalStatsMetric"}}, "total_pass_rate": {"title": "Total pass rate", "type": "number", "x-nullable": true}, "total_avg": {"title": "Total avg", "type": "object", "x-nullable": true}, "total_choices_avg": {"title": "Total choices avg", "type": "object", "x-nullable": true}, "is_numeric_eval": {"title": "Is numeric eval", "type": "boolean"}, "is_numeric_eval_percentage": {"title": "Is numeric eval percentage", "type": "boolean"}}}, "DatasetEvalStatsResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"type": "array", "items": {"$ref": "#/definitions/DatasetEvalStatsItem"}}}}, "JsonColumnSchemaEntry": {"required": ["name"], "type": "object", "properties": {"name": {"title": "Name", "type": "string", "minLength": 1}, "keys": {"type": "array", "items": {"type": "string", "minLength": 1}}, "sample": {"title": "Sample", "type": "object", "x-nullable": true}, "max_array_count": {"title": "Max array count", "type": "integer"}, "max_images_count": {"title": "Max images count", "type": "integer"}}}, "DatasetJsonSchemaResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"title": "Result", "type": "object", "additionalProperties": {"$ref": "#/definitions/JsonColumnSchemaEntry"}}}}, "DatasetRunPromptStatsPrompt": {"required": ["id", "name", "input_token", "output_token", "total_token"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "input_token": {"title": "Input token", "type": "number"}, "output_token": {"title": "Output token", "type": "number"}, "total_token": {"title": "Total token", "type": "number"}}}, "DatasetRunPromptStatsResult": {"required": ["avg_tokens", "avg_cost", "avg_time", "prompts"], "type": "object", "properties": {"avg_tokens": {"title": "Avg tokens", "type": "number"}, "avg_cost": {"title": "Avg cost", "type": "number"}, "avg_time": {"title": "Avg time", "type": "number"}, "prompts": {"type": "array", "items": {"$ref": "#/definitions/DatasetRunPromptStatsPrompt"}}}}, "DatasetRunPromptStatsResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/DatasetRunPromptStatsResult"}}}, "CompareEvalsListRequest": {"required": ["eval_type", "dataset_ids"], "type": "object", "properties": {"search_text": {"title": "Search text", "type": "string", "default": ""}, "eval_type": {"title": "Eval type", "type": "string", "enum": ["user"]}, "dataset_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}}}}, "CompareEvalListResult": {"required": ["evals"], "type": "object", "properties": {"evals": {"type": "array", "items": {"type": "object"}}}}, "CompareEvalListResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/CompareEvalListResult"}}}, "ComparePreviewRunEvalRequest": {"required": ["config", "template_id", "dataset_ids"], "type": "object", "properties": {"config": {"title": "Config", "type": "object"}, "model": {"title": "Model", "type": "string", "default": ""}, "template_id": {"title": "Template id", "type": "string", "format": "uuid"}, "dataset_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}}, "dataset_info": {"title": "Dataset info", "type": "object", "default": {}}, "source": {"title": "Source", "type": "string", "default": "dataset_evaluation"}}}, "EvalPreviewResult": {"required": ["responses"], "type": "object", "properties": {"responses": {"type": "array", "items": {"type": "object"}}}}, "EvalPreviewResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/EvalPreviewResult"}}}, "CompareDatasetRowResult": {"required": ["table"], "type": "object", "properties": {"prev_row_id": {"title": "Prev row id", "type": "string", "format": "uuid", "x-nullable": true}, "next_row_id": {"title": "Next row id", "type": "string", "format": "uuid", "x-nullable": true}, "table": {"type": "array", "items": {"type": "object"}}}}, "CompareDatasetRowResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/CompareDatasetRowResult"}}}, "CompareDatasetDeleteResult": {"required": ["message"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}}}, "CompareDatasetDeleteResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/CompareDatasetDeleteResult"}}}, "DatasetExplanationSummaryResponseResult": {"required": ["response", "last_updated", "status", "row_count", "min_rows_required"], "type": "object", "properties": {"response": {"title": "Response", "type": "object", "x-nullable": true}, "last_updated": {"title": "Last updated", "type": "string", "format": "date-time", "x-nullable": true}, "status": {"title": "Status", "type": "string", "minLength": 1}, "row_count": {"title": "Row count", "type": "integer"}, "min_rows_required": {"title": "Min rows required", "type": "integer"}}}, "DatasetExplanationSummaryResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/DatasetExplanationSummaryResponseResult"}}}, "BaseColumnsResponseResult": {"required": ["base_columns"], "type": "object", "properties": {"base_columns": {"type": "array", "items": {"type": "string", "minLength": 1}}}}, "BaseColumnsResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/BaseColumnsResponseResult"}}}, "HuggingFaceDatasetDetailRequest": {"required": ["dataset_id"], "type": "object", "properties": {"dataset_id": {"title": "Dataset id", "type": "string", "minLength": 1}}}, "HuggingFaceDatasetDetail": {"required": ["id", "name", "description", "downloads", "likes", "tags"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "minLength": 1}, "name": {"title": "Name", "type": "string", "minLength": 1}, "description": {"title": "Description", "type": "string"}, "downloads": {"title": "Downloads", "type": "integer"}, "likes": {"title": "Likes", "type": "integer"}, "tags": {"type": "array", "items": {"type": "string", "minLength": 1}}, "author": {"title": "Author", "type": "string", "minLength": 1, "x-nullable": true}}}, "HuggingFaceDatasetDetailResponseResult": {"required": ["message", "dataset"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}, "dataset": {"$ref": "#/definitions/HuggingFaceDatasetDetail"}}}, "HuggingFaceDatasetDetailResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/HuggingFaceDatasetDetailResponseResult"}}}, "HuggingFaceDatasetListRequest": {"type": "object", "properties": {"search_query": {"title": "Search query", "type": "string", "default": ""}, "filter_params": {"title": "Filter params", "type": "object", "default": {}}}}, "HuggingFaceDatasetListItem": {"required": ["id", "name", "downloads", "likes"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "minLength": 1}, "name": {"title": "Name", "type": "string", "minLength": 1}, "downloads": {"title": "Downloads", "type": "integer"}, "likes": {"title": "Likes", "type": "integer"}, "author": {"title": "Author", "type": "string", "minLength": 1, "x-nullable": true}}}, "HuggingFaceDatasetListResponseResult": {"required": ["message", "total_datasets", "datasets"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}, "total_datasets": {"title": "Total datasets", "type": "integer"}, "datasets": {"type": "array", "items": {"$ref": "#/definitions/HuggingFaceDatasetListItem"}}}}, "HuggingFaceDatasetListResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/HuggingFaceDatasetListResponseResult"}}}, "AddApiColumnRequest": {"required": ["column_name", "config"], "type": "object", "properties": {"column_name": {"title": "Column name", "type": "string", "minLength": 1}, "config": {"title": "Config", "type": "object"}, "concurrency": {"title": "Concurrency", "type": "integer", "default": 5}}}, "DynamicColumnCreateResult": {"required": ["message", "new_column_id", "new_column_name"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}, "new_column_id": {"title": "New column id", "type": "string", "format": "uuid"}, "new_column_name": {"title": "New column name", "type": "string", "minLength": 1}}}, "DynamicColumnCreateResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/DynamicColumnCreateResult"}}}, "VectorDBColumnRequest": {"required": ["column_id", "sub_type", "api_key"], "type": "object", "properties": {"column_id": {"title": "Column id", "type": "string", "format": "uuid"}, "new_column_name": {"title": "New column name", "type": "string"}, "sub_type": {"title": "Sub type", "type": "string", "minLength": 1}, "api_key": {"title": "Api key", "type": "string", "minLength": 1}, "collection_name": {"title": "Collection name", "type": "string"}, "url": {"title": "Url", "type": "string"}, "search_type": {"title": "Search type", "type": "string"}, "key": {"title": "Key", "type": "string"}, "limit": {"title": "Limit", "type": "integer"}, "index_name": {"title": "Index name", "type": "string"}, "top_k": {"title": "Top k", "type": "integer"}, "namespace": {"title": "Namespace", "type": "string"}, "embedding_config": {"title": "Embedding config", "type": "object"}, "concurrency": {"title": "Concurrency", "type": "integer", "default": 5}, "query_key": {"title": "Query key", "type": "string"}, "vector_length": {"title": "Vector length", "type": "integer"}}}, "ClassifyColumnRequest": {"required": ["column_id", "labels"], "type": "object", "properties": {"column_id": {"title": "Column id", "type": "string", "format": "uuid"}, "labels": {"type": "array", "items": {"type": "string", "minLength": 1}}, "language_model_id": {"title": "Language model id", "type": "string", "default": "gpt-4o", "minLength": 1}, "concurrency": {"title": "Concurrency", "type": "integer", "default": 5}, "new_column_name": {"title": "New column name", "type": "string"}}}, "CompareDataset": {"required": ["base_column_name", "dataset_ids"], "type": "object", "properties": {"compare_id": {"title": "Compare id", "type": "string", "format": "uuid", "x-nullable": true}, "page_size": {"title": "Page size", "type": "integer", "default": 10}, "current_page_index": {"title": "Current page index", "type": "integer", "default": 0}, "base_column_name": {"title": "Base column name", "type": "string", "minLength": 1}, "dataset_info": {"title": "Dataset info", "type": "object", "default": {}}, "common_column_names": {"type": "array", "items": {"type": "string", "minLength": 1}, "default": []}, "dataset_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}}}}, "CompareDatasetMetadata": {"required": ["compare_id", "total_rows", "total_pages"], "type": "object", "properties": {"compare_id": {"title": "Compare id", "type": "string", "format": "uuid"}, "total_rows": {"title": "Total rows", "type": "integer"}, "total_pages": {"title": "Total pages", "type": "integer"}}}, "CompareDatasetResult": {"type": "object", "properties": {"metadata": {"$ref": "#/definitions/CompareDatasetMetadata"}, "column_config": {"type": "array", "items": {"type": "object"}}, "table": {"type": "array", "items": {"type": "object"}}}}, "CompareDatasetResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/CompareDatasetResult"}}}, "CompareExperimentEvalRequest": {"required": ["name", "template_id", "config"], "type": "object", "properties": {"name": {"title": "Name", "type": "string", "maxLength": 50, "minLength": 1}, "template_id": {"title": "Template id", "type": "string", "maxLength": 500, "minLength": 1}, "config": {"title": "Config", "type": "object"}, "kb_id": {"title": "Kb id", "type": "string", "format": "uuid"}, "error_localizer": {"title": "Error localizer", "type": "boolean", "default": false}, "model": {"title": "Model", "type": "string", "maxLength": 100}, "eval_type": {"title": "Eval type", "type": "string"}, "run": {"title": "Run", "type": "boolean", "default": false}, "save_as_template": {"title": "Save as template", "type": "boolean", "default": false}, "experiment_id": {"title": "Experiment id", "type": "string", "format": "uuid"}, "composite_weight_overrides": {"title": "Composite weight overrides", "type": "object", "x-nullable": true}, "dataset_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}, "default": []}}}, "DevelopDatasetMessageResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"title": "Result", "type": "string", "minLength": 1}}}, "CompareStartEvalsRequest": {"required": ["user_eval_names"], "type": "object", "properties": {"user_eval_names": {"type": "array", "items": {"type": "string", "minLength": 1}}, "dataset_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}, "default": []}}}, "CompareDatasetStatsRequest": {"required": ["base_column_name", "dataset_ids"], "type": "object", "properties": {"base_column_name": {"title": "Base column name", "type": "string", "minLength": 1}, "dataset_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}}, "stat_type": {"title": "Stat type", "type": "string", "enum": ["evaluation", "run_prompt"], "default": "evaluation"}}}, "CompareDatasetStatsResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"title": "Result", "type": "object", "additionalProperties": {"type": "array", "items": {"type": "object"}}}}}, "ConditionalColumnRequest": {"required": ["config", "new_column_name"], "type": "object", "properties": {"config": {"type": "array", "items": {"type": "object"}}, "new_column_name": {"title": "New column name", "type": "string", "minLength": 1}, "concurrency": {"title": "Concurrency", "type": "integer", "default": 5}}}, "DerivedVariableDetail": {"type": "object", "properties": {"paths": {"type": "array", "items": {"type": "string", "minLength": 1}}, "schema": {"title": "Schema", "type": "object"}, "full_variables": {"type": "array", "items": {"type": "string", "minLength": 1}}, "raw_sample": {"title": "Raw sample", "type": "object", "x-nullable": true}, "is_json": {"title": "Is json", "type": "boolean"}}}, "DatasetDerivedVariablesResult": {"required": ["derived_variables"], "type": "object", "properties": {"derived_variables": {"title": "Derived variables", "type": "object", "additionalProperties": {"$ref": "#/definitions/DerivedVariableDetail"}}}}, "DatasetDerivedVariablesResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/DatasetDerivedVariablesResult"}}}, "DuplicateRowsRequest": {"type": "object", "properties": {"row_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}, "default": []}, "selected_all_rows": {"title": "Selected all rows", "type": "boolean", "default": false}, "num_copies": {"title": "Num copies", "type": "integer", "default": 1, "minimum": 1}}}, "DuplicateRowsResult": {"required": ["message", "source_rows", "copies_per_row", "total_new_rows", "new_row_ids"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}, "source_rows": {"title": "Source rows", "type": "integer"}, "copies_per_row": {"title": "Copies per row", "type": "integer"}, "total_new_rows": {"title": "Total new rows", "type": "integer"}, "new_row_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}}}}, "DuplicateRowsResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/DuplicateRowsResult"}}}, "DuplicateDatasetRequest": {"required": ["name"], "type": "object", "properties": {"row_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}, "default": []}, "selected_all_rows": {"title": "Selected all rows", "type": "boolean", "default": false}, "name": {"title": "Name", "type": "string", "minLength": 1}}}, "DuplicateDatasetResult": {"required": ["message", "new_dataset_id", "new_dataset_name", "columns_copied", "rows_copied"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}, "new_dataset_id": {"title": "New dataset id", "type": "string", "format": "uuid"}, "new_dataset_name": {"title": "New dataset name", "type": "string", "minLength": 1}, "columns_copied": {"title": "Columns copied", "type": "integer"}, "rows_copied": {"title": "Rows copied", "type": "integer"}}}, "DuplicateDatasetResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/DuplicateDatasetResult"}}}, "DatasetLimitCheckFailedError": {"type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": false}, "type": {"title": "Type", "type": "string", "enum": ["validation_error", "authentication_error", "payment_required", "entitlement_error", "permission_error", "not_found", "conflict", "client_error", "rate_limit", "server_error", "service_unavailable", "timeout", "api_error"], "x-nullable": true}, "code": {"title": "Code", "type": "string", "enum": ["dataset_limit_check_failed"]}, "detail": {"title": "Detail", "type": "string", "x-nullable": true}, "result": {"title": "Result", "type": "string", "minLength": 1, "x-nullable": true}, "message": {"title": "Message", "type": "string", "minLength": 1, "x-nullable": true}, "error": {"title": "Error", "type": "string", "x-nullable": true}, "attr": {"title": "Attr", "type": "string", "x-nullable": true}, "details": {"title": "Details", "type": "object", "additionalProperties": {"type": "array", "items": {"type": "string", "minLength": 1}}}}}, "ExtractEntitiesRequest": {"required": ["column_id", "instruction"], "type": "object", "properties": {"column_id": {"title": "Column id", "type": "string", "format": "uuid"}, "instruction": {"title": "Instruction", "type": "string", "minLength": 1}, "language_model_id": {"title": "Language model id", "type": "string", "default": "gpt-4", "minLength": 1}, "concurrency": {"title": "Concurrency", "type": "integer", "default": 5}, "new_column_name": {"title": "New column name", "type": "string"}}}, "DynamicColumnMessageResult": {"required": ["message"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}}}, "DynamicColumnMessageResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/DynamicColumnMessageResult"}}}, "MergeDatasetRequest": {"required": ["target_dataset_id"], "type": "object", "properties": {"row_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}, "default": []}, "selected_all_rows": {"title": "Selected all rows", "type": "boolean", "default": false}, "target_dataset_id": {"title": "Target dataset id", "type": "string", "format": "uuid"}}}, "MergeDatasetResult": {"required": ["message", "rows_added", "new_columns_created", "columns_mapped"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}, "rows_added": {"title": "Rows added", "type": "integer"}, "new_columns_created": {"title": "New columns created", "type": "integer"}, "columns_mapped": {"title": "Columns mapped", "type": "integer"}}}, "MergeDatasetResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/MergeDatasetResult"}}}, "PreviewDatasetOperationRequest": {"type": "object", "properties": {"column_id": {"title": "Column id", "type": "string", "format": "uuid"}, "json_key": {"title": "Json key", "type": "string"}, "labels": {"type": "array", "items": {"type": "string", "minLength": 1}, "default": []}, "instruction": {"title": "Instruction", "type": "string"}, "language_model_id": {"title": "Language model id", "type": "string"}, "config": {"title": "Config", "type": "object"}, "code": {"title": "Code", "type": "string"}}}, "PreviewDatasetOperationResultItem": {"required": ["row_id"], "type": "object", "properties": {"row_id": {"title": "Row id", "type": "string", "format": "uuid"}, "input": {"title": "Input", "type": "object", "x-nullable": true}, "output": {"title": "Output", "type": "object", "x-nullable": true}, "details": {"title": "Details", "type": "object", "x-nullable": true}}}, "PreviewDatasetOperationResult": {"required": ["message", "preview_results", "sample_size"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}, "preview_results": {"type": "array", "items": {"$ref": "#/definitions/PreviewDatasetOperationResultItem"}}, "sample_size": {"title": "Sample size", "type": "integer"}}}, "PreviewDatasetOperationResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/PreviewDatasetOperationResult"}}}, "DeleteEvalTemplate": {"required": ["eval_template_id"], "type": "object", "properties": {"eval_template_id": {"title": "Eval template id", "type": "string", "format": "uuid"}}}, "AddAsNewDatasetRequest": {"required": ["dataset_id"], "type": "object", "properties": {"dataset_id": {"title": "Dataset id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string"}, "columns": {"title": "Columns", "type": "object", "default": {}}}}, "DatasetCopyResult": {"required": ["message", "dataset_id", "dataset_name"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}, "dataset_id": {"title": "Dataset id", "type": "string", "format": "uuid"}, "dataset_name": {"title": "Dataset name", "type": "string", "minLength": 1}}}, "DatasetCopyResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/DatasetCopyResult"}}}, "AddRowsFromFileRequest": {"required": ["dataset_id"], "type": "object", "properties": {"file": {"title": "File", "type": "string", "readOnly": true, "format": "uri"}, "dataset_id": {"title": "Dataset id", "type": "string", "format": "uuid"}, "model_type": {"title": "Model type", "type": "string"}}}, "DatasetSdkRowsRequest": {"type": "object", "properties": {"dataset_name": {"title": "Dataset name", "type": "string"}, "dataset_id": {"title": "Dataset id", "type": "string", "format": "uuid", "x-nullable": true}}}, "Dataset": {"required": ["name", "organization"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "type": "string", "maxLength": 2000, "minLength": 1}, "organization": {"title": "Organization", "type": "string", "format": "uuid"}, "model_type": {"title": "Model type", "type": "string", "enum": ["Numeric", "ScoreCategorical", "Ranking", "BinaryClassification", "Regression", "ObjectDetection", "Segmentation", "GenerativeLLM", "GenerativeImage", "GenerativeVideo", "TTS", "STT", "MultiModal"]}, "source": {"title": "Source", "type": "string", "enum": ["demo", "build", "sdk", "observe", "knowledge_base", "scenario", "experiment_snapshot", "graph"]}, "user": {"title": "User", "type": "string", "format": "uuid", "x-nullable": true}}}, "DatasetSdkRowsCode": {"required": ["python_add_row", "python_add_col", "typescript_add_col", "typescript_add_row", "curl_add_col", "curl_add_row"], "type": "object", "properties": {"python_add_row": {"title": "Python add row", "type": "string", "minLength": 1}, "python_add_col": {"title": "Python add col", "type": "string", "minLength": 1}, "typescript_add_col": {"title": "Typescript add col", "type": "string", "minLength": 1}, "typescript_add_row": {"title": "Typescript add row", "type": "string", "minLength": 1}, "curl_add_col": {"title": "Curl add col", "type": "string", "minLength": 1}, "curl_add_row": {"title": "Curl add row", "type": "string", "minLength": 1}}}, "DatasetSdkRowsResult": {"required": ["api_keys", "dataset", "code"], "type": "object", "properties": {"api_keys": {"title": "Api keys", "type": "object"}, "dataset": {"$ref": "#/definitions/Dataset"}, "code": {"$ref": "#/definitions/DatasetSdkRowsCode"}}}, "DatasetSdkRowsResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/DatasetSdkRowsResult"}}}, "PromptConfig": {"type": "object", "properties": {"model": {"title": "Model", "type": "string", "maxLength": 255}, "run_prompt_config": {"title": "Run prompt config", "type": "object", "additionalProperties": {"type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}}, "messages": {"description": "List of messages with format [{'role': 'user/assistant', 'content': 'text'}]", "type": "array", "items": {"type": "object", "additionalProperties": {"type": "object", "x-json-value": true, "description": "Any valid JSON value."}}}, "temperature": {"title": "Temperature", "description": "Controls the randomness. Value between 0 and 2.", "type": "number", "maximum": 2.0, "minimum": 0.0, "x-nullable": true}, "frequency_penalty": {"title": "Frequency penalty", "description": "Penalty for word repetition. Value between -2 and 2.", "type": "number", "maximum": 2.0, "minimum": -2.0, "x-nullable": true}, "presence_penalty": {"title": "Presence penalty", "description": "Penalty for new word usage. Value between -2 and 2.", "type": "number", "maximum": 2.0, "minimum": -2.0, "x-nullable": true}, "max_tokens": {"title": "Max tokens", "description": "Maximum number of tokens to generate. Null = use provider default.", "type": "integer", "maximum": 65536, "minimum": 1, "x-nullable": true}, "top_p": {"title": "Top p", "description": "Controls diversity via nucleus sampling. Value between 0 and 1.", "type": "number", "maximum": 1.0, "minimum": 0.0, "x-nullable": true}, "response_format": {"title": "Response format", "description": "String or JSON object.", "type": "object", "x-nullable": true, "x-string-or-object": true}, "tool_choice": {"title": "Tool choice", "description": "Tool selection mode: 'auto' or 'required'.", "type": "string", "enum": ["auto", "required", null], "x-nullable": true}, "tools": {"description": "List of tools with tool properties if available.", "type": "array", "items": {"type": "object", "additionalProperties": {"type": "object", "x-json-value": true, "description": "Any valid JSON value."}}, "x-nullable": true}, "output_format": {"title": "Output format", "description": "Output format type.", "type": "string", "enum": ["array", "string", "number", "object", "audio", "image"], "x-nullable": true}, "concurrency": {"title": "Concurrency", "description": "Number of concurrent operations allowed. Maximum 10.", "type": "integer", "maximum": 10, "minimum": 1, "x-nullable": true}}, "default": {"temperature": null, "frequency_penalty": null, "presence_penalty": null, "max_tokens": null, "top_p": null, "response_format": null, "tool_choice": null, "tools": null, "output_format": null, "concurrency": null}}, "AddRunPrompt": {"required": ["dataset_id", "name"], "type": "object", "properties": {"dataset_id": {"title": "Dataset id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "config": {"$ref": "#/definitions/PromptConfig"}}}, "CloneDatasetRequest": {"type": "object", "properties": {"new_dataset_name": {"title": "New dataset name", "type": "string"}}}, "HuggingFaceDatasetCreateRequest": {"required": ["huggingface_dataset_name", "huggingface_dataset_split"], "type": "object", "properties": {"name": {"title": "Name", "type": "string", "default": ""}, "model_type": {"title": "Model type", "type": "string", "default": ""}, "num_rows": {"title": "Num rows", "type": "integer", "minimum": 0}, "huggingface_dataset_name": {"title": "Huggingface dataset name", "type": "string", "minLength": 1}, "huggingface_dataset_config": {"title": "Huggingface dataset config", "type": "string"}, "huggingface_dataset_split": {"title": "Huggingface dataset split", "type": "string", "minLength": 1}}}, "DatasetCreateStartedResult": {"required": ["message", "dataset_id", "dataset_name"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}, "dataset_id": {"title": "Dataset id", "type": "string", "format": "uuid"}, "dataset_name": {"title": "Dataset name", "type": "string", "minLength": 1}, "dataset_model_type": {"title": "Dataset model type", "type": "string", "x-nullable": true}}}, "DatasetCreateStartedResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/DatasetCreateStartedResult"}}}, "CreateDatasetFromLocalFileRequest": {"type": "object", "properties": {"file": {"title": "File", "type": "string", "readOnly": true, "format": "uri"}, "new_dataset_name": {"title": "New dataset name", "type": "string"}, "model_type": {"title": "Model type", "type": "string"}, "source": {"title": "Source", "type": "string"}}}, "LocalFileDatasetCreateStartedResult": {"required": ["message", "dataset_id", "dataset_name", "processing_status", "estimated_rows", "estimated_columns"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}, "dataset_id": {"title": "Dataset id", "type": "string", "format": "uuid"}, "dataset_name": {"title": "Dataset name", "type": "string", "minLength": 1}, "dataset_model_type": {"title": "Dataset model type", "type": "string", "x-nullable": true}, "processing_status": {"title": "Processing status", "type": "string", "minLength": 1}, "estimated_rows": {"title": "Estimated rows", "type": "integer"}, "estimated_columns": {"title": "Estimated columns", "type": "integer"}}}, "LocalFileDatasetCreateStartedResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/LocalFileDatasetCreateStartedResult"}}}, "ManualDatasetCreateRequest": {"required": ["dataset_name"], "type": "object", "properties": {"dataset_name": {"title": "Dataset name", "type": "string", "minLength": 1}, "number_of_rows": {"title": "Number of rows", "type": "integer", "default": 1, "minimum": 1}, "number_of_columns": {"title": "Number of columns", "type": "integer", "default": 1, "minimum": 1}}}, "ManualDatasetCreateResult": {"required": ["message", "dataset_id", "rows_created", "columns_created"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}, "dataset_id": {"title": "Dataset id", "type": "string", "format": "uuid"}, "rows_created": {"title": "Rows created", "type": "integer"}, "columns_created": {"title": "Columns created", "type": "integer"}}}, "ManualDatasetCreateResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/ManualDatasetCreateResult"}}}, "CreateEmptyDatasetRequest": {"required": ["new_dataset_name"], "type": "object", "properties": {"new_dataset_name": {"title": "New dataset name", "type": "string", "minLength": 1}, "model_type": {"title": "Model type", "type": "string", "default": "GenerativeLLM"}, "is_sdk": {"title": "Is sdk", "type": "boolean", "default": false}, "row": {"title": "Row", "type": "integer", "maximum": 10, "minimum": 0}}}, "SyntheticDatasetColumn": {"required": ["name", "data_type", "description", "property"], "type": "object", "properties": {"name": {"title": "Name", "type": "string", "minLength": 1}, "data_type": {"title": "Data type", "type": "string", "minLength": 1}, "description": {"title": "Description", "type": "string"}, "property": {"title": "Property", "type": "object"}, "skip": {"title": "Skip", "type": "boolean"}, "is_new": {"title": "Is new", "type": "boolean"}}}, "SyntheticDatasetPayload": {"required": ["description", "objective", "patterns"], "type": "object", "properties": {"name": {"title": "Name", "type": "string"}, "description": {"title": "Description", "type": "string"}, "objective": {"title": "Objective", "type": "string"}, "patterns": {"title": "Patterns", "type": "string"}}}, "SyntheticDatasetCreation": {"required": ["num_rows", "columns", "dataset"], "type": "object", "properties": {"num_rows": {"title": "Num rows", "type": "integer"}, "columns": {"type": "array", "items": {"$ref": "#/definitions/SyntheticDatasetColumn"}}, "dataset": {"$ref": "#/definitions/SyntheticDatasetPayload"}, "kb_id": {"title": "Kb id", "type": "string", "format": "uuid"}}}, "SyntheticDatasetCreateStartedResult": {"required": ["message", "data"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}, "data": {"$ref": "#/definitions/Dataset"}}}, "SyntheticDatasetCreateStartedResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/SyntheticDatasetCreateStartedResult"}}}, "DatasetCreationProgressResult": {"required": ["dataset_id", "dataset_name", "processing_status", "is_processing", "is_completed", "is_failed"], "type": "object", "properties": {"dataset_id": {"title": "Dataset id", "type": "string", "format": "uuid"}, "dataset_name": {"title": "Dataset name", "type": "string", "minLength": 1}, "processing_status": {"title": "Processing status", "type": "string", "minLength": 1}, "is_processing": {"title": "Is processing", "type": "boolean"}, "is_completed": {"title": "Is completed", "type": "boolean"}, "is_failed": {"title": "Is failed", "type": "boolean"}, "original_filename": {"title": "Original filename", "type": "string", "x-nullable": true}, "estimated_rows": {"title": "Estimated rows", "type": "integer", "x-nullable": true}, "estimated_columns": {"title": "Estimated columns", "type": "integer", "x-nullable": true}, "queued_at": {"title": "Queued at", "type": "string", "x-nullable": true}, "started_at": {"title": "Started at", "type": "string", "x-nullable": true}, "completed_at": {"title": "Completed at", "type": "string", "x-nullable": true}, "failed_at": {"title": "Failed at", "type": "string", "x-nullable": true}, "error_message": {"title": "Error message", "type": "string", "x-nullable": true}}}, "DatasetCreationProgressResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/DatasetCreationProgressResult"}}}, "DatasetDelete": {"required": ["dataset_ids"], "type": "object", "properties": {"dataset_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}, "maxItems": 50}}}, "EditRunPromptColumn": {"required": ["dataset_id", "column_id"], "type": "object", "properties": {"dataset_id": {"title": "Dataset id", "type": "string", "format": "uuid"}, "column_id": {"title": "Column id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1, "x-nullable": true}, "config": {"$ref": "#/definitions/PromptConfig"}}}, "DatasetCellDataRequest": {"required": ["row_ids", "column_ids"], "type": "object", "properties": {"row_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}}, "column_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}}}}, "DatasetCellInnerMetadata": {"type": "object", "properties": {"explanation": {"title": "Explanation", "type": "string", "x-nullable": true}, "error_analysis": {"title": "Error analysis", "type": "object", "x-nullable": true}, "selected_input_key": {"title": "Selected input key", "type": "string", "x-nullable": true}}}, "DatasetCellMetadata": {"type": "object", "properties": {"response_time_ms": {"title": "Response time ms", "type": "number", "x-nullable": true}, "token_count": {"title": "Token count", "type": "integer", "x-nullable": true}, "cost": {"title": "Cost", "type": "object", "x-nullable": true}, "cell_metadata": {"$ref": "#/definitions/DatasetCellInnerMetadata"}, "reason": {"title": "Reason", "type": "string", "x-nullable": true}}}, "DatasetCellValue": {"type": "object", "properties": {"cell_value": {"title": "Cell value", "type": "object", "x-nullable": true}, "cell_diff_value": {"title": "Cell diff value", "type": "object", "x-nullable": true}, "status": {"title": "Status", "type": "string", "x-nullable": true}, "value_infos": {"title": "Value infos", "type": "object", "x-nullable": true}, "feedback_info": {"title": "Feedback info", "type": "object", "x-nullable": true}, "metadata": {"$ref": "#/definitions/DatasetCellMetadata"}}}, "DatasetCellDataResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"title": "Result", "type": "object", "additionalProperties": {"type": "object", "additionalProperties": {"$ref": "#/definitions/DatasetCellValue"}}}}}, "DatasetNameItem": {"required": ["dataset_id", "name"], "type": "object", "properties": {"dataset_id": {"title": "Dataset id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "model_type": {"title": "Model type", "type": "string"}}}, "DatasetNamesResult": {"required": ["datasets"], "type": "object", "properties": {"datasets": {"type": "array", "items": {"$ref": "#/definitions/DatasetNameItem"}}}}, "DatasetNamesResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/DatasetNamesResult"}}}, "DatasetListItem": {"required": ["id", "name", "number_of_datapoints", "number_of_experiments", "number_of_optimisations", "derived_datasets", "created_at", "dataset_type"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "number_of_datapoints": {"title": "Number of datapoints", "type": "integer"}, "number_of_experiments": {"title": "Number of experiments", "type": "integer"}, "number_of_optimisations": {"title": "Number of optimisations", "type": "integer"}, "derived_datasets": {"title": "Derived datasets", "type": "integer"}, "created_at": {"title": "Created at", "type": "string", "minLength": 1}, "dataset_type": {"title": "Dataset type", "type": "string", "minLength": 1}}}, "DatasetListResult": {"required": ["datasets", "total_pages", "total_count"], "type": "object", "properties": {"datasets": {"type": "array", "items": {"$ref": "#/definitions/DatasetListItem"}}, "total_pages": {"title": "Total pages", "type": "integer"}, "total_count": {"title": "Total count", "type": "integer"}}}, "DatasetListResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/DatasetListResult"}}}, "HuggingFaceDatasetConfigRequest": {"required": ["dataset_path"], "type": "object", "properties": {"dataset_path": {"title": "Dataset path", "type": "string", "minLength": 1}}}, "HuggingFaceDatasetConfigResult": {"required": ["message", "dataset_info"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}, "dataset_info": {"title": "Dataset info", "type": "object"}}}, "HuggingFaceDatasetConfigResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/HuggingFaceDatasetConfigResult"}}}, "DatasetRowDiffRequest": {"required": ["experiment_id", "column_ids", "row_ids", "compare_column_ids"], "type": "object", "properties": {"experiment_id": {"title": "Experiment id", "type": "string", "format": "uuid"}, "column_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}}, "row_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}}, "compare_column_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}}}}, "ExperimentRowCellInnerMetadata": {"type": "object", "properties": {"explanation": {"title": "Explanation", "type": "string", "x-nullable": true}, "error_analysis": {"title": "Error analysis", "type": "object", "x-nullable": true}, "selected_input_key": {"title": "Selected input key", "type": "string", "x-nullable": true}}}, "ExperimentRowCellMetadata": {"type": "object", "properties": {"response_time_ms": {"title": "Response time ms", "type": "number", "x-nullable": true}, "token_count": {"title": "Token count", "type": "integer", "x-nullable": true}, "cost": {"title": "Cost", "type": "object", "x-nullable": true}, "cell_metadata": {"$ref": "#/definitions/ExperimentRowCellInnerMetadata"}, "reason": {"title": "Reason", "type": "string", "x-nullable": true}}}, "ExperimentRowCell": {"type": "object", "properties": {"cell_value": {"title": "Cell value", "type": "object", "x-nullable": true}, "cell_diff_value": {"title": "Cell diff value", "type": "object", "x-nullable": true}, "status": {"title": "Status", "type": "string", "x-nullable": true}, "metadata": {"$ref": "#/definitions/ExperimentRowCellMetadata"}, "value_infos": {"title": "Value infos", "type": "object", "x-nullable": true}}}, "ExperimentRowDiffResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"title": "Result", "type": "object", "additionalProperties": {"type": "object", "additionalProperties": {"$ref": "#/definitions/ExperimentRowCell"}}}}}, "EvalFunctionListResult": {"required": ["functions"], "type": "object", "properties": {"functions": {"type": "array", "items": {"type": "object"}}}}, "EvalFunctionListResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/EvalFunctionListResult"}}}, "PreviewRunPrompt": {"required": ["dataset_id", "name"], "type": "object", "properties": {"dataset_id": {"title": "Dataset id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "config": {"$ref": "#/definitions/PromptConfig"}, "first_n_rows": {"title": "First n rows", "type": "integer", "minimum": 1}, "row_indices": {"description": "List of row indices to preview. Must contain at least one integer.", "type": "array", "items": {"type": "integer", "minimum": 0}}}}, "RunPromptColumnPreviewResult": {"required": ["responses", "token_usage", "cost"], "type": "object", "properties": {"responses": {"type": "array", "items": {"type": "object"}}, "token_usage": {"title": "Token usage", "type": "object"}, "cost": {"title": "Cost", "type": "object"}}}, "RunPromptColumnPreviewResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/RunPromptColumnPreviewResult"}}}, "ProviderStatusItem": {"required": ["provider", "display_name", "has_key", "type"], "type": "object", "properties": {"provider": {"title": "Provider", "type": "string", "minLength": 1}, "display_name": {"title": "Display name", "type": "string", "minLength": 1}, "has_key": {"title": "Has key", "type": "boolean"}, "masked_key": {"title": "Masked key", "type": "string", "x-nullable": true}, "logo_url": {"title": "Logo url", "type": "string", "x-nullable": true}, "type": {"title": "Type", "type": "string", "minLength": 1}, "id": {"title": "Id", "type": "string", "format": "uuid", "x-nullable": true}}}, "ProviderStatusResult": {"required": ["providers"], "type": "object", "properties": {"providers": {"type": "array", "items": {"$ref": "#/definitions/ProviderStatusItem"}}}}, "ProviderStatusResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/ProviderStatusResult"}}}, "RunPromptColumnConfigResult": {"required": ["config"], "type": "object", "properties": {"config": {"title": "Config", "type": "object"}}}, "RunPromptColumnConfigResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/RunPromptColumnConfigResult"}}}, "RunPromptToolOption": {"required": ["id", "name"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "minLength": 1}, "name": {"title": "Name", "type": "string", "minLength": 1}, "yaml_config": {"title": "Yaml config", "type": "string", "x-nullable": true}, "config": {"title": "Config", "type": "object"}, "config_type": {"title": "Config type", "type": "string", "x-nullable": true}, "description": {"title": "Description", "type": "string", "x-nullable": true}}}, "RunPromptChoiceOption": {"required": ["value", "label"], "type": "object", "properties": {"value": {"title": "Value", "type": "object"}, "label": {"title": "Label", "type": "string", "minLength": 1}}}, "RunPromptOptionsResult": {"required": ["models", "tool_config", "available_tools", "output_formats", "tool_choices"], "type": "object", "properties": {"models": {"type": "array", "items": {"type": "object"}}, "tool_config": {"title": "Tool config", "type": "object"}, "available_tools": {"type": "array", "items": {"$ref": "#/definitions/RunPromptToolOption"}}, "output_formats": {"type": "array", "items": {"$ref": "#/definitions/RunPromptChoiceOption"}}, "tool_choices": {"type": "array", "items": {"$ref": "#/definitions/RunPromptChoiceOption"}}}}, "RunPromptOptionsResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/RunPromptOptionsResult"}}}, "DatasetAddColumnsRequest": {"required": ["new_columns_data"], "type": "object", "properties": {"new_columns_data": {"type": "array", "items": {"type": "object"}}}}, "Column": {"required": ["name", "data_type", "source"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "type": "string", "maxLength": 2000, "minLength": 1}, "data_type": {"title": "Data type", "type": "string", "enum": ["text", "boolean", "integer", "float", "json", "array", "image", "images", "datetime", "audio", "document", "others", "persona"]}, "dataset": {"title": "Dataset", "type": "string", "format": "uuid", "x-nullable": true}, "source": {"title": "Source", "type": "string", "enum": ["evaluation", "evaluation_tags", "evaluation_reason", "run_prompt", "experiment", "optimisation", "experiment_evaluation", "experiment_evaluation_tags", "optimisation_evaluation", "annotation_label", "optimisation_evaluation_tags", "extracted_json", "classification", "extracted_entities", "api_call", "python_code", "vector_db", "conditional", "eval_playground", "OTHERS"]}, "source_id": {"title": "Source id", "type": "string", "maxLength": 2000, "x-nullable": true}}}, "DatasetColumnsMutationResult": {"required": ["message"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}, "data": {"type": "array", "items": {"$ref": "#/definitions/Column"}}}}, "DatasetColumnsMutationResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/DatasetColumnsMutationResult"}}}, "DatasetAddEmptyColumnsRequest": {"type": "object", "properties": {"num_cols": {"title": "Num cols", "type": "integer", "default": 0, "minimum": 0}}}, "DatasetAddEmptyRowsRequest": {"type": "object", "properties": {"num_rows": {"title": "Num rows", "type": "integer", "default": 1, "minimum": 1}}}, "DatasetMultipleStaticColumnsRequest": {"required": ["columns"], "type": "object", "properties": {"columns": {"type": "array", "items": {"type": "object"}}}}, "DatasetRowCellRequest": {"required": ["column_name"], "type": "object", "properties": {"column_name": {"title": "Column name", "type": "string", "minLength": 1}, "value": {"title": "Value", "type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}}}, "DatasetRowRequest": {"type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "cells": {"type": "array", "items": {"$ref": "#/definitions/DatasetRowCellRequest"}, "default": []}}}, "DatasetAddRowsRequest": {"required": ["rows"], "type": "object", "properties": {"rows": {"type": "array", "items": {"$ref": "#/definitions/DatasetRowRequest"}}}}, "DatasetAddRowsFromExistingRequest": {"required": ["source_dataset_id", "column_mapping"], "type": "object", "properties": {"source_dataset_id": {"title": "Source dataset id", "type": "string", "format": "uuid"}, "column_mapping": {"title": "Column mapping", "type": "object", "additionalProperties": {"type": "string", "format": "uuid"}}}}, "DatasetRowsImportedResult": {"required": ["message", "rows_added"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}, "rows_added": {"title": "Rows added", "type": "integer"}}}, "DatasetRowsImportedResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/DatasetRowsImportedResult"}}}, "HuggingFaceAddRowsRequest": {"required": ["huggingface_dataset_name", "huggingface_dataset_config", "huggingface_dataset_split"], "type": "object", "properties": {"num_rows": {"title": "Num rows", "type": "integer", "minimum": 0}, "huggingface_dataset_name": {"title": "Huggingface dataset name", "type": "string", "minLength": 1}, "huggingface_dataset_config": {"title": "Huggingface dataset config", "type": "string", "minLength": 1}, "huggingface_dataset_split": {"title": "Huggingface dataset split", "type": "string", "minLength": 1}}}, "DatasetRowsImportMessageResult": {"required": ["message"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}}}, "DatasetRowsImportMessageResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/DatasetRowsImportMessageResult"}}}, "DatasetStaticColumnRequest": {"required": ["new_column_name", "column_type"], "type": "object", "properties": {"new_column_name": {"title": "New column name", "type": "string", "minLength": 1}, "column_type": {"title": "Column type", "type": "string", "minLength": 1}, "source": {"title": "Source", "type": "string"}}}, "SyntheticData": {"required": ["num_rows", "columns", "dataset"], "type": "object", "properties": {"num_rows": {"title": "Num rows", "type": "integer"}, "columns": {"type": "array", "items": {"$ref": "#/definitions/SyntheticDatasetColumn"}}, "dataset": {"$ref": "#/definitions/SyntheticDatasetPayload"}, "kb_id": {"title": "Kb id", "type": "string", "format": "uuid"}, "fill_existing_rows": {"title": "Fill existing rows", "type": "boolean", "default": false}}}, "UserEvalMutationRequest": {"required": ["name", "template_id", "config"], "type": "object", "properties": {"name": {"title": "Name", "type": "string", "maxLength": 50, "minLength": 1}, "template_id": {"title": "Template id", "type": "string", "maxLength": 500, "minLength": 1}, "config": {"title": "Config", "type": "object"}, "kb_id": {"title": "Kb id", "type": "string", "format": "uuid"}, "error_localizer": {"title": "Error localizer", "type": "boolean", "default": false}, "model": {"title": "Model", "type": "string", "maxLength": 100}, "eval_type": {"title": "Eval type", "type": "string"}, "run": {"title": "Run", "type": "boolean", "default": false}, "save_as_template": {"title": "Save as template", "type": "boolean", "default": false}, "experiment_id": {"title": "Experiment id", "type": "string", "format": "uuid"}, "composite_weight_overrides": {"title": "Composite weight overrides", "type": "object", "x-nullable": true}}}, "UserEvalUpdateRequest": {"required": ["config"], "type": "object", "properties": {"name": {"title": "Name", "type": "string", "maxLength": 50}, "template_id": {"title": "Template id", "type": "string", "maxLength": 500}, "config": {"title": "Config", "type": "object"}, "kb_id": {"title": "Kb id", "type": "string", "format": "uuid"}, "error_localizer": {"title": "Error localizer", "type": "boolean", "default": false}, "model": {"title": "Model", "type": "string", "maxLength": 100}, "eval_type": {"title": "Eval type", "type": "string"}, "run": {"title": "Run", "type": "boolean", "default": false}, "save_as_template": {"title": "Save as template", "type": "boolean", "default": false}, "experiment_id": {"title": "Experiment id", "type": "string", "format": "uuid"}, "composite_weight_overrides": {"title": "Composite weight overrides", "type": "object", "x-nullable": true}, "pinned_version_id": {"title": "Pinned version id", "type": "string", "format": "uuid", "x-nullable": true}}}, "DatasetBehaviorRequest": {"type": "object", "properties": {"dataset_name": {"title": "Dataset name", "type": "string"}, "column_order": {"type": "array", "items": {"type": "string", "format": "uuid"}, "default": []}, "column_config": {"title": "Column config", "type": "object", "default": {}}, "dataset_config": {"title": "Dataset config", "type": "object", "default": {}}}}, "ExtractJsonColumnRequest": {"required": ["column_id", "json_key"], "type": "object", "properties": {"column_id": {"title": "Column id", "type": "string", "format": "uuid"}, "json_key": {"title": "Json key", "type": "string", "minLength": 1}, "new_column_name": {"title": "New column name", "type": "string"}, "concurrency": {"title": "Concurrency", "type": "integer", "default": 5}}}, "DatasetTableMetadata": {"required": ["dataset_name"], "type": "object", "properties": {"dataset_name": {"title": "Dataset name", "type": "string", "minLength": 1}, "experiment_id": {"title": "Experiment id", "type": "string", "format": "uuid"}, "experiment_name": {"title": "Experiment name", "type": "string", "minLength": 1}, "total_rows": {"title": "Total rows", "type": "integer"}, "total_pages": {"title": "Total pages", "type": "integer"}, "page_size": {"title": "Page size", "description": "Row limit used for this page.", "type": "integer"}, "current_page_index": {"title": "Current page index", "description": "Zero-based page index returned by the server.", "type": "integer"}, "has_more": {"title": "Has more", "description": "Whether an exact continuation page remains.", "type": "boolean"}, "next_page_index": {"title": "Next page index", "description": "Next zero-based page index, or null at exact exhaustion.", "type": "integer", "x-nullable": true}, "next_cursor": {"title": "Next cursor", "description": "Signed exact continuation cursor, or null at exhaustion.", "type": "string", "minLength": 1, "x-nullable": true}, "is_exact": {"title": "Is exact", "description": "True only for a successful exact, revision-bound page.", "type": "boolean"}, "snapshot_bound": {"title": "Snapshot bound", "description": "Whether this page is bound to the signed MVCC revision.", "type": "boolean"}, "error_messages": {"type": "array", "items": {"type": "string", "minLength": 1}}, "status": {"title": "Status", "type": "object", "x-nullable": true}}}, "DatasetTableColumn": {"required": ["id", "name", "data_type", "is_visible", "is_frozen", "source_type", "origin_type", "source_id", "order_index", "status", "average_score", "reason_column", "is_numeric_eval", "is_numeric_eval_percentage", "metadata", "choices_map"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "minLength": 1}, "name": {"title": "Name", "type": "string"}, "data_type": {"title": "Data type", "type": "string", "minLength": 1, "x-nullable": true}, "is_visible": {"title": "Is visible", "type": "boolean"}, "is_frozen": {"title": "Is frozen", "type": "boolean", "x-nullable": true}, "source_type": {"title": "Source type", "type": "string", "minLength": 1}, "origin_type": {"title": "Origin type", "type": "string", "minLength": 1, "x-nullable": true}, "source_id": {"title": "Source id", "type": "string", "minLength": 1, "x-nullable": true}, "order_index": {"title": "Order index", "type": "integer"}, "status": {"title": "Status", "type": "string", "minLength": 1, "x-nullable": true}, "average_score": {"title": "Average score", "type": "number", "x-nullable": true}, "reason_column": {"title": "Reason column", "type": "boolean"}, "is_numeric_eval": {"title": "Is numeric eval", "type": "boolean"}, "is_numeric_eval_percentage": {"title": "Is numeric eval percentage", "type": "boolean"}, "eval_tag": {"type": "array", "items": {"type": "string", "minLength": 1}, "default": []}, "metadata": {"title": "Metadata", "type": "object"}, "choices_map": {"title": "Choices map", "type": "object"}}}, "DatasetTableRow": {"required": ["row_id"], "type": "object", "properties": {"row_id": {"title": "Row id", "type": "string", "format": "uuid"}}}, "DatasetTableResult": {"required": ["column_config"], "type": "object", "properties": {"metadata": {"$ref": "#/definitions/DatasetTableMetadata"}, "column_config": {"type": "array", "items": {"$ref": "#/definitions/DatasetTableColumn"}}, "table": {"type": "array", "items": {"$ref": "#/definitions/DatasetTableRow"}}, "dataset_config": {"title": "Dataset config", "type": "object"}, "synthetic_dataset": {"title": "Synthetic dataset", "type": "boolean"}, "synthetic_dataset_percentage": {"title": "Synthetic dataset percentage", "type": "number", "x-nullable": true}, "synthetic_regenerate": {"title": "Synthetic regenerate", "type": "boolean"}, "is_processing_data": {"title": "Is processing data", "type": "boolean"}}}, "DatasetTableResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/DatasetTableResult"}}}, "DatasetRowDataRequest": {"required": ["row_id"], "type": "object", "properties": {"filters": {"type": "array", "items": {"type": "object", "properties": {"column_id": {"type": "string", "description": "Column or attribute id to filter on."}, "property_id": {"type": "string", "description": "Optional stable namespaced Property Registry identity."}, "display_name": {"type": "string", "description": "Optional UI label for chips and saved views."}, "source": {"type": "string", "description": "Optional source surface for mixed-source filters, for example traces, datasets, or simulation."}, "output_type": {"type": "string", "description": "Optional metric output type metadata used by eval and annotation filters."}, "filter_config": {"type": "object", "properties": {"filter_type": {"type": "string", "description": "Canonical field type, for example text, number, boolean, datetime, categorical, thumbs, annotator, array, or map. Legacy json is value-sensitive for SPAN_ATTRIBUTE filters: list values become array and object values become map."}, "filter_op": {"type": "string", "description": "Canonical operator from api_contracts/filter_contract.json, for example equals, not_equals, in, not_in, between, not_between, is_null, or is_not_null."}, "filter_value": {"description": "Scalar, list, range tuple, boolean, or null depending on filter_op and filter_type."}, "col_type": {"type": "string", "description": "Column family such as SYSTEM_METRIC, SPAN_ATTRIBUTE, EVAL_METRIC, ANNOTATION, or NORMAL."}, "attribute_value_types": {"type": "array", "items": {"type": "string", "enum": ["string", "number", "boolean"], "x-nullable": true}, "description": "Optional storage-family provenance aligned one-for-one with filter_value for mixed SPAN_ATTRIBUTE in/not_in filters. Null entries retain filter_type semantics for manually entered values."}}, "required": ["filter_type", "filter_op"], "additionalProperties": false}}, "required": ["column_id", "filter_config"], "additionalProperties": false}, "default": []}, "sort": {"type": "array", "items": {"type": "object", "properties": {"column_id": {"type": "string"}, "type": {"type": "string", "enum": ["ascending", "descending"]}}, "required": ["column_id"], "additionalProperties": false}, "default": [], "maxItems": 1}, "row_id": {"title": "Row id", "type": "string", "format": "uuid"}}}, "DatasetRowNavigation": {"type": "object", "properties": {"row_id": {"type": "array", "items": {"type": "string", "format": "uuid"}}}}, "DatasetRowDataResult": {"required": ["next", "current"], "type": "object", "properties": {"next": {"$ref": "#/definitions/DatasetRowNavigation"}, "current": {"title": "Current", "type": "object"}}}, "DatasetRowDataResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/DatasetRowDataResult"}}}, "EvalStructure": {"required": ["id", "template_id", "name"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "template_id": {"title": "Template id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "description": {"title": "Description", "type": "string"}, "eval_tags": {"type": "array", "items": {"type": "string", "minLength": 1}}, "template_name": {"title": "Template name", "type": "string", "minLength": 1}, "required_keys": {"type": "array", "items": {"type": "string", "minLength": 1}}, "optional_keys": {"type": "array", "items": {"type": "string", "minLength": 1}}, "variable_keys": {"type": "array", "items": {"type": "string", "minLength": 1}}, "run_prompt_column": {"title": "Run prompt column", "type": "boolean"}, "mapping": {"title": "Mapping", "type": "object"}, "config": {"title": "Config", "type": "object"}, "params": {"title": "Params", "type": "object"}, "function_params_schema": {"title": "Function params schema", "type": "object"}, "eval_type_id": {"title": "Eval type id", "type": "string"}, "eval_type": {"title": "Eval type", "type": "string"}, "reason_column": {"title": "Reason column", "type": "boolean"}, "models": {"title": "Models", "type": "object"}, "selected_model": {"title": "Selected model", "type": "string"}, "output": {"title": "Output", "type": "object"}, "config_params_desc": {"title": "Config params desc", "type": "object"}, "config_params_option": {"title": "Config params option", "type": "object"}, "kb_id": {"title": "Kb id", "type": "string", "format": "uuid", "x-nullable": true}, "error_localizer": {"title": "Error localizer", "type": "boolean"}, "choices": {"title": "Choices", "type": "object", "x-nullable": true}, "api_key_available": {"title": "Api key available", "type": "boolean"}, "run_config": {"title": "Run config", "type": "object"}}}, "EvalStructureResult": {"required": ["eval"], "type": "object", "properties": {"eval": {"$ref": "#/definitions/EvalStructure"}}}, "EvalStructureResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/EvalStructureResult"}}}, "EvalListResult": {"required": ["evals"], "type": "object", "properties": {"evals": {"type": "array", "items": {"type": "object"}}, "eval_recommendations": {"type": "array", "items": {"type": "string", "minLength": 1}}}}, "EvalListResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/EvalListResult"}}}, "PreviewRunEvalRequest": {"required": ["config", "template_id"], "type": "object", "properties": {"config": {"title": "Config", "type": "object"}, "template_id": {"title": "Template id", "type": "string", "format": "uuid"}, "model": {"title": "Model", "type": "string"}, "sdk_uuid": {"title": "Sdk uuid", "type": "string"}, "source": {"title": "Source", "type": "string"}, "protect_flash": {"title": "Protect flash", "type": "boolean", "default": false}}}, "StartEvalsProcessRequest": {"required": ["user_eval_ids"], "type": "object", "properties": {"user_eval_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}}, "experiment_id": {"title": "Experiment id", "type": "string", "format": "uuid"}, "failed_only": {"title": "Failed only", "type": "boolean", "default": false}}}, "StopUserEvalRequest": {"type": "object", "properties": {"experiment_id": {"title": "Experiment id", "type": "string", "format": "uuid"}}}, "SyntheticDatasetConfigPayload": {"type": "object", "properties": {"num_rows": {"title": "Num rows", "type": "integer"}, "columns": {"type": "array", "items": {"type": "object"}}, "dataset": {"title": "Dataset", "type": "object"}, "kb_id": {"title": "Kb id", "type": "string", "format": "uuid", "x-nullable": true}}}, "SyntheticDatasetConfigResult": {"required": ["message", "data"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}, "data": {"$ref": "#/definitions/SyntheticDatasetConfigPayload"}}}, "SyntheticDatasetConfigResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/SyntheticDatasetConfigResult"}}}, "SyntheticDatasetConfig": {"required": ["num_rows", "columns", "dataset"], "type": "object", "properties": {"num_rows": {"title": "Num rows", "type": "integer"}, "columns": {"type": "array", "items": {"$ref": "#/definitions/SyntheticDatasetColumn"}}, "dataset": {"$ref": "#/definitions/SyntheticDatasetPayload"}, "kb_id": {"title": "Kb id", "type": "string", "format": "uuid", "x-nullable": true}, "regenerate": {"title": "Regenerate", "type": "boolean", "default": false}}}, "SyntheticDatasetUpdateData": {"required": ["dataset_id", "dataset_name"], "type": "object", "properties": {"dataset_id": {"title": "Dataset id", "type": "string", "format": "uuid"}, "dataset_name": {"title": "Dataset name", "type": "string", "minLength": 1}, "num_rows": {"title": "Num rows", "type": "integer"}, "num_columns": {"title": "Num columns", "type": "integer"}}}, "SyntheticDatasetUpdateResult": {"required": ["message", "data"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}, "data": {"$ref": "#/definitions/SyntheticDatasetUpdateData"}}}, "SyntheticDatasetUpdateResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/SyntheticDatasetUpdateResult"}}}, "DatasetUpdateCellValueRequest": {"required": ["row_id", "column_id"], "type": "object", "properties": {"row_id": {"title": "Row id", "type": "string", "format": "uuid"}, "column_id": {"title": "Column id", "type": "string", "format": "uuid"}, "new_value": {"title": "New value", "type": "string", "x-nullable": true, "description": "New cell value. Accepts JSON primitives or multipart file uploads."}}}, "DatasetUpdateColumnNameRequest": {"required": ["new_column_name"], "type": "object", "properties": {"new_column_name": {"title": "New column name", "type": "string", "minLength": 1}}}, "DatasetUpdateColumnTypeRequest": {"required": ["new_column_type"], "type": "object", "properties": {"new_column_type": {"title": "New column type", "type": "string", "minLength": 1}, "preview": {"title": "Preview", "type": "boolean", "default": true}, "force_update": {"title": "Force update", "type": "boolean", "default": false}}}, "ColumnTypeConversionResult": {"type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}, "column_id": {"title": "Column id", "type": "string", "format": "uuid"}, "new_data_type": {"title": "New data type", "type": "string", "minLength": 1}, "status": {"title": "Status", "type": "string", "minLength": 1}, "invalid_count": {"title": "Invalid count", "type": "integer"}, "invalid_values": {"type": "array", "items": {"type": "object"}}, "valid_conversion_samples": {"title": "Valid conversion samples", "type": "object"}}}, "ColumnTypeConversionResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/ColumnTypeConversionResult"}}}, "CreateDatasetFromExperimentRequest": {"type": "object", "properties": {"name": {"title": "Name", "type": "string"}, "model_type": {"title": "Model type", "type": "string"}}}, "DuplicateEvalTemplate": {"required": ["eval_template_id", "name"], "type": "object", "properties": {"eval_template_id": {"title": "Eval template id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}}}, "DuplicateEvalTemplateResponseResult": {"required": ["message", "eval_template_id"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}, "eval_template_id": {"title": "Eval template id", "type": "string", "format": "uuid"}}}, "DuplicateEvalTemplateResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/DuplicateEvalTemplateResponseResult"}}}, "EmbeddingConfigOption": {"required": ["type", "required", "description"], "type": "object", "properties": {"type": {"title": "Type", "type": "string", "minLength": 1}, "required": {"title": "Required", "type": "boolean"}, "description": {"title": "Description", "type": "string", "minLength": 1}, "default": {"title": "Default", "type": "string"}}}, "EmbeddingProvider": {"required": ["name", "description", "requires_api_key", "config_schema"], "type": "object", "properties": {"name": {"title": "Name", "type": "string", "minLength": 1}, "description": {"title": "Description", "type": "string", "minLength": 1}, "requires_api_key": {"title": "Requires api key", "type": "boolean"}, "config_schema": {"title": "Config schema", "type": "object", "additionalProperties": {"$ref": "#/definitions/EmbeddingConfigOption"}}}}, "EmbeddingsResponseResult": {"type": "object", "properties": {"embeddings": {"title": "Embeddings", "type": "object", "additionalProperties": {"$ref": "#/definitions/EmbeddingProvider"}}, "embedding": {"$ref": "#/definitions/EmbeddingProvider"}}}, "EmbeddingsResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/EmbeddingsResponseResult"}}}, "EvalGroup": {"required": ["name"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "organization": {"title": "Organization", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}, "workspace": {"title": "Workspace", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}, "description": {"title": "Description", "type": "string", "x-nullable": true}, "created_by": {"title": "Created by", "type": "string", "readOnly": true}, "is_sample": {"title": "Is sample", "type": "boolean"}}}, "EvalPlayGround": {"required": ["template_id"], "type": "object", "properties": {"template_id": {"title": "Template id", "type": "string", "format": "uuid"}, "model": {"title": "Model", "type": "string", "default": "turing_large", "maxLength": 100, "x-nullable": true}, "kb_id": {"title": "Kb id", "type": "string", "format": "uuid", "x-nullable": true}, "error_localizer": {"title": "Error localizer", "type": "boolean", "default": false}, "config": {"title": "Config", "type": "object", "default": {}, "x-nullable": true}, "params": {"title": "Params", "type": "object", "default": {}, "x-nullable": true}, "mapping": {"title": "Mapping", "type": "object", "x-nullable": true}, "mapping_paths": {"title": "Mapping paths", "type": "object", "x-nullable": true}, "input_data_types": {"title": "Input data types", "type": "object", "x-nullable": true}, "row_context": {"title": "Row context", "type": "object", "x-nullable": true}, "span_context": {"title": "Span context", "type": "object", "x-nullable": true}, "trace_context": {"title": "Trace context", "type": "object", "x-nullable": true}, "session_context": {"title": "Session context", "type": "object", "x-nullable": true}, "call_context": {"title": "Call context", "type": "object", "x-nullable": true}, "span_id": {"title": "Span id", "type": "string", "x-nullable": true}, "trace_id": {"title": "Trace id", "type": "string", "format": "uuid", "x-nullable": true}, "session_id": {"title": "Session id", "type": "string", "format": "uuid", "x-nullable": true}, "call_id": {"title": "Call id", "type": "string", "format": "uuid", "x-nullable": true}, "run_test_id": {"title": "Run test id", "type": "string", "format": "uuid", "x-nullable": true}}}, "EvalExecutionResponseResult": {"type": "object", "properties": {"output": {"title": "Output", "type": "object"}, "result": {"title": "Result", "type": "object"}, "reason": {"title": "Reason", "type": "string"}, "score": {"title": "Score", "type": "object", "x-nullable": true}, "metadata": {"title": "Metadata", "type": "object", "x-nullable": true}, "log_id": {"title": "Log id", "type": "string", "format": "uuid"}, "error_localizer": {"title": "Error localizer", "type": "object"}, "error_details": {"title": "Error details", "type": "object"}}}, "EvalExecutionResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/EvalExecutionResponseResult"}}}, "EvalPlayGroundFeedback": {"required": ["log_id", "action_type", "value"], "type": "object", "properties": {"log_id": {"title": "Log id", "type": "string", "format": "uuid"}, "action_type": {"title": "Action type", "type": "string", "minLength": 1}, "value": {"title": "Value", "type": "string", "minLength": 1}, "explanation": {"title": "Explanation", "type": "string", "minLength": 1}}}, "EvalPlaygroundFeedbackResponseResult": {"required": ["message", "feedback_id"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}, "feedback_id": {"title": "Feedback id", "type": "string", "format": "uuid"}}}, "EvalPlaygroundFeedbackResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/EvalPlaygroundFeedbackResponseResult"}}}, "EvalCodeSnippetResponseResult": {"required": ["python", "curl", "javascript"], "type": "object", "properties": {"python": {"title": "Python", "type": "string", "minLength": 1}, "curl": {"title": "Curl", "type": "string", "minLength": 1}, "javascript": {"title": "Javascript", "type": "string", "minLength": 1}}}, "EvalCodeSnippetResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/EvalCodeSnippetResponseResult"}}}, "EvalSummaryTemplate": {"required": ["id", "name", "description", "criteria"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "description": {"title": "Description", "type": "string"}, "criteria": {"title": "Criteria", "type": "string", "minLength": 1}}}, "EvalSummaryTemplateListResponseResult": {"required": ["templates"], "type": "object", "properties": {"templates": {"type": "array", "items": {"$ref": "#/definitions/EvalSummaryTemplate"}}}}, "EvalSummaryTemplateListResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/EvalSummaryTemplateListResponseResult"}}}, "EvalSummaryTemplateMutationRequest": {"type": "object", "properties": {"name": {"title": "Name", "type": "string"}, "description": {"title": "Description", "type": "string"}, "criteria": {"title": "Criteria", "type": "string"}}}, "EvalSummaryTemplateResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/EvalSummaryTemplate"}}}, "EvalSummaryTemplateDeleteResponseResult": {"required": ["deleted"], "type": "object", "properties": {"deleted": {"title": "Deleted", "type": "boolean"}}}, "EvalSummaryTemplateDeleteResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/EvalSummaryTemplateDeleteResponseResult"}}}, "EvalTemplate": {"required": ["name", "config"], "type": "object", "properties": {"name": {"title": "Name", "type": "string", "maxLength": 50, "minLength": 1}, "owner": {"title": "Owner", "type": "string", "enum": ["system", "user"], "default": "user"}, "config": {"title": "Config", "type": "object"}, "eval_tags": {"type": "array", "items": {"type": "string", "maxLength": 100, "minLength": 1}}}}, "EvalTemplateBulkDeleteRequest": {"required": ["template_ids"], "type": "object", "properties": {"template_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}}}}, "EvalTemplateBulkDeleteResponseResult": {"required": ["deleted_count"], "type": "object", "properties": {"deleted_count": {"title": "Deleted count", "type": "integer"}}}, "EvalTemplateBulkDeleteResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/EvalTemplateBulkDeleteResponseResult"}}}, "CompositeEvalAdhocExecuteRequest": {"required": ["mapping", "child_template_ids"], "type": "object", "properties": {"mapping": {"title": "Mapping", "type": "object"}, "model": {"title": "Model", "type": "string", "x-nullable": true}, "config": {"title": "Config", "type": "object", "default": {}}, "error_localizer": {"title": "Error localizer", "type": "boolean", "default": false}, "input_data_types": {"title": "Input data types", "type": "object", "default": {}}, "span_context": {"title": "Span context", "type": "object", "x-nullable": true}, "trace_context": {"title": "Trace context", "type": "object", "x-nullable": true}, "session_context": {"title": "Session context", "type": "object", "x-nullable": true}, "call_context": {"title": "Call context", "type": "object", "x-nullable": true}, "row_context": {"title": "Row context", "type": "object", "x-nullable": true}, "child_template_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}}, "aggregation_enabled": {"title": "Aggregation enabled", "type": "boolean", "default": true}, "aggregation_function": {"title": "Aggregation function", "type": "string", "enum": ["weighted_avg", "avg", "min", "max", "pass_rate"], "default": "weighted_avg"}, "composite_child_axis": {"title": "Composite child axis", "type": "string", "enum": ["", "pass_fail", "percentage", "choices", "code"], "default": ""}, "child_weights": {"title": "Child weights", "type": "object", "x-nullable": true}, "child_configs": {"title": "Child configs", "type": "object", "x-nullable": true}, "pass_threshold": {"title": "Pass threshold", "type": "number", "default": 0.5}}}, "CompositeChildResult": {"required": ["child_id", "child_name", "order", "status"], "type": "object", "properties": {"child_id": {"title": "Child id", "type": "string", "format": "uuid"}, "child_name": {"title": "Child name", "type": "string", "minLength": 1}, "order": {"title": "Order", "type": "integer"}, "score": {"title": "Score", "type": "number", "x-nullable": true}, "output": {"title": "Output", "type": "object", "x-nullable": true}, "reason": {"title": "Reason", "type": "string", "x-nullable": true}, "output_type": {"title": "Output type", "type": "string", "x-nullable": true}, "status": {"title": "Status", "type": "string", "minLength": 1}, "error": {"title": "Error", "type": "string", "x-nullable": true}, "log_id": {"title": "Log id", "type": "string", "x-nullable": true}, "weight": {"title": "Weight", "type": "number"}, "error_localizer_result": {"title": "Error localizer result", "type": "object", "x-nullable": true}}}, "CompositeEvalExecuteResponseResult": {"required": ["composite_name", "aggregation_enabled", "children", "total_children", "completed_children", "failed_children"], "type": "object", "properties": {"composite_id": {"title": "Composite id", "type": "string", "x-nullable": true}, "composite_name": {"title": "Composite name", "type": "string", "minLength": 1}, "aggregation_enabled": {"title": "Aggregation enabled", "type": "boolean"}, "aggregation_function": {"title": "Aggregation function", "type": "string", "x-nullable": true}, "aggregate_score": {"title": "Aggregate score", "type": "number", "x-nullable": true}, "aggregate_pass": {"title": "Aggregate pass", "type": "boolean", "x-nullable": true}, "children": {"type": "array", "items": {"$ref": "#/definitions/CompositeChildResult"}}, "summary": {"title": "Summary", "type": "string", "x-nullable": true}, "error_localizer_results": {"title": "Error localizer results", "type": "object", "x-nullable": true}, "total_children": {"title": "Total children", "type": "integer"}, "completed_children": {"title": "Completed children", "type": "integer"}, "failed_children": {"title": "Failed children", "type": "integer"}, "evaluation_id": {"title": "Evaluation id", "type": "string", "x-nullable": true}}}, "CompositeEvalExecuteResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/CompositeEvalExecuteResponseResult"}}}, "CompositeEvalCreateRequest": {"required": ["name", "child_template_ids"], "type": "object", "properties": {"name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "description": {"title": "Description", "type": "string", "x-nullable": true}, "tags": {"type": "array", "items": {"type": "string", "minLength": 1}, "default": []}, "child_template_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}}, "aggregation_enabled": {"title": "Aggregation enabled", "type": "boolean", "default": true}, "aggregation_function": {"title": "Aggregation function", "type": "string", "enum": ["weighted_avg", "avg", "min", "max", "pass_rate"], "default": "weighted_avg"}, "child_weights": {"title": "Child weights", "type": "object", "x-nullable": true}, "child_pinned_versions": {"title": "Child pinned versions", "type": "object", "x-nullable": true}, "child_configs": {"title": "Child configs", "type": "object", "x-nullable": true}, "composite_child_axis": {"title": "Composite child axis", "type": "string", "enum": ["", "pass_fail", "percentage", "choices", "code"], "default": ""}}}, "CompositeChildItem": {"required": ["child_id", "child_name", "order"], "type": "object", "properties": {"child_id": {"title": "Child id", "type": "string", "format": "uuid"}, "child_name": {"title": "Child name", "type": "string", "minLength": 1}, "order": {"title": "Order", "type": "integer"}, "eval_type": {"title": "Eval type", "type": "string", "minLength": 1}, "pinned_version_id": {"title": "Pinned version id", "type": "string", "format": "uuid", "x-nullable": true}, "pinned_version_number": {"title": "Pinned version number", "type": "integer", "x-nullable": true}, "weight": {"title": "Weight", "type": "number"}, "config": {"title": "Config", "type": "object", "default": {}}, "required_keys": {"type": "array", "items": {"type": "string", "minLength": 1}}}}, "CompositeEvalCreateResponseResult": {"required": ["id", "name", "aggregation_enabled", "aggregation_function", "children"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "template_type": {"title": "Template type", "type": "string", "minLength": 1}, "aggregation_enabled": {"title": "Aggregation enabled", "type": "boolean"}, "aggregation_function": {"title": "Aggregation function", "type": "string", "minLength": 1}, "composite_child_axis": {"title": "Composite child axis", "type": "string"}, "children": {"type": "array", "items": {"$ref": "#/definitions/CompositeChildItem"}}}}, "CompositeEvalCreateResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/CompositeEvalCreateResponseResult"}}}, "EvalTemplateCreateV2Request": {"type": "object", "properties": {"name": {"title": "Name", "type": "string", "maxLength": 255}, "is_draft": {"title": "Is draft", "type": "boolean", "default": false}, "eval_type": {"title": "Eval type", "type": "string", "enum": ["llm", "code", "agent"], "default": "llm"}, "instructions": {"title": "Instructions", "type": "string", "maxLength": 100000}, "model": {"title": "Model", "type": "string", "default": "turing_large", "minLength": 1}, "output_type": {"title": "Output type", "type": "string", "enum": ["pass_fail", "percentage", "deterministic"], "default": "pass_fail"}, "pass_threshold": {"title": "Pass threshold", "type": "number", "maximum": 1, "minimum": 0}, "choice_scores": {"title": "Choice scores", "type": "object", "x-nullable": true}, "description": {"title": "Description", "type": "string", "x-nullable": true}, "tags": {"type": "array", "items": {"type": "string", "minLength": 1}, "default": []}, "check_internet": {"title": "Check internet", "type": "boolean", "default": false}, "code": {"title": "Code", "type": "string", "maxLength": 100000, "x-nullable": true}, "code_language": {"title": "Code language", "type": "string", "enum": ["python", "javascript"], "x-nullable": true}, "messages": {"type": "array", "items": {"type": "object"}, "x-nullable": true}, "few_shot_examples": {"type": "array", "items": {"type": "object"}, "x-nullable": true}, "mode": {"title": "Mode", "type": "string", "enum": ["auto", "agent", "quick"], "x-nullable": true}, "tools": {"title": "Tools", "type": "object", "x-nullable": true}, "knowledge_bases": {"type": "array", "items": {"type": "string", "minLength": 1}, "x-nullable": true}, "data_injection": {"title": "Data injection", "type": "object", "x-nullable": true}, "summary": {"title": "Summary", "type": "object", "x-nullable": true}, "error_localizer_enabled": {"title": "Error localizer enabled", "type": "boolean", "default": false}, "template_format": {"title": "Template format", "type": "string", "enum": ["mustache", "jinja"], "default": "mustache"}}}, "EvalTemplateCreateResponseResult": {"required": ["id", "name", "version"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "version": {"title": "Version", "type": "string", "minLength": 1}}}, "EvalTemplateCreateResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/EvalTemplateCreateResponseResult"}}}, "EvalTemplateListChartsRequest": {"required": ["template_ids"], "type": "object", "properties": {"template_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}}}}, "EvalTemplateChartPoint": {"required": ["timestamp", "value"], "type": "object", "properties": {"timestamp": {"title": "Timestamp", "type": "string", "minLength": 1}, "value": {"title": "Value", "type": "number"}}}, "EvalTemplateListChartsItem": {"required": ["chart", "error_rate", "run_count"], "type": "object", "properties": {"chart": {"type": "array", "items": {"$ref": "#/definitions/EvalTemplateChartPoint"}}, "error_rate": {"type": "array", "items": {"$ref": "#/definitions/EvalTemplateChartPoint"}}, "run_count": {"title": "Run count", "type": "integer"}}}, "EvalTemplateListChartsResponseResult": {"required": ["charts", "query_complete", "query_status", "query_sampled", "data_stale"], "type": "object", "properties": {"charts": {"title": "Charts", "type": "object", "additionalProperties": {"$ref": "#/definitions/EvalTemplateListChartsItem"}}, "query_complete": {"title": "Query complete", "type": "boolean"}, "query_status": {"title": "Query status", "type": "string", "enum": ["complete", "stale", "degraded"]}, "query_sampled": {"title": "Query sampled", "type": "boolean"}, "query_error_code": {"title": "Query error code", "type": "string", "enum": ["read_budget_exceeded", "template_limit_exceeded", "query_failed"]}, "data_stale": {"title": "Data stale", "type": "boolean"}}}, "EvalTemplateListChartsResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/EvalTemplateListChartsResponseResult"}}}, "EvalListFilters": {"type": "object", "properties": {"eval_type": {"type": "array", "items": {"type": "string", "enum": ["llm", "code", "agent"]}}, "eval_type_not": {"type": "array", "items": {"type": "string", "enum": ["llm", "code", "agent"]}}, "output_type": {"type": "array", "items": {"type": "string", "enum": ["pass_fail", "percentage", "deterministic"]}}, "output_type_not": {"type": "array", "items": {"type": "string", "enum": ["pass_fail", "percentage", "deterministic"]}}, "template_type": {"type": "array", "items": {"type": "string", "enum": ["single", "composite"]}}, "template_type_not": {"type": "array", "items": {"type": "string", "enum": ["single", "composite"]}}, "tags": {"type": "array", "items": {"type": "string", "minLength": 1}}, "tags_not": {"type": "array", "items": {"type": "string", "minLength": 1}}, "created_by": {"type": "array", "items": {"type": "string", "minLength": 1}}, "created_by_not": {"type": "array", "items": {"type": "string", "minLength": 1}}, "names": {"type": "array", "items": {"type": "string", "minLength": 1}}, "names_not": {"type": "array", "items": {"type": "string", "minLength": 1}}}, "x-nullable": true}, "EvalListRequest": {"type": "object", "properties": {"page": {"title": "Page", "type": "integer", "default": 0, "minimum": 0}, "page_size": {"title": "Page size", "type": "integer", "default": 25, "maximum": 100, "minimum": 1}, "search": {"title": "Search", "type": "string", "x-nullable": true}, "owner_filter": {"title": "Owner filter", "type": "string", "enum": ["all", "user", "system"], "default": "all"}, "filters": {"$ref": "#/definitions/EvalListFilters"}, "sort_by": {"title": "Sort by", "type": "string", "enum": ["name", "updated_at", "created_at"], "default": "updated_at"}, "sort_order": {"title": "Sort order", "type": "string", "enum": ["asc", "desc"], "default": "desc"}}}, "EvalTemplateListItem": {"required": ["id", "name", "template_type", "eval_type", "output_type", "owner", "created_by_name", "version_count", "current_version", "last_updated", "thirty_day_chart", "thirty_day_error_rate", "thirty_day_run_count", "tags"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "template_type": {"title": "Template type", "type": "string", "minLength": 1}, "eval_type": {"title": "Eval type", "type": "string", "minLength": 1}, "output_type": {"title": "Output type", "type": "string", "minLength": 1}, "owner": {"title": "Owner", "type": "string", "minLength": 1}, "created_by_name": {"title": "Created by name", "type": "string", "minLength": 1}, "version_count": {"title": "Version count", "type": "integer"}, "current_version": {"title": "Current version", "type": "string", "minLength": 1}, "last_updated": {"title": "Last updated", "type": "string", "minLength": 1}, "thirty_day_chart": {"type": "array", "items": {"$ref": "#/definitions/EvalTemplateChartPoint"}}, "thirty_day_error_rate": {"type": "array", "items": {"$ref": "#/definitions/EvalTemplateChartPoint"}}, "thirty_day_run_count": {"title": "Thirty day run count", "type": "integer"}, "tags": {"type": "array", "items": {"type": "string", "minLength": 1}}}}, "EvalTemplateListResponseResult": {"required": ["items", "total", "page", "page_size"], "type": "object", "properties": {"items": {"type": "array", "items": {"$ref": "#/definitions/EvalTemplateListItem"}}, "total": {"title": "Total", "type": "integer"}, "page": {"title": "Page", "type": "integer"}, "page_size": {"title": "Page size", "type": "integer"}}}, "EvalTemplateListResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/EvalTemplateListResponseResult"}}}, "CompositeEvalDetailResponseResult": {"required": ["id", "name", "aggregation_enabled", "aggregation_function", "children"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "template_type": {"title": "Template type", "type": "string", "minLength": 1}, "aggregation_enabled": {"title": "Aggregation enabled", "type": "boolean"}, "aggregation_function": {"title": "Aggregation function", "type": "string", "minLength": 1}, "composite_child_axis": {"title": "Composite child axis", "type": "string"}, "children": {"type": "array", "items": {"$ref": "#/definitions/CompositeChildItem"}}, "description": {"title": "Description", "type": "string", "x-nullable": true}, "tags": {"type": "array", "items": {"type": "string", "minLength": 1}}, "created_at": {"title": "Created at", "type": "string"}, "updated_at": {"title": "Updated at", "type": "string"}, "version_number": {"title": "Version number", "type": "integer", "x-nullable": true}}}, "CompositeEvalDetailResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/CompositeEvalDetailResponseResult"}}}, "CompositeEvalUpdateRequest": {"type": "object", "properties": {"name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1, "x-nullable": true}, "description": {"title": "Description", "type": "string", "x-nullable": true}, "tags": {"type": "array", "items": {"type": "string", "minLength": 1}, "x-nullable": true}, "aggregation_enabled": {"title": "Aggregation enabled", "type": "boolean", "x-nullable": true}, "aggregation_function": {"title": "Aggregation function", "type": "string", "enum": ["weighted_avg", "avg", "min", "max", "pass_rate"], "x-nullable": true}, "child_template_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}, "x-nullable": true}, "child_weights": {"title": "Child weights", "type": "object", "x-nullable": true}, "child_pinned_versions": {"title": "Child pinned versions", "type": "object", "x-nullable": true}, "child_configs": {"title": "Child configs", "type": "object", "x-nullable": true}, "composite_child_axis": {"title": "Composite child axis", "type": "string", "enum": ["", "pass_fail", "percentage", "choices", "code"], "x-nullable": true}}}, "CompositeEvalExecuteRequest": {"required": ["mapping"], "type": "object", "properties": {"mapping": {"title": "Mapping", "type": "object"}, "model": {"title": "Model", "type": "string", "x-nullable": true}, "config": {"title": "Config", "type": "object", "default": {}}, "error_localizer": {"title": "Error localizer", "type": "boolean", "default": false}, "input_data_types": {"title": "Input data types", "type": "object", "default": {}}, "span_context": {"title": "Span context", "type": "object", "x-nullable": true}, "trace_context": {"title": "Trace context", "type": "object", "x-nullable": true}, "session_context": {"title": "Session context", "type": "object", "x-nullable": true}, "call_context": {"title": "Call context", "type": "object", "x-nullable": true}, "row_context": {"title": "Row context", "type": "object", "x-nullable": true}}}, "EvalTemplateDetailResponseResult": {"required": ["id", "name", "template_type", "eval_type", "output_type", "pass_threshold", "multi_choice", "required_keys", "owner", "created_by_name", "version_count", "current_version", "tags", "check_internet", "error_localizer_enabled", "template_format", "aggregation_enabled", "aggregation_function", "created_at", "updated_at"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "description": {"title": "Description", "type": "string", "x-nullable": true}, "template_type": {"title": "Template type", "type": "string", "minLength": 1}, "eval_type": {"title": "Eval type", "type": "string", "minLength": 1}, "instructions": {"title": "Instructions", "type": "string", "x-nullable": true}, "model": {"title": "Model", "type": "string", "x-nullable": true}, "output_type": {"title": "Output type", "type": "string", "minLength": 1}, "pass_threshold": {"title": "Pass threshold", "type": "number"}, "choice_scores": {"title": "Choice scores", "type": "object", "x-nullable": true}, "choices": {"title": "Choices", "type": "object", "x-nullable": true}, "multi_choice": {"title": "Multi choice", "type": "boolean"}, "code": {"title": "Code", "type": "string", "x-nullable": true}, "code_language": {"title": "Code language", "type": "string", "x-nullable": true}, "required_keys": {"type": "array", "items": {"type": "string", "minLength": 1}}, "owner": {"title": "Owner", "type": "string", "minLength": 1}, "created_by_name": {"title": "Created by name", "type": "string", "minLength": 1}, "version_count": {"title": "Version count", "type": "integer"}, "current_version": {"title": "Current version", "type": "string", "minLength": 1}, "tags": {"type": "array", "items": {"type": "string", "minLength": 1}}, "check_internet": {"title": "Check internet", "type": "boolean"}, "error_localizer_enabled": {"title": "Error localizer enabled", "type": "boolean"}, "template_format": {"title": "Template format", "type": "string", "minLength": 1}, "aggregation_enabled": {"title": "Aggregation enabled", "type": "boolean"}, "aggregation_function": {"title": "Aggregation function", "type": "string", "minLength": 1}, "composite_child_axis": {"title": "Composite child axis", "type": "string"}, "config": {"title": "Config", "type": "object", "x-nullable": true}, "created_at": {"title": "Created at", "type": "string", "minLength": 1}, "updated_at": {"title": "Updated at", "type": "string", "minLength": 1}}}, "EvalTemplateDetailResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/EvalTemplateDetailResponseResult"}}}, "EvalFeedbackListItem": {"required": ["id", "value", "explanation", "source", "source_id", "action_type", "user_name", "created_at", "user_eval_metric_id", "custom_eval_config_id", "experiment_id"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "value": {"title": "Value", "type": "string"}, "explanation": {"title": "Explanation", "type": "string"}, "source": {"title": "Source", "type": "string"}, "source_id": {"title": "Source id", "type": "string"}, "action_type": {"title": "Action type", "type": "string"}, "user_name": {"title": "User name", "type": "string"}, "created_at": {"title": "Created at", "type": "string", "minLength": 1}, "user_eval_metric_id": {"title": "User eval metric id", "type": "string"}, "custom_eval_config_id": {"title": "Custom eval config id", "type": "string"}, "experiment_id": {"title": "Experiment id", "type": "string"}}}, "EvalFeedbackListResponseResult": {"required": ["template_id", "items", "total", "page", "page_size"], "type": "object", "properties": {"template_id": {"title": "Template id", "type": "string", "format": "uuid"}, "items": {"type": "array", "items": {"$ref": "#/definitions/EvalFeedbackListItem"}}, "total": {"title": "Total", "type": "integer"}, "page": {"title": "Page", "type": "integer"}, "page_size": {"title": "Page size", "type": "integer"}}}, "EvalFeedbackListResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/EvalFeedbackListResponseResult"}}}, "GroundTruthRoleMapping": {"type": "object", "properties": {"output": {"title": "Output", "type": "string", "minLength": 1}, "explanation": {"title": "Explanation", "type": "string", "minLength": 1}, "expected_output": {"title": "Expected output", "description": "Legacy alias for `output`.", "type": "string", "minLength": 1}, "reasoning": {"title": "Reasoning", "description": "Legacy alias for `explanation`.", "type": "string", "minLength": 1}, "reason": {"title": "Reason", "description": "Legacy alias for `explanation`.", "type": "string", "minLength": 1}}, "x-nullable": true}, "GroundTruthItem": {"required": ["id", "name", "columns", "row_count"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "description": {"title": "Description", "type": "string"}, "file_name": {"title": "File name", "type": "string"}, "columns": {"type": "array", "items": {"type": "string", "minLength": 1}}, "row_count": {"title": "Row count", "type": "integer"}, "variable_mapping": {"title": "Variable mapping", "description": "Map of template variable name to GT column name (string) or list of column names.", "type": "object", "x-nullable": true, "additionalProperties": true}, "role_mapping": {"$ref": "#/definitions/GroundTruthRoleMapping"}, "embedding_status": {"title": "Embedding status", "type": "string", "minLength": 1}, "embedded_row_count": {"title": "Embedded row count", "type": "integer"}, "storage_type": {"title": "Storage type", "type": "string", "minLength": 1}, "created_at": {"title": "Created at", "type": "string"}, "embeddings_stale": {"title": "Embeddings stale", "type": "boolean", "default": false}, "is_active": {"title": "Is active", "type": "boolean", "default": false}, "enabled": {"title": "Enabled", "type": "boolean", "default": true}, "max_examples": {"title": "Max examples", "type": "integer", "default": 3}, "similarity_threshold": {"title": "Similarity threshold", "type": "number", "default": 0.7}}}, "GroundTruthListResponseResult": {"required": ["template_id", "items", "total"], "type": "object", "properties": {"template_id": {"title": "Template id", "type": "string", "format": "uuid"}, "items": {"type": "array", "items": {"$ref": "#/definitions/GroundTruthItem"}}, "total": {"title": "Total", "type": "integer"}}}, "GroundTruthListResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/GroundTruthListResponseResult"}}}, "GroundTruthUploadRequest": {"type": "object", "properties": {"file": {"title": "File", "type": "string", "readOnly": true, "format": "uri"}, "name": {"title": "Name", "type": "string", "maxLength": 255}, "description": {"title": "Description", "type": "string", "default": ""}, "file_name": {"title": "File name", "type": "string", "default": ""}, "columns": {"type": "array", "items": {"type": "string", "minLength": 1}}, "data": {"type": "array", "items": {"type": "object"}}, "variable_mapping": {"title": "Variable mapping", "type": "object", "x-nullable": true, "additionalProperties": true}, "role_mapping": {"title": "Role mapping", "type": "object", "x-nullable": true, "additionalProperties": true}}}, "GroundTruthUploadResponseResult": {"required": ["id", "name", "row_count", "columns", "embedding_status"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "row_count": {"title": "Row count", "type": "integer"}, "columns": {"type": "array", "items": {"type": "string", "minLength": 1}}, "embedding_status": {"title": "Embedding status", "type": "string", "minLength": 1}}}, "GroundTruthUploadResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/GroundTruthUploadResponseResult"}}}, "EvalTemplateUpdateV2Request": {"type": "object", "properties": {"name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1, "x-nullable": true}, "eval_type": {"title": "Eval type", "type": "string", "enum": ["llm", "code", "agent"], "x-nullable": true}, "instructions": {"title": "Instructions", "type": "string", "minLength": 1, "x-nullable": true}, "model": {"title": "Model", "type": "string", "minLength": 1, "x-nullable": true}, "output_type": {"title": "Output type", "type": "string", "enum": ["pass_fail", "percentage", "deterministic"], "x-nullable": true}, "pass_threshold": {"title": "Pass threshold", "type": "number", "maximum": 1, "minimum": 0, "x-nullable": true}, "choice_scores": {"title": "Choice scores", "type": "object", "x-nullable": true}, "multi_choice": {"title": "Multi choice", "type": "boolean", "x-nullable": true}, "description": {"title": "Description", "type": "string", "x-nullable": true}, "tags": {"type": "array", "items": {"type": "string", "minLength": 1}, "x-nullable": true}, "check_internet": {"title": "Check internet", "type": "boolean", "x-nullable": true}, "code": {"title": "Code", "type": "string", "x-nullable": true}, "code_language": {"title": "Code language", "type": "string", "enum": ["python", "javascript"], "x-nullable": true}, "messages": {"type": "array", "items": {"type": "object"}, "x-nullable": true}, "few_shot_examples": {"type": "array", "items": {"type": "object"}, "x-nullable": true}, "mode": {"title": "Mode", "type": "string", "enum": ["auto", "agent", "quick"], "x-nullable": true}, "tools": {"title": "Tools", "type": "object", "x-nullable": true}, "knowledge_bases": {"type": "array", "items": {"type": "string", "minLength": 1}, "x-nullable": true}, "data_injection": {"title": "Data injection", "type": "object", "x-nullable": true}, "summary": {"title": "Summary", "type": "object", "x-nullable": true}, "error_localizer_enabled": {"title": "Error localizer enabled", "type": "boolean", "x-nullable": true}, "publish": {"title": "Publish", "type": "boolean", "x-nullable": true}, "template_format": {"title": "Template format", "type": "string", "enum": ["mustache", "jinja"], "x-nullable": true}}}, "EvalTemplateUpdateResponseResult": {"required": ["id", "name", "updated"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "updated": {"title": "Updated", "type": "boolean"}}}, "EvalTemplateUpdateResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/EvalTemplateUpdateResponseResult"}}}, "EvalUsageStats": {"required": ["total_runs", "runs_period", "success_count", "error_count", "pass_rate"], "type": "object", "properties": {"total_runs": {"title": "Total runs", "type": "integer"}, "runs_period": {"title": "Runs period", "type": "integer"}, "success_count": {"title": "Success count", "description": "Deprecated compatibility field. Usage counts only successful runs, so this always equals runs_period.", "type": "integer"}, "error_count": {"title": "Error count", "description": "Deprecated compatibility field. Usage counts only successful runs, so this is always 0; failed runs stay in the eval logs.", "type": "integer"}, "pass_rate": {"title": "Pass rate", "description": "Deprecated compatibility field. Usage counts only successful runs, so this is 100 when runs_period is above 0, otherwise 0.", "type": "number"}}}, "EvalUsageChartPoint": {"required": ["timestamp"], "type": "object", "properties": {"timestamp": {"title": "Timestamp", "type": "string", "minLength": 1}, "calls": {"title": "Calls", "type": "integer"}, "avg_latency_ms": {"title": "Avg latency ms", "type": "integer"}, "avg_score": {"title": "Avg score", "type": "number", "x-nullable": true}, "pass_count": {"title": "Pass count", "type": "integer"}, "fail_count": {"title": "Fail count", "type": "integer"}}}, "EvalUsageNumberCell": {"type": "object", "properties": {"cell_value": {"title": "Cell value", "type": "number", "x-nullable": true}}}, "EvalUsageStringCell": {"type": "object", "properties": {"cell_value": {"title": "Cell value", "type": "string", "x-nullable": true}}}, "EvalUsageFeedback": {"required": ["id"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "value": {"title": "Value", "type": "string", "x-nullable": true}, "explanation": {"title": "Explanation", "type": "string"}, "action_type": {"title": "Action type", "type": "string"}, "created_at": {"title": "Created at", "type": "string"}, "user": {"title": "User", "type": "string"}}, "x-nullable": true}, "EvalUsageFeedbackCell": {"type": "object", "properties": {"cell_value": {"$ref": "#/definitions/EvalUsageFeedback"}}}, "EvalUsageWarningsCell": {"type": "object", "properties": {"cell_value": {"type": "array", "items": {"type": "object"}, "x-nullable": true}}}, "EvalUsageLogItemDetail": {"type": "object", "properties": {"input_variables": {"title": "Input variables", "type": "object", "additionalProperties": {"type": "string"}, "default": {}, "x-nullable": true}, "output": {"title": "Output", "type": "object", "x-nullable": true}, "warnings": {"type": "array", "items": {"type": "string", "x-nullable": true}, "default": []}, "mappings": {"title": "Mappings", "type": "object", "additionalProperties": {"type": "string"}, "default": {}, "x-nullable": true}, "model": {"title": "Model", "type": "object", "x-nullable": true, "x-string-or-object": true, "description": "String or JSON object."}, "version_id": {"title": "Version id", "type": "string", "minLength": 1, "x-nullable": true}, "version_number": {"title": "Version number", "type": "integer", "x-nullable": true}, "children": {"type": "array", "items": {"type": "string", "x-nullable": true}, "default": []}, "aggregation_function": {"title": "Aggregation function", "type": "string", "x-nullable": true}, "total_children": {"title": "Total children", "type": "integer", "x-nullable": true}, "completed_children": {"title": "Completed children", "type": "integer", "x-nullable": true}, "failed_children": {"title": "Failed children", "type": "integer", "x-nullable": true}}}, "EvalUsageTableRow": {"required": ["row_id"], "type": "object", "properties": {"row_id": {"title": "Row id", "type": "string", "minLength": 1}, "score": {"$ref": "#/definitions/EvalUsageNumberCell"}, "result": {"$ref": "#/definitions/EvalUsageStringCell"}, "input": {"$ref": "#/definitions/EvalUsageStringCell"}, "reason": {"$ref": "#/definitions/EvalUsageStringCell"}, "source": {"$ref": "#/definitions/EvalUsageStringCell"}, "version": {"$ref": "#/definitions/EvalUsageStringCell"}, "feedback": {"$ref": "#/definitions/EvalUsageFeedbackCell"}, "created_at": {"$ref": "#/definitions/EvalUsageStringCell"}, "status": {"$ref": "#/definitions/EvalUsageStringCell"}, "warnings": {"$ref": "#/definitions/EvalUsageWarningsCell"}, "detail": {"$ref": "#/definitions/EvalUsageLogItemDetail"}, "composite": {"title": "Composite", "type": "boolean"}, "aggregate_pass": {"title": "Aggregate pass", "type": "boolean", "x-nullable": true}}, "additionalProperties": true}, "EvalUsagePagination": {"required": ["total", "page", "page_size"], "type": "object", "properties": {"total": {"title": "Total", "type": "integer"}, "page": {"title": "Page", "type": "integer"}, "page_size": {"title": "Page size", "type": "integer"}}}, "EvalUsageStatsResponseResult": {"required": ["template_id", "is_composite", "stats", "chart", "table", "logs"], "type": "object", "properties": {"template_id": {"title": "Template id", "type": "string", "format": "uuid"}, "is_composite": {"title": "Is composite", "type": "boolean"}, "completeness": {"title": "Completeness", "type": "string", "enum": ["complete", "degraded", "pending"]}, "unavailable_fields": {"type": "array", "items": {"type": "string", "minLength": 1}}, "stats": {"$ref": "#/definitions/EvalUsageStats"}, "chart": {"type": "array", "items": {"$ref": "#/definitions/EvalUsageChartPoint"}}, "table": {"type": "array", "items": {"$ref": "#/definitions/EvalUsageTableRow"}}, "logs": {"$ref": "#/definitions/EvalUsagePagination"}, "query_complete": {"title": "Query complete", "type": "boolean"}, "query_status": {"title": "Query status", "type": "string", "enum": ["complete", "degraded", "pending"]}, "query_sampled": {"title": "Query sampled", "type": "boolean"}, "query_completed_at": {"title": "Query completed at", "type": "string", "format": "date-time"}, "query_cached": {"title": "Query cached", "type": "boolean"}, "query_refresh_failed": {"title": "Query refresh failed", "type": "boolean"}, "query_refreshing": {"title": "Query refreshing", "type": "boolean"}}}, "EvalUsageStatsResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/EvalUsageStatsResponseResult"}}}, "EvalTemplateVersionItem": {"required": ["id", "version_number", "is_default"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "version_number": {"title": "Version number", "type": "integer"}, "is_default": {"title": "Is default", "type": "boolean"}, "criteria": {"title": "Criteria", "type": "string"}, "model": {"title": "Model", "type": "string"}, "config_snapshot": {"title": "Config snapshot", "type": "object"}, "created_by_name": {"title": "Created by name", "type": "string"}, "created_at": {"title": "Created at", "type": "string"}}}, "EvalTemplateVersionListResponseResult": {"required": ["template_id", "versions", "total"], "type": "object", "properties": {"template_id": {"title": "Template id", "type": "string", "format": "uuid"}, "versions": {"type": "array", "items": {"$ref": "#/definitions/EvalTemplateVersionItem"}}, "total": {"title": "Total", "type": "integer"}}}, "EvalTemplateVersionListResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/EvalTemplateVersionListResponseResult"}}}, "EvalTemplateVersionCreateRequest": {"type": "object", "properties": {"criteria": {"title": "Criteria", "type": "string", "x-nullable": true}, "model": {"title": "Model", "type": "string", "x-nullable": true}, "config_snapshot": {"title": "Config snapshot", "type": "object", "x-nullable": true}}}, "EvalTemplateVersionResponseResult": {"required": ["id", "version_number", "is_default"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "version_number": {"title": "Version number", "type": "integer"}, "is_default": {"title": "Is default", "type": "boolean"}}}, "EvalTemplateVersionResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/EvalTemplateVersionResponseResult"}}}, "EvalTemplateVersionRestoreResponseResult": {"required": ["id", "version_number", "is_default", "restored_from"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "version_number": {"title": "Version number", "type": "integer"}, "is_default": {"title": "Is default", "type": "boolean"}, "restored_from": {"title": "Restored from", "type": "integer"}}}, "EvalTemplateVersionRestoreResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/EvalTemplateVersionRestoreResponseResult"}}}, "EvalUserTemplate": {"required": ["name", "template_id", "dataset_id", "config"], "type": "object", "properties": {"name": {"title": "Name", "type": "string", "maxLength": 50, "minLength": 1}, "template_id": {"title": "Template id", "type": "string", "maxLength": 500, "minLength": 1}, "dataset_id": {"title": "Dataset id", "type": "string", "maxLength": 500, "minLength": 1}, "config": {"title": "Config", "type": "object"}, "model": {"title": "Model", "type": "string", "maxLength": 100, "minLength": 1}}}, "SingleRowEvaluationRequest": {"type": "object", "properties": {"user_eval_metric_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}, "default": []}, "row_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}, "default": []}, "selected_all_rows": {"title": "Selected all rows", "type": "boolean", "default": false}}}, "SingleRowEvaluationResponseResult": {"required": ["success"], "type": "object", "properties": {"success": {"title": "Success", "type": "string", "minLength": 1}}}, "SingleRowEvaluationResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/SingleRowEvaluationResponseResult"}}}, "ExperimentsTableGet": {"required": ["name"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}}}, "ExperimentsTable": {"required": ["name", "dataset_id", "column_id"], "type": "object", "properties": {"name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "dataset_id": {"title": "Dataset id", "type": "string", "format": "uuid"}, "prompt_config": {"title": "Prompt config", "type": "object"}, "user_eval_template_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}, "uniqueItems": true}, "column_id": {"title": "Column id", "type": "string", "format": "uuid"}}}, "ExperimentLegacyDetailResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/ExperimentsTable"}}}, "ExperimentStringResultResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"title": "Result", "type": "string", "minLength": 1}}}, "ExperimentsTableUpdate": {"required": ["experiment_id", "name", "dataset_id", "column_id"], "type": "object", "properties": {"experiment_id": {"title": "Experiment id", "type": "string", "format": "uuid"}, "re_run": {"title": "Re run", "type": "boolean", "default": false}, "name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "dataset_id": {"title": "Dataset id", "type": "string", "format": "uuid"}, "prompt_config": {"title": "Prompt config", "type": "object"}, "user_eval_template_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}, "uniqueItems": true}, "column_id": {"title": "Column id", "type": "string", "format": "uuid"}}}, "ExperimentList": {"required": ["name", "dataset"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "status": {"title": "Status", "type": "string", "enum": ["NotStarted", "Queued", "Running", "Completed", "Editing", "Inactive", "Failed", "PartialRun", "ExperimentEvaluation", "Uploading", "PartialExtracted", "Processing", "Deleting", "PartialCompleted", "OptimizationEvaluation", "Error", "Cancelled"]}, "eval_templates_count": {"title": "Eval templates count", "type": "string", "readOnly": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "models_count": {"title": "Models count", "type": "string", "readOnly": true}, "dataset": {"title": "Dataset", "type": "string", "format": "uuid"}}}, "ExperimentRerunRequest": {"required": ["experiment_ids"], "type": "object", "properties": {"experiment_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}}, "use_temporal": {"title": "Use temporal", "type": "boolean", "default": true}, "max_concurrent_rows": {"title": "Max concurrent rows", "type": "integer", "minimum": 1}}}, "PromptModelParams": {"type": "object", "properties": {"temperature": {"title": "Temperature", "type": "number"}, "max_tokens": {"title": "Max tokens", "type": "integer"}, "top_p": {"title": "Top p", "type": "number"}, "frequency_penalty": {"title": "Frequency penalty", "type": "number"}, "presence_penalty": {"title": "Presence penalty", "type": "number"}, "response_format": {"title": "Response format", "type": "object", "x-string-or-object": true, "description": "String or JSON object."}}, "default": {}, "additionalProperties": true}, "PromptConfiguration": {"type": "object", "properties": {"tool_choice": {"title": "Tool choice", "type": "string"}, "template_format": {"title": "Template format", "type": "string"}, "tools": {"type": "array", "items": {"type": "object", "x-json-value": true, "description": "Any valid JSON value."}}, "output_format": {"title": "Output format", "type": "string"}, "model_type": {"title": "Model type", "type": "string"}, "model_detail": {"title": "Model detail", "type": "object", "x-json-value": true, "description": "Any valid JSON value."}, "voice_id": {"title": "Voice id", "type": "string"}}, "default": {}, "additionalProperties": true}, "MessageItem": {"required": ["role", "content"], "type": "object", "properties": {"role": {"title": "Role", "type": "string", "minLength": 1}, "content": {"title": "Content", "type": "object", "x-string-or-array": true, "description": "Plain text string or array of content-part objects."}, "name": {"title": "Name", "type": "string", "minLength": 1}, "tool_calls": {"title": "Tool calls", "type": "object", "x-json-value": true, "description": "Any valid JSON value."}, "tool_call_id": {"title": "Tool call id", "type": "string", "minLength": 1}, "id": {"title": "Id", "type": "string", "minLength": 1}}, "additionalProperties": true}, "PromptConfigEntry": {"type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "x-nullable": true}, "name": {"title": "Name", "type": "string"}, "prompt_id": {"title": "Prompt id", "type": "string", "format": "uuid", "x-nullable": true}, "prompt_version": {"title": "Prompt version", "type": "string", "format": "uuid", "x-nullable": true}, "agent_id": {"title": "Agent id", "type": "string", "format": "uuid", "x-nullable": true}, "agent_version": {"title": "Agent version", "type": "string", "format": "uuid", "x-nullable": true}, "model": {"title": "Model", "type": "object", "x-string-or-object": true, "description": "String or JSON object."}, "model_params": {"$ref": "#/definitions/PromptModelParams"}, "configuration": {"$ref": "#/definitions/PromptConfiguration"}, "output_format": {"title": "Output format", "type": "string", "default": "string", "minLength": 1}, "messages": {"type": "array", "items": {"$ref": "#/definitions/MessageItem"}}, "voice_input_column_id": {"title": "Voice input column id", "type": "string", "format": "uuid", "x-nullable": true}}}, "EvalMetricEntry": {"required": ["template_id", "name", "config"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "x-nullable": true}, "template_id": {"title": "Template id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "maxLength": 2000, "minLength": 1}, "config": {"title": "Config", "type": "object"}, "model": {"title": "Model", "type": "string", "default": "", "maxLength": 255}, "error_localizer": {"title": "Error localizer", "type": "boolean", "default": false}, "kb_id": {"title": "Kb id", "type": "string", "format": "uuid", "x-nullable": true}, "composite_weight_overrides": {"title": "Composite weight overrides", "type": "object", "x-nullable": true}}}, "ExperimentCreateV2": {"required": ["name", "dataset_id", "prompt_config", "user_eval_metrics"], "type": "object", "properties": {"name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "dataset_id": {"title": "Dataset id", "type": "string", "format": "uuid"}, "column_id": {"title": "Column id", "type": "string", "format": "uuid", "x-nullable": true}, "experiment_type": {"title": "Experiment type", "type": "string", "enum": ["llm", "tts", "stt", "image"], "default": "llm"}, "prompt_config": {"type": "array", "items": {"$ref": "#/definitions/PromptConfigEntry"}}, "user_eval_metrics": {"type": "array", "items": {"$ref": "#/definitions/EvalMetricEntry"}}}}, "ExperimentListV2": {"required": ["name", "dataset"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "status": {"title": "Status", "type": "string", "enum": ["NotStarted", "Queued", "Running", "Completed", "Editing", "Inactive", "Failed", "PartialRun", "ExperimentEvaluation", "Uploading", "PartialExtracted", "Processing", "Deleting", "PartialCompleted", "OptimizationEvaluation", "Error", "Cancelled"]}, "experiment_type": {"title": "Experiment type", "description": "Determines how the experiment executes: llm, tts, stt, or image.", "type": "string", "enum": ["llm", "tts", "stt", "image"]}, "eval_templates_count": {"title": "Eval templates count", "type": "string", "readOnly": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "models_count": {"title": "Models count", "type": "string", "readOnly": true}, "agents_count": {"title": "Agents count", "type": "string", "readOnly": true}, "dataset": {"title": "Dataset", "type": "string", "format": "uuid"}}}, "ExperimentNameSuggestionResult": {"required": ["suggested_name"], "type": "object", "properties": {"suggested_name": {"title": "Suggested name", "type": "string", "minLength": 1}}}, "ExperimentNameSuggestionResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/ExperimentNameSuggestionResult"}}}, "ExperimentNameValidationResult": {"required": ["is_valid"], "type": "object", "properties": {"is_valid": {"title": "Is valid", "type": "boolean"}, "message": {"title": "Message", "type": "string"}}}, "ExperimentNameValidationResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/ExperimentNameValidationResult"}}}, "ExperimentDetailV2": {"required": ["name"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "dataset_id": {"title": "Dataset id", "type": "string", "format": "uuid", "readOnly": true}, "column_id": {"title": "Column id", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}, "experiment_type": {"title": "Experiment type", "description": "Determines how the experiment executes: llm, tts, stt, or image.", "type": "string", "enum": ["llm", "tts", "stt", "image"]}, "status": {"title": "Status", "type": "string", "enum": ["NotStarted", "Queued", "Running", "Completed", "Editing", "Inactive", "Failed", "PartialRun", "ExperimentEvaluation", "Uploading", "PartialExtracted", "Processing", "Deleting", "PartialCompleted", "OptimizationEvaluation", "Error", "Cancelled"]}, "snapshot_dataset_id": {"title": "Snapshot dataset id", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}, "prompt_configs": {"title": "Prompt configs", "type": "string", "readOnly": true}, "agent_configs": {"title": "Agent configs", "type": "string", "readOnly": true}, "user_eval_metrics": {"title": "User eval metrics", "type": "string", "readOnly": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}}}, "ExperimentV2DetailResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/ExperimentDetailV2"}}}, "ExperimentUpdateV2": {"type": "object", "properties": {"column_id": {"title": "Column id", "type": "string", "format": "uuid", "x-nullable": true}, "prompt_config": {"type": "array", "items": {"$ref": "#/definitions/PromptConfigEntry"}}, "user_eval_metrics": {"type": "array", "items": {"$ref": "#/definitions/EvalMetricEntry"}}}}, "ExperimentComparisonWeightsRequest": {"type": "object", "properties": {"eval_template_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}, "default": []}, "weights": {"title": "Weights", "type": "object", "default": {}}}}, "ExperimentComparisonColumnMetric": {"required": ["column_id", "column_name", "avg_completion_tokens", "avg_total_tokens", "avg_response_time"], "type": "object", "properties": {"column_id": {"title": "Column id", "type": "string", "format": "uuid"}, "column_name": {"title": "Column name", "type": "string", "minLength": 1}, "avg_completion_tokens": {"title": "Avg completion tokens", "type": "number"}, "avg_total_tokens": {"title": "Avg total tokens", "type": "number"}, "avg_response_time": {"title": "Avg response time", "type": "number"}, "avg_score": {"title": "Avg score", "type": "object", "x-nullable": true}}}, "ExperimentComparisonDatasetMetric": {"required": ["dataset_id"], "type": "object", "properties": {"dataset_id": {"title": "Dataset id", "type": "string", "format": "uuid"}, "avg_completion_tokens": {"title": "Avg completion tokens", "type": "number", "x-nullable": true}, "avg_total_tokens": {"title": "Avg total tokens", "type": "number", "x-nullable": true}, "avg_response_time": {"title": "Avg response time", "type": "number", "x-nullable": true}, "avg_score": {"title": "Avg score", "type": "number", "x-nullable": true}, "columns": {"type": "array", "items": {"$ref": "#/definitions/ExperimentComparisonColumnMetric"}}, "normalized_scores": {"title": "Normalized scores", "type": "object"}, "overall_rating": {"title": "Overall rating", "type": "number", "x-nullable": true}, "rank": {"title": "Rank", "type": "integer", "x-nullable": true}, "rank_suffix": {"title": "Rank suffix", "type": "string"}, "total_datasets": {"title": "Total datasets", "type": "integer"}}}, "ExperimentDatasetComparisonResult": {"required": ["experiment_id", "experiment_name", "total_datasets", "dataset_comparisons"], "type": "object", "properties": {"experiment_id": {"title": "Experiment id", "type": "string", "format": "uuid"}, "experiment_name": {"title": "Experiment name", "type": "string", "minLength": 1}, "total_datasets": {"title": "Total datasets", "type": "integer"}, "weights_applied": {"title": "Weights applied", "type": "object"}, "dataset_comparisons": {"type": "array", "items": {"$ref": "#/definitions/ExperimentComparisonDatasetMetric"}}}}, "ExperimentDatasetComparisonResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/ExperimentDatasetComparisonResult"}}}, "ExperimentComparisonRawMetrics": {"type": "object", "properties": {"avg_completion_tokens": {"title": "Avg completion tokens", "type": "number", "x-nullable": true}, "avg_total_tokens": {"title": "Avg total tokens", "type": "number", "x-nullable": true}, "avg_response_time": {"title": "Avg response time", "type": "number", "x-nullable": true}, "avg_score": {"title": "Avg score", "type": "number", "x-nullable": true}}}, "ExperimentComparisonNormalizedMetrics": {"type": "object", "properties": {"completion_tokens": {"title": "Completion tokens", "type": "number", "x-nullable": true}, "total_tokens": {"title": "Total tokens", "type": "number", "x-nullable": true}, "response_time": {"title": "Response time", "type": "number", "x-nullable": true}, "score": {"title": "Score", "type": "number", "x-nullable": true}}}, "ExperimentComparisonMetrics": {"required": ["raw", "normalized"], "type": "object", "properties": {"raw": {"$ref": "#/definitions/ExperimentComparisonRawMetrics"}, "normalized": {"$ref": "#/definitions/ExperimentComparisonNormalizedMetrics"}}}, "ExperimentComparisonWeights": {"type": "object", "properties": {"response_time": {"title": "Response time", "type": "number", "x-nullable": true}, "scores": {"title": "Scores", "type": "object"}, "total_tokens": {"title": "Total tokens", "type": "number", "x-nullable": true}, "completion_tokens": {"title": "Completion tokens", "type": "number", "x-nullable": true}}}, "ExperimentComparisonDetail": {"required": ["metrics", "weights"], "type": "object", "properties": {"scores_weight": {"title": "Scores weight", "type": "object"}, "experiment_dataset_id": {"title": "Experiment dataset id", "type": "string", "format": "uuid", "x-nullable": true}, "rank": {"title": "Rank", "type": "integer", "x-nullable": true}, "rank_suffix": {"title": "Rank suffix", "type": "string"}, "metrics": {"$ref": "#/definitions/ExperimentComparisonMetrics"}, "weights": {"$ref": "#/definitions/ExperimentComparisonWeights"}, "overall_rating": {"title": "Overall rating", "type": "number", "x-nullable": true}}}, "ExperimentComparisonDetailsResult": {"required": ["experiment_id", "total_comparisons", "comparisons"], "type": "object", "properties": {"experiment_id": {"title": "Experiment id", "type": "string", "format": "uuid"}, "total_comparisons": {"title": "Total comparisons", "type": "integer"}, "comparisons": {"type": "array", "items": {"$ref": "#/definitions/ExperimentComparisonDetail"}}}}, "ExperimentComparisonDetailsResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/ExperimentComparisonDetailsResult"}}}, "ExperimentDerivedVariablesResult": {"type": "object", "properties": {"version": {"title": "Version", "type": "string"}, "derived_variables": {"title": "Derived variables", "type": "object", "additionalProperties": {"type": "array", "items": {"type": "string", "minLength": 1}}}}}, "ExperimentDerivedVariablesResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/ExperimentDerivedVariablesResult"}}}, "ExperimentEvaluationTokenUsage": {"required": ["avg_completion_tokens", "avg_prompt_tokens", "avg_total_tokens", "total_tokens"], "type": "object", "properties": {"avg_completion_tokens": {"title": "Avg completion tokens", "type": "number"}, "avg_prompt_tokens": {"title": "Avg prompt tokens", "type": "number"}, "avg_total_tokens": {"title": "Avg total tokens", "type": "number"}, "total_tokens": {"title": "Total tokens", "type": "integer"}}}, "ExperimentEvaluationColumnStats": {"required": ["column_name", "column_id", "total_rows", "success_rate", "avg_response_time", "token_usage"], "type": "object", "properties": {"column_name": {"title": "Column name", "type": "string", "minLength": 1}, "column_id": {"title": "Column id", "type": "string", "format": "uuid"}, "total_rows": {"title": "Total rows", "type": "integer"}, "success_rate": {"title": "Success rate", "type": "number"}, "avg_response_time": {"title": "Avg response time", "type": "number"}, "token_usage": {"$ref": "#/definitions/ExperimentEvaluationTokenUsage"}, "avg_score": {"title": "Avg score", "type": "object", "x-nullable": true}}}, "ExperimentEvaluationStatsResult": {"required": ["experiment_id", "experiment_name", "evaluation_id", "evaluation_name", "evaluation_template_id", "dataset_id", "dataset_name", "evaluation_columns"], "type": "object", "properties": {"experiment_id": {"title": "Experiment id", "type": "string", "format": "uuid"}, "experiment_name": {"title": "Experiment name", "type": "string", "minLength": 1}, "evaluation_id": {"title": "Evaluation id", "type": "string", "format": "uuid"}, "evaluation_name": {"title": "Evaluation name", "type": "string", "minLength": 1}, "evaluation_template_id": {"title": "Evaluation template id", "type": "string", "format": "uuid"}, "dataset_id": {"title": "Dataset id", "type": "string", "format": "uuid"}, "dataset_name": {"title": "Dataset name", "type": "string", "minLength": 1}, "evaluation_columns": {"type": "array", "items": {"$ref": "#/definitions/ExperimentEvaluationColumnStats"}}}}, "ExperimentEvaluationStatsResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/ExperimentEvaluationStatsResult"}}}, "Feedback": {"required": ["source_id", "source", "value"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "source_id": {"title": "Source id", "type": "string", "maxLength": 255, "minLength": 1}, "source": {"title": "Source", "type": "string", "enum": ["dataset", "prompt", "sdk", "trace", "experiment", "observe", "eval_playground"]}, "user_eval_metric": {"title": "User eval metric", "type": "string", "format": "uuid", "x-nullable": true}, "value": {"title": "Value", "type": "string", "minLength": 1}, "explanation": {"title": "Explanation", "type": "string", "x-nullable": true}, "row_id": {"title": "Row id", "type": "string", "maxLength": 255, "x-nullable": true}, "custom_eval_config_id": {"title": "Custom eval config id", "type": "string", "format": "uuid", "x-nullable": true}, "feedback_improvement": {"title": "Feedback improvement", "type": "string", "x-nullable": true}, "action_type": {"title": "Action type", "type": "string", "maxLength": 255, "x-nullable": true}}}, "ExperimentFeedbackCreateResult": {"required": ["id"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}}}, "ExperimentFeedbackCreateResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/ExperimentFeedbackCreateResult"}}}, "ExperimentFeedbackDetailItem": {"required": ["id", "created_at"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "value": {"title": "Value", "type": "object", "x-nullable": true}, "comment": {"title": "Comment", "type": "string", "x-nullable": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time"}, "action_type": {"title": "Action type", "type": "string", "x-nullable": true}}}, "ExperimentFeedbackDetailsResult": {"required": ["feedback", "total_count"], "type": "object", "properties": {"feedback": {"type": "array", "items": {"$ref": "#/definitions/ExperimentFeedbackDetailItem"}}, "total_count": {"title": "Total count", "type": "integer"}}}, "ExperimentFeedbackDetailsResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/ExperimentFeedbackDetailsResult"}}}, "ExperimentFeedbackTemplateResult": {"required": ["eval_name", "user_eval_name"], "type": "object", "properties": {"output_type": {"title": "Output type", "type": "string", "minLength": 1, "x-nullable": true}, "eval_description": {"title": "Eval description", "type": "string", "x-nullable": true}, "eval_name": {"title": "Eval name", "type": "string", "minLength": 1}, "user_eval_name": {"title": "User eval name", "type": "string", "minLength": 1}, "choices": {"type": "array", "items": {"type": "string"}}, "multi_choice": {"title": "Multi choice", "type": "boolean"}, "choice_scores": {"title": "Choice scores", "type": "object", "additionalProperties": {"type": "number"}, "x-nullable": true}}}, "ExperimentFeedbackTemplateResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/ExperimentFeedbackTemplateResult"}}}, "ExperimentFeedbackSubmitRequest": {"required": ["action_type", "feedback_id", "user_eval_metric_id"], "type": "object", "properties": {"action_type": {"title": "Action type", "type": "string", "enum": ["retune", "recalculate_row", "recalculate_dataset", "retune_recalculate"]}, "feedback_id": {"title": "Feedback id", "type": "string", "format": "uuid"}, "user_eval_metric_id": {"title": "User eval metric id", "type": "string", "format": "uuid"}, "value": {"title": "Value", "type": "string"}, "explanation": {"title": "Explanation", "type": "string"}}}, "ExperimentFeedbackSubmitResult": {"required": ["message", "action_type", "user_eval_metric_id"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}, "action_type": {"title": "Action type", "type": "string", "minLength": 1}, "user_eval_metric_id": {"title": "User eval metric id", "type": "string", "format": "uuid"}, "workflow_id": {"title": "Workflow id", "type": "string"}}}, "ExperimentFeedbackSubmitResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/ExperimentFeedbackSubmitResult"}}}, "ExperimentJsonSchemaResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"title": "Result", "type": "object", "additionalProperties": {"$ref": "#/definitions/JsonColumnSchemaEntry"}}}}, "RerunCellEntry": {"required": ["column_id", "row_id"], "type": "object", "properties": {"column_id": {"title": "Column id", "type": "string", "format": "uuid"}, "row_id": {"title": "Row id", "type": "string", "format": "uuid"}}}, "ExperimentRerunCells": {"type": "object", "properties": {"source_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}, "default": []}, "cells": {"type": "array", "items": {"$ref": "#/definitions/RerunCellEntry"}, "default": []}, "user_eval_metric_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}, "default": []}, "failed_only": {"title": "Failed only", "type": "boolean", "default": false}, "max_concurrent_rows": {"title": "Max concurrent rows", "type": "integer", "default": 10, "minimum": 1}}}, "ExperimentWorkflowResult": {"required": ["message"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}, "workflow_id": {"title": "Workflow id", "type": "string"}}}, "ExperimentWorkflowResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/ExperimentWorkflowResult"}}}, "ExperimentTableRowsColumnConfig": {"required": ["id", "name"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "minLength": 1}, "name": {"title": "Name", "type": "string", "minLength": 1}, "origin_type": {"title": "Origin type", "type": "string"}, "data_type": {"title": "Data type", "type": "string"}, "status": {"title": "Status", "type": "string"}, "group": {"title": "Group", "type": "object", "x-nullable": true}, "average_score": {"title": "Average score", "type": "object", "x-nullable": true}, "dataset_id": {"title": "Dataset id", "type": "string"}, "choices_map": {"title": "Choices map", "type": "object"}, "is_base_column": {"title": "Is base column", "type": "boolean"}, "output_type": {"title": "Output type", "type": "string", "x-nullable": true}, "eval_template_id": {"title": "Eval template id", "type": "string", "x-nullable": true}, "source_id": {"title": "Source id", "type": "string"}, "is_agent": {"title": "Is agent", "type": "boolean"}, "is_final": {"title": "Is final", "type": "boolean"}}}, "ExperimentTableRow": {"required": ["row_id"], "type": "object", "properties": {"row_id": {"title": "Row id", "type": "string", "format": "uuid"}}}, "ExperimentTableRowsMetadata": {"type": "object", "properties": {"total_rows": {"title": "Total rows", "type": "integer"}, "dataset": {"title": "Dataset", "type": "string"}, "dataset_name": {"title": "Dataset name", "type": "string"}, "column": {"title": "Column", "type": "string", "x-nullable": true}, "total_pages": {"title": "Total pages", "type": "integer"}, "description": {"title": "Description", "type": "object", "additionalProperties": {"type": "string"}}}}, "ExperimentTableRowsResult": {"required": ["column_config"], "type": "object", "properties": {"column_config": {"type": "array", "items": {"$ref": "#/definitions/ExperimentTableRowsColumnConfig"}}, "table": {"type": "array", "items": {"$ref": "#/definitions/ExperimentTableRow"}}, "metadata": {"$ref": "#/definitions/ExperimentTableRowsMetadata"}, "output_format": {"title": "Output format", "type": "string"}, "status": {"title": "Status", "type": "string"}, "next_row_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}}}}, "ExperimentTableRowsResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/ExperimentTableRowsResult"}}}, "ExperimentStatsColumnConfig": {"required": ["name"], "type": "object", "properties": {"status": {"title": "Status", "type": "string"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "reverse_output": {"title": "Reverse output", "type": "boolean"}, "output_type": {"title": "Output type", "type": "string", "x-nullable": true}, "eval_template_id": {"title": "Eval template id", "type": "string", "x-nullable": true}}}, "ExperimentStatsMetadata": {"required": ["is_winner_chosen"], "type": "object", "properties": {"is_winner_chosen": {"title": "Is winner chosen", "type": "boolean"}}}, "ExperimentStatsResult": {"required": ["column_config", "table_data", "metadata"], "type": "object", "properties": {"column_config": {"type": "array", "items": {"$ref": "#/definitions/ExperimentStatsColumnConfig"}}, "table_data": {"type": "array", "items": {"type": "object"}}, "metadata": {"$ref": "#/definitions/ExperimentStatsMetadata"}}}, "ExperimentStatsResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/ExperimentStatsResult"}}}, "ExperimentStopWorkflowsCancelled": {"required": ["main", "reruns"], "type": "object", "properties": {"main": {"title": "Main", "type": "boolean"}, "reruns": {"title": "Reruns", "type": "boolean"}}}, "ExperimentStopResult": {"required": ["message", "experiment_id", "workflows_cancelled"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}, "experiment_id": {"title": "Experiment id", "type": "string", "format": "uuid"}, "workflows_cancelled": {"$ref": "#/definitions/ExperimentStopWorkflowsCancelled"}}}, "ExperimentStopResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/ExperimentStopResult"}}}, "ExperimentAddEvalResult": {"required": ["message", "eval_id"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}, "eval_id": {"title": "Eval id", "type": "string", "format": "uuid"}}}, "ExperimentAddEvalResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/ExperimentAddEvalResult"}}}, "ExperimentAdditionalEvaluationsRequest": {"required": ["eval_template_ids"], "type": "object", "properties": {"eval_template_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}}}}, "ExperimentMessageResult": {"required": ["message"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}}}, "ExperimentMessageResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/ExperimentMessageResult"}}}, "FeedbackDetailsItem": {"required": ["id", "value", "comment", "created_at", "action_type"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "value": {"title": "Value", "type": "string", "x-nullable": true}, "comment": {"title": "Comment", "type": "string", "x-nullable": true}, "created_at": {"title": "Created at", "type": "string", "minLength": 1}, "action_type": {"title": "Action type", "type": "string", "x-nullable": true}}}, "FeedbackDetailsResult": {"required": ["feedback", "total_count"], "type": "object", "properties": {"feedback": {"type": "array", "items": {"$ref": "#/definitions/FeedbackDetailsItem"}}, "total_count": {"title": "Total count", "type": "integer"}}}, "FeedbackDetailsResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/FeedbackDetailsResult"}}}, "FeedbackTemplateResult": {"required": ["eval_name", "user_eval_name"], "type": "object", "properties": {"output_type": {"title": "Output type", "type": "string", "minLength": 1, "x-nullable": true}, "eval_description": {"title": "Eval description", "type": "string", "x-nullable": true}, "eval_name": {"title": "Eval name", "type": "string", "minLength": 1}, "user_eval_name": {"title": "User eval name", "type": "string", "minLength": 1}, "choices": {"type": "array", "items": {"type": "string"}}, "multi_choice": {"title": "Multi choice", "type": "boolean"}, "choice_scores": {"title": "Choice scores", "type": "object", "additionalProperties": {"type": "number"}, "x-nullable": true}}}, "FeedbackTemplateResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/FeedbackTemplateResult"}}}, "ColumnValuesRequest": {"required": ["dataset_id", "column_placeholders"], "type": "object", "properties": {"dataset_id": {"title": "Dataset id", "type": "string", "format": "uuid"}, "column_placeholders": {"title": "Column placeholders", "type": "object"}}}, "ColumnValuesItem": {"required": ["column_id", "column_name", "values"], "type": "object", "properties": {"column_id": {"title": "Column id", "type": "string", "format": "uuid"}, "column_name": {"title": "Column name", "type": "string", "minLength": 1}, "values": {"type": "array", "items": {"type": "string"}}}}, "ColumnValuesResponseResult": {"required": ["result"], "type": "object", "properties": {"result": {"title": "Result", "type": "object", "additionalProperties": {"$ref": "#/definitions/ColumnValuesItem"}}}}, "ColumnValuesResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/ColumnValuesResponseResult"}}}, "EvalConfig": {"required": ["id", "template_id", "name", "required_keys", "template_name", "mapping", "config"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "template_id": {"title": "Template id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "owner": {"title": "Owner", "type": "string", "minLength": 1}, "type": {"title": "Type", "type": "string", "minLength": 1}, "eval_type": {"title": "Eval type", "type": "string", "minLength": 1}, "eval_type_id": {"title": "Eval type id", "type": "object"}, "function_eval": {"title": "Function eval", "type": "boolean"}, "reason_column": {"title": "Reason column", "type": "object"}, "eval_tags": {"type": "array", "items": {"type": "string", "minLength": 1}}, "description": {"title": "Description", "type": "string"}, "criteria": {"title": "Criteria", "type": "string"}, "model": {"title": "Model", "type": "string", "x-nullable": true}, "models": {"title": "Models", "type": "object"}, "selected_model": {"title": "Selected model", "type": "string", "x-nullable": true}, "required_keys": {"type": "array", "items": {"type": "string", "minLength": 1}}, "optional_keys": {"type": "array", "items": {"type": "string", "minLength": 1}}, "variable_keys": {"type": "array", "items": {"type": "string", "minLength": 1}}, "run_prompt_column": {"title": "Run prompt column", "type": "boolean"}, "template_name": {"title": "Template name", "type": "string", "minLength": 1}, "mapping": {"title": "Mapping", "type": "object"}, "config": {"title": "Config", "type": "object"}, "params": {"title": "Params", "type": "object"}, "function_params_schema": {"title": "Function params schema", "type": "object"}, "output": {"title": "Output", "type": "string"}, "config_params_desc": {"title": "Config params desc", "type": "object"}, "config_params_option": {"title": "Config params option", "type": "object"}, "param_modalities": {"title": "Param modalities", "type": "object"}, "choices": {"title": "Choices", "type": "object"}, "multi_choice": {"title": "Multi choice", "type": "boolean"}, "check_internet": {"title": "Check internet", "type": "boolean"}, "kb_id": {"title": "Kb id", "type": "object", "x-nullable": true}, "error_localizer": {"title": "Error localizer", "type": "boolean"}, "api_key_available": {"title": "Api key available", "type": "boolean"}, "run_config": {"title": "Run config", "type": "object"}}}, "ModelHubEvalConfigResponseResult": {"required": ["eval"], "type": "object", "properties": {"eval": {"$ref": "#/definitions/EvalConfig"}, "owner": {"title": "Owner", "type": "string", "minLength": 1}, "type": {"title": "Type", "type": "string", "minLength": 1}}}, "ModelHubEvalConfigResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/ModelHubEvalConfigResponseResult"}}}, "EvalApiLogRowResponseResult": {"required": ["log_id", "created_at", "evaluation_id", "required_keys", "values", "output", "input_data_types"], "type": "object", "properties": {"log_id": {"title": "Log id", "type": "string", "format": "uuid"}, "created_at": {"title": "Created at", "type": "string", "format": "date-time"}, "evaluation_id": {"title": "Evaluation id", "type": "string", "format": "uuid"}, "source": {"title": "Source", "type": "string", "x-nullable": true}, "required_keys": {"type": "array", "items": {"type": "string", "minLength": 1}}, "values": {"title": "Values", "type": "object"}, "output": {"title": "Output", "type": "object"}, "input_data_types": {"title": "Input data types", "type": "object"}, "error_details": {"title": "Error details", "type": "object"}, "error_localizer_status": {"title": "Error localizer status", "type": "string"}, "error_localizer_message": {"title": "Error localizer message", "type": "string"}, "dataset_id": {"title": "Dataset id", "type": "string", "format": "uuid", "x-nullable": true}, "span_id": {"title": "Span id", "type": "string", "format": "uuid", "x-nullable": true}, "trace_id": {"title": "Trace id", "type": "string", "format": "uuid", "x-nullable": true}, "prompt_id": {"title": "Prompt id", "type": "string", "format": "uuid", "x-nullable": true}, "optimization_id": {"title": "Optimization id", "type": "string", "format": "uuid", "x-nullable": true}, "experiment_id": {"title": "Experiment id", "type": "string", "format": "uuid", "x-nullable": true}}}, "EvalApiLogRowResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/EvalApiLogRowResponseResult"}}}, "UpdateColumnConfig": {"required": ["eval_id"], "type": "object", "properties": {"eval_id": {"title": "Eval id", "type": "string", "format": "uuid"}, "column_config": {"type": "array", "items": {"type": "object", "additionalProperties": {"type": "string", "x-nullable": true}}}, "source": {"title": "Source", "type": "string", "maxLength": 50, "minLength": 1}}}, "EvalApiLogTableMetadata": {"required": ["total_rows", "total_pages", "current_page_index", "page_size", "query_complete", "query_status", "query_sampled"], "type": "object", "properties": {"total_rows": {"title": "Total rows", "type": "integer"}, "total_pages": {"title": "Total pages", "type": "integer"}, "current_page_index": {"title": "Current page index", "type": "integer", "minimum": 0}, "page_size": {"title": "Page size", "type": "integer", "maximum": 100, "minimum": 1}, "query_complete": {"title": "Query complete", "type": "boolean"}, "query_status": {"title": "Query status", "type": "string", "enum": ["complete"]}, "query_sampled": {"title": "Query sampled", "type": "boolean"}}}, "EvalApiLogTableResponseResult": {"required": ["table", "column_config"], "type": "object", "properties": {"table": {"type": "array", "items": {"type": "object"}}, "column_config": {"type": "array", "items": {"type": "object"}}, "metadata": {"$ref": "#/definitions/EvalApiLogTableMetadata"}}}, "EvalApiLogTableResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/EvalApiLogTableResponseResult"}}}, "EvalMetricCount": {"required": ["api_call_count"], "type": "object", "properties": {"api_call_count": {"title": "Api call count", "type": "integer"}, "count_graph_data": {"title": "Count graph data", "type": "object", "x-nullable": true}}}, "EvalMetricAverage": {"required": ["average"], "type": "object", "properties": {"average": {"title": "Average", "type": "object"}, "avg_graph_data": {"title": "Avg graph data", "type": "object", "x-nullable": true}}}, "EvalMetricMetadata": {"required": ["window_start", "window_end", "interval", "bucket_count", "valid_output_count", "invalid_output_count", "output_type", "query_complete", "query_sampled", "has_more", "max_window_days"], "type": "object", "properties": {"window_start": {"title": "Window start", "type": "string", "format": "date-time"}, "window_end": {"title": "Window end", "type": "string", "format": "date-time"}, "interval": {"title": "Interval", "type": "string", "enum": ["day"]}, "bucket_count": {"title": "Bucket count", "type": "integer", "maximum": 366, "minimum": 0}, "valid_output_count": {"title": "Valid output count", "type": "integer", "minimum": 0}, "invalid_output_count": {"title": "Invalid output count", "type": "integer", "minimum": 0}, "output_type": {"title": "Output type", "type": "string", "minLength": 1}, "query_complete": {"title": "Query complete", "type": "boolean"}, "query_sampled": {"title": "Query sampled", "type": "boolean"}, "has_more": {"title": "Has more", "type": "boolean"}, "max_window_days": {"title": "Max window days", "type": "integer", "maximum": 365, "minimum": 1}}}, "EvalMetricResponseResult": {"required": ["base_eval_template_id", "api_call_count", "average", "metadata"], "type": "object", "properties": {"base_eval_template_id": {"title": "Base eval template id", "type": "string", "format": "uuid"}, "api_call_count": {"$ref": "#/definitions/EvalMetricCount"}, "average": {"$ref": "#/definitions/EvalMetricAverage"}, "error_rate": {"title": "Error rate", "type": "object", "x-nullable": true}, "metadata": {"$ref": "#/definitions/EvalMetricMetadata"}}}, "EvalMetricResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/EvalMetricResponseResult"}}}, "EvalMetricRequest": {"required": ["eval_template_id"], "type": "object", "properties": {"eval_template_id": {"title": "Eval template id", "type": "string", "format": "uuid"}, "filters": {"description": "Optional created_at datetime filters. The default window is 30 days; the maximum supported window is 365 days.", "type": "array", "items": {"type": "object", "properties": {"column_id": {"type": "string", "description": "Column or attribute id to filter on."}, "property_id": {"type": "string", "description": "Optional stable namespaced Property Registry identity."}, "display_name": {"type": "string", "description": "Optional UI label for chips and saved views."}, "source": {"type": "string", "description": "Optional source surface for mixed-source filters, for example traces, datasets, or simulation."}, "output_type": {"type": "string", "description": "Optional metric output type metadata used by eval and annotation filters."}, "filter_config": {"type": "object", "properties": {"filter_type": {"type": "string", "description": "Canonical field type, for example text, number, boolean, datetime, categorical, thumbs, annotator, array, or map. Legacy json is value-sensitive for SPAN_ATTRIBUTE filters: list values become array and object values become map."}, "filter_op": {"type": "string", "description": "Canonical operator from api_contracts/filter_contract.json, for example equals, not_equals, in, not_in, between, not_between, is_null, or is_not_null."}, "filter_value": {"description": "Scalar, list, range tuple, boolean, or null depending on filter_op and filter_type."}, "col_type": {"type": "string", "description": "Column family such as SYSTEM_METRIC, SPAN_ATTRIBUTE, EVAL_METRIC, ANNOTATION, or NORMAL."}, "attribute_value_types": {"type": "array", "items": {"type": "string", "enum": ["string", "number", "boolean"], "x-nullable": true}, "description": "Optional storage-family provenance aligned one-for-one with filter_value for mixed SPAN_ATTRIBUTE in/not_in filters. Null entries retain filter_type semantics for manually entered values."}}, "required": ["filter_type", "filter_op"], "additionalProperties": false}}, "required": ["column_id", "filter_config"], "additionalProperties": false}, "default": []}}}, "EvalTemplateNamesRequest": {"type": "object", "properties": {"search_text": {"title": "Search text", "type": "string", "default": ""}}}, "EvalTemplateNameItem": {"required": ["id", "name"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "description": {"title": "Description", "type": "string"}}}, "EvalTemplateNamesResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"type": "array", "items": {"$ref": "#/definitions/EvalTemplateNameItem"}}}}, "LegacyEvalTemplatesRequest": {"type": "object", "properties": {"page_size": {"title": "Page size", "type": "integer", "default": 10}, "current_page_index": {"title": "Current page index", "type": "integer", "default": 0}, "search_text": {"title": "Search text", "type": "string", "default": ""}, "sort": {"type": "array", "items": {"type": "object"}, "default": []}}}, "LegacyEvalTemplateAverage": {"required": ["avg_graph_data"], "type": "object", "properties": {"average": {"title": "Average", "type": "object"}, "avg_graph_data": {"type": "array", "items": {"type": "object"}}}}, "LegacyEvalTemplateItem": {"required": ["id", "eval_template_name", "average", "error_rate", "last30_run", "updated_at"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "max_axis": {"title": "Max axis", "type": "integer", "x-nullable": true}, "eval_template_name": {"title": "Eval template name", "type": "string", "minLength": 1}, "average": {"$ref": "#/definitions/LegacyEvalTemplateAverage"}, "error_rate": {"type": "array", "items": {"type": "object"}}, "last30_run": {"title": "Last30 run", "type": "integer"}, "updated_at": {"title": "Updated at", "type": "string", "minLength": 1}}}, "LegacyEvalTemplatesResponseResult": {"required": ["row_data", "total_rows", "data_available"], "type": "object", "properties": {"row_data": {"type": "array", "items": {"$ref": "#/definitions/LegacyEvalTemplateItem"}}, "total_rows": {"title": "Total rows", "type": "integer"}, "data_available": {"title": "Data available", "type": "boolean"}}}, "LegacyEvalTemplatesResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/LegacyEvalTemplatesResponseResult"}}}, "GroundTruthDeleteResponseResult": {"required": ["deleted", "id"], "type": "object", "properties": {"deleted": {"title": "Deleted", "type": "boolean"}, "id": {"title": "Id", "type": "string", "format": "uuid"}}}, "GroundTruthDeleteResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/GroundTruthDeleteResponseResult"}}}, "GroundTruthDataResponseResult": {"required": ["id", "page", "page_size", "total_rows", "total_pages", "columns", "rows"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "page": {"title": "Page", "type": "integer"}, "page_size": {"title": "Page size", "type": "integer"}, "total_rows": {"title": "Total rows", "type": "integer"}, "total_pages": {"title": "Total pages", "type": "integer"}, "columns": {"type": "array", "items": {"type": "string", "minLength": 1}}, "rows": {"type": "array", "items": {"type": "object"}}}}, "GroundTruthDataResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/GroundTruthDataResponseResult"}}}, "GroundTruthEmbedResponseResult": {"required": ["id", "embedding_status", "message"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "embedding_status": {"title": "Embedding status", "type": "string", "minLength": 1}, "message": {"title": "Message", "type": "string", "minLength": 1}}}, "GroundTruthEmbedResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/GroundTruthEmbedResponseResult"}}}, "GroundTruthSetupRequest": {"required": ["variable_mapping", "role_mapping", "max_examples"], "type": "object", "properties": {"variable_mapping": {"title": "Variable mapping", "description": "Map of template variable name to GT column name (string) or list of column names. Keys are dynamic per-template.", "type": "object", "additionalProperties": true}, "role_mapping": {"$ref": "#/definitions/GroundTruthRoleMapping"}, "max_examples": {"title": "Max examples", "type": "integer", "maximum": 20, "minimum": 1}, "enabled": {"title": "Enabled", "type": "boolean", "default": true}}}, "GroundTruthRuntimeConfig": {"required": ["enabled", "ground_truth_id", "max_examples", "similarity_threshold"], "type": "object", "properties": {"enabled": {"title": "Enabled", "type": "boolean"}, "ground_truth_id": {"title": "Ground truth id", "type": "string", "format": "uuid"}, "max_examples": {"title": "Max examples", "type": "integer", "maximum": 20, "minimum": 1}, "similarity_threshold": {"title": "Similarity threshold", "type": "number", "maximum": 1.0, "minimum": 0.0}}}, "GroundTruthSetupResponseResult": {"required": ["id", "template_id", "embedding_status", "config"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "template_id": {"title": "Template id", "type": "string", "format": "uuid"}, "variable_mapping": {"title": "Variable mapping", "description": "Map of template variable name to GT column name (string) or list of column names.", "type": "object", "x-nullable": true, "additionalProperties": true}, "role_mapping": {"$ref": "#/definitions/GroundTruthRoleMapping"}, "embedding_status": {"title": "Embedding status", "type": "string", "minLength": 1}, "embeddings_stale": {"title": "Embeddings stale", "type": "boolean", "default": false}, "config": {"$ref": "#/definitions/GroundTruthRuntimeConfig"}}}, "GroundTruthSetupResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/GroundTruthSetupResponseResult"}}}, "GroundTruthStatusResponseResult": {"required": ["id", "embedding_status", "embedded_row_count", "total_rows", "progress_percent"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "embedding_status": {"title": "Embedding status", "type": "string", "minLength": 1}, "embedded_row_count": {"title": "Embedded row count", "type": "integer"}, "total_rows": {"title": "Total rows", "type": "integer"}, "progress_percent": {"title": "Progress percent", "type": "number"}, "embeddings_stale": {"title": "Embeddings stale", "type": "boolean", "default": false}}}, "GroundTruthStatusResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/GroundTruthStatusResponseResult"}}}, "KnowledgeBaseItem": {"required": ["id", "name", "embedding_model", "chunk_size", "organization", "created_at", "updated_at"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "embedding_model": {"title": "Embedding model", "type": "string", "minLength": 1}, "chunk_size": {"title": "Chunk size", "type": "integer"}, "organization": {"title": "Organization", "type": "string", "format": "uuid"}, "created_at": {"title": "Created at", "type": "string", "format": "date-time"}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time"}}}, "KnowledgeBasePaginatedResult": {"required": ["count", "results", "total_pages", "current_page"], "type": "object", "properties": {"count": {"title": "Count", "type": "integer"}, "next": {"title": "Next", "type": "string", "x-nullable": true}, "previous": {"title": "Previous", "type": "string", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/KnowledgeBaseItem"}}, "total_pages": {"title": "Total pages", "type": "integer"}, "current_page": {"title": "Current page", "type": "integer"}, "total_queries": {"title": "Total queries", "type": "integer"}}}, "KnowledgeBaseListResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/KnowledgeBasePaginatedResult"}}}, "KnowledgeBaseCreate": {"required": ["name", "chunk_size"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "type": "string", "maxLength": 2000, "minLength": 1}, "embedding_model": {"title": "Embedding model", "type": "string", "enum": ["BAAI/bge-small-en-v1.5"]}, "chunk_size": {"title": "Chunk size", "type": "integer", "maximum": 2147483647, "minimum": 0}, "organization": {"title": "Organization", "type": "string", "format": "uuid", "readOnly": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}}}, "KnowledgeBaseResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/KnowledgeBaseItem"}}}, "EmbeddingModelOption": {"required": ["value", "label"], "type": "object", "properties": {"value": {"title": "Value", "type": "string", "minLength": 1}, "label": {"title": "Label", "type": "string", "minLength": 1}}}, "KnowledgeBaseEmbeddingModelsResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "integer"}, "result": {"type": "array", "items": {"$ref": "#/definitions/EmbeddingModelOption"}}}}, "KnowledgeBase": {"required": ["name", "chunk_size"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "type": "string", "maxLength": 2000, "minLength": 1}, "embedding_model": {"title": "Embedding model", "type": "string", "enum": ["BAAI/bge-small-en-v1.5"]}, "chunk_size": {"title": "Chunk size", "type": "integer", "maximum": 2147483647, "minimum": 0}, "organization": {"title": "Organization", "type": "string", "format": "uuid", "readOnly": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}}}, "LegacyKnowledgeBaseSdkCodeResult": {"required": ["code"], "type": "object", "properties": {"code": {"title": "Code", "type": "string", "minLength": 1}}}, "LegacyKnowledgeBaseSdkCodeResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/LegacyKnowledgeBaseSdkCodeResult"}}}, "LegacyKnowledgeBaseMutationRequest": {"type": "object", "properties": {"name": {"title": "Name", "type": "string"}, "kb_id": {"title": "Kb id", "type": "string", "format": "uuid"}, "files": {"type": "array", "items": {"type": "string", "format": "uuid"}, "default": []}}}, "LegacyKnowledgeBaseCreateResult": {"required": ["detail", "kb_id", "kb_name", "file_ids"], "type": "object", "properties": {"detail": {"title": "Detail", "type": "string", "minLength": 1}, "kb_id": {"title": "Kb id", "type": "string", "format": "uuid"}, "kb_name": {"title": "Kb name", "type": "string", "minLength": 1}, "file_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}}}}, "LegacyKnowledgeBaseCreateResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/LegacyKnowledgeBaseCreateResult"}}}, "LegacyKnowledgeBaseMutationResult": {"required": ["id", "name", "organization", "status", "files", "updated_at", "created_by", "last_error"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "organization": {"title": "Organization", "type": "string", "format": "uuid"}, "status": {"title": "Status", "type": "string", "minLength": 1}, "files": {"type": "array", "items": {"type": "string", "format": "uuid"}}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time"}, "created_by": {"title": "Created by", "type": "string", "x-nullable": true}, "last_error": {"title": "Last error", "type": "string", "x-nullable": true}}}, "LegacyKnowledgeBaseMutationResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/LegacyKnowledgeBaseMutationResult"}}}, "LegacyKnowledgeBaseBulkDeleteRequest": {"type": "object", "properties": {"kb_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}, "default": []}}}, "LegacyKnowledgeBaseFilesRequest": {"required": ["kb_id"], "type": "object", "properties": {"kb_id": {"title": "Kb id", "type": "string", "format": "uuid"}, "search": {"title": "Search", "type": "string", "x-nullable": true}, "sort": {"type": "array", "items": {"type": "object"}, "default": []}, "page_number": {"title": "Page number", "type": "integer", "default": 0}, "page_size": {"title": "Page size", "type": "integer", "default": 10}}}, "LegacyKnowledgeBaseFileRow": {"required": ["id", "name", "file_size", "status", "updated", "updated_by"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "file_size": {"title": "File size", "type": "integer"}, "status": {"title": "Status", "type": "string", "minLength": 1}, "updated": {"title": "Updated", "type": "string", "format": "date-time"}, "updated_by": {"title": "Updated by", "type": "string", "x-nullable": true}, "error": {"title": "Error", "type": "string", "x-nullable": true}}}, "LegacyKnowledgeBaseFilesResult": {"required": ["table_data", "last_updated", "status", "status_count", "total_rows"], "type": "object", "properties": {"table_data": {"type": "array", "items": {"$ref": "#/definitions/LegacyKnowledgeBaseFileRow"}}, "last_updated": {"title": "Last updated", "type": "string", "format": "date-time"}, "status": {"title": "Status", "type": "string", "minLength": 1}, "status_count": {"title": "Status count", "type": "integer"}, "total_rows": {"title": "Total rows", "type": "integer"}}}, "LegacyKnowledgeBaseFilesResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/LegacyKnowledgeBaseFilesResult"}}}, "LegacyKnowledgeBaseFileDeleteRequest": {"type": "object", "properties": {"kb_id": {"title": "Kb id", "type": "string", "format": "uuid", "x-nullable": true}, "delete_all": {"title": "Delete all", "type": "boolean", "default": false}, "file_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}, "default": []}, "excluded_file_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}, "default": []}, "file_names": {"type": "array", "items": {"type": "string", "minLength": 1}, "default": []}}}, "LegacyKnowledgeBaseTableColumn": {"required": ["id", "name"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "minLength": 1}, "name": {"title": "Name", "type": "string", "minLength": 1}}}, "LegacyKnowledgeBaseTableRow": {"required": ["id", "name", "files_uploaded", "status", "updated_at", "created_by"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "files_uploaded": {"title": "Files uploaded", "type": "integer"}, "status": {"title": "Status", "type": "string", "minLength": 1}, "error": {"title": "Error", "type": "string", "x-nullable": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time"}, "created_by": {"title": "Created by", "type": "string", "x-nullable": true}}}, "LegacyKnowledgeBaseTableResult": {"type": "object", "properties": {"column_config": {"type": "array", "items": {"$ref": "#/definitions/LegacyKnowledgeBaseTableColumn"}}, "table_data": {"type": "array", "items": {"$ref": "#/definitions/LegacyKnowledgeBaseTableRow"}}, "total_rows": {"title": "Total rows", "type": "integer"}}}, "LegacyKnowledgeBaseTableResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/LegacyKnowledgeBaseTableResult"}}}, "LegacyKnowledgeBaseOption": {"required": ["id", "name"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1}}}, "LegacyKnowledgeBaseListResult": {"required": ["table_data"], "type": "object", "properties": {"table_data": {"type": "array", "items": {"$ref": "#/definitions/LegacyKnowledgeBaseOption"}}}}, "LegacyKnowledgeBaseListResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/LegacyKnowledgeBaseListResult"}}}, "MetricsByColumnItem": {"required": ["id", "name", "template_name", "eval_template_name", "eval_required_keys", "eval_template_tags", "updated_at", "eval_type", "template_type", "template_id", "owner", "mapping", "params", "error_localizer", "run_config", "output_type"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "template_name": {"title": "Template name", "type": "string", "minLength": 1}, "eval_template_name": {"title": "Eval template name", "type": "string", "minLength": 1}, "eval_required_keys": {"type": "array", "items": {"type": "string", "minLength": 1}}, "eval_template_tags": {"type": "array", "items": {"type": "string", "minLength": 1}}, "description": {"title": "Description", "type": "string", "x-nullable": true}, "model": {"title": "Model", "type": "string"}, "column_id": {"title": "Column id", "type": "string", "format": "uuid", "x-nullable": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time"}, "eval_group": {"title": "Eval group", "type": "string", "x-nullable": true}, "status": {"title": "Status", "type": "string", "x-nullable": true}, "eval_type": {"title": "Eval type", "type": "string", "minLength": 1}, "template_type": {"title": "Template type", "type": "string", "minLength": 1}, "template_id": {"title": "Template id", "type": "string", "format": "uuid"}, "owner": {"title": "Owner", "type": "string", "minLength": 1}, "mapping": {"title": "Mapping", "type": "object"}, "params": {"title": "Params", "type": "object"}, "error_localizer": {"title": "Error localizer", "type": "boolean"}, "run_config": {"title": "Run config", "type": "object"}, "output_type": {"title": "Output type", "type": "string", "minLength": 1}, "aggregation_function": {"title": "Aggregation function", "type": "string"}, "aggregation_enabled": {"title": "Aggregation enabled", "type": "boolean"}, "children_count": {"title": "Children count", "type": "integer"}}}, "MetricsByColumnResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"type": "array", "items": {"$ref": "#/definitions/MetricsByColumnItem"}}}}, "OptimizationDataset": {"required": ["name", "dataset_id", "model_config", "optimize_type"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "type": "string", "maxLength": 2000, "minLength": 1}, "dataset_id": {"title": "Dataset id", "type": "string", "format": "uuid"}, "column_id": {"title": "Column id", "type": "string", "format": "uuid", "x-nullable": true}, "messages": {"description": "List of messages with format [{'role': 'user/assistant', 'content': 'text'}]", "type": "array", "items": {"title": "Messages", "type": "object"}, "x-nullable": true}, "user_eval_template_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}, "uniqueItems": true}, "model_config": {"title": "Model config", "type": "object"}, "optimize_type": {"title": "Optimize type", "type": "string", "enum": ["PROMPT_TEMPLATE", "RIGHT_ANSWER", "RAG_PROMPT_TEMPLATE"]}, "user_eval_template_mapping": {"title": "User eval template mapping", "type": "object", "x-nullable": true}, "prompt_name": {"title": "Prompt name", "type": "string", "maxLength": 2000, "x-nullable": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "status": {"title": "Status", "type": "string", "enum": ["NotStarted", "Queued", "Running", "Completed", "Editing", "Inactive", "Failed", "PartialRun", "ExperimentEvaluation", "Uploading", "PartialExtracted", "Processing", "Deleting", "PartialCompleted", "OptimizationEvaluation", "Error", "Cancelled"]}}}, "OptimizationDatasetGet": {"required": ["name", "dataset", "optimize_type"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "type": "string", "maxLength": 2000, "minLength": 1}, "dataset": {"title": "Dataset", "type": "string", "format": "uuid"}, "column": {"title": "Column", "type": "string", "format": "uuid", "x-nullable": true}, "messages": {"description": "List of messages with format [{'role': 'user/assistant', 'content': 'text'}]", "type": "array", "items": {"title": "Messages", "type": "object"}, "x-nullable": true}, "user_eval_template_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}, "uniqueItems": true}, "model_config": {"title": "Model config", "type": "object", "x-nullable": true}, "optimize_type": {"title": "Optimize type", "type": "string", "enum": ["PROMPT_TEMPLATE", "RIGHT_ANSWER", "RAG_PROMPT_TEMPLATE"]}, "status": {"title": "Status", "type": "string", "enum": ["NotStarted", "Queued", "Running", "Completed", "Editing", "Inactive", "Failed", "PartialRun", "ExperimentEvaluation", "Uploading", "PartialExtracted", "Processing", "Deleting", "PartialCompleted", "OptimizationEvaluation", "Error", "Cancelled"], "readOnly": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "optimized_k_prompts": {"type": "array", "items": {"title": "Optimized k prompts", "type": "string", "minLength": 1}, "x-nullable": true}, "user_eval_template_mapping": {"title": "User eval template mapping", "type": "object", "x-nullable": true}, "prompt_name": {"title": "Prompt name", "type": "string", "maxLength": 2000, "x-nullable": true}}}, "OptimizationDetail": {"type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "optimized_k_prompts": {"title": "Optimized k prompts", "type": "string", "readOnly": true}, "user_eval_template_ids": {"title": "User eval template ids", "type": "string", "readOnly": true}, "user_eval_template_mapping": {"title": "User eval template mapping", "type": "object", "x-nullable": true}, "optimized_columns": {"title": "Optimized columns", "type": "string", "readOnly": true}, "evaluation_columns": {"title": "Evaluation columns", "type": "string", "readOnly": true}}}, "OptimizeDatasetKb": {"required": ["name"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "knowledge_base_metrics": {"title": "Knowledge base metrics", "type": "object", "x-nullable": true}, "knowledge_base_filters": {"title": "Knowledge base filters", "type": "object", "x-nullable": true}, "optimized_k_prompts": {"type": "array", "items": {"title": "Optimized k prompts", "type": "string", "minLength": 1}, "x-nullable": true}, "name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "prompt": {"title": "Prompt", "type": "string", "maxLength": 2000, "x-nullable": true}, "variables": {"title": "Variables", "type": "object", "x-nullable": true}, "status": {"title": "Status", "type": "string", "enum": ["not_started", "pending", "running", "completed", "failed", "cancelled"]}}}, "OptimizeDatasetKnowledgeBaseDetailResult": {"required": ["name", "prompt", "knowledge_base_filters", "knowledge_base_metrics", "variables", "status", "optimized_k_prompts"], "type": "object", "properties": {"name": {"title": "Name", "type": "string", "minLength": 1}, "prompt": {"title": "Prompt", "type": "string", "x-nullable": true}, "knowledge_base_filters": {"type": "array", "items": {"type": "string", "minLength": 1}, "x-nullable": true}, "knowledge_base_metrics": {"title": "Knowledge base metrics", "type": "object", "x-nullable": true}, "variables": {"title": "Variables", "type": "object", "x-nullable": true}, "status": {"title": "Status", "type": "string", "minLength": 1}, "optimized_k_prompts": {"type": "array", "items": {"type": "string", "minLength": 1}, "x-nullable": true}}}, "OptimizeDatasetKnowledgeBaseDetailResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/OptimizeDatasetKnowledgeBaseDetailResult"}}}, "OptimizeDatasetKnowledgeBaseRequest": {"type": "object", "properties": {"name": {"title": "Name", "type": "string"}, "knowledge_base_metrics": {"title": "Knowledge base metrics", "type": "object"}, "knowledge_base_filters": {"type": "array", "items": {"type": "string", "minLength": 1}, "default": []}, "prompt": {"title": "Prompt", "type": "string"}, "variables": {"title": "Variables", "type": "object"}}}, "OptimizeDatasetKnowledgeBaseCreateResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"title": "Result", "type": "string", "format": "uuid"}}}, "MetricSerializerNameAndId": {"required": ["name"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "type": "string", "maxLength": 100, "minLength": 1}}}, "OptimizeDataset": {"required": ["name", "optimize_type", "environment", "version", "metrics"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "optimize_type": {"title": "Optimize type", "type": "string", "enum": ["PromptTemplate", "RightAnswer", "RagPromptTemplate"]}, "environment": {"title": "Environment", "type": "string", "enum": ["Production", "Training", "Validation", "Corpus"]}, "version": {"title": "Version", "type": "string", "maxLength": 255, "minLength": 1}, "status": {"title": "Status", "type": "string", "enum": ["not_started", "pending", "running", "completed", "failed", "cancelled"]}, "metrics": {"type": "array", "items": {"$ref": "#/definitions/MetricSerializerNameAndId"}}, "start_date": {"title": "Start date", "type": "string", "format": "date-time", "x-nullable": true}, "end_date": {"title": "End date", "type": "string", "format": "date-time", "x-nullable": true}}}, "OptimizeDatasetPaginatedResponse": {"required": ["count", "results"], "type": "object", "properties": {"count": {"title": "Count", "type": "integer"}, "next": {"title": "Next", "type": "string", "x-nullable": true}, "previous": {"title": "Previous", "type": "string", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/OptimizeDataset"}}, "total_pages": {"title": "Total pages", "type": "integer"}, "current_page": {"title": "Current page", "type": "integer"}}}, "OptimizeDatasetMutationRequest": {"required": ["name", "start_date", "end_date", "model", "optimize_type", "environment", "version", "metrics"], "type": "object", "properties": {"name": {"title": "Name", "type": "string"}, "start_date": {"title": "Start date", "type": "string"}, "end_date": {"title": "End date", "type": "string"}, "model": {"title": "Model", "type": "string", "format": "uuid"}, "optimize_type": {"title": "Optimize type", "type": "string"}, "environment": {"title": "Environment", "type": "string"}, "version": {"title": "Version", "type": "string"}, "metrics": {"type": "array", "items": {"type": "string", "format": "uuid"}}, "prompt": {"title": "Prompt", "type": "string"}, "variables": {"title": "Variables", "type": "object"}}}, "OptimizeDatasetCreateData": {"required": ["id"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}}, "x-nullable": true}, "OptimizeDatasetCreateResponse": {"required": ["status", "message", "data"], "type": "object", "properties": {"status": {"title": "Status", "type": "string", "minLength": 1}, "message": {"title": "Message", "type": "string", "minLength": 1}, "data": {"$ref": "#/definitions/OptimizeDatasetCreateData"}}}, "OptimizeDatasetColumnConfigResponse": {"required": ["columns", "status"], "type": "object", "properties": {"columns": {"type": "array", "items": {"type": "object"}}, "status": {"title": "Status", "type": "string", "minLength": 1}}}, "OptimizeDatasetColumnConfigUpdateRequest": {"required": ["columns"], "type": "object", "properties": {"columns": {"type": "array", "items": {"type": "object"}}}}, "OptimizeDatasetColumnConfigUpdateResponse": {"required": ["message", "status"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}, "status": {"title": "Status", "type": "string", "minLength": 1}}}, "OptimizeDatasetPageRequest": {"type": "object", "properties": {"page": {"title": "Page", "type": "integer", "default": 1, "minimum": 1}, "limit": {"title": "Limit", "type": "integer", "default": 10, "minimum": 1}}}, "OptimizeDatasetTemplateResult": {"required": ["metric_name", "templates", "old_template"], "type": "object", "properties": {"metric_name": {"title": "Metric name", "type": "string", "minLength": 1}, "templates": {"type": "array", "items": {"type": "number"}}, "old_template": {"title": "Old template", "type": "number"}}}, "OptimizeDatasetTemplateResultsResponse": {"required": ["k_prompts", "results"], "type": "object", "properties": {"k_prompts": {"type": "array", "items": {"type": "string", "minLength": 1}}, "results": {"type": "array", "items": {"$ref": "#/definitions/OptimizeDatasetTemplateResult"}}}}, "OptimizeDatasetDetailResponse": {"required": ["status", "data"], "type": "object", "properties": {"status": {"title": "Status", "type": "string", "minLength": 1}, "data": {"$ref": "#/definitions/OptimizeDataset"}}}, "DevelopAnnotationsUser": {"required": ["email", "name"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "email": {"title": "Email", "type": "string", "format": "email", "maxLength": 254, "minLength": 1}, "name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "organization_role": {"title": "Organization role", "type": "string", "enum": ["Owner", "Admin", "Member", "Viewer", "workspace_admin", "workspace_member", "workspace_viewer"], "x-nullable": true}, "is_active": {"title": "Is active", "type": "boolean"}, "is_staff": {"title": "Is staff", "type": "boolean"}}}, "OverviewPoint": {"required": ["x", "y"], "type": "object", "properties": {"x": {"title": "X", "type": "object"}, "y": {"title": "Y", "type": "integer"}}}, "OverviewVolume": {"required": ["total_count", "change", "volume"], "type": "object", "properties": {"total_count": {"title": "Total count", "type": "integer"}, "change": {"title": "Change", "type": "number", "x-nullable": true}, "volume": {"type": "array", "items": {"$ref": "#/definitions/OverviewPoint"}}}}, "OverviewIssues": {"required": ["total_count", "change", "last_day"], "type": "object", "properties": {"total_count": {"title": "Total count", "type": "integer"}, "change": {"title": "Change", "type": "number", "x-nullable": true}, "last_day": {"type": "array", "items": {"$ref": "#/definitions/OverviewPoint"}}}}, "ModelHubOverviewResponse": {"required": ["volume", "issues", "versions"], "type": "object", "properties": {"volume": {"$ref": "#/definitions/OverviewVolume"}, "issues": {"$ref": "#/definitions/OverviewIssues"}, "versions": {"title": "Versions", "type": "object"}}}, "PerformanceFilter": {"required": ["type", "datatype", "operator", "key", "key_id"], "type": "object", "properties": {"type": {"title": "Type", "type": "string", "enum": ["property", "performanceMetric", "performanceTag"]}, "datatype": {"title": "Datatype", "type": "string", "enum": ["string", "number"]}, "operator": {"title": "Operator", "type": "string", "enum": ["equal", "notEqual", "greaterThan", "greaterThanEqualTo", "lessThan", "lessThanEqualTo"]}, "values": {"type": "array", "items": {"type": "object"}, "default": []}, "key": {"title": "Key", "type": "string"}, "key_id": {"title": "Key id", "type": "string"}}}, "PerformanceDataset": {"required": ["environment", "version", "metric_id"], "type": "object", "properties": {"environment": {"title": "Environment", "type": "string", "minLength": 1}, "version": {"title": "Version", "type": "string", "minLength": 1}, "metric_id": {"title": "Metric id", "type": "string", "format": "uuid"}, "filters": {"type": "array", "items": {"$ref": "#/definitions/PerformanceFilter"}, "default": []}}}, "PerformanceDetailsRequest": {"required": ["dataset", "start_date", "end_date"], "type": "object", "properties": {"dataset": {"$ref": "#/definitions/PerformanceDataset"}, "filters": {"type": "array", "items": {"$ref": "#/definitions/PerformanceFilter"}, "default": []}, "page": {"title": "Page", "type": "integer", "default": 1, "minimum": 1}, "start_date": {"title": "Start date", "type": "string", "minLength": 1}, "end_date": {"title": "End date", "type": "string", "minLength": 1}}}, "PerformanceDetailsResponse": {"required": ["result", "processing_count", "count", "is_next", "page"], "type": "object", "properties": {"result": {"type": "array", "items": {"type": "object"}}, "processing_count": {"title": "Processing count", "type": "integer"}, "count": {"title": "Count", "type": "integer"}, "is_next": {"title": "Is next", "type": "boolean"}, "page": {"title": "Page", "type": "integer"}}}, "PerformanceExportRequest": {"required": ["dataset", "start_date", "end_date"], "type": "object", "properties": {"dataset": {"$ref": "#/definitions/PerformanceDataset"}, "filters": {"type": "array", "items": {"$ref": "#/definitions/PerformanceFilter"}, "default": []}, "page": {"title": "Page", "type": "integer", "minimum": 1}, "start_date": {"title": "Start date", "type": "string", "minLength": 1}, "end_date": {"title": "End date", "type": "string", "minLength": 1}}}, "PerformanceMetricOption": {"required": ["id", "name"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1}}}, "PerformancePropertyOption": {"required": ["id", "name", "datatype", "values"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "datatype": {"title": "Datatype", "type": "string", "minLength": 1}, "values": {"type": "array", "items": {"type": "object"}}}}, "PerformanceOptionsResult": {"required": ["performance_metric", "properties", "meta_tags", "performance_tags"], "type": "object", "properties": {"performance_metric": {"type": "array", "items": {"$ref": "#/definitions/PerformanceMetricOption"}}, "properties": {"type": "array", "items": {"$ref": "#/definitions/PerformancePropertyOption"}}, "meta_tags": {"type": "array", "items": {"type": "string", "minLength": 1}}, "performance_tags": {"type": "array", "items": {"type": "string", "minLength": 1}}}}, "PerformanceOptionsResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/PerformanceOptionsResult"}}}, "PerformanceReport": {"required": ["name", "aggregation", "start_date", "end_date", "model", "organization"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}, "deleted": {"title": "Deleted", "type": "boolean"}, "deleted_at": {"title": "Deleted at", "type": "string", "format": "date-time", "x-nullable": true}, "name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "datasets": {"title": "Datasets", "type": "object"}, "filters": {"title": "Filters", "type": "object"}, "breakdown": {"title": "Breakdown", "type": "object"}, "aggregation": {"title": "Aggregation", "type": "string", "maxLength": 255, "minLength": 1}, "start_date": {"title": "Start date", "type": "string", "format": "date-time"}, "end_date": {"title": "End date", "type": "string", "format": "date-time"}, "model": {"title": "Model", "type": "string", "format": "uuid"}, "organization": {"title": "Organization", "type": "string", "format": "uuid"}, "workspace": {"title": "Workspace", "type": "string", "format": "uuid", "x-nullable": true}}}, "PerformanceReportPaginatedResponse": {"required": ["count", "results"], "type": "object", "properties": {"count": {"title": "Count", "type": "integer"}, "next": {"title": "Next", "type": "string", "x-nullable": true}, "previous": {"title": "Previous", "type": "string", "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/PerformanceReport"}}, "total_pages": {"title": "Total pages", "type": "integer"}, "current_page": {"title": "Current page", "type": "integer"}}}, "PerformanceReportCreate": {"required": ["name", "aggregation", "start_date", "end_date"], "type": "object", "properties": {"name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "datasets": {"title": "Datasets", "type": "object"}, "filters": {"title": "Filters", "type": "object"}, "breakdown": {"title": "Breakdown", "type": "object"}, "aggregation": {"title": "Aggregation", "type": "string", "maxLength": 255, "minLength": 1}, "start_date": {"title": "Start date", "type": "string", "format": "date-time"}, "end_date": {"title": "End date", "type": "string", "format": "date-time"}}}, "PerformanceReportCreateResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/PerformanceReport"}}}, "PerformanceTagDistributionRequest": {"required": ["dataset", "agg_by", "start_date", "end_date", "graph_type"], "type": "object", "properties": {"dataset": {"$ref": "#/definitions/PerformanceDataset"}, "filters": {"type": "array", "items": {"$ref": "#/definitions/PerformanceFilter"}, "default": []}, "agg_by": {"title": "Agg by", "type": "string", "enum": ["hourly", "daily", "weekly", "monthly"]}, "start_date": {"title": "Start date", "type": "string", "minLength": 1}, "end_date": {"title": "End date", "type": "string", "minLength": 1}, "graph_type": {"title": "Graph type", "type": "string", "enum": ["all", "good", "bad"]}}}, "PerformanceBreakdown": {"required": ["key", "key_id"], "type": "object", "properties": {"key": {"title": "Key", "type": "string", "minLength": 1}, "key_id": {"title": "Key id", "type": "string", "minLength": 1}}}, "PerformanceQueryRequest": {"required": ["datasets", "agg_by", "start_date", "end_date"], "type": "object", "properties": {"datasets": {"type": "array", "items": {"$ref": "#/definitions/PerformanceDataset"}}, "filters": {"type": "array", "items": {"$ref": "#/definitions/PerformanceFilter"}, "default": []}, "breakdown": {"type": "array", "items": {"$ref": "#/definitions/PerformanceBreakdown"}, "default": []}, "agg_by": {"title": "Agg by", "type": "string", "enum": ["hourly", "daily", "weekly", "monthly"]}, "start_date": {"title": "Start date", "type": "string", "minLength": 1}, "end_date": {"title": "End date", "type": "string", "minLength": 1}}}, "PromptBaseTemplate": {"required": ["name"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "organization": {"title": "Organization", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}, "workspace": {"title": "Workspace", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}, "is_sample": {"title": "Is sample", "type": "boolean", "readOnly": true}, "prompt_version": {"title": "Prompt version", "type": "string", "format": "uuid", "x-nullable": true}, "category": {"title": "Category", "type": "string", "maxLength": 255, "x-nullable": true}, "prompt_config_snapshot": {"title": "Prompt config snapshot", "type": "object", "x-nullable": true}, "created_by": {"title": "Created by", "type": "string", "readOnly": true}}}, "PromptExecution": {"required": ["name"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "type": "string", "maxLength": 2000, "minLength": 1}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}, "model": {"title": "Model", "type": "string", "readOnly": true}, "collaborators": {"title": "Collaborators", "type": "string", "readOnly": true}, "model_detail": {"title": "Model detail", "type": "string", "readOnly": true}, "prompt_folder": {"title": "Prompt folder", "type": "string", "format": "uuid", "x-nullable": true}, "is_sample": {"title": "Is sample", "type": "boolean"}, "prompt_folder_name": {"title": "Prompt folder name", "type": "string", "readOnly": true}, "created_by": {"title": "Created by", "type": "string", "readOnly": true}}}, "PromptFolder": {"required": ["name"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "organization": {"title": "Organization", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}, "workspace": {"title": "Workspace", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}, "is_sample": {"title": "Is sample", "type": "boolean", "readOnly": true}, "parent_folder": {"title": "Parent folder", "type": "string", "format": "uuid", "x-nullable": true}, "created_by": {"title": "Created by", "type": "string", "readOnly": true}}}, "PromptHistoryExecution": {"required": ["template_version"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "template_version": {"title": "Template version", "type": "string", "maxLength": 50, "minLength": 1}, "output": {"title": "Output", "type": "object", "readOnly": true, "x-nullable": true}, "prompt_config_snapshot": {"title": "Prompt config snapshot", "description": "\nGet prompt_config_snapshot with backward compatibility for modelDetail.\nIf modelDetail is missing from configuration, generate it from the model name.\n", "type": "object", "readOnly": true}, "template_name": {"title": "Template name", "type": "string", "readOnly": true, "minLength": 1}, "original_template": {"title": "Original template", "type": "string", "format": "uuid", "x-nullable": true}, "metadata": {"title": "Metadata", "type": "object", "readOnly": true, "x-nullable": true}, "variable_names": {"title": "Variable names", "type": "object", "readOnly": true}, "evaluation_results": {"title": "Evaluation results", "type": "object", "x-nullable": true}, "evaluation_configs": {"title": "Evaluation configs", "type": "object", "readOnly": true, "x-nullable": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "is_default": {"title": "Is default", "type": "boolean"}, "commit_message": {"title": "Commit message", "type": "string", "x-nullable": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}, "is_draft": {"title": "Is draft", "type": "boolean"}, "labels": {"title": "Labels", "type": "object", "readOnly": true}, "placeholders": {"title": "Placeholders", "type": "object", "x-nullable": true}, "prompt_base_template": {"title": "Prompt base template", "type": "string", "format": "uuid", "x-nullable": true}}}, "PromptLabel": {"required": ["name", "type"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "organization": {"title": "Organization", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "type": "string", "maxLength": 2000, "minLength": 1}, "type": {"title": "Type", "type": "string", "enum": ["system", "custom"]}, "metadata": {"title": "Metadata", "type": "object", "x-nullable": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}}}, "ModelHubTextErrorResponse": {"type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": false}, "type": {"title": "Type", "type": "string", "enum": ["validation_error", "authentication_error", "payment_required", "entitlement_error", "permission_error", "not_found", "conflict", "client_error", "rate_limit", "server_error", "service_unavailable", "timeout", "api_error"], "x-nullable": true}, "code": {"title": "Code", "type": "string", "x-nullable": true}, "detail": {"title": "Detail", "type": "string", "x-nullable": true}, "result": {"title": "Result", "type": "string", "x-nullable": true}, "message": {"title": "Message", "type": "string", "x-nullable": true}, "error": {"title": "Error", "type": "string", "x-nullable": true}, "attr": {"title": "Attr", "type": "string", "x-nullable": true}, "details": {"title": "Details", "type": "object", "additionalProperties": {"type": "array", "items": {"type": "string", "minLength": 1}}}}}, "PromptTemplate": {"required": ["name"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "type": "string", "maxLength": 2000, "minLength": 1}, "description": {"title": "Description", "type": "string", "x-nullable": true}, "variable_names": {"title": "Variable names", "type": "object", "x-nullable": true}, "organization": {"title": "Organization", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}, "prompt_folder": {"title": "Prompt folder", "type": "string", "format": "uuid", "x-nullable": true}, "placeholders": {"title": "Placeholders", "type": "object", "x-nullable": true}, "created_by": {"title": "Created by", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}}}, "DerivedVariablePreviewRequest": {"required": ["content"], "type": "object", "properties": {"content": {"title": "Content", "type": "object"}, "column_name": {"title": "Column name", "type": "string", "default": "output", "minLength": 1}}}, "DerivedVariableDetailResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/DerivedVariableDetail"}}}, "PromptTemplatePatch": {"type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "type": "string", "maxLength": 2000, "minLength": 1}, "description": {"title": "Description", "type": "string", "x-nullable": true}, "variable_names": {"title": "Variable names", "type": "object", "x-nullable": true}, "organization": {"title": "Organization", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}, "prompt_folder": {"title": "Prompt folder", "type": "string", "format": "uuid", "x-nullable": true}, "placeholders": {"title": "Placeholders", "type": "object", "x-nullable": true}, "created_by": {"title": "Created by", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}}}, "PromptRunStatusResult": {"required": ["status", "error_message", "executions_result"], "type": "object", "properties": {"status": {"title": "Status", "type": "string", "minLength": 1, "x-nullable": true}, "error_message": {"title": "Error message", "type": "string", "x-nullable": true}, "executions_result": {"$ref": "#/definitions/PromptHistoryExecution"}}}, "PromptRunStatusResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/PromptRunStatusResult"}}}, "PromptRunModelConfiguration": {"type": "object", "properties": {"tool_choice": {"title": "Tool choice", "type": "string", "x-nullable": true}, "template_format": {"title": "Template format", "type": "string", "x-nullable": true}, "tools": {"type": "array", "items": {"type": "object", "x-json-value": true, "description": "Any valid JSON value."}, "x-nullable": true}, "output_format": {"title": "Output format", "type": "string", "x-nullable": true}, "model_type": {"title": "Model type", "type": "string", "x-nullable": true}, "model_detail": {"title": "Model detail", "type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}, "voice_id": {"title": "Voice id", "type": "string", "x-nullable": true}, "temperature": {"title": "Temperature", "type": "number", "x-nullable": true}, "max_tokens": {"title": "Max tokens", "type": "integer", "x-nullable": true}, "top_p": {"title": "Top p", "type": "number", "x-nullable": true}, "frequency_penalty": {"title": "Frequency penalty", "type": "number", "x-nullable": true}, "presence_penalty": {"title": "Presence penalty", "type": "number", "x-nullable": true}, "response_format": {"title": "Response format", "type": "object", "x-nullable": true, "x-string-or-object": true, "description": "String or JSON object."}, "model": {"title": "Model", "type": "object", "x-string-or-object": true, "description": "String or JSON object."}}, "additionalProperties": true}, "PromptRunConfiguration": {"type": "object", "properties": {"messages": {"type": "array", "items": {"$ref": "#/definitions/MessageItem"}}, "configuration": {"$ref": "#/definitions/PromptRunModelConfiguration"}}}, "PromptRunRequest": {"type": "object", "properties": {"name": {"title": "Name", "type": "string", "minLength": 1}, "version": {"title": "Version", "type": "string", "minLength": 1}, "prompt_config": {"type": "array", "items": {"$ref": "#/definitions/PromptRunConfiguration"}}, "variable_names": {"title": "Variable names", "type": "object", "additionalProperties": {"type": "object", "x-json-value": true, "description": "Any valid JSON value."}}, "placeholders": {"title": "Placeholders", "type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}, "evaluation_configs": {"type": "array", "items": {"type": "object", "x-json-value": true, "description": "Any valid JSON value."}}, "source": {"title": "Source", "type": "string", "minLength": 1}, "is_run": {"title": "Is run", "description": "Any valid JSON value.", "type": "object", "x-nullable": true, "x-json-value": true}, "is_sdk": {"title": "Is sdk", "type": "boolean"}, "run_index": {"title": "Run index", "type": "integer", "minimum": 0, "x-nullable": true}}}, "PromptDerivedVariablesResult": {"required": ["version", "derived_variables"], "type": "object", "properties": {"version": {"title": "Version", "type": "string", "minLength": 1}, "derived_variables": {"title": "Derived variables", "type": "object", "additionalProperties": {"type": "array", "items": {"type": "string", "minLength": 1}}}}}, "PromptDerivedVariablesResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/PromptDerivedVariablesResult"}}}, "DerivedVariableExtractRequest": {"required": ["version"], "type": "object", "properties": {"version": {"title": "Version", "type": "string", "minLength": 1}, "column_name": {"title": "Column name", "type": "string", "default": "output", "minLength": 1}, "output_index": {"title": "Output index", "type": "integer", "default": 0}, "response_format_type": {"title": "Response format type", "type": "string"}}}, "PromptMetricFieldConfig": {"required": ["id", "name", "is_visible", "property_id", "property_kind", "property_source"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "minLength": 1}, "name": {"title": "Name", "type": "string", "minLength": 1}, "is_visible": {"title": "Is visible", "type": "boolean"}, "group_by": {"title": "Group by", "type": "string", "minLength": 1, "x-nullable": true}, "output_type": {"title": "Output type", "type": "string", "minLength": 1, "x-nullable": true}, "reverse_output": {"title": "Reverse output", "type": "boolean", "x-nullable": true}, "annotation_label_type": {"title": "Annotation label type", "type": "string", "minLength": 1, "x-nullable": true}, "choices": {"type": "array", "items": {"type": "object", "x-nullable": true}, "x-nullable": true}, "settings": {"title": "Settings", "type": "object", "x-nullable": true}, "choices_map": {"title": "Choices map", "type": "object", "x-nullable": true}, "eval_template_id": {"title": "Eval template id", "type": "string", "format": "uuid", "x-nullable": true}, "annotators": {"title": "Annotators", "type": "object", "x-nullable": true}, "source_field": {"title": "Source field", "type": "string", "minLength": 1, "x-nullable": true}, "parent_eval_id": {"title": "Parent eval id", "type": "string", "minLength": 1, "x-nullable": true}, "property_id": {"title": "Property id", "type": "string", "minLength": 1}, "property_kind": {"title": "Property kind", "type": "string", "enum": ["system_attribute", "eval_config"]}, "property_source": {"title": "Property source", "type": "string", "minLength": 1}, "filter_type": {"title": "Filter type", "type": "string", "enum": ["number", "text", "datetime", "boolean", "array"]}, "supported_filter_ops": {"type": "array", "items": {"type": "string", "minLength": 1}}}}, "PromptMetricsMetadata": {"required": ["total_rows"], "type": "object", "properties": {"total_rows": {"title": "Total rows", "type": "integer"}}}, "PromptMetricsResult": {"required": ["table", "config", "metadata"], "type": "object", "properties": {"prompt_template_id": {"title": "Prompt template id", "type": "string", "format": "uuid"}, "prompt_template_name": {"title": "Prompt template name", "type": "string", "minLength": 1}, "table": {"type": "array", "items": {"type": "object"}}, "config": {"type": "array", "items": {"$ref": "#/definitions/PromptMetricFieldConfig"}}, "metadata": {"$ref": "#/definitions/PromptMetricsMetadata"}}}, "PromptMetricsResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/PromptMetricsResult"}}}, "PromptMetricsEmptyScreenResult": {"required": ["python", "typescript"], "type": "object", "properties": {"python": {"title": "Python", "type": "string", "minLength": 1}, "typescript": {"title": "Typescript", "type": "string", "minLength": 1}}}, "PromptMetricsEmptyScreenResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/PromptMetricsEmptyScreenResult"}}}, "UserResponseSchema": {"required": ["name"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "type": "string", "maxLength": 2000, "minLength": 1}, "description": {"title": "Description", "type": "string", "x-nullable": true}, "schema": {"title": "Schema", "type": "object"}, "organization": {"title": "Organization", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}, "schema_type": {"title": "Schema type", "type": "string", "enum": ["json", "yaml"], "x-nullable": true}}}, "RunPromptForRowsRequest": {"required": ["run_prompt_ids"], "type": "object", "properties": {"run_prompt_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}}, "row_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}, "default": []}, "selected_all_rows": {"title": "Selected all rows", "type": "boolean", "default": false}}}, "ModelHubSuccessMessageResult": {"required": ["success"], "type": "object", "properties": {"success": {"title": "Success", "type": "string", "minLength": 1}}}, "ModelHubSuccessMessageResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/ModelHubSuccessMessageResult"}}}, "Litellm": {"required": ["dataset_id", "model", "name", "messages"], "type": "object", "properties": {"dataset_id": {"title": "Dataset id", "type": "string", "maxLength": 255, "minLength": 1}, "model": {"title": "Model", "type": "string", "maxLength": 255, "minLength": 1}, "name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "concurrency": {"title": "Concurrency", "type": "integer", "default": 5}, "messages": {"description": "List of messages with format [{'role': 'user/assistant', 'content': 'text'}]", "type": "array", "items": {"type": "object", "additionalProperties": {"type": "string", "minLength": 1}}}, "output_format": {"title": "Output format", "description": "Output format type. Defaults to 'string'.", "type": "string", "enum": ["array", "string", "number", "object", "audio", "image"], "default": "string"}, "temperature": {"title": "Temperature", "description": "Controls the randomness. Value between 0 and 1.", "type": "number", "maximum": 1.0, "minimum": 0.0, "x-nullable": true}, "frequency_penalty": {"title": "Frequency penalty", "description": "Penalty for word repetition. Value between -2 and 2.", "type": "number", "maximum": 2.0, "minimum": -2.0, "x-nullable": true}, "presence_penalty": {"title": "Presence penalty", "description": "Penalty for new word usage. Value between -2 and 2.", "type": "number", "maximum": 2.0, "minimum": -2.0, "x-nullable": true}, "max_tokens": {"title": "Max tokens", "description": "Maximum number of tokens to generate. Null = use provider default.", "type": "integer", "maximum": 65536, "minimum": 1, "x-nullable": true}, "top_p": {"title": "Top p", "description": "Controls diversity via nucleus sampling. Value between 0 and 1.", "type": "number", "maximum": 1.0, "minimum": 0.0, "x-nullable": true}, "response_format": {"title": "Response format", "description": "String or JSON object.", "type": "object", "x-string-or-object": true}, "tool_choice": {"title": "Tool choice", "description": "Tool selection mode: 'auto' or 'required'.", "type": "string", "enum": ["auto", "required", null]}, "tools": {"description": "List of tools with tool properties if available.", "type": "array", "items": {"type": "object", "additionalProperties": {"type": "string", "x-nullable": true}}}}}, "CreateScore": {"required": ["source_type", "source_id", "label_id", "value"], "type": "object", "properties": {"source_type": {"title": "Source type", "type": "string", "enum": ["dataset_row", "trace", "observation_span", "prototype_run", "call_execution", "trace_session"]}, "source_id": {"title": "Source id", "type": "string", "minLength": 1}, "label_id": {"title": "Label id", "type": "string", "format": "uuid"}, "value": {"title": "Value", "type": "object"}, "notes": {"title": "Notes", "type": "string", "default": ""}, "score_source": {"title": "Score source", "type": "string", "enum": ["human", "api", "auto", "imported"], "default": "human"}, "queue_item_id": {"title": "Queue item id", "type": "string", "format": "uuid", "x-nullable": true}}}, "ScoreResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/Score"}}}, "BulkCreateScoreItem": {"required": ["label_id", "value"], "type": "object", "properties": {"label_id": {"title": "Label id", "type": "string", "format": "uuid"}, "value": {"title": "Value", "type": "object"}, "notes": {"title": "Notes", "type": "string", "default": ""}, "score_source": {"title": "Score source", "type": "string", "enum": ["human", "api", "auto", "imported"], "default": "human"}}}, "BulkCreateScores": {"required": ["source_type", "source_id", "scores"], "type": "object", "properties": {"source_type": {"title": "Source type", "type": "string", "enum": ["dataset_row", "trace", "observation_span", "prototype_run", "call_execution", "trace_session"]}, "source_id": {"title": "Source id", "type": "string", "minLength": 1}, "scores": {"type": "array", "items": {"$ref": "#/definitions/BulkCreateScoreItem"}}, "notes": {"title": "Notes", "type": "string", "default": ""}, "span_notes": {"title": "Span notes", "type": "string", "x-nullable": true}, "span_notes_source_id": {"title": "Span notes source id", "type": "string", "x-nullable": true}, "queue_item_id": {"title": "Queue item id", "type": "string", "format": "uuid", "x-nullable": true}, "project_id": {"title": "Project id", "description": "Tracer project the trace / span was opened from. The same id can exist in several projects; when supplied, the score is written to that project's copy.", "type": "string", "format": "uuid", "x-nullable": true}}}, "BulkCreateScoresResult": {"required": ["scores", "errors"], "type": "object", "properties": {"scores": {"type": "array", "items": {"$ref": "#/definitions/Score"}}, "errors": {"type": "array", "items": {"type": "string", "minLength": 1}}}}, "BulkCreateScoresResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/BulkCreateScoresResult"}}}, "ScoreForSourceResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"type": "array", "items": {"$ref": "#/definitions/Score"}}, "span_notes": {"type": "array", "items": {"type": "object"}}}}, "UpdateScore": {"type": "object", "properties": {"value": {"title": "Value", "type": "object"}, "notes": {"title": "Notes", "type": "string", "x-nullable": true}, "score_source": {"title": "Score source", "type": "string", "enum": ["human", "api", "auto", "imported"]}}}, "ScoreDeleteResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"title": "Result", "type": "object", "additionalProperties": {"type": "boolean"}}}}, "Secret": {"required": ["name"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "description": {"title": "Description", "type": "string", "x-nullable": true}, "secret_type": {"title": "Secret type", "type": "string", "enum": ["API_KEY", "PASSWORD", "TOKEN", "OTHER"]}, "secret_type_display": {"title": "Secret type display", "type": "string", "readOnly": true, "minLength": 1}, "key": {"title": "Key", "type": "string", "maxLength": 2500, "x-nullable": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}}}, "TestEvalTemplate": {"required": ["config", "name", "output_type"], "type": "object", "properties": {"config": {"title": "Config", "type": "object"}, "model": {"title": "Model", "type": "string", "default": "turing_large", "maxLength": 100, "x-nullable": true}, "eval_tags": {"type": "array", "items": {"type": "string", "minLength": 1}, "default": []}, "criteria": {"title": "Criteria", "type": "string", "x-nullable": true}, "multi_choice": {"title": "Multi choice", "type": "boolean", "default": false}, "choices": {"title": "Choices", "type": "object", "additionalProperties": {"type": "string", "minLength": 1}, "default": {}, "x-nullable": true}, "input_data_types": {"title": "Input data types", "type": "object", "default": {}}, "name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "description": {"title": "Description", "type": "string", "default": "", "maxLength": 255, "x-nullable": true}, "output_type": {"title": "Output type", "type": "string", "maxLength": 50, "minLength": 1}, "check_internet": {"title": "Check internet", "type": "boolean", "default": false}, "required_keys": {"type": "array", "items": {"type": "string", "x-nullable": true}, "default": []}, "template_type": {"title": "Template type", "type": "string", "default": "", "minLength": 1}, "eval_type_id": {"title": "Eval type id", "type": "string", "maxLength": 100, "x-nullable": true}, "template_id": {"title": "Template id", "type": "string", "format": "uuid", "x-nullable": true}, "eval_type": {"title": "Eval type", "type": "string", "x-nullable": true}, "error_localizer": {"title": "Error localizer", "type": "boolean", "default": false}, "reason_column": {"title": "Reason column", "type": "boolean", "default": false}, "optional_keys": {"type": "array", "items": {"type": "string", "minLength": 1}, "default": []}, "variable_keys": {"title": "Variable keys", "type": "object", "default": [], "x-json-value": true, "description": "Any valid JSON value."}, "run_prompt_column": {"title": "Run prompt column", "type": "boolean", "default": false}, "template_name": {"title": "Template name", "type": "string", "x-nullable": true}, "mapping": {"title": "Mapping", "type": "object", "default": {}}, "output": {"title": "Output", "type": "string", "x-nullable": true}, "config_params_desc": {"title": "Config params desc", "type": "object", "default": {}}, "config_params_option": {"title": "Config params option", "type": "object", "default": {}}}}, "Tools": {"required": ["name", "description", "config"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "description": {"title": "Description", "type": "string", "maxLength": 255, "minLength": 1}, "config": {"title": "Config", "type": "object"}, "config_type": {"title": "Config type", "type": "string", "enum": ["json", "yaml"]}, "organization": {"title": "Organization", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}}}, "TTSVoice": {"required": ["name", "voice_id", "provider", "model"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "description": {"title": "Description", "type": "string", "maxLength": 255}, "voice_id": {"title": "Voice id", "type": "string", "maxLength": 255, "minLength": 1}, "provider": {"title": "Provider", "type": "string", "maxLength": 255, "minLength": 1}, "model": {"title": "Model", "type": "string", "maxLength": 255, "minLength": 1}, "voice_type": {"title": "Voice type", "type": "string", "enum": ["system", "custom"], "readOnly": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}}}, "UpdateEvalTemplate": {"required": ["eval_template_id"], "type": "object", "properties": {"eval_template_id": {"title": "Eval template id", "type": "string", "format": "uuid"}, "description": {"title": "Description", "type": "string", "default": "", "maxLength": 255, "minLength": 1}, "criteria": {"title": "Criteria", "type": "string", "x-nullable": true}, "eval_tags": {"type": "array", "items": {"type": "string", "minLength": 1}, "default": []}, "multi_choice": {"title": "Multi choice", "type": "boolean", "default": false}, "function_eval": {"title": "Function eval", "type": "boolean", "default": false}, "choices_map": {"title": "Choices map", "type": "object", "additionalProperties": {"type": "string", "minLength": 1}, "default": {}, "x-nullable": true}, "config": {"title": "Config", "type": "object", "default": {}}, "model": {"title": "Model", "type": "string", "maxLength": 100, "minLength": 1}, "check_internet": {"title": "Check internet", "type": "boolean", "x-nullable": true}, "name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "required_keys": {"type": "array", "items": {"type": "string", "minLength": 1}, "default": []}, "eval_type_id": {"title": "Eval type id", "type": "string", "maxLength": 100, "x-nullable": true}, "template_id": {"title": "Template id", "type": "string", "x-nullable": true}, "error_localizer_enabled": {"title": "Error localizer enabled", "type": "boolean", "x-nullable": true}}}, "LegacyEvalTemplateUpdateResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"title": "Result", "type": "string", "minLength": 1}}}, "UploadFile": {"required": ["type"], "type": "object", "properties": {"files": {"type": "array", "items": {"type": "string", "readOnly": true, "format": "uri"}}, "links": {"type": "array", "items": {"type": "string", "format": "uri", "minLength": 1}}, "type": {"title": "Type", "type": "string", "enum": ["image", "audio", "pdf", "text"]}}}, "UploadedFileResult": {"type": "object", "properties": {"url": {"title": "Url", "type": "string", "x-nullable": true}, "file_name": {"title": "File name", "type": "string", "x-nullable": true}, "error": {"title": "Error", "type": "string"}}}, "UploadFileResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"type": "array", "items": {"$ref": "#/definitions/UploadedFileResult"}}}}, "SAMLErrorResponse": {"required": ["status"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"title": "Result", "type": "string", "minLength": 1, "x-nullable": true}, "message": {"title": "Message", "type": "string", "minLength": 1, "x-nullable": true}}}, "SAMLUrlResult": {"required": ["url"], "type": "object", "properties": {"url": {"title": "Url", "type": "string", "format": "uri", "minLength": 1}}}, "SAMLUrlResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/SAMLUrlResult"}}}, "SAML": {"type": "object", "properties": {"name": {"title": "Name", "type": "string", "maxLength": 250, "x-nullable": true}, "id": {"title": "Id", "type": "string", "readOnly": true, "minLength": 1}, "identity_type": {"title": "Identity type", "type": "integer", "enum": [1, 2, 3], "readOnly": true}, "is_enabled": {"title": "Is enabled", "type": "boolean"}}}, "SAMLIDPUploadListResult": {"required": ["count", "results", "acs_url", "audience_url"], "type": "object", "properties": {"count": {"title": "Count", "type": "integer"}, "next": {"title": "Next", "type": "string", "format": "uri", "minLength": 1, "x-nullable": true}, "previous": {"title": "Previous", "type": "string", "format": "uri", "minLength": 1, "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/SAML"}}, "acs_url": {"title": "Acs url", "type": "string", "format": "uri", "minLength": 1}, "audience_url": {"title": "Audience url", "type": "string", "format": "uri", "minLength": 1}}}, "SAMLIDPUploadListResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/SAMLIDPUploadListResult"}}}, "SAMLStringResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"title": "Result", "type": "string", "minLength": 1}}}, "SAMLIDPUploadDetailResult": {"required": ["is_enabled", "identity_type", "name", "acs_url", "audience_url"], "type": "object", "properties": {"is_enabled": {"title": "Is enabled", "type": "boolean"}, "identity_type": {"title": "Identity type", "type": "integer"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "acs_url": {"title": "Acs url", "type": "string", "format": "uri", "minLength": 1}, "audience_url": {"title": "Audience url", "type": "string", "format": "uri", "minLength": 1}}}, "SAMLIDPUploadDetailResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/SAMLIDPUploadDetailResult"}}}, "ConfigureEvaluations": {"required": ["eval_templates", "inputs"], "type": "object", "properties": {"eval_templates": {"title": "Eval templates", "type": "string", "minLength": 1}, "inputs": {"title": "Inputs", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}}, "model_name": {"title": "Model name", "type": "string", "x-nullable": true}, "config": {"title": "Config", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}, "default": {}}}}, "SDKConfigureEvaluationsRequest": {"required": ["eval_config", "platform"], "type": "object", "properties": {"eval_config": {"$ref": "#/definitions/ConfigureEvaluations"}, "platform": {"title": "Platform", "type": "string", "minLength": 1}, "custom_eval_name": {"title": "Custom eval name", "type": "string", "x-nullable": true}}, "additionalProperties": {"description": "Provider-specific credential fields accepted at top level.", "type": "object"}}, "SDKMessageResult": {"required": ["message"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}}}, "SDKConfigureEvaluationsResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/SDKMessageResult"}}}, "SDKErrorResponse": {"required": ["status"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"title": "Result", "type": "string", "x-nullable": true}, "message": {"title": "Message", "type": "string", "x-nullable": true}, "errors": {"title": "Errors", "type": "object", "additionalProperties": {"type": "array", "items": {"type": "string", "minLength": 1}}}}}, "SDKStandaloneEvalInput": {"type": "object", "properties": {"input": {"title": "Input", "type": "string"}, "max_tokens": {"title": "Max tokens", "type": "integer", "minimum": 1}}, "additionalProperties": {"type": "object"}}, "SDKStandaloneEvalRequest": {"required": ["inputs", "config"], "type": "object", "properties": {"inputs": {"type": "array", "items": {"$ref": "#/definitions/SDKStandaloneEvalInput"}}, "config": {"title": "Config", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}}, "protect_flash": {"title": "Protect flash", "type": "boolean", "default": false}}}, "SDKStandaloneEvalResultItem": {"required": ["evaluations"], "type": "object", "properties": {"evaluations": {"type": "array", "items": {"type": "object"}}}}, "SDKStandaloneEvalResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"type": "array", "items": {"$ref": "#/definitions/SDKStandaloneEvalResultItem"}}}}, "SDKEvalTemplate": {"required": ["id", "name", "description", "organization", "owner", "eval_id"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "minLength": 1}, "name": {"title": "Name", "type": "string", "minLength": 1}, "description": {"title": "Description", "type": "string", "x-nullable": true}, "organization": {"title": "Organization", "type": "string", "x-nullable": true}, "owner": {"title": "Owner", "type": "string", "x-nullable": true}, "eval_tags": {"title": "Eval tags", "type": "object", "x-nullable": true}, "config": {"title": "Config", "type": "object", "x-nullable": true}, "eval_id": {"title": "Eval id", "type": "string", "x-nullable": true}, "criteria": {"title": "Criteria", "type": "object", "x-nullable": true}, "choices": {"title": "Choices", "type": "object", "x-nullable": true}, "multi_choice": {"title": "Multi choice", "type": "boolean", "x-nullable": true}}}, "SDKEvalTemplateResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/SDKEvalTemplate"}}}, "SDKCICDEvaluationRunSummary": {"required": ["id", "project", "version", "results_summary"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "project": {"title": "Project", "type": "string", "minLength": 1}, "version": {"title": "Version", "type": "string", "minLength": 1}, "results_summary": {"title": "Results summary", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}}}}, "SDKCICDEvaluationRunsResult": {"required": ["message", "status"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}, "status": {"title": "Status", "type": "string", "enum": ["processing", "completed"]}, "evaluation_runs": {"type": "array", "items": {"$ref": "#/definitions/SDKCICDEvaluationRunSummary"}}}}, "SDKCICDEvaluationRunsResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/SDKCICDEvaluationRunsResult"}}}, "CICDEvaluationItem": {"required": ["eval_template", "inputs"], "type": "object", "properties": {"eval_template": {"title": "Eval template", "type": "string", "minLength": 1}, "inputs": {"title": "Inputs", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}}, "model_name": {"title": "Model name", "type": "string", "x-nullable": true}, "config": {"title": "Config", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}, "default": {}}}}, "CICDJob": {"required": ["project_name", "version", "eval_data"], "type": "object", "properties": {"project_name": {"title": "Project name", "type": "string", "minLength": 1}, "version": {"title": "Version", "type": "string", "minLength": 1}, "eval_data": {"type": "array", "items": {"$ref": "#/definitions/CICDEvaluationItem"}}}}, "SDKCICDEvaluationRunAccepted": {"required": ["message", "project_name", "version", "evaluation_run_id"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}, "project_name": {"title": "Project name", "type": "string", "minLength": 1}, "version": {"title": "Version", "type": "string", "minLength": 1}, "evaluation_run_id": {"title": "Evaluation run id", "type": "string", "format": "uuid"}}}, "SDKCICDEvaluationRunAcceptedResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/SDKCICDEvaluationRunAccepted"}}}, "SDKGetEvalsResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"type": "array", "items": {"$ref": "#/definitions/SDKEvalTemplate"}}}}, "SDKStandaloneEvalV2Result": {"required": ["eval_status", "result"], "type": "object", "properties": {"eval_status": {"title": "Eval status", "type": "string", "minLength": 1}, "result": {"title": "Result", "type": "object"}}}, "SDKStandaloneEvalV2Response": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/SDKStandaloneEvalV2Result"}}}, "SDKStandaloneEvalV2Request": {"required": ["eval_name", "inputs"], "type": "object", "properties": {"eval_name": {"title": "Eval name", "type": "string", "minLength": 1}, "inputs": {"title": "Inputs", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}}, "model": {"title": "Model", "type": "string", "x-nullable": true}, "span_id": {"title": "Span id", "type": "string", "x-nullable": true}, "custom_eval_name": {"title": "Custom eval name", "type": "string", "x-nullable": true}, "trace_eval": {"title": "Trace eval", "type": "boolean", "default": false}, "is_async": {"title": "Is async", "type": "boolean", "default": false}, "error_localizer": {"title": "Error localizer", "type": "boolean", "default": false}, "config": {"title": "Config", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}}}}, "SDKSimulationAnalyticsResult": {"required": ["run_test_name", "eval_results", "eval_averages", "system_summary"], "type": "object", "properties": {"execution_id": {"title": "Execution id", "type": "string", "format": "uuid"}, "run_test_name": {"title": "Run test name", "type": "string", "minLength": 1}, "status": {"title": "Status", "type": "string", "minLength": 1}, "message": {"title": "Message", "type": "string", "minLength": 1}, "eval_results": {"type": "array", "items": {"type": "object"}}, "eval_averages": {"title": "Eval averages", "type": "object"}, "system_summary": {"title": "System summary", "type": "object"}, "eval_explanation_summary": {"title": "Eval explanation summary", "type": "object", "x-nullable": true}, "eval_explanation_summary_status": {"title": "Eval explanation summary status", "type": "string", "x-nullable": true}}}, "SDKSimulationAnalyticsResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/SDKSimulationAnalyticsResult"}}}, "ExecutionMetrics": {"required": ["execution_id"], "type": "object", "properties": {"execution_id": {"title": "Execution id", "type": "string", "format": "uuid"}, "status": {"title": "Status", "description": "Current status of the test execution", "type": "string", "enum": ["pending", "running", "completed", "failed", "cancelled", "cancelling", "evaluating"], "readOnly": true}, "started_at": {"title": "Started at", "description": "When the test execution started", "type": "string", "format": "date-time", "readOnly": true}, "completed_at": {"title": "Completed at", "description": "When the test execution completed", "type": "string", "format": "date-time", "readOnly": true, "x-nullable": true}, "total_calls": {"title": "Total calls", "description": "Total number of calls to be made", "type": "integer", "readOnly": true}, "completed_calls": {"title": "Completed calls", "description": "Number of successfully completed calls", "type": "integer", "readOnly": true}, "failed_calls": {"title": "Failed calls", "description": "Number of failed calls", "type": "integer", "readOnly": true}, "metrics": {"title": "Metrics", "type": "string", "readOnly": true}}}, "SDKSimulationMetricsResult": {"type": "object", "properties": {"call_execution_id": {"title": "Call execution id", "type": "string", "format": "uuid"}, "execution_id": {"title": "Execution id", "type": "string", "format": "uuid"}, "status": {"title": "Status", "type": "string", "minLength": 1}, "duration_seconds": {"title": "Duration seconds", "type": "number", "x-nullable": true}, "started_at": {"title": "Started at", "type": "string", "format": "date-time", "x-nullable": true}, "completed_at": {"title": "Completed at", "type": "string", "format": "date-time", "x-nullable": true}, "total_calls": {"title": "Total calls", "type": "integer"}, "completed_calls": {"title": "Completed calls", "type": "integer"}, "failed_calls": {"title": "Failed calls", "type": "integer"}, "latency": {"title": "Latency", "type": "object"}, "cost": {"title": "Cost", "type": "object"}, "conversation": {"title": "Conversation", "type": "object"}, "chat_metrics": {"title": "Chat metrics", "type": "object", "x-nullable": true}, "metrics": {"title": "Metrics", "type": "object"}, "total_pages": {"title": "Total pages", "type": "integer"}, "current_page": {"title": "Current page", "type": "integer"}, "count": {"title": "Count", "type": "integer"}, "results": {"type": "array", "items": {"$ref": "#/definitions/ExecutionMetrics"}}}}, "SDKSimulationMetricsResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/SDKSimulationMetricsResult"}}}, "ExecutionRuns": {"required": ["execution_id"], "type": "object", "properties": {"execution_id": {"title": "Execution id", "type": "string", "format": "uuid"}, "status": {"title": "Status", "description": "Current status of the test execution", "type": "string", "enum": ["pending", "running", "completed", "failed", "cancelled", "cancelling", "evaluating"], "readOnly": true}, "started_at": {"title": "Started at", "description": "When the test execution started", "type": "string", "format": "date-time", "readOnly": true}, "completed_at": {"title": "Completed at", "description": "When the test execution completed", "type": "string", "format": "date-time", "readOnly": true, "x-nullable": true}, "total_calls": {"title": "Total calls", "description": "Total number of calls to be made", "type": "integer", "readOnly": true}, "completed_calls": {"title": "Completed calls", "description": "Number of successfully completed calls", "type": "integer", "readOnly": true}, "failed_calls": {"title": "Failed calls", "description": "Number of failed calls", "type": "integer", "readOnly": true}, "eval_results": {"title": "Eval results", "type": "string", "readOnly": true}}}, "SDKSimulationRunsResult": {"type": "object", "properties": {"call_execution_id": {"title": "Call execution id", "type": "string", "format": "uuid"}, "execution_id": {"title": "Execution id", "type": "string", "format": "uuid"}, "scenario_id": {"title": "Scenario id", "type": "string", "format": "uuid"}, "scenario_name": {"title": "Scenario name", "type": "string"}, "status": {"title": "Status", "type": "string", "minLength": 1}, "started_at": {"title": "Started at", "type": "string", "format": "date-time", "x-nullable": true}, "completed_at": {"title": "Completed at", "type": "string", "format": "date-time", "x-nullable": true}, "duration_seconds": {"title": "Duration seconds", "type": "number", "x-nullable": true}, "ended_reason": {"title": "Ended reason", "type": "string", "x-nullable": true}, "call_summary": {"title": "Call summary", "type": "string", "x-nullable": true}, "total_calls": {"title": "Total calls", "type": "integer"}, "completed_calls": {"title": "Completed calls", "type": "integer"}, "failed_calls": {"title": "Failed calls", "type": "integer"}, "eval_outputs": {"title": "Eval outputs", "type": "object"}, "eval_results": {"type": "array", "items": {"type": "object"}}, "latency": {"title": "Latency", "type": "object"}, "cost": {"title": "Cost", "type": "object"}, "call_results": {"title": "Call results", "type": "object"}, "eval_explanation_summary": {"title": "Eval explanation summary", "type": "object", "x-nullable": true}, "eval_explanation_summary_status": {"title": "Eval explanation summary status", "type": "string", "x-nullable": true}, "total_pages": {"title": "Total pages", "type": "integer"}, "current_page": {"title": "Current page", "type": "integer"}, "count": {"title": "Count", "type": "integer"}, "results": {"type": "array", "items": {"$ref": "#/definitions/ExecutionRuns"}}}}, "SDKSimulationRunsResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/SDKSimulationRunsResult"}}}, "AgentDefinitionListResponse": {"type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "agent_name": {"title": "Agent name", "description": "Name of the AI agent", "type": "string", "readOnly": true, "minLength": 1}, "agent_type": {"title": "Agent type", "type": "string", "enum": ["voice", "text"], "readOnly": true}, "contact_number": {"title": "Contact number", "description": "Phone number associated with the AI agent", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "inbound": {"title": "Inbound", "description": "Whether the agent handles inbound calls", "type": "boolean", "readOnly": true}, "target_speaks_first": {"title": "Target speaks first", "description": "Whether the target agent speaks first (greets) in a hosted voice simulation. True: the simulator waits for the target's greeting; False: the simulator opens the conversation; null: derive from inbound/outbound. Retell targets always let the simulator open (SDK limitation).", "type": "boolean", "readOnly": true, "x-nullable": true}, "description": {"title": "Description", "description": "Detailed description of the AI agent's purpose and capabilities", "type": "string", "readOnly": true, "minLength": 1}, "assistant_id": {"title": "Assistant id", "description": "External identifier for the assistant", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "provider": {"title": "Provider", "description": "Provider of the AI agent", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "language": {"title": "Language", "description": "Language of the agent", "type": "string", "enum": ["ar", "bg", "zh", "cs", "da", "nl", "en", "fi", "fr", "de", "el", "hi", "hu", "id", "it", "ja", "ko", "ms", "no", "pl", "pt", "ro", "ru", "sk", "es", "sv", "tr", "uk", "vi"], "readOnly": true, "x-nullable": true}, "languages": {"type": "array", "items": {"title": "Languages", "description": "Language of the agent", "type": "string", "enum": ["ar", "bg", "zh", "cs", "da", "nl", "en", "fi", "fr", "de", "el", "hi", "hu", "id", "it", "ja", "ko", "ms", "no", "pl", "pt", "ro", "ru", "sk", "es", "sv", "tr", "uk", "vi"]}, "readOnly": true, "x-nullable": true}, "websocket_url": {"title": "Websocket url", "description": "WebSocket URL for real-time communication with the agent", "type": "string", "format": "uri", "readOnly": true, "minLength": 1, "x-nullable": true}, "websocket_headers": {"title": "Websocket headers", "description": "Headers to be sent to the websocket server", "type": "object", "readOnly": true, "x-nullable": true}, "workspace": {"title": "Workspace", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}, "knowledge_base": {"title": "Knowledge base", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}, "organization": {"title": "Organization", "description": "Organization this agent definition belongs to", "type": "string", "format": "uuid", "readOnly": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}, "latest_version": {"title": "Latest version", "type": "string", "readOnly": true}, "latest_version_id": {"title": "Latest version id", "type": "string", "readOnly": true}, "model_details": {"title": "Model details", "description": "Details of the model", "type": "object", "readOnly": true, "x-nullable": true}, "model": {"title": "Model", "description": "Model of the agent", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}}}, "ApiErrorWithDetailsResponse": {"type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": false}, "type": {"title": "Type", "type": "string", "enum": ["validation_error", "authentication_error", "payment_required", "entitlement_error", "permission_error", "not_found", "conflict", "client_error", "rate_limit", "server_error", "service_unavailable", "timeout", "api_error"], "x-nullable": true}, "code": {"title": "Code", "type": "string", "x-nullable": true}, "detail": {"title": "Detail", "type": "string", "x-nullable": true}, "result": {"title": "Result", "type": "string", "minLength": 1, "x-nullable": true}, "message": {"title": "Message", "type": "string", "minLength": 1, "x-nullable": true}, "error": {"title": "Error", "type": "string", "x-nullable": true}, "attr": {"title": "Attr", "type": "string", "x-nullable": true}, "details": {"title": "Details", "type": "object", "additionalProperties": {"type": "array", "items": {"type": "string", "minLength": 1}}}}}, "AgentDefinitionBulkDeleteRequest": {"required": ["agent_ids"], "type": "object", "properties": {"agent_ids": {"description": "List of agent definition UUIDs to delete.", "type": "array", "items": {"type": "string", "format": "uuid"}, "minItems": 1}}}, "AgentDefinitionBulkDeleteResponse": {"type": "object", "properties": {"message": {"title": "Message", "type": "string", "readOnly": true, "minLength": 1}, "agents_updated": {"title": "Agents updated", "type": "integer", "readOnly": true}, "versions_updated": {"title": "Versions updated", "type": "integer", "readOnly": true}}}, "AgentDefinitionCreateRequest": {"required": ["agent_name", "agent_type", "commit_message"], "type": "object", "properties": {"agent_name": {"title": "Agent name", "type": "string", "maxLength": 255, "minLength": 1}, "agent_type": {"title": "Agent type", "description": "The type of agent. One of: voice, text.", "type": "string", "enum": ["voice", "text"]}, "commit_message": {"title": "Commit message", "type": "string", "minLength": 1}, "inbound": {"title": "Inbound", "type": "boolean", "default": true}, "target_speaks_first": {"title": "Target speaks first", "type": "boolean", "x-nullable": true}, "description": {"title": "Description", "type": "string", "default": ""}, "provider": {"title": "Provider", "type": "string", "x-nullable": true}, "api_key": {"title": "Api key", "type": "string", "x-nullable": true}, "assistant_id": {"title": "Assistant id", "type": "string", "x-nullable": true}, "authentication_method": {"title": "Authentication method", "type": "string", "enum": ["api_key"], "x-nullable": true}, "language": {"title": "Language", "type": "string", "x-nullable": true}, "languages": {"type": "array", "items": {"type": "string", "minLength": 1}, "x-nullable": true}, "contact_number": {"title": "Contact number", "type": "string", "x-nullable": true}, "knowledge_base": {"title": "Knowledge base", "type": "string", "format": "uuid", "x-nullable": true}, "observability_enabled": {"title": "Observability enabled", "type": "boolean", "default": false}, "model": {"title": "Model", "type": "string", "x-nullable": true}, "model_details": {"title": "Model details", "type": "object", "x-nullable": true}, "websocket_url": {"title": "Websocket url", "type": "string", "format": "uri", "x-nullable": true}, "websocket_headers": {"title": "Websocket headers", "type": "object", "x-nullable": true}, "replay_session_id": {"title": "Replay session id", "type": "string", "format": "uuid", "x-nullable": true}, "livekit_url": {"title": "Livekit url", "type": "string", "maxLength": 500, "x-nullable": true}, "livekit_api_key": {"title": "Livekit api key", "type": "string", "x-nullable": true}, "livekit_api_secret": {"title": "Livekit api secret", "type": "string", "x-nullable": true}, "livekit_agent_name": {"title": "Livekit agent name", "type": "string", "x-nullable": true}, "livekit_config_json": {"title": "Livekit config json", "type": "object", "x-nullable": true}, "livekit_max_concurrency": {"title": "Livekit max concurrency", "type": "integer", "maximum": 15, "minimum": 1, "x-nullable": true}}}, "AgentDefinitionResponse": {"type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "agent_name": {"title": "Agent name", "description": "Name of the AI agent", "type": "string", "readOnly": true, "minLength": 1}, "agent_type": {"title": "Agent type", "type": "string", "enum": ["voice", "text"], "readOnly": true}, "contact_number": {"title": "Contact number", "description": "Phone number associated with the AI agent", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "inbound": {"title": "Inbound", "description": "Whether the agent handles inbound calls", "type": "boolean", "readOnly": true}, "target_speaks_first": {"title": "Target speaks first", "description": "Whether the target agent speaks first (greets) in a hosted voice simulation. True: the simulator waits for the target's greeting; False: the simulator opens the conversation; null: derive from inbound/outbound. Retell targets always let the simulator open (SDK limitation).", "type": "boolean", "readOnly": true, "x-nullable": true}, "description": {"title": "Description", "description": "Detailed description of the AI agent's purpose and capabilities", "type": "string", "readOnly": true, "minLength": 1}, "assistant_id": {"title": "Assistant id", "description": "External identifier for the assistant", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "provider": {"title": "Provider", "description": "Provider of the AI agent", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "language": {"title": "Language", "description": "Language of the agent", "type": "string", "enum": ["ar", "bg", "zh", "cs", "da", "nl", "en", "fi", "fr", "de", "el", "hi", "hu", "id", "it", "ja", "ko", "ms", "no", "pl", "pt", "ro", "ru", "sk", "es", "sv", "tr", "uk", "vi"], "readOnly": true, "x-nullable": true}, "languages": {"type": "array", "items": {"title": "Languages", "description": "Language of the agent", "type": "string", "enum": ["ar", "bg", "zh", "cs", "da", "nl", "en", "fi", "fr", "de", "el", "hi", "hu", "id", "it", "ja", "ko", "ms", "no", "pl", "pt", "ro", "ru", "sk", "es", "sv", "tr", "uk", "vi"]}, "readOnly": true, "x-nullable": true}, "authentication_method": {"title": "Authentication method", "type": "string", "enum": ["api_key"], "readOnly": true, "x-nullable": true}, "websocket_url": {"title": "Websocket url", "description": "WebSocket URL for real-time communication with the agent", "type": "string", "format": "uri", "readOnly": true, "minLength": 1, "x-nullable": true}, "websocket_headers": {"title": "Websocket headers", "description": "Headers to be sent to the websocket server", "type": "object", "readOnly": true, "x-nullable": true}, "workspace": {"title": "Workspace", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}, "knowledge_base": {"title": "Knowledge base", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}, "organization": {"title": "Organization", "description": "Organization this agent definition belongs to", "type": "string", "format": "uuid", "readOnly": true}, "api_key": {"title": "Api key", "type": "string", "readOnly": true}, "observability_provider": {"title": "Observability provider", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}, "model": {"title": "Model", "description": "Model of the agent", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "model_details": {"title": "Model details", "description": "Details of the model", "type": "object", "readOnly": true, "x-nullable": true}, "livekit_url": {"title": "Livekit url", "type": "string", "readOnly": true}, "livekit_api_key": {"title": "Livekit api key", "type": "string", "readOnly": true}, "livekit_agent_name": {"title": "Livekit agent name", "type": "string", "readOnly": true}, "livekit_config_json": {"title": "Livekit config json", "type": "string", "readOnly": true}, "livekit_max_concurrency": {"title": "Livekit max concurrency", "type": "string", "readOnly": true}}}, "AgentDefinitionCreateResponse": {"type": "object", "properties": {"message": {"title": "Message", "type": "string", "readOnly": true, "minLength": 1}, "agent": {"$ref": "#/definitions/AgentDefinitionResponse"}}}, "AgentDefinitionDeleteResponse": {"type": "object", "properties": {"message": {"title": "Message", "type": "string", "readOnly": true, "minLength": 1}}}, "AgentDefinitionEditRequest": {"type": "object", "properties": {"agent_name": {"title": "Agent name", "type": "string", "maxLength": 255, "minLength": 1}, "agent_type": {"title": "Agent type", "type": "string", "enum": ["voice", "text"]}, "description": {"title": "Description", "type": "string", "x-nullable": true}, "provider": {"title": "Provider", "type": "string", "x-nullable": true}, "api_key": {"title": "Api key", "type": "string", "x-nullable": true}, "assistant_id": {"title": "Assistant id", "type": "string", "x-nullable": true}, "authentication_method": {"title": "Authentication method", "type": "string", "enum": ["api_key"], "x-nullable": true}, "language": {"title": "Language", "type": "string", "x-nullable": true}, "languages": {"type": "array", "items": {"type": "string", "minLength": 1}, "x-nullable": true}, "contact_number": {"title": "Contact number", "type": "string", "x-nullable": true}, "inbound": {"title": "Inbound", "type": "boolean"}, "target_speaks_first": {"title": "Target speaks first", "type": "boolean", "x-nullable": true}, "knowledge_base": {"title": "Knowledge base", "type": "string", "format": "uuid", "x-nullable": true}, "model": {"title": "Model", "type": "string", "x-nullable": true}, "model_details": {"title": "Model details", "type": "object", "x-nullable": true}, "websocket_url": {"title": "Websocket url", "type": "string", "format": "uri", "x-nullable": true}, "websocket_headers": {"title": "Websocket headers", "type": "object", "x-nullable": true}, "livekit_url": {"title": "Livekit url", "type": "string", "maxLength": 500, "x-nullable": true}, "livekit_api_key": {"title": "Livekit api key", "type": "string", "x-nullable": true}, "livekit_api_secret": {"title": "Livekit api secret", "type": "string", "x-nullable": true}, "livekit_agent_name": {"title": "Livekit agent name", "type": "string", "x-nullable": true}, "livekit_config_json": {"title": "Livekit config json", "type": "object", "x-nullable": true}, "livekit_max_concurrency": {"title": "Livekit max concurrency", "type": "integer", "maximum": 15, "minimum": 1, "x-nullable": true}}}, "AgentDefinitionEditResponse": {"type": "object", "properties": {"message": {"title": "Message", "type": "string", "readOnly": true, "minLength": 1}, "agent": {"$ref": "#/definitions/AgentDefinitionResponse"}}}, "AgentVersionListResponse": {"type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "version_number": {"title": "Version number", "description": "Version number of the agent", "type": "integer", "readOnly": true}, "version_name": {"title": "Version name", "description": "Human-readable version name (e.g., 'v1.2.3')", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "version_name_display": {"title": "Version name display", "type": "string", "readOnly": true}, "status": {"title": "Status", "description": "Current status of this version", "type": "string", "enum": ["draft", "active", "archived", "deprecated"], "readOnly": true}, "status_display": {"title": "Status display", "type": "string", "readOnly": true, "minLength": 1}, "score": {"title": "Score", "description": "Performance score (0.0 to 10.0)", "type": "string", "format": "decimal", "readOnly": true, "x-nullable": true}, "test_count": {"title": "Test count", "description": "Number of tests run for this version", "type": "integer", "readOnly": true}, "pass_rate": {"title": "Pass rate", "description": "Test pass rate percentage", "type": "string", "format": "decimal", "readOnly": true, "x-nullable": true}, "description": {"title": "Description", "description": "Description of changes in this version", "type": "string", "readOnly": true, "minLength": 1}, "commit_message": {"title": "Commit message", "description": "Commit message for the agent version", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "is_active": {"title": "Is active", "type": "string", "readOnly": true}, "is_latest": {"title": "Is latest", "type": "string", "readOnly": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}}}, "AgentVersionCreateRequest": {"type": "object", "properties": {"agent_name": {"title": "Agent name", "type": "string", "maxLength": 255, "minLength": 1}, "agent_type": {"title": "Agent type", "type": "string", "enum": ["voice", "text"]}, "description": {"title": "Description", "type": "string", "x-nullable": true}, "provider": {"title": "Provider", "type": "string", "x-nullable": true}, "api_key": {"title": "Api key", "type": "string", "x-nullable": true}, "assistant_id": {"title": "Assistant id", "type": "string", "x-nullable": true}, "authentication_method": {"title": "Authentication method", "type": "string", "enum": ["api_key"], "x-nullable": true}, "language": {"title": "Language", "type": "string", "x-nullable": true}, "languages": {"type": "array", "items": {"type": "string", "minLength": 1}, "x-nullable": true}, "contact_number": {"title": "Contact number", "type": "string", "x-nullable": true}, "inbound": {"title": "Inbound", "type": "boolean"}, "target_speaks_first": {"title": "Target speaks first", "type": "boolean", "x-nullable": true}, "knowledge_base": {"title": "Knowledge base", "type": "string", "format": "uuid", "x-nullable": true}, "model": {"title": "Model", "type": "string", "x-nullable": true}, "model_details": {"title": "Model details", "type": "object", "x-nullable": true}, "livekit_url": {"title": "Livekit url", "type": "string", "maxLength": 500}, "livekit_api_key": {"title": "Livekit api key", "type": "string", "maxLength": 255}, "livekit_api_secret": {"title": "Livekit api secret", "type": "string", "maxLength": 500}, "livekit_agent_name": {"title": "Livekit agent name", "type": "string", "maxLength": 255}, "livekit_config_json": {"title": "Livekit config json", "type": "object", "x-nullable": true}, "livekit_max_concurrency": {"title": "Livekit max concurrency", "type": "integer", "maximum": 15, "minimum": 1}, "commit_message": {"title": "Commit message", "type": "string", "default": ""}, "observability_enabled": {"title": "Observability enabled", "type": "boolean", "default": false}}}, "AgentVersionResponse": {"type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "version_number": {"title": "Version number", "description": "Version number of the agent", "type": "integer", "readOnly": true}, "version_name": {"title": "Version name", "description": "Human-readable version name (e.g., 'v1.2.3')", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "version_name_display": {"title": "Version name display", "type": "string", "readOnly": true}, "status": {"title": "Status", "description": "Current status of this version", "type": "string", "enum": ["draft", "active", "archived", "deprecated"], "readOnly": true}, "status_display": {"title": "Status display", "type": "string", "readOnly": true, "minLength": 1}, "score": {"title": "Score", "description": "Performance score (0.0 to 10.0)", "type": "string", "format": "decimal", "readOnly": true, "x-nullable": true}, "test_count": {"title": "Test count", "description": "Number of tests run for this version", "type": "integer", "readOnly": true}, "pass_rate": {"title": "Pass rate", "description": "Test pass rate percentage", "type": "string", "format": "decimal", "readOnly": true, "x-nullable": true}, "description": {"title": "Description", "description": "Description of changes in this version", "type": "string", "readOnly": true, "minLength": 1}, "commit_message": {"title": "Commit message", "description": "Commit message for the agent version", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "release_notes": {"title": "Release notes", "description": "Detailed release notes for this version", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "agent_definition": {"title": "Agent definition", "description": "Parent agent definition", "type": "string", "format": "uuid", "readOnly": true}, "organization": {"title": "Organization", "description": "Organization this version belongs to", "type": "string", "format": "uuid", "readOnly": true}, "configuration_snapshot": {"title": "Configuration snapshot", "description": "Snapshot of agent configuration at this version", "type": "object", "readOnly": true}, "is_active": {"title": "Is active", "type": "string", "readOnly": true}, "is_latest": {"title": "Is latest", "type": "string", "readOnly": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}}}, "AgentVersionCreateResponse": {"type": "object", "properties": {"message": {"title": "Message", "type": "string", "readOnly": true, "minLength": 1}, "version": {"$ref": "#/definitions/AgentVersionResponse"}}}, "AgentVersionActivateResponse": {"type": "object", "properties": {"message": {"title": "Message", "type": "string", "readOnly": true, "minLength": 1}, "version": {"$ref": "#/definitions/AgentVersionResponse"}}}, "CallExecutionErrorLocalizerTask": {"required": ["task_id", "eval_config_id", "status", "eval_result"], "type": "object", "properties": {"task_id": {"title": "Task id", "type": "string", "minLength": 1}, "eval_config_id": {"title": "Eval config id", "type": "string", "x-nullable": true}, "status": {"title": "Status", "type": "string"}, "eval_result": {"title": "Eval result", "type": "object", "x-nullable": true}, "eval_explanation": {"title": "Eval explanation", "type": "string", "x-nullable": true}, "input_data": {"title": "Input data", "type": "object", "x-nullable": true}, "input_keys": {"type": "array", "items": {"type": "string", "minLength": 1}}, "input_types": {"title": "Input types", "type": "object", "x-nullable": true}, "rule_prompt": {"title": "Rule prompt", "type": "string", "x-nullable": true}, "error_analysis": {"title": "Error analysis", "type": "object", "x-nullable": true}, "selected_input_key": {"title": "Selected input key", "type": "string", "x-nullable": true}, "error_message": {"title": "Error message", "type": "string", "x-nullable": true}, "created_at": {"title": "Created at", "type": "string", "x-nullable": true}, "updated_at": {"title": "Updated at", "type": "string", "x-nullable": true}}}, "CallExecution": {"type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "phone_number": {"title": "Phone number", "description": "Phone number called (null for TEXT/chat simulations)", "type": "string", "maxLength": 20, "x-nullable": true}, "service_provider_call_id": {"title": "Service provider call id", "type": "string", "readOnly": true, "minLength": 1}, "status": {"title": "Status", "description": "Current status of the call", "type": "string", "enum": ["pending", "queued", "ongoing", "completed", "failed", "analyzing", "cancelled"]}, "started_at": {"title": "Started at", "description": "When the call started", "type": "string", "format": "date-time", "x-nullable": true}, "completed_at": {"title": "Completed at", "description": "When the call completed", "type": "string", "format": "date-time", "x-nullable": true}, "duration_seconds": {"title": "Duration seconds", "description": "Duration of the call in seconds", "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "x-nullable": true}, "recording_url": {"title": "Recording url", "description": "URL to the call recording", "type": "string", "format": "uri", "maxLength": 500, "x-nullable": true}, "cost_cents": {"title": "Cost cents", "description": "Cost of the call in cents", "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "x-nullable": true}, "call_metadata": {"title": "Call metadata", "description": "Additional metadata about the call", "type": "object"}, "error_message": {"title": "Error message", "description": "Error message if the call failed", "type": "string", "x-nullable": true}, "scenario_name": {"title": "Scenario name", "type": "string", "readOnly": true, "minLength": 1}, "transcripts": {"title": "Transcripts", "type": "string", "readOnly": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}, "provider_call_data": {"title": "Provider call data", "description": "Complete call data from the provider. Format: dict[provider_name, data] where provider_name must be from SupportedProviders", "type": "object", "x-nullable": true}, "stereo_recording_url": {"title": "Stereo recording url", "description": "Stereo recording URL from Vapi", "type": "string", "format": "uri", "maxLength": 500, "x-nullable": true}, "ended_reason": {"title": "Ended reason", "description": "Reason why the call ended", "type": "string", "maxLength": 10000, "x-nullable": true}, "stt_cost_cents": {"title": "Stt cost cents", "description": "STT cost in cents", "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "x-nullable": true}, "llm_cost_cents": {"title": "Llm cost cents", "description": "LLM cost in cents", "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "x-nullable": true}, "tts_cost_cents": {"title": "Tts cost cents", "description": "TTS cost in cents", "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "x-nullable": true}, "overall_score": {"title": "Overall score", "description": "Overall call performance score", "type": "number", "x-nullable": true}, "response_time_ms": {"title": "Response time ms", "description": "Average response time in milliseconds", "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "x-nullable": true}, "response_time_seconds": {"title": "Response time seconds", "type": "string", "readOnly": true}, "assistant_id": {"title": "Assistant id", "description": "Assistant ID used for the call (system side)", "type": "string", "maxLength": 255, "x-nullable": true}, "customer_number": {"title": "Customer number", "description": "Customer phone number (E.164 format)", "type": "string", "maxLength": 20, "x-nullable": true}, "call_type": {"title": "Call type", "description": "Type of call (e.g., outboundPhoneCall)", "type": "string", "maxLength": 50, "x-nullable": true}, "ended_at": {"title": "Ended at", "description": "When the call ended", "type": "string", "format": "date-time", "x-nullable": true}, "analysis_data": {"title": "Analysis data", "description": "Call analysis data from the service provider", "type": "object", "x-nullable": true}, "evaluation_data": {"title": "Evaluation data", "description": "Call evaluation data from the service provider", "type": "object", "x-nullable": true}, "message_count": {"title": "Message count", "description": "Number of messages in the call", "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "x-nullable": true}, "transcript_available": {"title": "Transcript available", "description": "Whether transcript is available", "type": "boolean"}, "recording_available": {"title": "Recording available", "description": "Whether recording is available", "type": "boolean"}, "eval_outputs": {"title": "Eval outputs", "description": "Evaluation output", "type": "object", "x-nullable": true}, "error_localizer_tasks": {"description": "Get error localizer tasks for this call execution.", "type": "array", "items": {"$ref": "#/definitions/CallExecutionErrorLocalizerTask"}, "readOnly": true}, "call_summary": {"title": "Call summary", "description": "Call summary from the service", "type": "string", "x-nullable": true}, "agent_version": {"title": "Agent version", "type": "string", "format": "uuid", "x-nullable": true}, "customer_cost_cents": {"title": "Customer cost cents", "description": "Total customer-reported cost in cents", "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "x-nullable": true}, "system_metrics": {"title": "System metrics", "type": "string", "readOnly": true}, "cost_breakdown": {"title": "Cost breakdown", "type": "string", "readOnly": true}, "customer_call_id": {"title": "Customer call id", "description": "Customer call ID if available", "type": "string", "maxLength": 255, "x-nullable": true}, "simulation_call_type": {"title": "Simulation call type", "description": "Type of simulation call", "type": "string", "enum": ["voice", "text"]}, "processing_skipped": {"title": "Processing skipped", "type": "string", "readOnly": true}, "processing_skip_reason": {"title": "Processing skip reason", "type": "string", "readOnly": true}}}, "AgentVersionDeleteResponse": {"type": "object", "properties": {"message": {"title": "Message", "type": "string", "readOnly": true, "minLength": 1}}}, "EvalTemplateSummary": {"required": ["name", "id", "total_cells", "output"], "type": "object", "properties": {"name": {"title": "Name", "type": "string", "minLength": 1}, "id": {"title": "Id", "type": "string", "minLength": 1}, "total_cells": {"title": "Total cells", "type": "integer"}, "output": {"title": "Output", "type": "object"}}}, "EvalSummaryResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"type": "array", "items": {"$ref": "#/definitions/EvalTemplateSummary"}}}}, "EvalErrorResponse": {"type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": false}, "type": {"title": "Type", "type": "string", "enum": ["validation_error", "authentication_error", "payment_required", "entitlement_error", "permission_error", "not_found", "conflict", "client_error", "rate_limit", "server_error", "service_unavailable", "timeout", "api_error"], "x-nullable": true}, "code": {"title": "Code", "type": "string", "x-nullable": true}, "detail": {"title": "Detail", "type": "string", "x-nullable": true}, "result": {"title": "Result", "type": "string", "minLength": 1, "x-nullable": true}, "message": {"title": "Message", "type": "string", "minLength": 1, "x-nullable": true}, "error": {"title": "Error", "type": "string", "x-nullable": true}, "attr": {"title": "Attr", "type": "string", "x-nullable": true}, "details": {"title": "Details", "type": "object", "additionalProperties": {"type": "array", "items": {"type": "string", "minLength": 1}}}}}, "AgentVersionRestoreResponse": {"type": "object", "properties": {"message": {"title": "Message", "type": "string", "readOnly": true, "minLength": 1}, "agent": {"title": "Agent", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}, "readOnly": true}, "version": {"$ref": "#/definitions/AgentVersionResponse"}}}, "AgentDefinition": {"required": ["agent_name", "inbound", "description"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "agent_name": {"title": "Agent name", "description": "Name of the AI agent", "type": "string", "maxLength": 255, "minLength": 1}, "agent_type": {"title": "Agent type", "type": "string", "enum": ["voice", "text"]}, "contact_number": {"title": "Contact number", "description": "Phone number associated with the AI agent", "type": "string", "maxLength": 50, "x-nullable": true}, "inbound": {"title": "Inbound", "description": "Whether the agent handles inbound calls", "type": "boolean"}, "target_speaks_first": {"title": "Target speaks first", "description": "Whether the target agent speaks first (greets) in a hosted voice simulation. True: the simulator waits for the target's greeting; False: the simulator opens the conversation; null: derive from inbound/outbound. Retell targets always let the simulator open (SDK limitation).", "type": "boolean", "x-nullable": true}, "description": {"title": "Description", "description": "Detailed description of the AI agent's purpose and capabilities", "type": "string", "minLength": 1}, "assistant_id": {"title": "Assistant id", "description": "External identifier for the assistant", "type": "string", "maxLength": 255, "x-nullable": true}, "provider": {"title": "Provider", "description": "Provider of the AI agent", "type": "string", "maxLength": 255, "x-nullable": true}, "language": {"title": "Language", "description": "Language of the agent", "type": "string", "enum": ["ar", "bg", "zh", "cs", "da", "nl", "en", "fi", "fr", "de", "el", "hi", "hu", "id", "it", "ja", "ko", "ms", "no", "pl", "pt", "ro", "ru", "sk", "es", "sv", "tr", "uk", "vi"], "x-nullable": true}, "languages": {"type": "array", "items": {"title": "Languages", "description": "Language of the agent", "type": "string", "enum": ["ar", "bg", "zh", "cs", "da", "nl", "en", "fi", "fr", "de", "el", "hi", "hu", "id", "it", "ja", "ko", "ms", "no", "pl", "pt", "ro", "ru", "sk", "es", "sv", "tr", "uk", "vi"]}, "x-nullable": true}, "authentication_method": {"title": "Authentication method", "type": "string", "enum": ["api_key"], "x-nullable": true}, "websocket_url": {"title": "Websocket url", "description": "WebSocket URL for real-time communication with the agent", "type": "string", "format": "uri", "maxLength": 500, "x-nullable": true}, "websocket_headers": {"title": "Websocket headers", "description": "Headers to be sent to the websocket server", "type": "object", "x-nullable": true}, "workspace": {"title": "Workspace", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}, "knowledge_base": {"title": "Knowledge base", "type": "string", "format": "uuid", "x-nullable": true}, "organization": {"title": "Organization", "description": "Organization this agent definition belongs to", "type": "string", "format": "uuid", "readOnly": true}, "api_key": {"title": "Api key", "description": "API key for the agent", "type": "string", "maxLength": 255, "x-nullable": true}, "observability_provider": {"title": "Observability provider", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}, "model": {"title": "Model", "description": "Model of the agent", "type": "string", "maxLength": 255, "x-nullable": true}, "model_details": {"title": "Model details", "description": "Details of the model", "type": "object", "x-nullable": true}, "livekit_url": {"title": "Livekit url", "type": "string", "maxLength": 500}, "livekit_api_key": {"title": "Livekit api key", "type": "string", "maxLength": 255}, "livekit_api_secret": {"title": "Livekit api secret", "type": "string"}}}, "FetchAssistantRequest": {"required": ["assistant_id", "api_key"], "type": "object", "properties": {"assistant_id": {"title": "Assistant id", "type": "string", "minLength": 1}, "api_key": {"title": "Api key", "type": "string", "minLength": 1}, "agent_id": {"title": "Agent id", "type": "string", "format": "uuid", "x-nullable": true}, "provider": {"title": "Provider", "description": "Voice provider. One of: vapi, retell, eleven_labs, bland, others.", "type": "string", "enum": ["vapi", "retell", "eleven_labs", "bland", "others"], "default": "vapi"}}}, "FetchAssistantResponse": {"type": "object", "properties": {"name": {"title": "Name", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "assistant_id": {"title": "Assistant id", "type": "string", "readOnly": true, "minLength": 1}, "prompt": {"title": "Prompt", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "provider": {"title": "Provider", "type": "string", "readOnly": true, "minLength": 1}, "commit_message": {"title": "Commit message", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}}}, "AgentPromptOptimiserRunList": {"required": ["optimisation_name", "started_at", "optimiser_type", "model"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "optimisation_name": {"title": "Optimisation name", "type": "string", "minLength": 1}, "started_at": {"title": "Started at", "type": "string", "format": "date-time"}, "no_of_trials": {"title": "No of trials", "type": "string", "readOnly": true}, "optimiser_type": {"title": "Optimiser type", "type": "string", "enum": ["random_search", "gepa", "protegi", "bayesian", "metaprompt", "promptwizard"]}, "status": {"title": "Status", "type": "string", "enum": ["pending", "running", "completed", "failed"]}, "error_message": {"title": "Error message", "type": "string", "x-nullable": true}, "configuration": {"title": "Configuration", "type": "object", "x-nullable": true}, "model": {"title": "Model", "description": "LLM model used for the optimiser run", "type": "string", "maxLength": 255, "minLength": 1}}}, "AgentPromptOptimiserRunCreate": {"required": ["name", "test_execution_id", "optimiser_type", "model"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "test_execution_id": {"title": "Test execution id", "type": "string", "format": "uuid"}, "optimiser_type": {"title": "Optimiser type", "type": "string", "enum": ["random_search", "gepa", "protegi", "bayesian", "metaprompt", "promptwizard"]}, "model": {"title": "Model", "description": "LLM model used for the optimiser run", "type": "string", "maxLength": 255, "minLength": 1}, "configuration": {"title": "Configuration", "type": "object", "x-nullable": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}}}, "AgentPromptOptimiserConfiguration": {"type": "object", "properties": {"num_gradients": {"title": "Num gradients", "type": "integer"}, "errors_per_gradient": {"title": "Errors per gradient", "type": "integer"}, "prompts_per_gradient": {"title": "Prompts per gradient", "type": "integer"}, "beam_size": {"title": "Beam size", "type": "integer"}, "num_rounds": {"title": "Num rounds", "type": "integer"}, "num_variations": {"title": "Num variations", "type": "integer"}, "max_metric_calls": {"title": "Max metric calls", "type": "integer"}, "min_examples": {"title": "Min examples", "type": "integer"}, "max_examples": {"title": "Max examples", "type": "integer"}, "n_trials": {"title": "N trials", "type": "integer"}, "task_description": {"title": "Task description", "type": "string"}, "mutate_rounds": {"title": "Mutate rounds", "type": "integer"}, "refine_iterations": {"title": "Refine iterations", "type": "integer"}}, "x-nullable": true}, "AgentPromptOptimiserParameter": {"type": "object", "properties": {"key": {"title": "Key", "type": "string", "readOnly": true, "minLength": 1}, "label": {"title": "Label", "type": "string", "readOnly": true, "minLength": 1}, "value": {"title": "Value", "type": "object", "readOnly": true}, "description": {"title": "Description", "type": "string", "readOnly": true}}}, "AgentPromptOptimiserTrialEvalScore": {"type": "object", "properties": {"score": {"title": "Score", "type": "number", "readOnly": true, "x-nullable": true}, "percentage_change": {"title": "Percentage change", "type": "number", "readOnly": true, "x-nullable": true}}}, "AgentPromptOptimiserTrialTableRow": {"type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "trial": {"title": "Trial", "type": "string", "readOnly": true, "minLength": 1}, "score": {"title": "Score", "type": "number", "readOnly": true, "x-nullable": true}, "score_percentage_change": {"title": "Score percentage change", "type": "number", "readOnly": true, "x-nullable": true}, "prompt": {"title": "Prompt", "type": "string", "readOnly": true, "x-nullable": true}, "is_best": {"title": "Is best", "type": "boolean", "readOnly": true}, "eval_scores": {"title": "Eval scores", "description": "Dynamic eval-config UUID keys are returned as top-level row keys at runtime.", "type": "object", "additionalProperties": {"$ref": "#/definitions/AgentPromptOptimiserTrialEvalScore"}, "readOnly": true}}}, "AgentPromptOptimiserColumnConfig": {"type": "object", "properties": {"id": {"title": "Id", "type": "string", "readOnly": true, "minLength": 1}, "name": {"title": "Name", "type": "string", "readOnly": true, "minLength": 1}, "is_visible": {"title": "Is visible", "type": "boolean", "readOnly": true}}}, "AgentPromptOptimiserRunDetailResult": {"type": "object", "properties": {"optimiser_name": {"title": "Optimiser name", "type": "string", "readOnly": true, "minLength": 1}, "optimiser_type": {"title": "Optimiser type", "type": "string", "readOnly": true, "minLength": 1}, "model": {"title": "Model", "type": "string", "readOnly": true, "minLength": 1}, "provider_logo": {"title": "Provider logo", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "configuration": {"$ref": "#/definitions/AgentPromptOptimiserConfiguration"}, "parameters": {"type": "array", "items": {"$ref": "#/definitions/AgentPromptOptimiserParameter"}, "readOnly": true}, "start_time": {"title": "Start time", "type": "string", "format": "date-time", "readOnly": true}, "status": {"title": "Status", "type": "string", "readOnly": true, "minLength": 1}, "error_message": {"title": "Error message", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "table": {"type": "array", "items": {"$ref": "#/definitions/AgentPromptOptimiserTrialTableRow"}, "readOnly": true}, "column_config": {"type": "array", "items": {"$ref": "#/definitions/AgentPromptOptimiserColumnConfig"}, "readOnly": true}}}, "AgentPromptOptimiserRunDetailResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/AgentPromptOptimiserRunDetailResult"}}}, "AgentPromptOptimiserRun": {"required": ["agent_optimiser", "agent_optimiser_run", "test_execution", "optimiser_type", "model"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "agent_optimiser": {"title": "Agent optimiser", "type": "string", "format": "uuid"}, "agent_optimiser_run": {"title": "Agent optimiser run", "type": "string", "format": "uuid"}, "test_execution": {"title": "Test execution", "type": "string", "format": "uuid"}, "optimiser_type": {"title": "Optimiser type", "type": "string", "enum": ["random_search", "gepa", "protegi", "bayesian", "metaprompt", "promptwizard"]}, "model": {"title": "Model", "description": "LLM model used for the optimiser run", "type": "string", "maxLength": 255, "minLength": 1}, "status": {"title": "Status", "type": "string", "enum": ["pending", "running", "completed", "failed"]}, "result": {"title": "Result", "type": "object", "x-nullable": true}, "configuration": {"title": "Configuration", "type": "object", "x-nullable": true}}}, "AgentPromptOptimiserComponentEvalResult": {"type": "object", "properties": {"score": {"title": "Score", "type": "number", "x-nullable": true}, "reason": {"title": "Reason", "type": "string", "x-nullable": true}}}, "AgentPromptOptimiserIndividualResultMetadata": {"type": "object", "properties": {"input": {"title": "Input", "type": "string", "x-nullable": true}, "output": {"title": "Output", "type": "string", "x-nullable": true}, "component_evals": {"title": "Component evals", "type": "object", "additionalProperties": {"$ref": "#/definitions/AgentPromptOptimiserComponentEvalResult"}}}}, "AgentPromptOptimiserIndividualResult": {"type": "object", "properties": {"score": {"title": "Score", "type": "number", "x-nullable": true}, "reason": {"title": "Reason", "type": "string", "x-nullable": true}, "metadata": {"$ref": "#/definitions/AgentPromptOptimiserIndividualResultMetadata"}}}, "AgentPromptOptimiserRawTrialResult": {"type": "object", "properties": {"prompt": {"title": "Prompt", "type": "string", "x-nullable": true}, "average_score": {"title": "Average score", "type": "number", "x-nullable": true}, "is_baseline": {"title": "Is baseline", "type": "boolean"}, "individual_results": {"title": "Individual results", "type": "object", "additionalProperties": {"$ref": "#/definitions/AgentPromptOptimiserIndividualResult"}}}}, "AgentPromptOptimiserRawResult": {"type": "object", "properties": {"history": {"type": "array", "items": {"$ref": "#/definitions/AgentPromptOptimiserRawTrialResult"}}, "best_prompt": {"title": "Best prompt", "type": "string", "x-nullable": true}, "final_score": {"title": "Final score", "type": "number", "x-nullable": true}, "best_score": {"title": "Best score", "type": "number", "x-nullable": true}, "trials_run": {"title": "Trials run", "type": "integer"}, "error": {"title": "Error", "type": "string", "x-nullable": true}}, "x-nullable": true}, "AgentPromptOptimiserRunModelResponse": {"type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "agent_optimiser": {"title": "Agent optimiser", "type": "string", "format": "uuid", "readOnly": true}, "agent_optimiser_run": {"title": "Agent optimiser run", "type": "string", "format": "uuid", "readOnly": true}, "test_execution": {"title": "Test execution", "type": "string", "format": "uuid", "readOnly": true}, "optimiser_type": {"title": "Optimiser type", "type": "string", "enum": ["random_search", "gepa", "protegi", "bayesian", "metaprompt", "promptwizard"], "readOnly": true}, "model": {"title": "Model", "type": "string", "readOnly": true, "minLength": 1}, "status": {"title": "Status", "type": "string", "enum": ["pending", "running", "completed", "failed"], "readOnly": true}, "result": {"$ref": "#/definitions/AgentPromptOptimiserRawResult"}, "configuration": {"$ref": "#/definitions/AgentPromptOptimiserConfiguration"}}}, "AgentPromptOptimiserGraphEvaluation": {"type": "object", "properties": {"trial_id": {"title": "Trial id", "type": "string", "format": "uuid", "readOnly": true}, "trial_number": {"title": "Trial number", "type": "integer", "readOnly": true}, "trial_name": {"title": "Trial name", "type": "string", "readOnly": true, "minLength": 1}, "score": {"title": "Score", "type": "number", "readOnly": true, "x-nullable": true}}}, "AgentPromptOptimiserGraphSeries": {"type": "object", "properties": {"name": {"title": "Name", "type": "string", "readOnly": true, "minLength": 1}, "evaluations": {"type": "array", "items": {"$ref": "#/definitions/AgentPromptOptimiserGraphEvaluation"}, "readOnly": true}}}, "AgentPromptOptimiserGraphResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"title": "Result", "description": "Dictionary keyed by eval-config UUID.", "type": "object", "additionalProperties": {"$ref": "#/definitions/AgentPromptOptimiserGraphSeries"}}}}, "AgentPromptOptimiserRunStep": {"required": ["name", "step_number"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "description": {"title": "Description", "type": "string", "x-nullable": true}, "status": {"title": "Status", "type": "string", "enum": ["pending", "running", "completed", "failed"]}, "metadata": {"title": "Metadata", "type": "object", "x-nullable": true}, "step_number": {"title": "Step number", "type": "integer", "maximum": 2147483647, "minimum": -2147483648}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}}}, "AgentPromptOptimiserRunStepsResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"type": "array", "items": {"$ref": "#/definitions/AgentPromptOptimiserRunStep"}}}}, "AgentPromptOptimiserTrialEvaluationRow": {"type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "eval_name": {"title": "Eval name", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "eval_template_description": {"title": "Eval template description", "type": "string", "readOnly": true, "x-nullable": true}, "score": {"title": "Score", "type": "number", "readOnly": true, "x-nullable": true}, "score_percentage_change": {"title": "Score percentage change", "type": "number", "readOnly": true, "x-nullable": true}}}, "AgentPromptOptimiserTrialEvaluationsResult": {"type": "object", "properties": {"trial_name": {"title": "Trial name", "type": "string", "readOnly": true, "minLength": 1}, "optimisation_name": {"title": "Optimisation name", "type": "string", "readOnly": true, "minLength": 1}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "score": {"title": "Score", "type": "number", "readOnly": true, "x-nullable": true}, "score_percentage_change": {"title": "Score percentage change", "type": "number", "readOnly": true, "x-nullable": true}, "table": {"type": "array", "items": {"$ref": "#/definitions/AgentPromptOptimiserTrialEvaluationRow"}, "readOnly": true}, "column_config": {"type": "array", "items": {"$ref": "#/definitions/AgentPromptOptimiserColumnConfig"}, "readOnly": true}}}, "AgentPromptOptimiserTrialEvaluationsResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/AgentPromptOptimiserTrialEvaluationsResult"}}}, "AgentPromptOptimiserTrialPromptResult": {"type": "object", "properties": {"trial_name": {"title": "Trial name", "type": "string", "readOnly": true, "minLength": 1}, "optimisation_name": {"title": "Optimisation name", "type": "string", "readOnly": true, "minLength": 1}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "score": {"title": "Score", "type": "number", "readOnly": true, "x-nullable": true}, "score_percentage_change": {"title": "Score percentage change", "type": "number", "readOnly": true, "x-nullable": true}, "trial_prompt": {"title": "Trial prompt", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "base_prompt": {"title": "Base prompt", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}}}, "AgentPromptOptimiserTrialPromptResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/AgentPromptOptimiserTrialPromptResult"}}}, "AgentPromptOptimiserTrialScenarioRow": {"type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "input_text": {"title": "Input text", "type": "string", "readOnly": true}, "output_text": {"title": "Output text", "type": "string", "readOnly": true}, "eval_scores": {"title": "Eval scores", "description": "Dynamic eval-config UUID keys are returned as top-level row keys at runtime.", "type": "object", "additionalProperties": {"type": "number", "x-nullable": true}, "readOnly": true}}}, "AgentPromptOptimiserTrialScenariosResult": {"type": "object", "properties": {"trial_name": {"title": "Trial name", "type": "string", "readOnly": true, "minLength": 1}, "optimisation_name": {"title": "Optimisation name", "type": "string", "readOnly": true, "minLength": 1}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "score": {"title": "Score", "type": "number", "readOnly": true, "x-nullable": true}, "score_percentage_change": {"title": "Score percentage change", "type": "number", "readOnly": true, "x-nullable": true}, "table": {"type": "array", "items": {"$ref": "#/definitions/AgentPromptOptimiserTrialScenarioRow"}, "readOnly": true}, "column_config": {"type": "array", "items": {"$ref": "#/definitions/AgentPromptOptimiserColumnConfig"}, "readOnly": true}}}, "AgentPromptOptimiserTrialScenariosResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/AgentPromptOptimiserTrialScenariosResult"}}}, "ALKSimulateRecordingUploadResult": {"required": ["recording_url", "object_key"], "type": "object", "properties": {"recording_url": {"title": "Recording url", "type": "string", "format": "uri", "maxLength": 1024, "minLength": 1}, "object_key": {"title": "Object key", "type": "string", "minLength": 1}}}, "ALKSimulateRecordingUploadResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/ALKSimulateRecordingUploadResult"}}}, "ALKSimulateTranscriptSegment": {"required": ["speaker_role", "content"], "type": "object", "properties": {"speaker_role": {"title": "Speaker role", "type": "string", "enum": ["user", "assistant", "system", "tool_calls", "tool_call_result", "unknown"]}, "content": {"title": "Content", "type": "string"}, "start_time_ms": {"title": "Start time ms", "type": "integer", "default": 0, "minimum": 0}, "end_time_ms": {"title": "End time ms", "type": "integer", "default": 0, "minimum": 0}, "confidence_score": {"title": "Confidence score", "type": "number", "maximum": 1.0, "minimum": 0.0, "x-nullable": true}, "latency_ms": {"title": "Latency ms", "type": "integer", "minimum": 0, "x-nullable": true}, "tool_calls": {"title": "Tool calls", "type": "object"}, "tool_call_id": {"title": "Tool call id", "type": "string", "maxLength": 255}}}, "ALKSimulateCostBreakdown": {"type": "object", "properties": {"stt_cost_cents": {"title": "Stt cost cents", "type": "integer", "x-nullable": true}, "llm_cost_cents": {"title": "Llm cost cents", "type": "integer", "x-nullable": true}, "tts_cost_cents": {"title": "Tts cost cents", "type": "integer", "x-nullable": true}, "storage_cost_cents": {"title": "Storage cost cents", "type": "number", "x-nullable": true}, "cost_cents": {"title": "Cost cents", "type": "integer", "x-nullable": true}}}, "ALKSimulateResult": {"required": ["status"], "type": "object", "properties": {"status": {"title": "Status", "type": "string", "enum": ["completed", "failed", "cancelled"]}, "started_at": {"title": "Started at", "type": "string", "format": "date-time", "x-nullable": true}, "ended_at": {"title": "Ended at", "type": "string", "format": "date-time", "x-nullable": true}, "duration_seconds": {"title": "Duration seconds", "type": "integer", "minimum": 0, "x-nullable": true}, "ended_reason": {"title": "Ended reason", "type": "string", "maxLength": 10000}, "error_message": {"title": "Error message", "type": "string"}, "call_summary": {"title": "Call summary", "type": "string"}, "result_digest": {"title": "Result digest", "type": "string", "pattern": "^sha256:[0-9a-f]{64}$", "minLength": 1}, "artifact_manifest_digest": {"title": "Artifact manifest digest", "type": "string", "pattern": "^sha256:[0-9a-f]{64}$", "minLength": 1}, "transcript": {"type": "array", "items": {"$ref": "#/definitions/ALKSimulateTranscriptSegment"}}, "recording_url": {"title": "Recording url", "type": "string", "format": "uri", "maxLength": 500}, "stereo_recording_url": {"title": "Stereo recording url", "type": "string", "format": "uri", "maxLength": 500}, "costs": {"$ref": "#/definitions/ALKSimulateCostBreakdown"}, "provider_call_data": {"title": "Provider call data", "type": "object"}, "call_metadata": {"title": "Call metadata", "type": "object"}}}, "ALKSimulateResultOutcome": {"required": ["call_execution_id", "status", "eval_dispatched"], "type": "object", "properties": {"call_execution_id": {"title": "Call execution id", "type": "string", "format": "uuid"}, "status": {"title": "Status", "type": "string", "minLength": 1}, "eval_dispatched": {"title": "Eval dispatched", "type": "boolean"}}}, "ALKSimulateResultResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/ALKSimulateResultOutcome"}}}, "ALKSimulateStatusUpdate": {"required": ["status"], "type": "object", "properties": {"status": {"title": "Status", "type": "string", "enum": ["ongoing"]}}}, "ALKSimulateStatusUpdateOutcome": {"required": ["updated"], "type": "object", "properties": {"updated": {"title": "Updated", "type": "boolean"}}}, "ALKSimulateStatusUpdateResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/ALKSimulateStatusUpdateOutcome"}}}, "ALKSimulateProvisionPersona": {"type": "object", "properties": {"name": {"title": "Name", "type": "string", "maxLength": 255}, "scenario_name": {"title": "Scenario name", "type": "string", "maxLength": 255}, "role": {"title": "Role", "type": "string", "maxLength": 255}, "situation": {"title": "Situation", "type": "string"}, "outcome": {"title": "Outcome", "type": "string"}, "persona": {"title": "Persona", "type": "object"}}}, "ALKSimulateProvisionRunTestRequest": {"required": ["name"], "type": "object", "properties": {"name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "modality": {"title": "Modality", "type": "string", "enum": ["text", "chat", "voice"], "default": "text"}, "description": {"title": "Description", "type": "string"}, "personas": {"type": "array", "items": {"$ref": "#/definitions/ALKSimulateProvisionPersona"}}, "scenario_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}}, "agent_definition_id": {"title": "Agent definition id", "type": "string", "format": "uuid", "x-nullable": true}, "agent_name": {"title": "Agent name", "type": "string", "maxLength": 255}, "enable_tool_evaluation": {"title": "Enable tool evaluation", "type": "boolean", "default": false}}}, "ALKSimulateProvisionResult": {"required": ["run_test_id", "scenario_ids", "agent_definition_id"], "type": "object", "properties": {"run_test_id": {"title": "Run test id", "type": "string", "format": "uuid"}, "scenario_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}}, "agent_definition_id": {"title": "Agent definition id", "type": "string", "format": "uuid"}}}, "ALKSimulateProvisionResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/ALKSimulateProvisionResult"}}}, "ALKSimulateStartTestExecutionRequest": {"type": "object", "properties": {"scenario_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}}, "scenario_selectors": {"type": "array", "items": {"type": "object", "additionalProperties": {"type": "string", "maxLength": 255}}, "maxItems": 100}, "simulator_agent_id": {"title": "Simulator agent id", "type": "string", "format": "uuid", "x-nullable": true}, "harness_job_id": {"title": "Harness job id", "type": "string", "format": "uuid", "x-nullable": true}}}, "ALKSimulateStartTestExecutionResult": {"required": ["test_execution_id", "run_test_id", "scenario_ids", "total_scenarios", "status"], "type": "object", "properties": {"test_execution_id": {"title": "Test execution id", "type": "string", "format": "uuid"}, "run_test_id": {"title": "Run test id", "type": "string", "format": "uuid"}, "scenario_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}}, "total_scenarios": {"title": "Total scenarios", "type": "integer"}, "status": {"title": "Status", "type": "string", "minLength": 1}}}, "ALKSimulateStartTestExecutionResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/ALKSimulateStartTestExecutionResult"}}}, "ALKSimulateBatchCreateRequest": {"type": "object", "properties": {"count": {"title": "Count", "type": "integer", "minimum": 1}}}, "ALKSimulateBatchCreateResult": {"required": ["call_execution_ids", "has_more", "batched_scenarios"], "type": "object", "properties": {"call_execution_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}}, "has_more": {"title": "Has more", "type": "boolean"}, "batched_scenarios": {"type": "array", "items": {"type": "string", "format": "uuid"}}}}, "ALKSimulateBatchCreateResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/ALKSimulateBatchCreateResult"}}}, "CallExecutionErrorResponse": {"type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": false}, "type": {"title": "Type", "type": "string", "enum": ["validation_error", "authentication_error", "payment_required", "entitlement_error", "permission_error", "not_found", "conflict", "client_error", "rate_limit", "server_error", "service_unavailable", "timeout", "api_error"], "x-nullable": true}, "code": {"title": "Code", "type": "string", "x-nullable": true}, "detail": {"title": "Detail", "type": "string", "x-nullable": true}, "result": {"title": "Result", "type": "string", "minLength": 1, "x-nullable": true}, "message": {"title": "Message", "type": "string", "minLength": 1, "x-nullable": true}, "error": {"title": "Error", "type": "string", "x-nullable": true}, "attr": {"title": "Attr", "type": "string", "x-nullable": true}, "details": {"title": "Details", "type": "object", "additionalProperties": {"type": "array", "items": {"type": "string", "minLength": 1}}}}}, "HarnessEnvironment": {"required": ["id", "name", "description", "domain", "source_kind", "agent_type", "status", "stage", "scenario_count", "sub_goals_count", "tools_count", "runs_count", "last_updated", "created_at"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "description": {"title": "Description", "type": "string", "minLength": 1, "x-nullable": true}, "domain": {"title": "Domain", "type": "string", "minLength": 1, "x-nullable": true}, "source_kind": {"title": "Source kind", "type": "string", "minLength": 1}, "agent_type": {"title": "Agent type", "type": "string", "enum": ["voice", "chat"]}, "status": {"title": "Status", "type": "string", "enum": ["building", "running", "completed", "failed"]}, "stage": {"title": "Stage", "type": "string", "minLength": 1}, "scenario_count": {"title": "Scenario count", "type": "integer"}, "sub_goals_count": {"title": "Sub goals count", "type": "integer", "x-nullable": true}, "tools_count": {"title": "Tools count", "type": "integer", "x-nullable": true}, "runs_count": {"title": "Runs count", "type": "integer"}, "last_updated": {"title": "Last updated", "type": "string", "format": "date-time", "x-nullable": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time"}}}, "HarnessEnvironmentListResponse": {"required": ["count", "next", "previous", "total_pages", "current_page", "results"], "type": "object", "properties": {"count": {"title": "Count", "type": "integer"}, "next": {"title": "Next", "type": "string", "minLength": 1, "x-nullable": true}, "previous": {"title": "Previous", "type": "string", "minLength": 1, "x-nullable": true}, "total_pages": {"title": "Total pages", "type": "integer"}, "current_page": {"title": "Current page", "type": "integer"}, "results": {"type": "array", "items": {"$ref": "#/definitions/HarnessEnvironment"}}}}, "HarnessEnvironmentRunLink": {"required": ["run_test_id", "test_execution_id", "simulation_url"], "type": "object", "properties": {"run_test_id": {"title": "Run test id", "type": "string", "format": "uuid", "x-nullable": true}, "test_execution_id": {"title": "Test execution id", "type": "string", "format": "uuid", "x-nullable": true}, "simulation_url": {"title": "Simulation url", "type": "string", "minLength": 1, "x-nullable": true}}}, "HarnessEnvironmentAgent": {"required": ["id", "name", "provider", "versions_count", "active_version"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1, "x-nullable": true}, "provider": {"title": "Provider", "type": "string", "minLength": 1, "x-nullable": true}, "versions_count": {"title": "Versions count", "type": "integer"}, "active_version": {"title": "Active version", "type": "string", "minLength": 1, "x-nullable": true}}, "x-nullable": true}, "HarnessEnvironmentOverview": {"required": ["id", "name", "description", "domain", "source_kind", "agent_type", "status", "stage", "scenario_count", "sub_goals_count", "tools_count", "runs_count", "last_updated", "created_at", "flows_count", "guardrails_count", "personas_count", "evaluations_count", "run", "agent"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "description": {"title": "Description", "type": "string", "minLength": 1, "x-nullable": true}, "domain": {"title": "Domain", "type": "string", "minLength": 1, "x-nullable": true}, "source_kind": {"title": "Source kind", "type": "string", "minLength": 1}, "agent_type": {"title": "Agent type", "type": "string", "enum": ["voice", "chat"]}, "status": {"title": "Status", "type": "string", "enum": ["building", "running", "completed", "failed"]}, "stage": {"title": "Stage", "type": "string", "minLength": 1}, "scenario_count": {"title": "Scenario count", "type": "integer"}, "sub_goals_count": {"title": "Sub goals count", "type": "integer", "x-nullable": true}, "tools_count": {"title": "Tools count", "type": "integer", "x-nullable": true}, "runs_count": {"title": "Runs count", "type": "integer"}, "last_updated": {"title": "Last updated", "type": "string", "format": "date-time", "x-nullable": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time"}, "flows_count": {"title": "Flows count", "type": "integer", "x-nullable": true}, "guardrails_count": {"title": "Guardrails count", "type": "integer", "x-nullable": true}, "personas_count": {"title": "Personas count", "type": "integer", "x-nullable": true}, "evaluations_count": {"title": "Evaluations count", "type": "integer"}, "run": {"$ref": "#/definitions/HarnessEnvironmentRunLink"}, "agent": {"$ref": "#/definitions/HarnessEnvironmentAgent"}}}, "HarnessEnvironmentAmendment": {"required": ["subject", "note"], "type": "object", "properties": {"subject": {"title": "Subject", "type": "string"}, "note": {"title": "Note", "type": "string", "minLength": 1}}}, "HarnessEnvironmentCatalogueSubGoal": {"required": ["name", "what", "kind", "claim", "check"], "type": "object", "properties": {"name": {"title": "Name", "type": "string", "minLength": 1}, "what": {"title": "What", "type": "string"}, "kind": {"title": "Kind", "type": "string", "enum": ["checkpoint", "judge"]}, "claim": {"title": "Claim", "type": "string"}, "check": {"title": "Check", "type": "string"}}}, "HarnessEnvironmentEndConditions": {"required": ["max_turns", "max_duration_seconds", "clock", "ended_reasons"], "type": "object", "properties": {"max_turns": {"title": "Max turns", "type": "integer", "x-nullable": true}, "max_duration_seconds": {"title": "Max duration seconds", "type": "integer", "x-nullable": true}, "clock": {"title": "Clock", "type": "string", "enum": ["real-time", "stepped"]}, "ended_reasons": {"type": "array", "items": {"type": "string", "minLength": 1}}}}, "HarnessEnvironmentProvenance": {"required": ["source", "built_by", "attempt", "snapshot", "digests", "authored_at"], "type": "object", "properties": {"source": {"title": "Source", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}}, "built_by": {"title": "Built by", "type": "string", "enum": ["alk", "repository"], "x-nullable": true}, "attempt": {"title": "Attempt", "type": "integer", "x-nullable": true}, "snapshot": {"title": "Snapshot", "type": "string", "minLength": 1, "x-nullable": true}, "digests": {"title": "Digests", "type": "object", "additionalProperties": {"type": "string", "minLength": 1, "x-nullable": true}}, "authored_at": {"title": "Authored at", "type": "object", "additionalProperties": {"type": "string", "minLength": 1, "x-nullable": true}}}}, "HarnessEnvironmentContract": {"required": ["amendments", "sub_goals", "end_conditions", "provenance"], "type": "object", "properties": {"agent": {"title": "Agent", "type": "string", "x-nullable": true}, "one_liner": {"title": "One liner", "type": "string", "x-nullable": true}, "modality": {"title": "Modality", "type": "string", "x-nullable": true}, "call_direction": {"title": "Call direction", "type": "string", "x-nullable": true}, "system_prompt_excerpt": {"title": "System prompt excerpt", "type": "string", "x-nullable": true}, "tools": {"type": "array", "items": {"type": "object"}, "x-nullable": true}, "real_use_cases": {"type": "array", "items": {"type": "string", "minLength": 1}, "x-nullable": true}, "hard_constraints": {"type": "array", "items": {"type": "string", "minLength": 1}, "x-nullable": true}, "runtime": {"title": "Runtime", "type": "object", "x-nullable": true}, "dependencies": {"type": "array", "items": {"type": "object"}, "x-nullable": true}, "runtime_dependencies": {"type": "array", "items": {"type": "object"}, "x-nullable": true}, "implementation": {"title": "Implementation", "type": "string", "x-nullable": true}, "tool_entrypoints": {"type": "array", "items": {"type": "object"}, "x-nullable": true}, "data_store": {"title": "Data store", "type": "object", "x-nullable": true}, "open_questions": {"type": "array", "items": {"type": "string", "minLength": 1}, "x-nullable": true}, "amendments": {"type": "array", "items": {"$ref": "#/definitions/HarnessEnvironmentAmendment"}}, "sub_goals": {"type": "array", "items": {"$ref": "#/definitions/HarnessEnvironmentCatalogueSubGoal"}}, "end_conditions": {"$ref": "#/definitions/HarnessEnvironmentEndConditions"}, "notes": {"title": "Notes", "type": "string", "x-nullable": true}, "chosen_evals": {"type": "array", "items": {"type": "string", "minLength": 1}, "x-nullable": true}, "provenance": {"$ref": "#/definitions/HarnessEnvironmentProvenance"}}, "x-nullable": true}, "HarnessEnvironmentPersona": {"required": ["scenario_keys"], "type": "object", "properties": {"name": {"title": "Name", "type": "string", "x-nullable": true}, "scenario_keys": {"type": "array", "items": {"type": "string", "minLength": 1}}}}, "HarnessEnvironmentStoreTable": {"required": ["name", "rows"], "type": "object", "properties": {"name": {"title": "Name", "type": "string", "minLength": 1}, "rows": {"title": "Rows", "type": "integer"}}}, "HarnessEnvironmentStore": {"required": ["capability", "engine", "strategy", "tables", "total_rows"], "type": "object", "properties": {"capability": {"title": "Capability", "type": "string"}, "engine": {"title": "Engine", "type": "string"}, "strategy": {"title": "Strategy", "type": "string"}, "tables": {"type": "array", "items": {"$ref": "#/definitions/HarnessEnvironmentStoreTable"}}, "total_rows": {"title": "Total rows", "type": "integer"}}}, "HarnessEnvironmentWorld": {"required": ["runtime", "personas", "stores"], "type": "object", "properties": {"runtime": {"title": "Runtime", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}}, "personas": {"type": "array", "items": {"$ref": "#/definitions/HarnessEnvironmentPersona"}}, "stores": {"type": "array", "items": {"$ref": "#/definitions/HarnessEnvironmentStore"}}}, "x-nullable": true}, "HarnessEnvironmentSubGoal": {"required": ["name"], "type": "object", "properties": {"name": {"title": "Name", "type": "string", "minLength": 1}, "what": {"title": "What", "type": "string"}, "kind": {"title": "Kind", "type": "string", "enum": ["checkpoint", "judge"]}, "claim": {"title": "Claim", "type": "string"}}}, "HarnessEnvironmentScenario": {"required": ["scenario_key", "scenario_id", "name", "instruction", "use_case", "branch", "tests", "fixture", "steps", "sub_goals", "persona", "situation", "outcome", "status", "call_execution_id"], "type": "object", "properties": {"scenario_key": {"title": "Scenario key", "type": "string", "minLength": 1}, "scenario_id": {"title": "Scenario id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string"}, "instruction": {"title": "Instruction", "type": "string"}, "use_case": {"title": "Use case", "type": "string", "minLength": 1, "x-nullable": true}, "branch": {"title": "Branch", "type": "string", "minLength": 1, "x-nullable": true}, "tests": {"title": "Tests", "type": "string", "minLength": 1, "x-nullable": true}, "fixture": {"title": "Fixture", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}, "x-nullable": true}, "steps": {"title": "Steps", "type": "integer", "x-nullable": true}, "sub_goals": {"type": "array", "items": {"$ref": "#/definitions/HarnessEnvironmentSubGoal"}}, "persona": {"title": "Persona", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}, "x-nullable": true}, "situation": {"title": "Situation", "type": "string", "minLength": 1, "x-nullable": true}, "outcome": {"title": "Outcome", "type": "string", "minLength": 1, "x-nullable": true}, "status": {"title": "Status", "type": "string", "minLength": 1}, "call_execution_id": {"title": "Call execution id", "type": "string", "format": "uuid", "x-nullable": true}}}, "HarnessEnvironmentEvalInput": {"required": ["key", "source", "label"], "type": "object", "properties": {"key": {"title": "Key", "type": "string", "minLength": 1}, "source": {"title": "Source", "type": "string", "minLength": 1}, "label": {"title": "Label", "type": "string", "minLength": 1}}}, "HarnessEnvironmentSelectedEval": {"required": ["name", "description", "source", "tags", "required_keys", "agent_type", "modality", "credits_per_run", "charges_judge_tokens", "inputs", "id", "runnable", "editable"], "type": "object", "properties": {"name": {"title": "Name", "type": "string", "minLength": 1}, "description": {"title": "Description", "type": "string"}, "source": {"title": "Source", "type": "string", "enum": ["system", "custom"]}, "tags": {"type": "array", "items": {"type": "string", "minLength": 1}}, "required_keys": {"type": "array", "items": {"type": "string", "minLength": 1}}, "agent_type": {"title": "Agent type", "type": "string", "enum": ["voice", "chat"]}, "modality": {"title": "Modality", "type": "string", "enum": ["voice", "text", "any"]}, "credits_per_run": {"title": "Credits per run", "type": "number"}, "charges_judge_tokens": {"title": "Charges judge tokens", "type": "boolean"}, "inputs": {"type": "array", "items": {"$ref": "#/definitions/HarnessEnvironmentEvalInput"}}, "id": {"title": "Id", "type": "string", "format": "uuid"}, "runnable": {"title": "Runnable", "type": "boolean"}, "editable": {"title": "Editable", "type": "boolean"}}}, "HarnessEnvironmentResult": {"required": ["scenario_key", "status", "attempt_number", "evaluations", "coverage"], "type": "object", "properties": {"scenario_key": {"title": "Scenario key", "type": "string", "minLength": 1}, "status": {"title": "Status", "type": "string", "minLength": 1}, "attempt_number": {"title": "Attempt number", "type": "integer"}, "evaluations": {"type": "array", "items": {"type": "object"}}, "coverage": {"title": "Coverage", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}}}}, "HarnessEnvironmentEvaluations": {"required": ["selected", "results"], "type": "object", "properties": {"selected": {"type": "array", "items": {"$ref": "#/definitions/HarnessEnvironmentSelectedEval"}}, "results": {"type": "array", "items": {"$ref": "#/definitions/HarnessEnvironmentResult"}}}}, "HarnessEnvironmentCredentialFile": {"required": ["environment_name"], "type": "object", "properties": {"environment_name": {"title": "Environment name", "type": "string", "minLength": 1}}}, "HarnessEnvironmentAgentSettings": {"required": ["connector", "mode", "call_direction", "config", "secret_refs", "secrets", "credential_files"], "type": "object", "properties": {"connector": {"title": "Connector", "type": "string", "minLength": 1, "x-nullable": true}, "mode": {"title": "Mode", "type": "string", "minLength": 1, "x-nullable": true}, "call_direction": {"title": "Call direction", "type": "string", "minLength": 1, "x-nullable": true}, "config": {"title": "Config", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}}, "secret_refs": {"type": "array", "items": {"type": "string", "minLength": 1}}, "secrets": {"type": "array", "items": {"type": "string", "minLength": 1}}, "credential_files": {"type": "array", "items": {"$ref": "#/definitions/HarnessEnvironmentCredentialFile"}}}}, "HarnessEnvironmentSettings": {"required": ["schema_version", "source", "agent", "runtime", "security", "artifacts", "scenario_count", "seed", "enable_tool_evaluation"], "type": "object", "properties": {"schema_version": {"title": "Schema version", "type": "string", "minLength": 1, "x-nullable": true}, "source": {"title": "Source", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}}, "agent": {"$ref": "#/definitions/HarnessEnvironmentAgentSettings"}, "runtime": {"title": "Runtime", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}, "x-nullable": true}, "security": {"title": "Security", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}, "x-nullable": true}, "artifacts": {"title": "Artifacts", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}, "x-nullable": true}, "scenario_count": {"title": "Scenario count", "type": "integer", "x-nullable": true}, "seed": {"title": "Seed", "type": "integer", "x-nullable": true}, "enable_tool_evaluation": {"title": "Enable tool evaluation", "type": "boolean"}}}, "HarnessEnvironmentDetail": {"required": ["id", "overview", "contract", "world", "scenarios", "evaluations", "settings"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "overview": {"$ref": "#/definitions/HarnessEnvironmentOverview"}, "contract": {"$ref": "#/definitions/HarnessEnvironmentContract"}, "world": {"$ref": "#/definitions/HarnessEnvironmentWorld"}, "scenarios": {"type": "array", "items": {"$ref": "#/definitions/HarnessEnvironmentScenario"}}, "evaluations": {"$ref": "#/definitions/HarnessEnvironmentEvaluations"}, "settings": {"$ref": "#/definitions/HarnessEnvironmentSettings"}}}, "HarnessEnvironmentRename": {"required": ["name"], "type": "object", "properties": {"name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}}}, "HarnessEnvironmentAddEvaluation": {"required": ["name"], "type": "object", "properties": {"name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}}}, "HarnessEnvironmentOfferedEval": {"required": ["name", "description", "source", "tags", "required_keys", "agent_type", "modality", "credits_per_run", "charges_judge_tokens", "inputs"], "type": "object", "properties": {"name": {"title": "Name", "type": "string", "minLength": 1}, "description": {"title": "Description", "type": "string"}, "source": {"title": "Source", "type": "string", "enum": ["system", "custom"]}, "tags": {"type": "array", "items": {"type": "string", "minLength": 1}}, "required_keys": {"type": "array", "items": {"type": "string", "minLength": 1}}, "agent_type": {"title": "Agent type", "type": "string", "enum": ["voice", "chat"]}, "modality": {"title": "Modality", "type": "string", "enum": ["voice", "text", "any"]}, "credits_per_run": {"title": "Credits per run", "type": "number"}, "charges_judge_tokens": {"title": "Charges judge tokens", "type": "boolean"}, "inputs": {"type": "array", "items": {"$ref": "#/definitions/HarnessEnvironmentEvalInput"}}}}, "HarnessEnvironmentAvailableEvals": {"required": ["evaluations"], "type": "object", "properties": {"evaluations": {"type": "array", "items": {"$ref": "#/definitions/HarnessEnvironmentOfferedEval"}}}}, "HarnessEnvironmentToolCallEvaluation": {"required": ["enable_tool_evaluation"], "type": "object", "properties": {"enable_tool_evaluation": {"title": "Enable tool evaluation", "type": "boolean"}}}, "HarnessEnvironmentEvalEdit": {"type": "object", "properties": {"config": {"title": "Config", "description": "Updated evaluation configuration parameters.", "type": "object", "x-nullable": true, "additionalProperties": true}, "mapping": {"title": "Mapping", "description": "Updated field mapping between test data and evaluation inputs.", "type": "object", "x-nullable": true, "additionalProperties": true}, "model": {"title": "Model", "description": "Model to use for evaluations.", "type": "string", "minLength": 1, "x-nullable": true}, "error_localizer": {"title": "Error localizer", "description": "Enable granular error localization in evaluation results.", "type": "boolean"}, "kb_id": {"title": "Kb id", "description": "UUID of a knowledge base to use for grounding. Pass null to clear. Switching template_id without providing an explicit kb_id will clear the KB association.", "type": "string", "format": "uuid", "x-nullable": true}, "filters": {"description": "Updated canonical filter list to restrict which test results are evaluated.", "type": "array", "items": {"type": "object", "properties": {"column_id": {"type": "string", "description": "Column or attribute id to filter on."}, "property_id": {"type": "string", "description": "Optional stable namespaced Property Registry identity."}, "display_name": {"type": "string", "description": "Optional UI label for chips and saved views."}, "source": {"type": "string", "description": "Optional source surface for mixed-source filters, for example traces, datasets, or simulation."}, "output_type": {"type": "string", "description": "Optional metric output type metadata used by eval and annotation filters."}, "filter_config": {"type": "object", "properties": {"filter_type": {"type": "string", "description": "Canonical field type, for example text, number, boolean, datetime, categorical, thumbs, annotator, array, or map. Legacy json is value-sensitive for SPAN_ATTRIBUTE filters: list values become array and object values become map."}, "filter_op": {"type": "string", "description": "Canonical operator from api_contracts/filter_contract.json, for example equals, not_equals, in, not_in, between, not_between, is_null, or is_not_null."}, "filter_value": {"description": "Scalar, list, range tuple, boolean, or null depending on filter_op and filter_type."}, "col_type": {"type": "string", "description": "Column family such as SYSTEM_METRIC, SPAN_ATTRIBUTE, EVAL_METRIC, ANNOTATION, or NORMAL."}, "attribute_value_types": {"type": "array", "items": {"type": "string", "enum": ["string", "number", "boolean"], "x-nullable": true}, "description": "Optional storage-family provenance aligned one-for-one with filter_value for mixed SPAN_ATTRIBUTE in/not_in filters. Null entries retain filter_type semantics for manually entered values."}}, "required": ["filter_type", "filter_op"], "additionalProperties": false}}, "required": ["column_id", "filter_config"], "additionalProperties": false}, "x-nullable": true}, "name": {"title": "Name", "description": "Updated name for the evaluation configuration.", "type": "string", "minLength": 1}}}, "SimulateEvalConfigResponse": {"type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "config": {"title": "Config", "type": "object", "readOnly": true, "x-nullable": true, "additionalProperties": true}, "mapping": {"title": "Mapping", "type": "object", "readOnly": true, "x-nullable": true, "additionalProperties": true}, "filters": {"type": "array", "items": {"type": "object", "properties": {"column_id": {"type": "string", "description": "Column or attribute id to filter on."}, "property_id": {"type": "string", "description": "Optional stable namespaced Property Registry identity."}, "display_name": {"type": "string", "description": "Optional UI label for chips and saved views."}, "source": {"type": "string", "description": "Optional source surface for mixed-source filters, for example traces, datasets, or simulation."}, "output_type": {"type": "string", "description": "Optional metric output type metadata used by eval and annotation filters."}, "filter_config": {"type": "object", "properties": {"filter_type": {"type": "string", "description": "Canonical field type, for example text, number, boolean, datetime, categorical, thumbs, annotator, array, or map. Legacy json is value-sensitive for SPAN_ATTRIBUTE filters: list values become array and object values become map."}, "filter_op": {"type": "string", "description": "Canonical operator from api_contracts/filter_contract.json, for example equals, not_equals, in, not_in, between, not_between, is_null, or is_not_null."}, "filter_value": {"description": "Scalar, list, range tuple, boolean, or null depending on filter_op and filter_type."}, "col_type": {"type": "string", "description": "Column family such as SYSTEM_METRIC, SPAN_ATTRIBUTE, EVAL_METRIC, ANNOTATION, or NORMAL."}, "attribute_value_types": {"type": "array", "items": {"type": "string", "enum": ["string", "number", "boolean"], "x-nullable": true}, "description": "Optional storage-family provenance aligned one-for-one with filter_value for mixed SPAN_ATTRIBUTE in/not_in filters. Null entries retain filter_type semantics for manually entered values."}}, "required": ["filter_type", "filter_op"], "additionalProperties": false}}, "required": ["column_id", "filter_config"], "additionalProperties": false}, "readOnly": true, "default": []}, "error_localizer": {"title": "Error localizer", "type": "boolean", "readOnly": true}, "model": {"title": "Model", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "status": {"title": "Status", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "eval_group": {"title": "Eval group", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "template_id": {"title": "Template id", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}, "eval_type": {"title": "Eval type", "type": "string", "readOnly": true, "minLength": 1}, "regradable": {"title": "Regradable", "type": "boolean", "readOnly": true}, "editable": {"title": "Editable", "type": "boolean", "readOnly": true}}}, "HarnessRunCreate": {"required": ["scenario_ids"], "type": "object", "properties": {"scenario_ids": {"type": "array", "items": {"type": "string", "maxLength": 255, "minLength": 1}, "maxItems": 1000}, "trials": {"title": "Trials", "type": "integer", "default": 1, "maximum": 20, "minimum": 1}}}, "HarnessRunCreateResponse": {"required": ["environment_id", "job_id", "run_id", "run_test_id", "test_execution_id", "scenario_count", "trials", "total_calls", "state", "stage"], "type": "object", "properties": {"environment_id": {"title": "Environment id", "type": "string", "format": "uuid"}, "job_id": {"title": "Job id", "type": "string", "format": "uuid"}, "run_id": {"title": "Run id", "type": "string", "format": "uuid"}, "run_test_id": {"title": "Run test id", "type": "string", "format": "uuid"}, "test_execution_id": {"title": "Test execution id", "type": "string", "format": "uuid"}, "scenario_count": {"title": "Scenario count", "type": "integer", "minimum": 1}, "trials": {"title": "Trials", "type": "integer", "maximum": 20, "minimum": 1}, "total_calls": {"title": "Total calls", "type": "integer", "minimum": 1}, "state": {"title": "State", "type": "string", "minLength": 1}, "stage": {"title": "Stage", "type": "string", "minLength": 1}}}, "HarnessEnvironmentRunEvaluationQueued": {"required": ["queued", "skipped_existing", "skipped_in_flight", "skipped_pending", "completed_calls"], "type": "object", "properties": {"queued": {"title": "Queued", "description": "Stamped and scheduled for dispatch -- not yet dispatched. A call whose stamp committed but whose grading job then failed to queue is still counted here, not subtracted.", "type": "integer"}, "skipped_existing": {"title": "Skipped existing", "type": "integer"}, "skipped_in_flight": {"title": "Skipped in flight", "type": "integer"}, "skipped_pending": {"title": "Skipped pending", "type": "integer"}, "completed_calls": {"title": "Completed calls", "type": "integer"}}}, "HarnessEnvironmentRunEvaluations": {"required": ["eval_config_ids"], "type": "object", "properties": {"eval_config_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}, "minItems": 1}, "enable_tool_evaluation": {"title": "Enable tool evaluation", "description": "Saved on the environment before grading starts; left as it is when absent.", "type": "boolean", "x-nullable": true}}}, "HarnessEnvironmentRunEvaluationsQueued": {"required": ["call_execution_count"], "type": "object", "properties": {"call_execution_count": {"title": "Call execution count", "description": "How many of the run's calls were queued for grading.", "type": "integer"}}}, "HarnessJobInfo": {"required": ["job_id", "run_id", "source", "metadata", "run_test_id", "test_execution_id"], "type": "object", "properties": {"job_id": {"title": "Job id", "type": "string", "format": "uuid"}, "run_id": {"title": "Run id", "type": "string", "format": "uuid"}, "source": {"title": "Source", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}}, "metadata": {"title": "Metadata", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}}, "runtime": {"title": "Runtime", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}}, "run_test_id": {"title": "Run test id", "type": "string", "format": "uuid", "x-nullable": true}, "test_execution_id": {"title": "Test execution id", "type": "string", "format": "uuid", "x-nullable": true}}}, "HarnessJobStatus": {"required": ["state", "stage", "updated_at", "attempt", "completed_scenarios", "failed_scenarios", "total_scenarios", "deadline_at", "failure"], "type": "object", "properties": {"state": {"title": "State", "type": "string", "minLength": 1}, "stage": {"title": "Stage", "type": "string", "minLength": 1}, "updated_at": {"title": "Updated at", "type": "string", "minLength": 1}, "attempt": {"title": "Attempt", "type": "integer"}, "completed_scenarios": {"title": "Completed scenarios", "type": "integer"}, "failed_scenarios": {"title": "Failed scenarios", "type": "integer"}, "active_scenarios": {"title": "Active scenarios", "type": "integer"}, "queued_scenarios": {"title": "Queued scenarios", "type": "integer"}, "total_scenarios": {"title": "Total scenarios", "type": "integer"}, "deadline_at": {"title": "Deadline at", "type": "string", "minLength": 1}, "failure": {"title": "Failure", "type": "object", "x-nullable": true}}}, "HarnessJobEvent": {"required": ["event_id", "sequence", "stage", "type", "payload", "emitted_at"], "type": "object", "properties": {"event_id": {"title": "Event id", "type": "string", "minLength": 1}, "sequence": {"title": "Sequence", "type": "integer"}, "stage": {"title": "Stage", "type": "string", "minLength": 1}, "type": {"title": "Type", "type": "string", "minLength": 1}, "payload": {"title": "Payload", "type": "object", "x-nullable": true}, "emitted_at": {"title": "Emitted at", "type": "string", "minLength": 1}}}, "HarnessStageOutput": {"required": ["id", "title", "summary", "kind", "data"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "title": {"title": "Title", "type": "string", "minLength": 1}, "summary": {"title": "Summary", "type": "string"}, "kind": {"title": "Kind", "type": "string", "minLength": 1}, "data": {"title": "Data", "type": "object"}}}, "HarnessScenario": {"required": ["scenario_key", "scenario_id", "name"], "type": "object", "properties": {"scenario_key": {"title": "Scenario key", "type": "string", "minLength": 1}, "scenario_id": {"title": "Scenario id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string"}, "instruction": {"title": "Instruction", "type": "string", "x-nullable": true}, "use_case": {"title": "Use case", "type": "string", "x-nullable": true}, "call_execution_id": {"title": "Call execution id", "type": "string", "format": "uuid", "x-nullable": true}, "status": {"title": "Status", "type": "string", "minLength": 1, "x-nullable": true}}}, "HarnessPlatform": {"required": ["run_test_id", "test_execution_id", "url"], "type": "object", "properties": {"run_test_id": {"title": "Run test id", "type": "string", "format": "uuid", "x-nullable": true}, "test_execution_id": {"title": "Test execution id", "type": "string", "format": "uuid", "x-nullable": true}, "url": {"title": "Url", "type": "string", "minLength": 1, "x-nullable": true}}}, "HarnessDiagnostics": {"required": ["size", "final", "error"], "type": "object", "properties": {"object_key": {"title": "Object key", "type": "string", "minLength": 1}, "sha256": {"title": "Sha256", "type": "string", "minLength": 1}, "size": {"title": "Size", "type": "integer"}, "captured_at": {"title": "Captured at", "type": "string", "minLength": 1}, "final": {"title": "Final", "type": "boolean"}, "error": {"title": "Error", "type": "string"}}}, "HarnessRuntimeRead": {"type": "object", "properties": {"sandbox_id": {"title": "Sandbox id", "type": "string", "minLength": 1}, "diagnostics": {"$ref": "#/definitions/HarnessDiagnostics"}}}, "HarnessParallelism": {"required": ["requested", "admitted", "effective", "degrade_reasons"], "type": "object", "properties": {"requested": {"title": "Requested", "type": "integer"}, "admitted": {"title": "Admitted", "type": "integer"}, "effective": {"title": "Effective", "type": "integer"}, "degrade_reasons": {"type": "array", "items": {"type": "string", "minLength": 1}}}}, "HarnessConversationMessage": {"required": ["message_id", "sequence", "role", "kind", "state", "stage", "content", "payload", "created_at"], "type": "object", "properties": {"message_id": {"title": "Message id", "type": "string", "format": "uuid"}, "sequence": {"title": "Sequence", "type": "integer", "minimum": 1}, "role": {"title": "Role", "type": "string", "enum": ["user", "assistant", "system"]}, "kind": {"title": "Kind", "type": "string", "enum": ["message", "question", "confirmation", "status"]}, "state": {"title": "State", "type": "string", "enum": ["queued", "delivered", "streaming", "completed", "failed"]}, "stage": {"title": "Stage", "type": "string"}, "content": {"title": "Content", "type": "string"}, "payload": {"title": "Payload", "type": "object"}, "invocation_id": {"title": "Invocation id", "type": "string", "minLength": 1, "x-nullable": true}, "function_call_id": {"title": "Function call id", "type": "string", "minLength": 1, "x-nullable": true}, "reply_to": {"title": "Reply to", "type": "string", "format": "uuid", "x-nullable": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time"}}}, "HarnessConversationEventRead": {"required": ["event_id", "sequence", "kind", "stage", "payload", "emitted_at"], "type": "object", "properties": {"event_id": {"title": "Event id", "type": "string", "minLength": 1}, "sequence": {"title": "Sequence", "type": "integer", "minimum": 1}, "kind": {"title": "Kind", "type": "string", "minLength": 1}, "message_id": {"title": "Message id", "type": "string", "format": "uuid", "x-nullable": true}, "stage": {"title": "Stage", "type": "string"}, "invocation_id": {"title": "Invocation id", "type": "string", "minLength": 1, "x-nullable": true}, "function_call_id": {"title": "Function call id", "type": "string", "minLength": 1, "x-nullable": true}, "payload": {"title": "Payload", "type": "object"}, "emitted_at": {"title": "Emitted at", "type": "string", "format": "date-time"}}}, "HarnessConversationRuntime": {"required": ["state", "warm_until", "degraded", "available"], "type": "object", "properties": {"state": {"title": "State", "type": "string", "minLength": 1}, "warm_until": {"title": "Warm until", "type": "string", "format": "date-time", "x-nullable": true}, "degraded": {"title": "Degraded", "type": "boolean"}, "available": {"title": "Available", "type": "boolean"}}}, "HarnessConversationRead": {"required": ["conversation_id", "job_id", "state", "stage", "active_invocation_id", "blocking_input", "messages", "events", "event_watermark", "runtime"], "type": "object", "properties": {"conversation_id": {"title": "Conversation id", "type": "string", "format": "uuid"}, "job_id": {"title": "Job id", "type": "string", "format": "uuid"}, "state": {"title": "State", "type": "string", "minLength": 1}, "stage": {"title": "Stage", "type": "string", "minLength": 1}, "active_invocation_id": {"title": "Active invocation id", "type": "string", "minLength": 1, "x-nullable": true}, "blocking_input": {"title": "Blocking input", "type": "object", "x-nullable": true}, "messages": {"type": "array", "items": {"$ref": "#/definitions/HarnessConversationMessage"}}, "events": {"type": "array", "items": {"$ref": "#/definitions/HarnessConversationEventRead"}}, "event_watermark": {"title": "Event watermark", "type": "integer", "minimum": 0}, "runtime": {"$ref": "#/definitions/HarnessConversationRuntime"}}, "x-nullable": true}, "HarnessConsumption": {"required": ["text_sim_tokens", "voice_sim_minutes", "ai_credits", "sandbox_seconds"], "type": "object", "properties": {"text_sim_tokens": {"title": "Text sim tokens", "type": "integer", "minimum": 0}, "voice_sim_minutes": {"title": "Voice sim minutes", "type": "number", "minimum": 0}, "ai_credits": {"title": "Ai credits", "type": "number", "minimum": 0, "x-nullable": true}, "sandbox_seconds": {"title": "Sandbox seconds", "type": "number", "minimum": 0}}, "x-nullable": true}, "HarnessJobRead": {"required": ["job", "status", "events", "stage_outputs", "scenarios", "receipts", "platform"], "type": "object", "properties": {"job": {"$ref": "#/definitions/HarnessJobInfo"}, "status": {"$ref": "#/definitions/HarnessJobStatus"}, "events": {"type": "array", "items": {"$ref": "#/definitions/HarnessJobEvent"}}, "stage_outputs": {"type": "array", "items": {"$ref": "#/definitions/HarnessStageOutput"}}, "scenarios": {"type": "array", "items": {"$ref": "#/definitions/HarnessScenario"}}, "receipts": {"type": "array", "items": {"type": "object"}}, "platform": {"$ref": "#/definitions/HarnessPlatform"}, "runtime": {"$ref": "#/definitions/HarnessRuntimeRead"}, "parallelism": {"$ref": "#/definitions/HarnessParallelism"}, "conversation": {"$ref": "#/definitions/HarnessConversationRead"}, "consumption": {"$ref": "#/definitions/HarnessConsumption"}, "usage_limit": {"title": "Usage limit", "type": "object", "x-nullable": true}}}, "HarnessSource": {"required": ["kind"], "type": "object", "properties": {"kind": {"title": "Kind", "type": "string", "enum": ["github", "archive", "remote", "provider"]}, "repository": {"title": "Repository", "type": "string", "pattern": "^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$", "minLength": 1, "x-nullable": true}, "ref": {"title": "Ref", "type": "string", "pattern": "^[A-Za-z0-9._/-]+$", "minLength": 1, "x-nullable": true}, "commit_sha": {"title": "Commit sha", "type": "string", "pattern": "^[0-9a-fA-F]{40}$", "minLength": 1, "x-nullable": true}, "installation_id": {"title": "Installation id", "type": "string", "maxLength": 255, "minLength": 1, "x-nullable": true}, "archive_artifact_id": {"title": "Archive artifact id", "type": "string", "format": "uuid", "x-nullable": true}, "endpoint": {"title": "Endpoint", "type": "string", "format": "uri", "minLength": 1, "x-nullable": true}, "visibility": {"title": "Visibility", "type": "string", "enum": ["public", "private"], "default": "public"}, "environment_values": {"title": "Environment values", "type": "object", "additionalProperties": {"type": "string", "maxLength": 65536, "minLength": 1}}}}, "SecretReference": {"required": ["manager", "key", "purpose"], "type": "object", "properties": {"manager": {"title": "Manager", "type": "string", "enum": ["platform-vault", "platform-config"]}, "key": {"title": "Key", "type": "string", "maxLength": 255, "minLength": 1}, "version": {"title": "Version", "type": "string", "maxLength": 255, "minLength": 1, "x-nullable": true}, "purpose": {"title": "Purpose", "type": "string", "enum": ["target_provider", "simulator_provider", "source_checkout"]}}}, "HarnessAgent": {"required": ["connector"], "type": "object", "properties": {"connector": {"title": "Connector", "type": "string", "enum": ["livekit", "vapi", "retell", "retell_chat", "phone", "auto"]}, "mode": {"title": "Mode", "type": "string", "enum": ["connect_only", "environment_backed", "provider_import"], "x-nullable": true}, "call_direction": {"title": "Call direction", "description": "inbound: the simulated caller dials the agent. outbound: the agent dials the simulated caller. Voice connectors only.", "type": "string", "enum": ["inbound", "outbound"], "x-nullable": true}, "config": {"title": "Config", "type": "object", "default": {}}, "secret_refs": {"title": "Secret refs", "type": "object", "additionalProperties": {"$ref": "#/definitions/SecretReference"}, "default": {}}}}, "HarnessRuntime": {"type": "object", "properties": {"isolation": {"title": "Isolation", "type": "string", "enum": ["dedicated_vm"], "default": "dedicated_vm"}, "cpu_units": {"title": "Cpu units", "type": "integer", "default": 4, "minimum": 1}, "memory_mb": {"title": "Memory mb", "type": "integer", "default": 8192, "minimum": 1024}, "parallelism": {"title": "Parallelism", "type": "integer", "default": 1, "maximum": 8, "minimum": 1}, "concurrency_weight": {"title": "Concurrency weight", "type": "integer", "default": 1, "maximum": 10, "minimum": 1}, "max_duration_seconds": {"title": "Max duration seconds", "type": "integer", "default": 3600, "maximum": 86400, "minimum": 60}, "network_policy": {"title": "Network policy", "type": "string", "enum": ["live"], "default": "live"}}, "default": {"isolation": "dedicated_vm", "cpu_units": 4, "memory_mb": 8192, "parallelism": 1, "concurrency_weight": 1, "max_duration_seconds": 3600, "network_policy": "live"}}, "HarnessSecurity": {"type": "object", "properties": {"untrusted_source": {"title": "Untrusted source", "type": "boolean", "default": true}, "read_only_source": {"title": "Read only source", "type": "boolean", "default": true}, "allow_privileged": {"title": "Allow privileged", "type": "boolean", "default": false}, "allow_host_runtime_control": {"title": "Allow host runtime control", "type": "boolean", "default": false}, "allowed_egress_domains": {"type": "array", "items": {"type": "string", "pattern": "^(?:[A-Za-z0-9-]+\\.)*[A-Za-z0-9-]+$", "minLength": 1}, "default": []}}, "default": {"untrusted_source": true, "read_only_source": true, "allow_privileged": false, "allow_host_runtime_control": false, "allowed_egress_domains": []}}, "HarnessRetry": {"type": "object", "properties": {"max_infrastructure_attempts": {"title": "Max infrastructure attempts", "type": "integer", "default": 2, "maximum": 5, "minimum": 1}, "initial_backoff_seconds": {"title": "Initial backoff seconds", "type": "number", "default": 1.0, "maximum": 60, "minimum": 0}, "max_backoff_seconds": {"title": "Max backoff seconds", "type": "number", "default": 15.0, "maximum": 300, "minimum": 0}, "retryable_domains": {"type": "array", "items": {"type": "string", "enum": ["infrastructure", "connectivity", "platform_sync"]}, "default": ["infrastructure", "connectivity"]}}, "default": {"max_infrastructure_attempts": 2, "initial_backoff_seconds": 1.0, "max_backoff_seconds": 15.0, "retryable_domains": ["infrastructure", "connectivity"]}}, "HarnessArtifact": {"required": ["level"], "type": "object", "properties": {"level": {"title": "Level", "type": "string", "enum": ["metadata-only", "traces", "traces-and-recordings", "full"]}, "retention_days": {"title": "Retention days", "type": "integer", "default": 30, "maximum": 3650, "minimum": 1}, "allow_bundle_download": {"title": "Allow bundle download", "type": "boolean", "default": false}, "max_artifact_bytes": {"title": "Max artifact bytes", "type": "integer", "default": 10737418240, "minimum": 0}}}, "HarnessJobCreate": {"required": ["agent", "artifacts"], "type": "object", "properties": {"schema_version": {"title": "Schema version", "type": "string", "enum": ["futureagi.harness-job.v1"], "default": "futureagi.harness-job.v1"}, "run_id": {"title": "Run id", "type": "string", "format": "uuid"}, "source": {"$ref": "#/definitions/HarnessSource"}, "agent": {"$ref": "#/definitions/HarnessAgent"}, "scenario_count": {"title": "Scenario count", "type": "integer", "default": 10, "maximum": 1000, "minimum": 1}, "seed": {"title": "Seed", "type": "integer", "x-nullable": true}, "runtime": {"$ref": "#/definitions/HarnessRuntime"}, "security": {"$ref": "#/definitions/HarnessSecurity"}, "retry": {"$ref": "#/definitions/HarnessRetry"}, "artifacts": {"$ref": "#/definitions/HarnessArtifact"}, "platform_run_id": {"title": "Platform run id", "type": "string", "maxLength": 255, "minLength": 1, "x-nullable": true}, "metadata": {"title": "Metadata", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}, "default": {}}}}, "HarnessPreflight": {"required": ["agent", "artifacts"], "type": "object", "properties": {"schema_version": {"title": "Schema version", "type": "string", "enum": ["futureagi.harness-job.v1"], "default": "futureagi.harness-job.v1"}, "run_id": {"title": "Run id", "type": "string", "format": "uuid"}, "source": {"$ref": "#/definitions/HarnessSource"}, "agent": {"$ref": "#/definitions/HarnessAgent"}, "scenario_count": {"title": "Scenario count", "type": "integer", "default": 10, "maximum": 1000, "minimum": 1}, "seed": {"title": "Seed", "type": "integer", "x-nullable": true}, "runtime": {"$ref": "#/definitions/HarnessRuntime"}, "security": {"$ref": "#/definitions/HarnessSecurity"}, "retry": {"$ref": "#/definitions/HarnessRetry"}, "artifacts": {"$ref": "#/definitions/HarnessArtifact"}, "platform_run_id": {"title": "Platform run id", "type": "string", "maxLength": 255, "minLength": 1, "x-nullable": true}, "metadata": {"title": "Metadata", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}, "default": {}}, "credential_values": {"title": "Credential values", "description": "Target-provider values to verify live; used for this check only.", "type": "object", "additionalProperties": {"type": "string", "maxLength": 4096}}}}, "HarnessPreflightCheck": {"required": ["id", "label", "status", "detail", "missing", "fix"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "minLength": 1}, "label": {"title": "Label", "type": "string", "minLength": 1}, "status": {"title": "Status", "type": "string", "enum": ["passed", "failed", "skipped"]}, "detail": {"title": "Detail", "type": "string"}, "missing": {"type": "array", "items": {"type": "string", "minLength": 1}}, "fix": {"title": "Fix", "type": "string", "minLength": 1, "x-nullable": true}}}, "HarnessPreflightCredentials": {"required": ["scanned_files", "detected_connectors", "requirements", "credential_choices", "probe"], "type": "object", "properties": {"scanned_files": {"title": "Scanned files", "type": "integer"}, "detected_connectors": {"type": "array", "items": {"type": "string", "minLength": 1}}, "requirements": {"type": "array", "items": {"type": "object"}}, "credential_choices": {"type": "array", "items": {"type": "object"}}, "probe": {"type": "array", "items": {"type": "object"}}}}, "HarnessPreflightResponse": {"required": ["ready_to_submit", "state", "checks", "credentials", "parallelism_enabled", "effective_parallelism", "resource_profile", "snapshot"], "type": "object", "properties": {"ready_to_submit": {"title": "Ready to submit", "type": "boolean"}, "state": {"title": "State", "type": "string", "enum": ["connected", "failed"]}, "checks": {"type": "array", "items": {"$ref": "#/definitions/HarnessPreflightCheck"}}, "credentials": {"$ref": "#/definitions/HarnessPreflightCredentials"}, "parallelism_enabled": {"title": "Parallelism enabled", "type": "boolean"}, "effective_parallelism": {"title": "Effective parallelism", "type": "integer"}, "resource_profile": {"title": "Resource profile", "type": "object", "x-nullable": true}, "snapshot": {"title": "Snapshot", "type": "object"}}}, "HarnessSecretFileUploadResponse": {"required": ["environment_name", "secret_ref", "size"], "type": "object", "properties": {"environment_name": {"title": "Environment name", "type": "string", "pattern": "^[A-Za-z_][A-Za-z0-9_]*$", "minLength": 1}, "secret_ref": {"$ref": "#/definitions/SecretReference"}, "size": {"title": "Size", "type": "integer", "minimum": 1}}}, "HarnessSecretValues": {"required": ["environment_values"], "type": "object", "properties": {"environment_values": {"title": "Environment values", "type": "object", "additionalProperties": {"type": "string", "maxLength": 65536, "minLength": 1}}}}, "HarnessSourceUploadResponse": {"required": ["source_id", "name", "file_count", "total_bytes"], "type": "object", "properties": {"source_id": {"title": "Source id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "file_count": {"title": "File count", "type": "integer"}, "total_bytes": {"title": "Total bytes", "type": "integer"}}}, "HarnessJobAdjustment": {"required": ["instruction"], "type": "object", "properties": {"instruction": {"title": "Instruction", "description": "A user correction to apply at the next safe harness stage boundary.", "type": "string", "maxLength": 2000, "minLength": 1}, "client_request_id": {"title": "Client request id", "type": "string", "maxLength": 128, "minLength": 1}, "target_stage": {"title": "Target stage", "type": "string", "enum": ["understand", "environment", "scenarios"]}, "scenario_delta": {"title": "Scenario delta", "type": "integer", "minimum": 1}}}, "HarnessJobAction": {"type": "object", "properties": {"reason": {"title": "Reason", "type": "string", "enum": ["user_canceled", "ttl_exceeded"], "default": "user_canceled"}}}, "HarnessConversationMessageCreate": {"required": ["content", "client_request_id"], "type": "object", "properties": {"content": {"title": "Content", "type": "string", "maxLength": 20000, "minLength": 1}, "client_request_id": {"title": "Client request id", "type": "string", "pattern": "^[A-Za-z0-9_-]{1,128}$", "minLength": 1}, "kind": {"title": "Kind", "type": "string", "enum": ["user_message", "user_response", "approval", "interrupt", "cancel_operation"], "default": "user_message"}, "reply_to": {"title": "Reply to", "type": "string", "format": "uuid", "x-nullable": true}, "payload": {"title": "Payload", "type": "object", "default": {}}}}, "HarnessJobExtend": {"required": ["count"], "type": "object", "properties": {"count": {"title": "Count", "description": "How many new scenarios to add to the saved world.", "type": "integer", "maximum": 50, "minimum": 1}, "guidance": {"title": "Guidance", "description": "Optional natural-language steering for the added scenarios (e.g. 'calm first-time riders booking an airport pickup'). Existing scenarios are preserved.", "type": "string", "default": "", "maxLength": 2000}, "client_request_id": {"title": "Client request id", "type": "string", "maxLength": 128, "minLength": 1}}}, "HarnessScenarioChange": {"required": ["op"], "type": "object", "properties": {"op": {"title": "Op", "type": "string", "enum": ["drop", "set_field", "set_persona"]}, "scenario": {"title": "Scenario", "type": "string"}, "scenarios": {"type": "array", "items": {"type": "string", "minLength": 1}}, "field": {"title": "Field", "type": "string"}, "value": {"title": "Value", "type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}, "persona": {"title": "Persona", "type": "object", "additionalProperties": {"type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}}}}, "HarnessScenarioAmend": {"required": ["changes"], "type": "object", "properties": {"changes": {"type": "array", "items": {"$ref": "#/definitions/HarnessScenarioChange"}}, "rework": {"title": "Rework", "type": "boolean", "default": true}}}, "HarnessManifestEntry": {"required": ["artifact_id", "kind", "size"], "type": "object", "properties": {"artifact_id": {"title": "Artifact id", "type": "string", "pattern": "^sha256:[0-9a-f]{64}$", "minLength": 1}, "kind": {"title": "Kind", "type": "string", "maxLength": 32, "minLength": 1}, "size": {"title": "Size", "type": "integer", "minimum": 0}, "scenario_key": {"title": "Scenario key", "type": "string", "maxLength": 255, "minLength": 1, "x-nullable": true}}}, "HarnessManifest": {"required": ["schema_version", "job_id", "attempt_id", "attempt_number", "entries", "complete", "digest"], "type": "object", "properties": {"schema_version": {"title": "Schema version", "type": "string", "enum": ["futureagi.harness-manifest.v1"]}, "job_id": {"title": "Job id", "type": "string", "format": "uuid"}, "attempt_id": {"title": "Attempt id", "type": "string", "format": "uuid"}, "attempt_number": {"title": "Attempt number", "type": "integer", "minimum": 1}, "entries": {"type": "array", "items": {"$ref": "#/definitions/HarnessManifestEntry"}}, "complete": {"title": "Complete", "type": "boolean"}, "digest": {"title": "Digest", "type": "string", "pattern": "^sha256:[0-9a-f]{64}$", "minLength": 1}}}, "HarnessAcceptedResponse": {"required": ["accepted", "duplicate"], "type": "object", "properties": {"accepted": {"title": "Accepted", "type": "boolean"}, "duplicate": {"title": "Duplicate", "type": "boolean"}}}, "HarnessArtifactUploadResponse": {"required": ["artifact_id", "duplicate"], "type": "object", "properties": {"artifact_id": {"title": "Artifact id", "type": "string", "minLength": 1}, "duplicate": {"title": "Duplicate", "type": "boolean"}}}, "HarnessEvent": {"required": ["event_id", "job_id", "attempt_id", "attempt_number", "sequence", "emitted_at", "stage", "type", "payload", "digest"], "type": "object", "properties": {"event_id": {"title": "Event id", "type": "string", "pattern": "^[A-Za-z0-9_-]{1,64}$", "minLength": 1}, "job_id": {"title": "Job id", "type": "string", "format": "uuid"}, "attempt_id": {"title": "Attempt id", "type": "string", "format": "uuid"}, "attempt_number": {"title": "Attempt number", "type": "integer", "minimum": 1}, "sequence": {"title": "Sequence", "type": "integer", "minimum": 1}, "emitted_at": {"title": "Emitted at", "type": "string", "format": "date-time"}, "stage": {"title": "Stage", "type": "string", "maxLength": 64, "minLength": 1}, "type": {"title": "Type", "type": "string", "maxLength": 64, "minLength": 1}, "payload": {"title": "Payload", "type": "object"}, "digest": {"title": "Digest", "type": "string", "pattern": "^sha256:[0-9a-f]{64}$", "minLength": 1}}}, "HarnessEventBatch": {"required": ["schema_version", "events"], "type": "object", "properties": {"schema_version": {"title": "Schema version", "type": "string", "enum": ["futureagi.harness-event.v1"]}, "events": {"type": "array", "items": {"$ref": "#/definitions/HarnessEvent"}}}}, "HarnessEventRejection": {"required": ["event_id", "sequence", "code", "message"], "type": "object", "properties": {"event_id": {"title": "Event id", "type": "string", "minLength": 1}, "sequence": {"title": "Sequence", "type": "integer"}, "code": {"title": "Code", "type": "string", "minLength": 1}, "message": {"title": "Message", "type": "string", "minLength": 1}}}, "HarnessEventBatchResponse": {"required": ["acked_through_sequence", "rejected"], "type": "object", "properties": {"acked_through_sequence": {"title": "Acked through sequence", "type": "integer"}, "rejected": {"type": "array", "items": {"$ref": "#/definitions/HarnessEventRejection"}}}}, "HarnessIngressRequest": {"required": ["port"], "type": "object", "properties": {"port": {"title": "Port", "type": "integer", "maximum": 65535, "minimum": 1}, "expires_in_seconds": {"title": "Expires in seconds", "type": "integer", "default": 7200, "maximum": 86400, "minimum": 60}}}, "HarnessIngressResponse": {"required": ["url", "expires_in_seconds"], "type": "object", "properties": {"url": {"title": "Url", "type": "string", "format": "uri", "minLength": 1}, "expires_in_seconds": {"title": "Expires in seconds", "type": "integer", "maximum": 86400, "minimum": 60}}}, "HarnessSubGoal": {"required": ["name", "held", "judged"], "type": "object", "properties": {"name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "held": {"title": "Held", "type": "boolean", "x-nullable": true}, "reason": {"title": "Reason", "type": "string", "x-nullable": true}, "judged": {"title": "Judged", "type": "boolean"}}}, "HarnessTargetUsage": {"type": "object", "properties": {"prompt_tokens": {"title": "Prompt tokens", "type": "integer", "minimum": 0}, "completion_tokens": {"title": "Completion tokens", "type": "integer", "minimum": 0}, "total_tokens": {"title": "Total tokens", "type": "integer", "minimum": 0}}}, "HarnessTargetLatency": {"type": "object", "properties": {"turn": {"title": "Turn", "type": "integer", "minimum": 0}, "model": {"title": "Model", "type": "integer", "minimum": 0}, "voice": {"title": "Voice", "type": "integer", "minimum": 0}, "transcriber": {"title": "Transcriber", "type": "integer", "minimum": 0}, "endpointing": {"title": "Endpointing", "type": "integer", "minimum": 0}, "turns": {"type": "array", "items": {"type": "integer", "minimum": 0}, "maxItems": 1000}}}, "HarnessTargetMetrics": {"required": ["provider"], "type": "object", "properties": {"provider": {"title": "Provider", "type": "string", "enum": ["vapi", "retell", "livekit"]}, "usage": {"$ref": "#/definitions/HarnessTargetUsage"}, "cost_cents": {"title": "Cost cents", "type": "integer", "minimum": 0}, "latency": {"$ref": "#/definitions/HarnessTargetLatency"}, "provider_call_id": {"title": "Provider call id", "type": "string", "maxLength": 255, "minLength": 1}, "provider_end_reason": {"title": "Provider end reason", "type": "string", "maxLength": 255, "minLength": 1}}, "x-nullable": true}, "HarnessCall": {"required": ["started_at", "ended_at", "duration_ms", "turns"], "type": "object", "properties": {"started_at": {"title": "Started at", "type": "string", "format": "date-time"}, "ended_at": {"title": "Ended at", "type": "string", "format": "date-time"}, "duration_ms": {"title": "Duration ms", "type": "integer", "minimum": 0}, "turns": {"title": "Turns", "type": "integer", "minimum": 0}, "transcript_artifact": {"title": "Transcript artifact", "type": "string", "pattern": "^sha256:[0-9a-f]{64}$", "minLength": 1, "x-nullable": true}, "recording_artifacts": {"type": "array", "items": {"type": "string", "pattern": "^sha256:[0-9a-f]{64}$", "minLength": 1}, "default": []}, "stop_reason": {"title": "Stop reason", "type": "string", "maxLength": 128, "minLength": 1, "x-nullable": true}, "script_completed": {"title": "Script completed", "type": "boolean"}, "target_metrics": {"$ref": "#/definitions/HarnessTargetMetrics"}}, "x-nullable": true}, "HarnessFailure": {"required": ["domain", "stage", "code", "message"], "type": "object", "properties": {"domain": {"title": "Domain", "type": "string", "enum": ["agent", "simulator", "environment", "connectivity", "infrastructure", "grading", "platform_sync"]}, "stage": {"title": "Stage", "type": "string", "maxLength": 64, "minLength": 1}, "code": {"title": "Code", "type": "string", "maxLength": 128, "minLength": 1}, "message": {"title": "Message", "type": "string", "maxLength": 2000, "minLength": 1}}, "x-nullable": true}, "HarnessResultReceipt": {"required": ["schema_version", "job_id", "attempt_id", "attempt_number", "scenario_key", "scenario_id", "scenario_attempt", "world_index", "status", "sub_goals", "evaluations", "call", "failure", "digest"], "type": "object", "properties": {"schema_version": {"title": "Schema version", "type": "string", "enum": ["futureagi.harness-result.v1"]}, "job_id": {"title": "Job id", "type": "string", "format": "uuid"}, "attempt_id": {"title": "Attempt id", "type": "string", "format": "uuid"}, "attempt_number": {"title": "Attempt number", "type": "integer", "minimum": 1}, "scenario_key": {"title": "Scenario key", "type": "string", "maxLength": 255, "minLength": 1}, "scenario_id": {"title": "Scenario id", "type": "string", "format": "uuid"}, "scenario_attempt": {"title": "Scenario attempt", "type": "integer", "maximum": 2, "minimum": 1}, "world_index": {"title": "World index", "type": "integer", "maximum": 7, "minimum": 0, "x-nullable": true}, "status": {"title": "Status", "type": "string", "enum": ["passed", "failed", "errored", "skipped"]}, "sub_goals": {"type": "array", "items": {"$ref": "#/definitions/HarnessSubGoal"}}, "evaluations": {"title": "Evaluations", "type": "object"}, "call": {"$ref": "#/definitions/HarnessCall"}, "failure": {"$ref": "#/definitions/HarnessFailure"}, "digest": {"title": "Digest", "type": "string", "pattern": "^sha256:[0-9a-f]{64}$", "minLength": 1}}}, "HarnessProvisionPersona": {"required": ["scenario_key"], "type": "object", "properties": {"scenario_key": {"title": "Scenario key", "type": "string", "maxLength": 255, "minLength": 1}, "name": {"title": "Name", "type": "string", "maxLength": 255}, "role": {"title": "Role", "type": "string", "maxLength": 255}, "situation": {"title": "Situation", "type": "string"}, "outcome": {"title": "Outcome", "type": "string"}, "persona": {"title": "Persona", "type": "object"}}}, "HarnessScenarioOperation": {"required": ["operation"], "type": "object", "properties": {"operation": {"title": "Operation", "type": "string", "enum": ["provision", "begin"]}, "name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "modality": {"title": "Modality", "type": "string", "enum": ["text", "voice"]}, "description": {"title": "Description", "type": "string"}, "personas": {"type": "array", "items": {"$ref": "#/definitions/HarnessProvisionPersona"}}, "agent_definition_id": {"title": "Agent definition id", "type": "string", "format": "uuid", "x-nullable": true}, "agent_name": {"title": "Agent name", "type": "string", "maxLength": 255}, "agent_prompt": {"title": "Agent prompt", "type": "string"}, "chosen_evals": {"type": "array", "items": {"type": "string", "maxLength": 2000, "minLength": 1}}, "run_test_id": {"title": "Run test id", "type": "string", "format": "uuid"}, "scenario_keys": {"type": "array", "items": {"type": "string", "maxLength": 255, "minLength": 1}}}}, "HarnessScenarioRegistrationResponse": {"required": ["scenario_key", "scenario_id"], "type": "object", "properties": {"scenario_key": {"title": "Scenario key", "type": "string", "minLength": 1}, "scenario_id": {"title": "Scenario id", "type": "string", "format": "uuid"}, "call_execution_id": {"title": "Call execution id", "type": "string", "format": "uuid"}}}, "HarnessScenarioOperationResult": {"required": ["scenarios"], "type": "object", "properties": {"run_test_id": {"title": "Run test id", "type": "string", "format": "uuid"}, "test_execution_id": {"title": "Test execution id", "type": "string", "format": "uuid"}, "scenarios": {"type": "array", "items": {"$ref": "#/definitions/HarnessScenarioRegistrationResponse"}}}}, "HarnessScenarioOperationResponse": {"required": ["result"], "type": "object", "properties": {"result": {"$ref": "#/definitions/HarnessScenarioOperationResult"}}}, "HarnessUsageRecord": {"required": ["id", "action", "scenario_key", "amount", "occurred_at", "funding"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "action": {"title": "Action", "type": "string", "enum": ["text_call", "voice_call"]}, "scenario_key": {"title": "Scenario key", "type": "string", "maxLength": 255, "minLength": 1}, "amount": {"title": "Amount", "type": "number", "minimum": 0}, "occurred_at": {"title": "Occurred at", "type": "string", "format": "date-time"}, "funding": {"title": "Funding", "type": "string", "enum": ["platform", "customer"]}, "outcome": {"title": "Outcome", "type": "string", "enum": ["completed", "failed"], "default": "completed"}, "failure_domain": {"title": "Failure domain", "type": "string", "enum": ["agent", "simulator", "environment", "connectivity", "infrastructure", "grading", "artifact", "platform_sync"], "x-nullable": true}}}, "HarnessUsageRequest": {"required": ["operation"], "type": "object", "properties": {"operation": {"title": "Operation", "type": "string", "enum": ["check", "report"]}, "action": {"title": "Action", "type": "string", "enum": ["text_call", "voice_call"]}, "schema_version": {"title": "Schema version", "type": "string", "enum": ["futureagi.harness-usage.v1"]}, "records": {"type": "array", "items": {"$ref": "#/definitions/HarnessUsageRecord"}}}}, "HarnessUsageResponse": {"type": "object", "properties": {"allowed": {"title": "Allowed", "type": "boolean"}, "accepted": {"title": "Accepted", "type": "boolean"}, "reason": {"title": "Reason", "type": "string"}, "error_code": {"title": "Error code", "type": "string"}, "dimension": {"title": "Dimension", "type": "string"}, "current_usage": {"title": "Current usage", "type": "number"}, "limit": {"title": "Limit", "type": "number"}, "upgrade_cta": {"title": "Upgrade cta", "type": "object", "x-nullable": true}}}, "HarnessConversationAdjustment": {"required": ["instruction"], "type": "object", "properties": {"instruction": {"title": "Instruction", "type": "string", "maxLength": 2000, "minLength": 1}, "client_request_id": {"title": "Client request id", "type": "string", "maxLength": 128, "minLength": 1}, "target_stage": {"title": "Target stage", "type": "string", "enum": ["understand", "environment", "scenarios"]}, "scenario_delta": {"title": "Scenario delta", "type": "integer", "minimum": 1}}}, "HarnessConversationAdjustmentResponse": {"required": ["adjustment_id", "instruction", "target_stage", "scenario_delta", "status", "created_at"], "type": "object", "properties": {"adjustment_id": {"title": "Adjustment id", "type": "string", "format": "uuid"}, "client_request_id": {"title": "Client request id", "type": "string", "minLength": 1, "x-nullable": true}, "instruction": {"title": "Instruction", "type": "string", "minLength": 1}, "target_stage": {"title": "Target stage", "type": "string", "minLength": 1}, "scenario_delta": {"title": "Scenario delta", "type": "integer"}, "status": {"title": "Status", "type": "string", "minLength": 1}, "created_at": {"title": "Created at", "type": "string", "format": "date-time"}}}, "HarnessConversationEvent": {"required": ["schema_version", "event_id", "conversation_id", "sequence", "kind", "emitted_at", "payload", "digest"], "type": "object", "properties": {"schema_version": {"title": "Schema version", "type": "string", "enum": ["futureagi.harness-conversation-event.v1"]}, "event_id": {"title": "Event id", "type": "string", "pattern": "^[A-Za-z0-9_-]{1,128}$", "minLength": 1}, "conversation_id": {"title": "Conversation id", "type": "string", "format": "uuid"}, "sequence": {"title": "Sequence", "type": "integer", "minimum": 1}, "kind": {"title": "Kind", "type": "string", "enum": ["turn_started", "assistant_delta", "assistant_message", "stage_changed", "authoring_activity", "tool_started", "tool_result", "question_requested", "confirmation_requested", "turn_interrupted", "turn_completed", "checkpoint_committed", "capability_changed"]}, "message_id": {"title": "Message id", "type": "string", "format": "uuid", "x-nullable": true}, "stage": {"title": "Stage", "type": "string", "maxLength": 32}, "invocation_id": {"title": "Invocation id", "type": "string", "maxLength": 255, "minLength": 1, "x-nullable": true}, "function_call_id": {"title": "Function call id", "type": "string", "maxLength": 255, "minLength": 1, "x-nullable": true}, "emitted_at": {"title": "Emitted at", "type": "string", "format": "date-time"}, "payload": {"title": "Payload", "type": "object"}, "digest": {"title": "Digest", "type": "string", "pattern": "^sha256:[0-9a-f]{64}$", "minLength": 1}}}, "HarnessConversationEventBatch": {"required": ["schema_version", "acknowledged_through", "events"], "type": "object", "properties": {"schema_version": {"title": "Schema version", "type": "string", "enum": ["futureagi.harness-conversation-event.v1"]}, "acknowledged_through": {"title": "Acknowledged through", "type": "integer", "minimum": 0}, "events": {"type": "array", "items": {"$ref": "#/definitions/HarnessConversationEvent"}}}}, "HarnessConversationEventAck": {"required": ["acked_through_sequence"], "type": "object", "properties": {"acked_through_sequence": {"title": "Acked through sequence", "type": "integer", "minimum": 0}}}, "HarnessConversationOverviewQuery": {"type": "object", "properties": {}}, "HarnessConversationOverview": {"required": ["environment", "scenario_count", "use_cases", "coverage", "recent_runs", "build_changes", "earlier_messages"], "type": "object", "properties": {"environment": {"title": "Environment", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}}, "scenario_count": {"title": "Scenario count", "type": "integer"}, "use_cases": {"type": "array", "items": {"type": "object", "additionalProperties": {"type": "string", "x-nullable": true}}}, "coverage": {"title": "Coverage", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}}, "recent_runs": {"type": "array", "items": {"type": "object", "additionalProperties": {"type": "string", "x-nullable": true}}}, "build_changes": {"type": "array", "items": {"type": "object", "additionalProperties": {"type": "string", "x-nullable": true}}}, "earlier_messages": {"type": "array", "items": {"type": "object", "additionalProperties": {"type": "string", "x-nullable": true}}}}}, "HarnessConversationPublish": {"required": ["digest"], "type": "object", "properties": {"digest": {"title": "Digest", "type": "string", "maxLength": 128, "minLength": 1}}}, "HarnessConversationRerun": {"type": "object", "properties": {}}, "HarnessConversationRunStatus": {"required": ["job_id", "state", "stage", "completed_scenarios", "failed_scenarios", "total_scenarios", "receipts"], "type": "object", "properties": {"job_id": {"title": "Job id", "type": "string", "format": "uuid"}, "state": {"title": "State", "type": "string", "minLength": 1}, "stage": {"title": "Stage", "type": "string", "minLength": 1}, "completed_scenarios": {"title": "Completed scenarios", "type": "integer", "minimum": 0}, "failed_scenarios": {"title": "Failed scenarios", "type": "integer", "minimum": 0}, "total_scenarios": {"title": "Total scenarios", "type": "integer", "minimum": 0}, "receipts": {"title": "Receipts", "type": "object"}}}, "HarnessConversationRunsQuery": {"type": "object", "properties": {"run_id": {"title": "Run id", "type": "string", "maxLength": 64}, "limit": {"title": "Limit", "type": "integer", "maximum": 50, "minimum": 1}}}, "HarnessConversationRunStart": {"type": "object", "properties": {"numbers": {"type": "array", "items": {"type": "integer", "minimum": 1}, "maxItems": 5000}, "ranges": {"type": "array", "items": {"type": "object", "additionalProperties": {"type": "integer", "minimum": 1}}, "maxItems": 100}, "trials": {"title": "Trials", "type": "integer", "default": 1, "maximum": 20, "minimum": 1}, "operation_id": {"title": "Operation id", "type": "string", "maxLength": 64}}}, "HarnessConversationScenarioQuery": {"type": "object", "properties": {"numbers": {"type": "array", "items": {"type": "integer", "minimum": 1}, "maxItems": 5000}, "ranges": {"type": "array", "items": {"type": "object", "additionalProperties": {"type": "integer", "minimum": 1}}, "maxItems": 100}, "names": {"type": "array", "items": {"type": "string", "maxLength": 255, "minLength": 1}, "maxItems": 500}, "ids": {"type": "array", "items": {"type": "string", "maxLength": 64, "minLength": 1}, "maxItems": 1000}, "search": {"title": "Search", "type": "string", "maxLength": 500}, "filters": {"title": "Filters", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}}, "page": {"title": "Page", "type": "integer", "minimum": 1}, "page_size": {"title": "Page size", "type": "integer", "maximum": 100, "minimum": 1}, "full": {"title": "Full", "type": "boolean", "default": false}}}, "HarnessConversationTranscriptAppend": {"required": ["project_key", "session_id", "entries"], "type": "object", "properties": {"project_key": {"title": "Project key", "type": "string", "maxLength": 255, "minLength": 1}, "session_id": {"title": "Session id", "type": "string", "maxLength": 255, "minLength": 1}, "subpath": {"title": "Subpath", "type": "string", "default": "", "maxLength": 512}, "entries": {"type": "array", "items": {"type": "object"}, "maxItems": 500, "minItems": 1}}}, "HarnessConversationTranscriptAppendResponse": {"required": ["appended"], "type": "object", "properties": {"appended": {"title": "Appended", "type": "integer", "minimum": 0}}}, "HarnessConversationWorkspaceResponse": {"required": ["digest", "size"], "type": "object", "properties": {"digest": {"title": "Digest", "type": "string", "pattern": "^sha256:[0-9a-f]{64}$", "minLength": 1}, "size": {"title": "Size", "type": "integer", "minimum": 0}}}, "HarnessIngressProxyRequest": {"type": "object", "properties": {"payload": {"title": "Payload", "type": "object"}}}, "LiveKitCallConfigResponse": {"required": ["id", "call_metadata", "provider_call_data", "status", "ended_reason", "duration_seconds"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "call_metadata": {"title": "Call metadata", "type": "object", "additionalProperties": {"type": "object"}}, "provider_call_data": {"title": "Provider call data", "type": "object", "additionalProperties": {"type": "object"}}, "status": {"title": "Status", "type": "string", "minLength": 1}, "ended_reason": {"title": "Ended reason", "type": "string"}, "duration_seconds": {"title": "Duration seconds", "type": "integer", "x-nullable": true}}}, "LiveKitErrorResponse": {"type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": false}, "type": {"title": "Type", "type": "string", "enum": ["validation_error", "authentication_error", "payment_required", "entitlement_error", "permission_error", "not_found", "conflict", "client_error", "rate_limit", "server_error", "service_unavailable", "timeout", "api_error"], "x-nullable": true}, "code": {"title": "Code", "type": "string", "x-nullable": true}, "detail": {"title": "Detail", "type": "string", "x-nullable": true}, "result": {"title": "Result", "type": "string", "minLength": 1, "x-nullable": true}, "message": {"title": "Message", "type": "string", "minLength": 1, "x-nullable": true}, "error": {"title": "Error", "type": "string", "x-nullable": true}, "attr": {"title": "Attr", "type": "string", "x-nullable": true}, "details": {"title": "Details", "type": "object", "additionalProperties": {"type": "array", "items": {"type": "string", "minLength": 1}}}}}, "LiveKitCallExecutionUpdateRequest": {"type": "object", "properties": {"provider_call_data": {"title": "Provider call data", "type": "object", "additionalProperties": {"type": "object"}}, "started_at": {"title": "Started at", "type": "string", "format": "date-time"}, "completed_at": {"title": "Completed at", "type": "string", "format": "date-time"}, "ended_at": {"title": "Ended at", "type": "string", "format": "date-time"}, "duration_seconds": {"title": "Duration seconds", "type": "integer", "minimum": 0}, "ended_reason": {"title": "Ended reason", "type": "string"}, "service_provider_call_id": {"title": "Service provider call id", "type": "string"}}}, "LiveKitOkResponse": {"required": ["ok"], "type": "object", "properties": {"ok": {"title": "Ok", "type": "boolean"}}}, "LiveKitListenerTokenResult": {"required": ["token", "url", "room_name"], "type": "object", "properties": {"token": {"title": "Token", "type": "string", "minLength": 1}, "url": {"title": "Url", "type": "string", "minLength": 1}, "room_name": {"title": "Room name", "type": "string", "minLength": 1}}}, "LiveKitListenerTokenResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/LiveKitListenerTokenResult"}}}, "LiveKitPhoneResolutionResponse": {"required": ["call_id", "call_metadata", "provider_call_data", "status"], "type": "object", "properties": {"call_id": {"title": "Call id", "type": "string", "format": "uuid"}, "call_metadata": {"title": "Call metadata", "type": "object", "additionalProperties": {"type": "object"}}, "provider_call_data": {"title": "Provider call data", "type": "object", "additionalProperties": {"type": "object"}}, "status": {"title": "Status", "type": "string", "minLength": 1}}}, "LiveKitTemporalSignalRequest": {"type": "object", "properties": {"workflow_id": {"title": "Workflow id", "type": "string"}, "call_id": {"title": "Call id", "type": "string", "format": "uuid"}, "status": {"title": "Status", "type": "string", "default": "completed", "minLength": 1}, "duration_seconds": {"title": "Duration seconds", "type": "integer", "default": 0, "minimum": 0}, "end_reason": {"title": "End reason", "type": "string", "default": "agent_session_closed"}}}, "LiveKitTranscriptRow": {"type": "object", "properties": {"role": {"title": "Role", "type": "string", "minLength": 1}, "content": {"title": "Content", "type": "string", "minLength": 1}, "start_time_ms": {"title": "Start time ms", "type": "integer"}, "end_time_ms": {"title": "End time ms", "type": "integer", "default": 0}}}, "LiveKitTranscriptsRequest": {"type": "object", "properties": {"role": {"title": "Role", "type": "string", "minLength": 1}, "content": {"title": "Content", "type": "string", "minLength": 1}, "start_time_ms": {"title": "Start time ms", "type": "integer"}, "end_time_ms": {"title": "End time ms", "type": "integer", "default": 0}, "transcripts": {"type": "array", "items": {"$ref": "#/definitions/LiveKitTranscriptRow"}}}}, "LiveKitTranscriptCreatedResponse": {"type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "created": {"title": "Created", "type": "integer"}}}, "ValidateLiveKitCredentialsRequest": {"required": ["livekit_url", "api_key", "api_secret"], "type": "object", "properties": {"livekit_url": {"title": "Livekit url", "type": "string", "minLength": 1}, "api_key": {"title": "Api key", "type": "string", "minLength": 1}, "api_secret": {"title": "Api secret", "type": "string", "minLength": 1}, "agent_name": {"title": "Agent name", "type": "string"}, "agent_definition_id": {"title": "Agent definition id", "type": "string", "format": "uuid"}}}, "ValidateLiveKitCredentialsResult": {"required": ["valid"], "type": "object", "properties": {"valid": {"title": "Valid", "type": "boolean"}, "error": {"title": "Error", "type": "string"}}}, "ValidateLiveKitCredentialsResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/ValidateLiveKitCredentialsResult"}}}, "PersonaList": {"type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "persona_type": {"title": "Persona type", "description": "Type of persona (system or workspace-level)", "type": "string", "enum": ["system", "workspace"], "readOnly": true}, "persona_type_display": {"title": "Persona type display", "type": "string", "readOnly": true, "minLength": 1}, "name": {"title": "Name", "description": "Name of the persona", "type": "string", "readOnly": true, "minLength": 1}, "description": {"title": "Description", "description": "Description of the persona", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "gender": {"title": "Gender", "description": "List of genders for the persona (e.g., ['male'], ['female'])", "type": "object", "readOnly": true, "x-nullable": true}, "age_group": {"title": "Age group", "description": "List of age groups for the persona (e.g., ['18-25'], ['25-32'])", "type": "object", "readOnly": true, "x-nullable": true}, "occupation": {"title": "Occupation", "description": "List of occupations/professions for the persona (e.g., ['Engineer'], ['Teacher'])", "type": "object", "readOnly": true, "x-nullable": true}, "location": {"title": "Location", "description": "List of locations for the persona (e.g., ['United States'], ['Canada'])", "type": "object", "readOnly": true, "x-nullable": true}, "personality": {"title": "Personality", "description": "List of personality types for the persona (e.g., ['Friendly and cooperative'])", "type": "object", "readOnly": true, "x-nullable": true}, "communication_style": {"title": "Communication style", "description": "List of communication styles for the persona (e.g., ['Direct and concise'])", "type": "object", "readOnly": true, "x-nullable": true}, "multilingual": {"title": "Multilingual", "description": "Whether the persona supports multiple languages", "type": "boolean", "readOnly": true, "x-nullable": true}, "languages": {"title": "Languages", "description": "List of languages the persona speaks (e.g., ['English', 'Hindi'])", "type": "object", "readOnly": true, "x-nullable": true}, "accent": {"title": "Accent", "description": "List of accents for the persona (e.g., ['American'], ['Australian'])", "type": "object", "readOnly": true, "x-nullable": true}, "conversation_speed": {"title": "Conversation speed", "description": "List of conversation speeds (e.g., ['1.0'], ['1.25'])", "type": "object", "readOnly": true, "x-nullable": true}, "background_sound": {"title": "Background sound", "description": "Whether background sound is enabled (null=not specified, True/False for enabled/disabled)", "type": "boolean", "readOnly": true, "x-nullable": true}, "finished_speaking_sensitivity": {"title": "Finished speaking sensitivity", "description": "List of sensitivities for detecting when persona finished speaking (e.g., ['5'], ['6'])", "type": "object", "readOnly": true, "x-nullable": true}, "interrupt_sensitivity": {"title": "Interrupt sensitivity", "description": "List of sensitivities for allowing interruptions (e.g., ['5'], ['6'])", "type": "object", "readOnly": true, "x-nullable": true}, "keywords": {"title": "Keywords", "description": "List of keywords/tags describing the persona (e.g., ['Knowledgeable', 'Patient', 'Helpful'])", "type": "object", "readOnly": true, "x-nullable": true}, "metadata": {"title": "Metadata", "description": "Additional metadata for the persona (speech clarity, base emotion, etc.)", "type": "object", "readOnly": true, "x-nullable": true}, "additional_instruction": {"title": "Additional instruction", "description": "Additional instructions for how this persona should behave", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "is_default": {"title": "Is default", "description": "Whether this is a default/recommended persona", "type": "boolean", "readOnly": true, "x-nullable": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}, "simulation_type": {"title": "Simulation type", "type": "string", "readOnly": true}, "punctuation": {"title": "Punctuation", "description": "Punctuation style for the persona", "type": "string", "enum": ["clean", "minimal", "expressive", "erratic"], "readOnly": true, "x-nullable": true}, "slang_usage": {"title": "Slang usage", "description": "Slang usage for the persona", "type": "string", "enum": ["none", "moderate", "heavy", "light"], "readOnly": true, "x-nullable": true}, "typos_frequency": {"title": "Typos frequency", "description": "Typos frequency for the persona", "type": "string", "enum": ["none", "rare", "occasional", "frequent"], "readOnly": true, "x-nullable": true}, "regional_mix": {"title": "Regional mix", "description": "Regional mix for the persona", "type": "string", "enum": ["none", "moderate", "heavy", "light"], "readOnly": true, "x-nullable": true}, "emoji_usage": {"title": "Emoji usage", "description": "Emoji usage for the persona", "type": "string", "enum": ["never", "light", "regular", "heavy"], "readOnly": true, "x-nullable": true}, "tone": {"title": "Tone", "description": "Tone for the persona", "type": "string", "enum": ["formal", "casual", "neutral"], "readOnly": true, "x-nullable": true}, "verbosity": {"title": "Verbosity", "description": "Verbosity for the persona", "type": "string", "enum": ["brief", "balanced", "detailed"], "readOnly": true, "x-nullable": true}}}, "PersonaCreate": {"required": ["name", "description"], "type": "object", "properties": {"name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "description": {"title": "Description", "type": "string", "minLength": 1}, "gender": {"type": "array", "items": {"type": "string", "minLength": 1}, "default": [], "x-nullable": true}, "age_group": {"type": "array", "items": {"type": "string", "minLength": 1}, "default": [], "x-nullable": true}, "location": {"type": "array", "items": {"type": "string", "minLength": 1}, "default": [], "x-nullable": true}, "profession": {"type": "array", "items": {"type": "string", "minLength": 1}, "default": [], "x-nullable": true}, "personality": {"type": "array", "items": {"type": "string", "minLength": 1}, "default": [], "x-nullable": true}, "communication_style": {"type": "array", "items": {"type": "string", "minLength": 1}, "default": [], "x-nullable": true}, "accent": {"type": "array", "items": {"type": "string", "minLength": 1}, "default": [], "x-nullable": true}, "multilingual": {"title": "Multilingual", "type": "boolean", "default": false}, "language": {"type": "array", "items": {"type": "string", "minLength": 1}, "default": [], "x-nullable": true}, "conversation_speed": {"type": "array", "items": {"type": "string", "minLength": 1}, "default": [], "x-nullable": true}, "background_sound": {"title": "Background sound", "type": "boolean", "x-nullable": true}, "finished_speaking_sensitivity": {"type": "array", "items": {"type": "string", "minLength": 1}, "default": [], "x-nullable": true}, "interrupt_sensitivity": {"type": "array", "items": {"type": "string", "minLength": 1}, "default": [], "x-nullable": true}, "keywords": {"type": "array", "items": {"type": "string", "minLength": 1}, "default": [], "x-nullable": true}, "custom_properties": {"title": "Custom properties", "type": "object", "default": {}, "x-nullable": true}, "additional_instruction": {"title": "Additional instruction", "type": "string", "default": "", "x-nullable": true}, "simulation_type": {"title": "Simulation type", "type": "string", "default": "voice", "x-nullable": true}, "tone": {"title": "Tone", "type": "string", "default": "casual", "x-nullable": true}, "punctuation": {"title": "Punctuation", "type": "string", "default": "clean", "x-nullable": true}, "slang_usage": {"title": "Slang usage", "type": "string", "default": "light", "x-nullable": true}, "typos_frequency": {"title": "Typos frequency", "type": "string", "default": "rare", "x-nullable": true}, "regional_mix": {"title": "Regional mix", "type": "string", "default": "light", "x-nullable": true}, "emoji_usage": {"title": "Emoji usage", "type": "string", "default": "light", "x-nullable": true}, "verbosity": {"title": "Verbosity", "type": "string", "default": "balanced", "x-nullable": true}}}, "PersonaDuplicateRequest": {"required": ["name"], "type": "object", "properties": {"name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}}}, "Persona": {"required": ["name"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "persona_type": {"title": "Persona type", "description": "Type of persona (system or workspace-level)", "type": "string", "enum": ["system", "workspace"], "readOnly": true}, "persona_type_display": {"title": "Persona type display", "type": "string", "readOnly": true, "minLength": 1}, "name": {"title": "Name", "description": "Name of the persona", "type": "string", "maxLength": 255, "minLength": 1}, "description": {"title": "Description", "description": "Description of the persona", "type": "string", "x-nullable": true}, "gender": {"title": "Gender", "description": "List of genders for the persona (e.g., ['male'], ['female'])", "type": "object", "x-nullable": true}, "age_group": {"title": "Age group", "description": "List of age groups for the persona (e.g., ['18-25'], ['25-32'])", "type": "object", "x-nullable": true}, "occupation": {"title": "Occupation", "description": "List of occupations/professions for the persona (e.g., ['Engineer'], ['Teacher'])", "type": "object", "x-nullable": true}, "location": {"title": "Location", "description": "List of locations for the persona (e.g., ['United States'], ['Canada'])", "type": "object", "x-nullable": true}, "personality": {"title": "Personality", "description": "List of personality types for the persona (e.g., ['Friendly and cooperative'])", "type": "object", "x-nullable": true}, "communication_style": {"title": "Communication style", "description": "List of communication styles for the persona (e.g., ['Direct and concise'])", "type": "object", "x-nullable": true}, "multilingual": {"title": "Multilingual", "description": "Whether the persona supports multiple languages", "type": "boolean", "x-nullable": true}, "languages": {"title": "Languages", "description": "List of languages the persona speaks (e.g., ['English', 'Hindi'])", "type": "object", "x-nullable": true}, "accent": {"title": "Accent", "description": "List of accents for the persona (e.g., ['American'], ['Australian'])", "type": "object", "x-nullable": true}, "conversation_speed": {"title": "Conversation speed", "description": "List of conversation speeds (e.g., ['1.0'], ['1.25'])", "type": "object", "x-nullable": true}, "background_sound": {"title": "Background sound", "description": "Whether background sound is enabled (null=not specified, True/False for enabled/disabled)", "type": "boolean", "x-nullable": true}, "finished_speaking_sensitivity": {"title": "Finished speaking sensitivity", "description": "List of sensitivities for detecting when persona finished speaking (e.g., ['5'], ['6'])", "type": "object", "x-nullable": true}, "interrupt_sensitivity": {"title": "Interrupt sensitivity", "description": "List of sensitivities for allowing interruptions (e.g., ['5'], ['6'])", "type": "object", "x-nullable": true}, "keywords": {"title": "Keywords", "description": "List of keywords/tags describing the persona (e.g., ['Knowledgeable', 'Patient', 'Helpful'])", "type": "object", "x-nullable": true}, "metadata": {"title": "Metadata", "description": "Additional metadata for the persona (speech clarity, base emotion, etc.)", "type": "object", "x-nullable": true}, "additional_instruction": {"title": "Additional instruction", "description": "Additional instructions for how this persona should behave", "type": "string", "x-nullable": true}, "is_default": {"title": "Is default", "description": "Whether this is a default/recommended persona", "type": "boolean", "readOnly": true, "x-nullable": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}, "profession": {"type": "array", "items": {"type": "string", "minLength": 1}, "x-nullable": true}, "language": {"type": "array", "items": {"type": "string", "minLength": 1}, "x-nullable": true}, "custom_properties": {"title": "Custom properties", "type": "object", "x-nullable": true}, "simulation_type": {"title": "Simulation type", "description": "Type of simulation for the persona", "type": "string", "enum": ["voice", "text"], "readOnly": true}, "punctuation": {"title": "Punctuation", "description": "Punctuation style for the persona", "type": "string", "enum": ["clean", "minimal", "expressive", "erratic"], "x-nullable": true}, "slang_usage": {"title": "Slang usage", "description": "Slang usage for the persona", "type": "string", "enum": ["none", "moderate", "heavy", "light"], "x-nullable": true}, "typos_frequency": {"title": "Typos frequency", "description": "Typos frequency for the persona", "type": "string", "enum": ["none", "rare", "occasional", "frequent"], "x-nullable": true}, "regional_mix": {"title": "Regional mix", "description": "Regional mix for the persona", "type": "string", "enum": ["none", "moderate", "heavy", "light"], "x-nullable": true}, "emoji_usage": {"title": "Emoji usage", "description": "Emoji usage for the persona", "type": "string", "enum": ["never", "light", "regular", "heavy"], "x-nullable": true}, "tone": {"title": "Tone", "description": "Tone for the persona", "type": "string", "enum": ["formal", "casual", "neutral"], "x-nullable": true}, "verbosity": {"title": "Verbosity", "description": "Verbosity for the persona", "type": "string", "enum": ["brief", "balanced", "detailed"], "x-nullable": true}}}, "PersonaDuplicateResponse": {"type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/Persona"}}}, "PersonaFieldOptions": {"type": "object", "properties": {"gender_choices": {"title": "Gender choices", "type": "string", "readOnly": true}, "age_group_choices": {"title": "Age group choices", "type": "string", "readOnly": true}, "location_choices": {"title": "Location choices", "type": "string", "readOnly": true}, "profession_choices": {"title": "Profession choices", "type": "string", "readOnly": true}, "personality_choices": {"title": "Personality choices", "type": "string", "readOnly": true}, "communication_style_choices": {"title": "Communication style choices", "type": "string", "readOnly": true}, "accent_choices": {"title": "Accent choices", "type": "string", "readOnly": true}, "language_choices": {"title": "Language choices", "type": "string", "readOnly": true}, "conversation_speed_choices": {"title": "Conversation speed choices", "type": "string", "readOnly": true}, "tone_choices": {"title": "Tone choices", "type": "string", "readOnly": true}, "verbosity_choices": {"title": "Verbosity choices", "type": "string", "readOnly": true}, "punctuation_choices": {"title": "Punctuation choices", "type": "string", "readOnly": true}, "emoji_usage_choices": {"title": "Emoji usage choices", "type": "string", "readOnly": true}, "slang_usage_choices": {"title": "Slang usage choices", "type": "string", "readOnly": true}, "typos_frequency_choices": {"title": "Typos frequency choices", "type": "string", "readOnly": true}, "regional_mix_choices": {"title": "Regional mix choices", "type": "string", "readOnly": true}}}, "RunTestResponse": {"type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "description": "Name of the test run", "type": "string", "readOnly": true, "minLength": 1}, "description": {"title": "Description", "type": "string", "readOnly": true, "x-nullable": true}, "agent_definition": {"title": "Agent definition", "description": "Agent definition for this test run", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}, "agent_version": {"title": "Agent version", "type": "object", "readOnly": true, "x-nullable": true}, "agent_definition_detail": {"title": "Agent definition detail", "type": "object", "readOnly": true, "x-nullable": true}, "source_type": {"title": "Source type", "description": "Source type for the test run: agent_definition or prompt", "type": "string", "enum": ["agent_definition", "prompt"], "readOnly": true}, "source_type_display": {"title": "Source type display", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "prompt_template": {"title": "Prompt template", "description": "Prompt template for this test run (only for prompt source type)", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}, "prompt_template_detail": {"title": "Prompt template detail", "type": "object", "readOnly": true, "x-nullable": true}, "prompt_version": {"title": "Prompt version", "description": "Prompt version for this test run (only for prompt source type)", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}, "prompt_version_detail": {"title": "Prompt version detail", "type": "object", "readOnly": true, "x-nullable": true}, "scenarios": {"description": "Scenarios to run in this test", "type": "array", "items": {"description": "Scenarios to run in this test", "type": "string", "format": "uuid"}, "readOnly": true, "uniqueItems": true}, "scenarios_detail": {"type": "array", "items": {"type": "object"}, "readOnly": true}, "dataset_row_ids": {"description": "IDs of dataset rows to run evaluations on", "type": "array", "items": {"title": "Dataset row ids", "type": "string", "maxLength": 255, "minLength": 1}, "readOnly": true}, "simulator_agent": {"title": "Simulator agent", "description": "Simulator agent for this test run (derived from scenarios)", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}, "simulator_agent_detail": {"title": "Simulator agent detail", "type": "object", "readOnly": true, "x-nullable": true}, "simulate_eval_configs": {"type": "array", "items": {"type": "string", "format": "uuid"}, "readOnly": true, "uniqueItems": true}, "simulate_eval_configs_detail": {"type": "array", "items": {"$ref": "#/definitions/SimulateEvalConfigResponse"}, "readOnly": true}, "evals_detail": {"type": "array", "items": {"$ref": "#/definitions/SimulateEvalConfigResponse"}, "readOnly": true}, "organization": {"title": "Organization", "description": "Organization this test run belongs to", "type": "string", "format": "uuid", "readOnly": true}, "enable_tool_evaluation": {"title": "Enable tool evaluation", "description": "Enable automatic tool evaluation for this test run", "type": "boolean", "readOnly": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}, "last_run_at": {"title": "Last run at", "type": "string", "format": "date-time", "readOnly": true, "x-nullable": true}, "deleted": {"title": "Deleted", "type": "boolean", "readOnly": true}, "deleted_at": {"title": "Deleted at", "type": "string", "format": "date-time", "readOnly": true, "x-nullable": true}}}, "RunTestErrorResponse": {"type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": false}, "type": {"title": "Type", "type": "string", "enum": ["validation_error", "authentication_error", "payment_required", "entitlement_error", "permission_error", "not_found", "conflict", "client_error", "rate_limit", "server_error", "service_unavailable", "timeout", "api_error"], "x-nullable": true}, "code": {"title": "Code", "type": "string", "x-nullable": true}, "detail": {"title": "Detail", "type": "string", "x-nullable": true}, "result": {"title": "Result", "type": "string", "minLength": 1, "x-nullable": true}, "message": {"title": "Message", "type": "string", "minLength": 1, "x-nullable": true}, "error": {"title": "Error", "type": "string", "x-nullable": true}, "attr": {"title": "Attr", "type": "string", "x-nullable": true}, "details": {"title": "Details", "type": "object", "additionalProperties": {"type": "array", "items": {"type": "string", "minLength": 1}}}}}, "TestExecution": {"required": ["run_test"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "run_test": {"title": "Run test", "description": "The run test being executed", "type": "string", "format": "uuid"}, "run_test_name": {"title": "Run test name", "type": "string", "readOnly": true, "minLength": 1}, "agent_definition_name": {"title": "Agent definition name", "type": "string", "readOnly": true, "minLength": 1}, "status": {"title": "Status", "description": "Current status of the test execution", "type": "string", "enum": ["pending", "running", "completed", "failed", "cancelled", "cancelling", "evaluating"]}, "error_reason": {"title": "Error reason", "type": "string", "x-nullable": true}, "started_at": {"title": "Started at", "description": "When the test execution started", "type": "string", "format": "date-time"}, "completed_at": {"title": "Completed at", "description": "When the test execution completed", "type": "string", "format": "date-time", "x-nullable": true}, "total_scenarios": {"title": "Total scenarios", "description": "Total number of scenarios in this execution", "type": "integer", "maximum": 2147483647, "minimum": -2147483648}, "total_calls": {"title": "Total calls", "description": "Total number of calls to be made", "type": "integer", "maximum": 2147483647, "minimum": -2147483648}, "completed_calls": {"title": "Completed calls", "description": "Number of successfully completed calls", "type": "integer", "maximum": 2147483647, "minimum": -2147483648}, "failed_calls": {"title": "Failed calls", "description": "Number of failed calls", "type": "integer", "maximum": 2147483647, "minimum": -2147483648}, "execution_metadata": {"title": "Execution metadata", "description": "Additional metadata about the execution", "type": "object"}, "duration_seconds": {"title": "Duration seconds", "type": "string", "readOnly": true}, "success_rate": {"title": "Success rate", "type": "string", "readOnly": true}, "calls": {"type": "array", "items": {"$ref": "#/definitions/CallExecution"}, "readOnly": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "scenario_ids": {"title": "Scenario ids", "description": "List of scenario IDs that were executed in this run", "type": "object"}, "simulator_agent_name": {"title": "Simulator agent name", "type": "string", "readOnly": true, "minLength": 1}, "simulator_agent_id": {"title": "Simulator agent id", "type": "string", "format": "uuid", "readOnly": true}, "agent_definition_used_name": {"title": "Agent definition used name", "type": "string", "readOnly": true, "minLength": 1}, "agent_definition_used_id": {"title": "Agent definition used id", "type": "string", "format": "uuid", "readOnly": true}, "calls_attempted": {"title": "Calls attempted", "type": "string", "readOnly": true}, "calls_connected_percentage": {"title": "Calls connected percentage", "type": "string", "readOnly": true}}}, "CallExecutionEvalMetric": {"type": "object", "properties": {"id": {"title": "Id", "type": "string"}, "name": {"title": "Name", "type": "string"}, "value": {"title": "Value", "description": "number | bool | string | list[string] | null", "type": "object", "x-nullable": true}, "reason": {"title": "Reason", "type": "string"}, "type": {"title": "Type", "type": "string"}, "template_type": {"title": "Template type", "type": "string", "x-nullable": true}, "kind": {"title": "Kind", "description": "Set on the v3 call detail: a sub-goal check or an evaluation", "type": "string", "enum": ["evaluation", "sub_goal"]}, "visible": {"title": "Visible", "type": "boolean"}, "error": {"title": "Error", "type": "boolean"}, "status": {"title": "Status", "type": "string"}, "skipped": {"title": "Skipped", "type": "boolean"}, "removed": {"title": "Removed", "description": "Present and true only when the eval was removed from the environment; a live eval's verdict omits the key entirely.", "type": "boolean"}, "error_localizer": {"title": "Error localizer", "type": "boolean"}, "error_analysis": {"title": "Error analysis", "type": "object", "x-nullable": true}, "error_localizer_status": {"title": "Error localizer status", "type": "string", "x-nullable": true}, "error_localizer_message": {"title": "Error localizer message", "type": "string", "x-nullable": true}, "selected_input_key": {"title": "Selected input key", "type": "string", "x-nullable": true}, "input_data": {"title": "Input data", "type": "object", "x-nullable": true}, "input_types": {"title": "Input types", "type": "object", "x-nullable": true}}}, "CallExecutionDetail": {"type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "service_provider_call_id": {"title": "Service provider call id", "type": "string", "readOnly": true, "minLength": 1}, "session_id": {"title": "Session id", "type": "string", "readOnly": true}, "timestamp": {"title": "Timestamp", "type": "string", "format": "date-time", "readOnly": true}, "call_type": {"title": "Call type", "type": "string", "readOnly": true}, "status": {"title": "Status", "description": "Current status of the call", "type": "string", "enum": ["pending", "queued", "ongoing", "completed", "failed", "analyzing", "cancelled"]}, "duration": {"title": "Duration", "type": "string", "readOnly": true}, "duration_seconds": {"title": "Duration seconds", "description": "Duration of the call in seconds", "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "x-nullable": true}, "start_time": {"title": "Start time", "type": "string", "readOnly": true}, "transcript": {"title": "Transcript", "type": "string", "readOnly": true}, "scenario": {"title": "Scenario", "type": "string", "readOnly": true, "minLength": 1}, "overall_score": {"title": "Overall score", "type": "string", "readOnly": true}, "response_time": {"title": "Response time", "type": "string", "readOnly": true}, "response_time_ms": {"title": "Response time ms", "description": "Average response time in milliseconds", "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "x-nullable": true}, "audio_url": {"title": "Audio url", "type": "string", "format": "uri", "readOnly": true, "minLength": 1}, "customer_name": {"title": "Customer name", "type": "string", "readOnly": true, "minLength": 1}, "eval_outputs": {"title": "Eval outputs", "type": "string", "readOnly": true}, "eval_metrics": {"title": "Eval metrics", "description": "Get evaluation metrics in a format suitable for the UI", "type": "object", "additionalProperties": {"$ref": "#/definitions/CallExecutionEvalMetric"}, "readOnly": true}, "scenario_columns": {"title": "Scenario columns", "type": "string", "readOnly": true}, "ended_reason": {"title": "Ended reason", "description": "Reason why the call ended", "type": "string", "maxLength": 10000, "x-nullable": true}, "simulator_agent_name": {"title": "Simulator agent name", "type": "string", "readOnly": true, "minLength": 1}, "simulator_agent_id": {"title": "Simulator agent id", "type": "string", "format": "uuid", "readOnly": true}, "agent_definition_used_name": {"title": "Agent definition used name", "type": "string", "readOnly": true, "minLength": 1}, "agent_definition_used_id": {"title": "Agent definition used id", "type": "string", "format": "uuid", "readOnly": true}, "call_summary": {"title": "Call summary", "description": "Call summary from the service", "type": "string", "x-nullable": true}, "recordings": {"title": "Recordings", "type": "string", "readOnly": true}, "test_execution_id": {"title": "Test execution id", "type": "string", "format": "uuid", "readOnly": true}, "scenario_id": {"title": "Scenario id", "type": "string", "readOnly": true}, "source_scenario_key": {"title": "Source scenario key", "type": "string", "readOnly": true}, "trial_index": {"title": "Trial index", "type": "string", "readOnly": true}, "harness_outcome_status": {"title": "Harness outcome status", "type": "string", "readOnly": true}, "scenario_graph": {"title": "Scenario graph", "type": "string", "readOnly": true}, "scenario_graph_id": {"title": "Scenario graph id", "type": "string", "readOnly": true}, "avg_agent_latency": {"title": "Avg agent latency", "type": "integer", "readOnly": true}, "avg_agent_latency_ms": {"title": "Avg agent latency ms", "description": "Average agent latency in milliseconds (time taken by agent to respond after user's pause)", "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "x-nullable": true}, "user_interruption_count": {"title": "User interruption count", "description": "Number of times user interrupted the AI", "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "x-nullable": true}, "user_interruption_rate": {"title": "User interruption rate", "description": "Rate of user interruptions (interruptions per minute)", "type": "number", "x-nullable": true}, "user_wpm": {"title": "User wpm", "description": "User's words per minute", "type": "number", "x-nullable": true}, "bot_wpm": {"title": "Bot wpm", "description": "Bot's words per minute", "type": "number", "x-nullable": true}, "talk_ratio": {"title": "Talk ratio", "description": "Ratio of bot speaking time to user speaking time", "type": "number", "x-nullable": true}, "ai_interruption_count": {"title": "Ai interruption count", "description": "Number of times AI interrupted the user", "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "x-nullable": true}, "ai_interruption_rate": {"title": "Ai interruption rate", "description": "Rate of AI interruptions (interruptions per minute)", "type": "number", "x-nullable": true}, "avg_stop_time_after_interruption": {"title": "Avg stop time after interruption", "type": "integer", "readOnly": true}, "total_tokens": {"title": "Total tokens", "type": "string", "readOnly": true}, "input_tokens": {"title": "Input tokens", "type": "string", "readOnly": true}, "output_tokens": {"title": "Output tokens", "type": "string", "readOnly": true}, "avg_latency_ms": {"title": "Avg latency ms", "type": "string", "readOnly": true}, "turn_count": {"title": "Turn count", "type": "string", "readOnly": true}, "agent_talk_percentage": {"title": "Agent talk percentage", "type": "string", "readOnly": true}, "csat_score": {"title": "Csat score", "type": "string", "readOnly": true}, "processing_skipped": {"title": "Processing skipped", "type": "string", "readOnly": true}, "processing_skip_reason": {"title": "Processing skip reason", "type": "string", "readOnly": true}, "rerun_snapshots": {"title": "Rerun snapshots", "type": "string", "readOnly": true}, "is_snapshot": {"title": "Is snapshot", "type": "string", "readOnly": true}, "snapshot_timestamp": {"title": "Snapshot timestamp", "type": "string", "readOnly": true}, "rerun_type": {"title": "Rerun type", "type": "string", "readOnly": true}, "original_call_execution_id": {"title": "Original call execution id", "type": "string", "readOnly": true}, "tool_outputs": {"title": "Tool outputs", "description": "Tool evaluation output - separate from standard evaluations", "type": "object", "x-nullable": true}, "cost_cents": {"title": "Cost cents", "description": "Cost of the call in cents", "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "x-nullable": true}, "customer_cost_cents": {"title": "Customer cost cents", "description": "Total customer-reported cost in cents", "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "x-nullable": true}, "customer_cost_breakdown": {"title": "Customer cost breakdown", "description": "Detailed cost breakdown from customer call data", "type": "object", "x-nullable": true}, "customer_latency_metrics": {"title": "Customer latency metrics", "description": "Latency metrics from customer call data", "type": "object", "x-nullable": true}, "customer_call_id": {"title": "Customer call id", "description": "Customer call ID if available", "type": "string", "maxLength": 255, "x-nullable": true}, "simulation_call_type": {"title": "Simulation call type", "description": "Type of simulation call", "type": "string", "enum": ["voice", "text"]}, "provider": {"title": "Provider", "type": "string", "readOnly": true}, "phone_number": {"title": "Phone number", "description": "Phone number called (null for TEXT/chat simulations)", "type": "string", "maxLength": 20, "x-nullable": true}}}, "CallExecutionStatusUpdate": {"required": ["status"], "type": "object", "properties": {"status": {"title": "Status", "type": "string", "enum": ["pending", "queued", "ongoing", "completed", "failed", "analyzing", "cancelled"]}, "ended_reason": {"title": "Ended reason", "type": "string", "x-nullable": true}}}, "CallBranchAnalysisResponse": {"type": "object", "properties": {"call_execution_id": {"title": "Call execution id", "type": "string", "format": "uuid", "readOnly": true}, "scenario_id": {"title": "Scenario id", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}, "scenario_name": {"title": "Scenario name", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "analysis": {"title": "Analysis", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}, "readOnly": true}, "analyzed_at": {"title": "Analyzed at", "type": "string", "format": "date-time", "readOnly": true}}}, "ErrorResponse": {"type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": false}, "type": {"title": "Type", "type": "string", "enum": ["validation_error", "authentication_error", "payment_required", "entitlement_error", "permission_error", "not_found", "conflict", "client_error", "rate_limit", "server_error", "service_unavailable", "timeout", "api_error"], "x-nullable": true}, "code": {"title": "Code", "type": "string", "x-nullable": true}, "detail": {"title": "Detail", "type": "string", "x-nullable": true}, "result": {"title": "Result", "type": "string", "minLength": 1, "x-nullable": true}, "message": {"title": "Message", "type": "string", "minLength": 1, "x-nullable": true}, "error": {"title": "Error", "type": "string", "x-nullable": true}, "attr": {"title": "Attr", "type": "string", "x-nullable": true}, "details": {"title": "Details", "type": "object", "additionalProperties": {"type": "array", "items": {"type": "string", "minLength": 1}}}}}, "CallBranchDeviationCreateResponse": {"type": "object", "properties": {"call_execution_id": {"title": "Call execution id", "type": "string", "format": "uuid", "readOnly": true}, "scenario_graph_id": {"title": "Scenario graph id", "type": "string", "format": "uuid", "readOnly": true}, "deviation_data": {"title": "Deviation data", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}, "readOnly": true}, "message": {"title": "Message", "type": "string", "readOnly": true, "minLength": 1}}}, "ChatToolCallFunction": {"required": ["name", "arguments"], "type": "object", "properties": {"name": {"title": "Name", "type": "string", "minLength": 1}, "arguments": {"title": "Arguments", "type": "string", "minLength": 1}}}, "ChatToolCall": {"required": ["id", "type", "function"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "minLength": 1}, "type": {"title": "Type", "type": "string", "minLength": 1}, "function": {"$ref": "#/definitions/ChatToolCallFunction"}}, "x-nullable": true}, "ChatMessageContract": {"required": ["role"], "type": "object", "properties": {"role": {"title": "Role", "type": "string", "enum": ["user", "assistant", "tool"]}, "content": {"title": "Content", "type": "string", "x-nullable": true}, "tool_call_id": {"title": "Tool call id", "type": "string", "x-nullable": true}, "name": {"title": "Name", "type": "string", "x-nullable": true}, "metadata": {"title": "Metadata", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}, "x-nullable": true}, "tool_calls": {"type": "array", "items": {"$ref": "#/definitions/ChatToolCall"}, "x-nullable": true}}, "x-nullable": true}, "SendChatRequest": {"type": "object", "properties": {"messages": {"type": "array", "items": {"$ref": "#/definitions/ChatMessageContract"}, "x-nullable": true}, "metrics": {"title": "Metrics", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}, "x-nullable": true}, "initiate_chat": {"title": "Initiate chat", "type": "boolean", "default": false}}}, "ChatSendMessageResult": {"required": ["message_history"], "type": "object", "properties": {"input_message": {"type": "array", "items": {"$ref": "#/definitions/ChatMessageContract"}, "x-nullable": true}, "output_message": {"type": "array", "items": {"$ref": "#/definitions/ChatMessageContract"}, "x-nullable": true}, "message_history": {"type": "array", "items": {"$ref": "#/definitions/ChatMessageContract"}}, "chat_ended": {"title": "Chat ended", "type": "boolean", "default": false}}}, "ChatSendMessageResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/ChatSendMessageResult"}}}, "CallExecutionDeleteResponse": {"type": "object", "properties": {"message": {"title": "Message", "type": "string", "readOnly": true, "minLength": 1}}}, "ErrorLocalizerTaskResponse": {"type": "object", "properties": {"task_id": {"title": "Task id", "type": "string", "format": "uuid", "readOnly": true}, "eval_config_id": {"title": "Eval config id", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "status": {"title": "Status", "type": "string", "readOnly": true}, "eval_result": {"title": "Eval result", "type": "object", "readOnly": true, "x-nullable": true}, "eval_explanation": {"title": "Eval explanation", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "input_data": {"title": "Input data", "type": "object", "readOnly": true, "x-nullable": true}, "input_keys": {"title": "Input keys", "type": "object", "readOnly": true, "x-nullable": true}, "input_types": {"title": "Input types", "type": "object", "readOnly": true, "x-nullable": true}, "rule_prompt": {"title": "Rule prompt", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "error_analysis": {"title": "Error analysis", "type": "object", "readOnly": true, "x-nullable": true}, "selected_input_key": {"title": "Selected input key", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "error_message": {"title": "Error message", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true, "x-nullable": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true, "x-nullable": true}, "eval_template_name": {"title": "Eval template name", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "eval_template_id": {"title": "Eval template id", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}}}, "CallExecutionErrorLocalizerTasksResponse": {"type": "object", "properties": {"call_execution_id": {"title": "Call execution id", "type": "string", "format": "uuid", "readOnly": true}, "error_localizer_tasks": {"type": "array", "items": {"$ref": "#/definitions/ErrorLocalizerTaskResponse"}, "readOnly": true}, "total_tasks": {"title": "Total tasks", "type": "integer", "readOnly": true}}}, "CallLogEntryResponse": {"type": "object", "properties": {"id": {"title": "Id", "type": "string", "readOnly": true, "minLength": 1}, "logged_at": {"title": "Logged at", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "level": {"title": "Level", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "severity_text": {"title": "Severity text", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "category": {"title": "Category", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "body": {"title": "Body", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "attributes": {"title": "Attributes", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}, "readOnly": true, "x-nullable": true}, "payload": {"title": "Payload", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}, "readOnly": true, "x-nullable": true}}}, "CallExecutionLogsResponse": {"type": "object", "properties": {"results": {"type": "array", "items": {"$ref": "#/definitions/CallLogEntryResponse"}, "readOnly": true}, "source": {"title": "Source", "type": "string", "readOnly": true, "minLength": 1}, "ingestion_pending": {"title": "Ingestion pending", "type": "boolean", "readOnly": true}}}, "SessionComparisonResult": {"type": "object", "properties": {"comparison_metrics": {"title": "Comparison metrics", "type": "object", "readOnly": true}, "comparison_transcripts": {"title": "Comparison transcripts", "type": "object", "readOnly": true}, "comparison_recordings": {"title": "Comparison recordings", "type": "object", "readOnly": true, "x-nullable": true}}}, "SessionComparisonResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/SessionComparisonResult"}}}, "CallTranscript": {"required": ["content"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "speaker_role": {"title": "Speaker role", "description": "Role of the speaker (user or assistant)", "type": "string", "enum": ["user", "assistant", "system", "tool_calls", "tool_call_result", "unknown"]}, "content": {"title": "Content", "description": "Transcript content", "type": "string", "minLength": 1}, "start_time_ms": {"title": "Start time ms", "description": "Start time of this transcript segment in milliseconds", "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808}, "start_time_seconds": {"title": "Start time seconds", "type": "string", "readOnly": true}, "end_time_ms": {"title": "End time ms", "description": "End time of this transcript segment in milliseconds", "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808}, "end_time_seconds": {"title": "End time seconds", "type": "string", "readOnly": true}, "confidence_score": {"title": "Confidence score", "description": "Confidence score for this transcript segment", "type": "number"}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}}}, "CallTranscriptResponse": {"type": "object", "properties": {"call_execution_id": {"title": "Call execution id", "type": "string", "format": "uuid", "readOnly": true}, "phone_number": {"title": "Phone number", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "status": {"title": "Status", "type": "string", "readOnly": true, "minLength": 1}, "transcripts": {"type": "array", "items": {"$ref": "#/definitions/CallTranscript"}, "readOnly": true}, "total_transcripts": {"title": "Total transcripts", "type": "integer", "readOnly": true}}}, "PromptSimulationScenarioItem": {"type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "type": "string", "readOnly": true, "minLength": 1}, "description": {"title": "Description", "type": "string", "readOnly": true}, "scenario_type": {"title": "Scenario type", "type": "string", "readOnly": true, "minLength": 1}, "dataset_id": {"title": "Dataset id", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}}}, "PromptSimulationScenariosResult": {"type": "object", "properties": {"count": {"title": "Count", "type": "integer", "readOnly": true}, "page": {"title": "Page", "type": "integer", "readOnly": true}, "limit": {"title": "Limit", "type": "integer", "readOnly": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/PromptSimulationScenarioItem"}, "readOnly": true}}}, "PromptSimulationScenariosResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/PromptSimulationScenariosResult"}}}, "PromptSimulationTemplateSummary": {"type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "type": "string", "readOnly": true, "minLength": 1}}}, "PromptSimulationListResult": {"type": "object", "properties": {"count": {"title": "Count", "type": "integer", "readOnly": true}, "page": {"title": "Page", "type": "integer", "readOnly": true}, "limit": {"title": "Limit", "type": "integer", "readOnly": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/RunTestResponse"}, "readOnly": true}, "prompt_template": {"$ref": "#/definitions/PromptSimulationTemplateSummary"}}}, "PromptSimulationListResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/PromptSimulationListResult"}}}, "EvalConfigDefinition": {"required": ["template_id"], "type": "object", "properties": {"template_id": {"title": "Template id", "description": "UUID of the evaluation template to use.", "type": "string", "format": "uuid"}, "name": {"title": "Name", "description": "Name for this evaluation configuration. Defaults to 'Eval-<template_id>' if omitted.", "type": "string"}, "config": {"title": "Config", "description": "Template-specific configuration parameters.", "type": "object", "default": {}, "additionalProperties": true}, "mapping": {"title": "Mapping", "description": "Maps test execution data fields to the evaluation template's expected inputs.", "type": "object", "default": {}, "additionalProperties": true}, "filters": {"description": "Canonical filter list to restrict which test results are evaluated.", "type": "array", "items": {"type": "object", "properties": {"column_id": {"type": "string", "description": "Column or attribute id to filter on."}, "property_id": {"type": "string", "description": "Optional stable namespaced Property Registry identity."}, "display_name": {"type": "string", "description": "Optional UI label for chips and saved views."}, "source": {"type": "string", "description": "Optional source surface for mixed-source filters, for example traces, datasets, or simulation."}, "output_type": {"type": "string", "description": "Optional metric output type metadata used by eval and annotation filters."}, "filter_config": {"type": "object", "properties": {"filter_type": {"type": "string", "description": "Canonical field type, for example text, number, boolean, datetime, categorical, thumbs, annotator, array, or map. Legacy json is value-sensitive for SPAN_ATTRIBUTE filters: list values become array and object values become map."}, "filter_op": {"type": "string", "description": "Canonical operator from api_contracts/filter_contract.json, for example equals, not_equals, in, not_in, between, not_between, is_null, or is_not_null."}, "filter_value": {"description": "Scalar, list, range tuple, boolean, or null depending on filter_op and filter_type."}, "col_type": {"type": "string", "description": "Column family such as SYSTEM_METRIC, SPAN_ATTRIBUTE, EVAL_METRIC, ANNOTATION, or NORMAL."}, "attribute_value_types": {"type": "array", "items": {"type": "string", "enum": ["string", "number", "boolean"], "x-nullable": true}, "description": "Optional storage-family provenance aligned one-for-one with filter_value for mixed SPAN_ATTRIBUTE in/not_in filters. Null entries retain filter_type semantics for manually entered values."}}, "required": ["filter_type", "filter_op"], "additionalProperties": false}}, "required": ["column_id", "filter_config"], "additionalProperties": false}, "default": []}, "error_localizer": {"title": "Error localizer", "description": "Enables granular error localization on evaluation failures.", "type": "boolean", "default": false}, "model": {"title": "Model", "description": "Model to use for running this evaluation.", "type": "string", "minLength": 1, "x-nullable": true}, "kb_id": {"title": "Kb id", "description": "Knowledge base file to use for this evaluation.", "type": "string", "format": "uuid", "x-nullable": true}, "eval_group": {"title": "Eval group", "description": "Eval group that created this evaluation config.", "type": "string", "format": "uuid", "x-nullable": true}}}, "CreatePromptSimulationRequest": {"required": ["name", "prompt_version_id", "scenario_ids"], "type": "object", "properties": {"name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "description": {"title": "Description", "type": "string"}, "prompt_version_id": {"title": "Prompt version id", "description": "Prompt version ID (UUID) or template_version string", "type": "string", "maxLength": 255, "minLength": 1}, "scenario_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}}, "dataset_row_ids": {"type": "array", "items": {"type": "string", "maxLength": 255, "minLength": 1}}, "evaluations_config": {"description": "Evaluation configurations to create", "type": "array", "items": {"$ref": "#/definitions/EvalConfigDefinition"}, "default": []}, "enable_tool_evaluation": {"title": "Enable tool evaluation", "description": "Enable automatic tool evaluation for this simulation run", "type": "boolean", "default": false}}}, "PromptSimulationRunResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/RunTestResponse"}}}, "PromptSimulationUpdateRequest": {"type": "object", "properties": {"prompt_version_id": {"title": "Prompt version id", "type": "string", "maxLength": 255, "minLength": 1}, "scenario_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}}, "name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "description": {"title": "Description", "type": "string"}, "enable_tool_evaluation": {"title": "Enable tool evaluation", "type": "boolean"}}}, "ExecutePromptSimulationRequest": {"type": "object", "properties": {"scenario_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}, "default": []}, "select_all": {"title": "Select all", "type": "boolean", "default": false}}}, "ExecutePromptSimulationResult": {"required": ["scenario_ids"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "readOnly": true, "minLength": 1}, "execution_id": {"title": "Execution id", "type": "string", "format": "uuid", "readOnly": true}, "run_test_id": {"title": "Run test id", "type": "string", "format": "uuid", "readOnly": true}, "status": {"title": "Status", "type": "string", "readOnly": true, "minLength": 1}, "total_scenarios": {"title": "Total scenarios", "type": "integer", "readOnly": true}, "total_calls": {"title": "Total calls", "type": "integer", "readOnly": true}, "scenario_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}}}}, "ExecutePromptSimulationResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/ExecutePromptSimulationResult"}}}, "RunTestListPaginatedResponse": {"type": "object", "properties": {"count": {"title": "Count", "type": "integer", "readOnly": true}, "next": {"title": "Next", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "previous": {"title": "Previous", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/RunTestResponse"}, "readOnly": true}, "total_pages": {"title": "Total pages", "type": "integer", "readOnly": true}, "current_page": {"title": "Current page", "type": "integer", "readOnly": true}}}, "AllActiveTests": {"required": ["active_tests", "total_active"], "type": "object", "properties": {"active_tests": {"title": "Active tests", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}}, "total_active": {"title": "Total active", "type": "integer"}}}, "CreateRunTest": {"required": ["name", "agent_definition_id", "scenario_ids"], "type": "object", "properties": {"name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "description": {"title": "Description", "type": "string"}, "agent_definition_id": {"title": "Agent definition id", "type": "string", "format": "uuid"}, "scenario_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}}, "dataset_row_ids": {"type": "array", "items": {"type": "string", "maxLength": 255, "minLength": 1}}, "eval_config_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}, "default": []}, "evaluations_config": {"description": "Evaluation configurations to create", "type": "array", "items": {"$ref": "#/definitions/EvalConfigDefinition"}, "default": []}, "enable_tool_evaluation": {"title": "Enable tool evaluation", "description": "Enable automatic tool evaluation for this test run", "type": "boolean", "default": false}, "replay_session_id": {"title": "Replay session id", "description": "Optional replay session ID to mark as completed after run test creation", "type": "string", "format": "uuid", "x-nullable": true}, "agent_version": {"title": "Agent version", "description": "Optional agent version to bind to this test run", "type": "string", "format": "uuid", "x-nullable": true}}}, "RunTestNameResult": {"required": ["run_test_id", "run_test_name"], "type": "object", "properties": {"run_test_id": {"title": "Run test id", "type": "string", "format": "uuid"}, "run_test_name": {"title": "Run test name", "type": "string", "minLength": 1}}}, "RunTestNameResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/RunTestNameResult"}}}, "UpdateRunTest": {"type": "object", "properties": {"name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "description": {"title": "Description", "type": "string"}, "agent_definition_id": {"title": "Agent definition id", "type": "string", "format": "uuid"}, "scenario_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}}, "dataset_row_ids": {"type": "array", "items": {"type": "string", "maxLength": 255, "minLength": 1}}, "eval_config_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}}}}, "RunTestMessageResponse": {"type": "object", "properties": {"message": {"title": "Message", "type": "string", "readOnly": true, "minLength": 1}}}, "RunTestAnalytics": {"required": ["run_test_info", "fail_rate_trends", "evaluation_score_trends", "performance_comparison"], "type": "object", "properties": {"run_test_info": {"title": "Run test info", "description": "Run test metadata", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}}, "fail_rate_trends": {"description": "Fail-rate trend points", "type": "array", "items": {"type": "object", "additionalProperties": {"type": "string", "x-nullable": true}}}, "evaluation_score_trends": {"description": "Evaluation score trend points", "type": "array", "items": {"type": "object", "additionalProperties": {"type": "string", "x-nullable": true}}}, "performance_comparison": {"description": "Per-execution performance rows", "type": "array", "items": {"type": "object", "additionalProperties": {"type": "string", "x-nullable": true}}}, "summary_stats": {"title": "Summary stats", "description": "Aggregate performance summary", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}}}}, "RunTestCallExecutionsResponse": {"type": "object", "properties": {"count": {"title": "Count", "type": "integer", "readOnly": true}, "next": {"title": "Next", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "previous": {"title": "Previous", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "results": {"type": "array", "items": {"type": "object", "additionalProperties": {"type": "string", "x-nullable": true}}, "readOnly": true}, "total_pages": {"title": "Total pages", "type": "integer", "readOnly": true}, "current_page": {"title": "Current page", "type": "integer", "readOnly": true}}}, "RunTestChatExecutionResult": {"required": ["message", "execution_id", "run_test_id", "status", "total_scenarios"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}, "execution_id": {"title": "Execution id", "type": "string", "format": "uuid"}, "run_test_id": {"title": "Run test id", "type": "string", "format": "uuid"}, "status": {"title": "Status", "type": "string", "minLength": 1}, "total_scenarios": {"type": "array", "items": {"type": "string", "format": "uuid"}}}}, "RunTestChatExecutionResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/RunTestChatExecutionResult"}}}, "RunTestComponentsUpdate": {"type": "object", "properties": {"agent_definition_id": {"title": "Agent definition id", "type": "string", "format": "uuid"}, "version": {"title": "Version", "type": "string", "format": "uuid"}, "simulator_agent_id": {"title": "Simulator agent id", "type": "string", "format": "uuid"}, "scenarios": {"type": "array", "items": {"type": "string", "format": "uuid"}}, "enable_tool_evaluation": {"title": "Enable tool evaluation", "type": "boolean"}}}, "TestExecutionBulkDelete": {"type": "object", "properties": {"test_execution_ids": {"description": "List of specific test execution IDs to delete", "type": "array", "items": {"type": "string", "format": "uuid"}}, "select_all": {"title": "Select all", "description": "Whether to delete all test executions in the run test", "type": "boolean", "default": false}}}, "TestExecutionBulkDeleteResponse": {"type": "object", "properties": {"message": {"title": "Message", "type": "string", "readOnly": true, "minLength": 1}, "run_test_id": {"title": "Run test id", "type": "string", "format": "uuid", "readOnly": true}, "deleted_count": {"title": "Deleted count", "type": "integer", "readOnly": true}, "deleted_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}, "readOnly": true}}}, "AddEvalConfigsRequest": {"required": ["evaluations_config"], "type": "object", "properties": {"evaluations_config": {"description": "Array of evaluation configuration objects to add. At least one required.", "type": "array", "items": {"$ref": "#/definitions/EvalConfigDefinition"}, "minItems": 1}}}, "EvalConfigResponse": {"type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "type": "string", "maxLength": 255, "x-nullable": true}, "config": {"title": "Config", "type": "object", "x-nullable": true}, "mapping": {"title": "Mapping", "type": "object", "x-nullable": true}, "filters": {"title": "Filters", "type": "object", "x-nullable": true}, "error_localizer": {"title": "Error localizer", "type": "boolean"}, "model": {"title": "Model", "type": "string", "maxLength": 255, "x-nullable": true}, "status": {"title": "Status", "type": "string", "enum": ["NotStarted", "Queued", "Running", "Completed", "Editing", "Inactive", "Failed", "PartialRun", "ExperimentEvaluation", "Uploading", "PartialExtracted", "Processing", "Deleting", "PartialCompleted", "OptimizationEvaluation", "Error", "Cancelled"]}, "eval_group": {"title": "Eval group", "type": "string", "readOnly": true}, "template_id": {"title": "Template id", "type": "string", "format": "uuid", "readOnly": true}, "eval_type": {"title": "Eval type", "type": "string", "readOnly": true, "minLength": 1}, "regradable": {"title": "Regradable", "type": "boolean", "readOnly": true}, "editable": {"title": "Editable", "type": "boolean", "readOnly": true}}}, "AddEvalConfigsResponse": {"required": ["message", "created_eval_configs", "run_test_id"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}, "created_eval_configs": {"type": "array", "items": {"$ref": "#/definitions/EvalConfigResponse"}}, "run_test_id": {"title": "Run test id", "type": "string", "format": "uuid"}, "warnings": {"description": "Non-fatal issues encountered while processing individual configs.", "type": "array", "items": {"type": "string", "minLength": 1}}}}, "DeleteEvalConfigResponse": {"required": ["message"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}}}, "EvalConfigStructure": {"required": ["required_keys", "optional_keys", "variable_keys"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "template_id": {"title": "Template id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "type": "string", "readOnly": true, "minLength": 1}, "reason_column": {"title": "Reason column", "type": "boolean", "readOnly": true}, "eval_tags": {"title": "Eval tags", "type": "object", "readOnly": true, "x-nullable": true}, "description": {"title": "Description", "type": "string", "readOnly": true}, "required_keys": {"type": "array", "items": {"type": "string", "minLength": 1}}, "optional_keys": {"type": "array", "items": {"type": "string", "minLength": 1}}, "variable_keys": {"type": "array", "items": {"type": "string", "minLength": 1}}, "run_prompt_column": {"title": "Run prompt column", "type": "boolean", "readOnly": true}, "template_name": {"title": "Template name", "type": "string", "readOnly": true, "minLength": 1}, "mapping": {"title": "Mapping", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}, "readOnly": true}, "config": {"title": "Config", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}, "readOnly": true}, "params": {"title": "Params", "type": "object", "readOnly": true, "x-nullable": true}, "function_params_schema": {"title": "Function params schema", "type": "object", "readOnly": true, "x-nullable": true}, "models": {"title": "Models", "type": "object", "readOnly": true, "x-nullable": true}, "selected_model": {"title": "Selected model", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "error_localizer": {"title": "Error localizer", "type": "boolean", "readOnly": true}, "kb_id": {"title": "Kb id", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}, "output": {"title": "Output", "type": "object", "readOnly": true, "x-nullable": true}, "config_params_desc": {"title": "Config params desc", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}, "readOnly": true}, "config_params_option": {"title": "Config params option", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}, "readOnly": true}, "api_key_available": {"title": "Api key available", "type": "boolean", "readOnly": true}}}, "EvalConfigStructureResult": {"required": ["eval"], "type": "object", "properties": {"eval": {"$ref": "#/definitions/EvalConfigStructure"}}}, "EvalConfigStructureResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/EvalConfigStructureResult"}}}, "EvalConfigUpdateRequest": {"type": "object", "properties": {"config": {"title": "Config", "description": "Updated evaluation configuration parameters.", "type": "object", "x-nullable": true, "additionalProperties": true}, "mapping": {"title": "Mapping", "description": "Updated field mapping between test data and evaluation inputs.", "type": "object", "x-nullable": true, "additionalProperties": true}, "model": {"title": "Model", "description": "Model to use for evaluations.", "type": "string", "minLength": 1, "x-nullable": true}, "error_localizer": {"title": "Error localizer", "description": "Enable granular error localization in evaluation results.", "type": "boolean"}, "kb_id": {"title": "Kb id", "description": "UUID of a knowledge base to use for grounding. Pass null to clear. Switching template_id without providing an explicit kb_id will clear the KB association.", "type": "string", "format": "uuid", "x-nullable": true}, "template_id": {"title": "Template id", "description": "UUID of the evaluation template to switch to.", "type": "string", "format": "uuid"}, "filters": {"description": "Updated canonical filter list to restrict which test results are evaluated.", "type": "array", "items": {"type": "object", "properties": {"column_id": {"type": "string", "description": "Column or attribute id to filter on."}, "property_id": {"type": "string", "description": "Optional stable namespaced Property Registry identity."}, "display_name": {"type": "string", "description": "Optional UI label for chips and saved views."}, "source": {"type": "string", "description": "Optional source surface for mixed-source filters, for example traces, datasets, or simulation."}, "output_type": {"type": "string", "description": "Optional metric output type metadata used by eval and annotation filters."}, "filter_config": {"type": "object", "properties": {"filter_type": {"type": "string", "description": "Canonical field type, for example text, number, boolean, datetime, categorical, thumbs, annotator, array, or map. Legacy json is value-sensitive for SPAN_ATTRIBUTE filters: list values become array and object values become map."}, "filter_op": {"type": "string", "description": "Canonical operator from api_contracts/filter_contract.json, for example equals, not_equals, in, not_in, between, not_between, is_null, or is_not_null."}, "filter_value": {"description": "Scalar, list, range tuple, boolean, or null depending on filter_op and filter_type."}, "col_type": {"type": "string", "description": "Column family such as SYSTEM_METRIC, SPAN_ATTRIBUTE, EVAL_METRIC, ANNOTATION, or NORMAL."}, "attribute_value_types": {"type": "array", "items": {"type": "string", "enum": ["string", "number", "boolean"], "x-nullable": true}, "description": "Optional storage-family provenance aligned one-for-one with filter_value for mixed SPAN_ATTRIBUTE in/not_in filters. Null entries retain filter_type semantics for manually entered values."}}, "required": ["filter_type", "filter_op"], "additionalProperties": false}}, "required": ["column_id", "filter_config"], "additionalProperties": false}, "x-nullable": true}, "name": {"title": "Name", "description": "Updated name for the evaluation configuration.", "type": "string", "minLength": 1}, "run": {"title": "Run", "description": "When true, triggers an immediate rerun after updating. Defaults to false.", "type": "boolean", "default": false}, "test_execution_id": {"title": "Test execution id", "description": "UUID of the test execution to rerun against. Required when run is true.", "type": "string", "format": "uuid", "x-nullable": true}}}, "EvalConfigUpdateResponse": {"required": ["message", "eval_config_id", "run_test_id"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}, "eval_config_id": {"title": "Eval config id", "type": "string", "format": "uuid"}, "run_test_id": {"title": "Run test id", "type": "string", "format": "uuid"}, "test_execution_id": {"title": "Test execution id", "type": "string", "format": "uuid", "x-nullable": true}, "call_execution_count": {"title": "Call execution count", "type": "integer", "x-nullable": true}, "note": {"title": "Note", "type": "string", "minLength": 1, "x-nullable": true}}}, "EvalSummaryComparisonResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"title": "Result", "type": "object", "additionalProperties": {"type": "array", "items": {"$ref": "#/definitions/EvalTemplateSummary"}}}}}, "ExecuteRunTest": {"type": "object", "properties": {"scenario_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}, "default": []}, "simulator_id": {"title": "Simulator id", "type": "string", "format": "uuid", "x-nullable": true}, "select_all": {"title": "Select all", "type": "boolean", "default": false}}}, "RunTestExecutionResponse": {"type": "object", "properties": {"message": {"title": "Message", "type": "string", "readOnly": true, "minLength": 1}, "execution_id": {"title": "Execution id", "type": "string", "format": "uuid", "readOnly": true}, "run_test_id": {"title": "Run test id", "type": "string", "format": "uuid", "readOnly": true}, "status": {"title": "Status", "type": "string", "readOnly": true, "minLength": 1}, "total_scenarios": {"title": "Total scenarios", "type": "integer", "readOnly": true}, "total_calls": {"title": "Total calls", "type": "integer", "readOnly": true}, "scenario_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}, "readOnly": true}}}, "TestExecutionItemResponse": {"type": "object", "properties": {"id": {"title": "Id", "type": "string", "readOnly": true, "minLength": 1}, "status": {"title": "Status", "type": "string", "readOnly": true, "minLength": 1}, "scenarios": {"title": "Scenarios", "type": "string", "readOnly": true, "minLength": 1}, "start_time": {"title": "Start time", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "duration": {"title": "Duration", "type": "integer", "readOnly": true}, "error_reason": {"title": "Error reason", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "success_rate": {"title": "Success rate", "type": "number", "readOnly": true}, "avg_response_time": {"title": "Avg response time", "type": "number", "readOnly": true}, "calls": {"title": "Calls", "type": "integer", "readOnly": true}, "calls_attempted": {"title": "Calls attempted", "type": "integer", "readOnly": true}, "connected_calls": {"title": "Connected calls", "type": "integer", "readOnly": true}, "agent_version": {"title": "Agent version", "type": "string", "readOnly": true, "minLength": 1}, "agent_definition": {"title": "Agent definition", "type": "string", "readOnly": true, "minLength": 1}, "calls_connected_percentage": {"title": "Calls connected percentage", "type": "number", "readOnly": true}, "total_chats": {"title": "Total chats", "type": "integer", "readOnly": true}, "agent_type": {"title": "Agent type", "type": "string", "readOnly": true, "minLength": 1}, "total_number_of_fagi_agent_turns": {"title": "Total number of fagi agent turns", "type": "integer", "readOnly": true}, "source_type": {"title": "Source type", "type": "string", "readOnly": true, "minLength": 1}, "scenario_keys": {"type": "array", "items": {"type": "string", "minLength": 1}, "readOnly": true}, "selected_scenarios": {"title": "Selected scenarios", "type": "integer", "readOnly": true}, "trials": {"title": "Trials", "type": "integer", "readOnly": true}, "total_calls": {"title": "Total calls", "type": "integer", "readOnly": true}, "completed_calls": {"title": "Completed calls", "type": "integer", "readOnly": true}, "failed_calls": {"title": "Failed calls", "type": "integer", "readOnly": true}, "pending_calls": {"title": "Pending calls", "type": "integer", "readOnly": true}, "completed_at": {"title": "Completed at", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "outcome_passed": {"title": "Outcome passed", "type": "integer", "readOnly": true, "x-nullable": true}, "outcome_failed": {"title": "Outcome failed", "type": "integer", "readOnly": true, "x-nullable": true}, "outcome_skipped": {"title": "Outcome skipped", "type": "integer", "readOnly": true, "x-nullable": true}}}, "RunTestExecutionsResponse": {"type": "object", "properties": {"count": {"title": "Count", "type": "integer", "readOnly": true}, "next": {"title": "Next", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "previous": {"title": "Previous", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/TestExecutionItemResponse"}, "readOnly": true}, "covered_scenario_count": {"title": "Covered scenario count", "type": "integer", "readOnly": true}}}, "SimulationPreviewItem": {"required": ["id", "status", "created_at"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "status": {"title": "Status", "type": "string", "minLength": 1}, "created_at": {"title": "Created at", "type": "string", "format": "date-time"}}}, "SimulationPreviewPage": {"required": ["results", "next_cursor", "has_more", "snapshot_total", "loaded_through", "complete", "exact", "snapshot_at"], "type": "object", "properties": {"results": {"type": "array", "items": {"$ref": "#/definitions/SimulationPreviewItem"}}, "next_cursor": {"title": "Next cursor", "type": "string", "minLength": 1, "x-nullable": true}, "has_more": {"title": "Has more", "type": "boolean"}, "snapshot_total": {"title": "Snapshot total", "type": "integer", "minimum": 0}, "loaded_through": {"title": "Loaded through", "type": "integer", "minimum": 0}, "complete": {"title": "Complete", "type": "boolean"}, "exact": {"title": "Exact", "type": "boolean"}, "snapshot_at": {"title": "Snapshot at", "type": "string", "format": "date-time"}}}, "SimulationPreviewError": {"required": ["code", "detail"], "type": "object", "properties": {"code": {"title": "Code", "type": "string", "minLength": 1}, "detail": {"title": "Detail", "type": "string", "minLength": 1}, "restart_required": {"title": "Restart required", "type": "boolean"}}}, "TestExecutionRerun": {"required": ["rerun_type"], "type": "object", "properties": {"rerun_type": {"title": "Rerun type", "description": "Type of rerun: evaluation only or call plus evaluation", "type": "string", "enum": ["eval_only", "call_and_eval"]}, "test_execution_ids": {"description": "List of specific test execution IDs to rerun", "type": "array", "items": {"type": "string", "format": "uuid"}}, "select_all": {"title": "Select all", "description": "Whether to rerun all test executions in the run test", "type": "boolean", "default": false}}}, "TestExecutionRerunResult": {"type": "object", "properties": {"test_execution_id": {"title": "Test execution id", "type": "string", "format": "uuid", "readOnly": true}, "success_count": {"title": "Success count", "type": "integer", "readOnly": true}, "failure_count": {"title": "Failure count", "type": "integer", "readOnly": true}, "successful_reruns": {"type": "array", "items": {"type": "string", "format": "uuid"}, "readOnly": true}, "failed_reruns": {"type": "array", "items": {"type": "object", "additionalProperties": {"type": "string", "x-nullable": true}}, "readOnly": true}, "dispatch_error": {"title": "Dispatch error", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "skipped": {"title": "Skipped", "type": "boolean", "readOnly": true}, "reason": {"title": "Reason", "type": "string", "readOnly": true, "minLength": 1}}}, "TestExecutionRerunResponse": {"type": "object", "properties": {"message": {"title": "Message", "type": "string", "readOnly": true, "minLength": 1}, "run_test_id": {"title": "Run test id", "type": "string", "format": "uuid", "readOnly": true}, "rerun_type": {"title": "Rerun type", "type": "string", "readOnly": true, "minLength": 1}, "total_test_executions": {"title": "Total test executions", "type": "integer", "readOnly": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/TestExecutionRerunResult"}, "readOnly": true}, "overall_success_count": {"title": "Overall success count", "type": "integer", "readOnly": true}, "overall_failure_count": {"title": "Overall failure count", "type": "integer", "readOnly": true}}}, "RunNewEvalsOnTestExecution": {"required": ["eval_config_ids"], "type": "object", "properties": {"test_execution_ids": {"description": "List of specific test execution IDs to run evaluations on", "type": "array", "items": {"type": "string", "format": "uuid"}}, "select_all": {"title": "Select all", "description": "Whether to run evaluations on all test executions in the run test", "type": "boolean", "default": false}, "eval_config_ids": {"description": "List of SimulateEvalConfig IDs to run on the test executions", "type": "array", "items": {"type": "string", "format": "uuid"}}, "enable_tool_evaluation": {"title": "Enable tool evaluation", "description": "Whether to enable tool evaluation for this run (if not provided, uses the run test's current setting)", "type": "boolean"}}}, "RunNewEvalsResponse": {"required": ["message", "run_test_id", "call_execution_count", "dispatched"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}, "run_test_id": {"title": "Run test id", "type": "string", "format": "uuid"}, "call_execution_count": {"title": "Call execution count", "type": "integer"}, "dispatched": {"title": "Dispatched", "type": "boolean"}}}, "RunTestScenarioItemResponse": {"type": "object", "properties": {"id": {"title": "Id", "type": "string", "readOnly": true, "minLength": 1}, "name": {"title": "Name", "type": "string", "readOnly": true, "minLength": 1}, "row_count": {"title": "Row count", "type": "integer", "readOnly": true}}}, "ChatSDKCodeResult": {"required": ["installation_guide", "sdk_code", "run_test_id", "run_test_name"], "type": "object", "properties": {"installation_guide": {"title": "Installation guide", "type": "string", "minLength": 1}, "sdk_code": {"title": "Sdk code", "type": "string", "minLength": 1}, "run_test_id": {"title": "Run test id", "type": "string", "format": "uuid"}, "run_test_name": {"title": "Run test name", "type": "string", "minLength": 1}}}, "ChatSDKCodeResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/ChatSDKCodeResult"}}}, "TestExecutionStatus": {"required": ["run_test_id", "execution_id", "status", "total_scenarios", "total_calls", "completed_calls", "failed_calls", "success_rate", "start_time", "end_time", "scenarios", "error"], "type": "object", "properties": {"run_test_id": {"title": "Run test id", "type": "string", "minLength": 1}, "execution_id": {"title": "Execution id", "type": "string", "minLength": 1}, "status": {"title": "Status", "type": "string", "minLength": 1}, "total_scenarios": {"title": "Total scenarios", "type": "integer"}, "total_calls": {"title": "Total calls", "type": "integer"}, "completed_calls": {"title": "Completed calls", "type": "integer"}, "failed_calls": {"title": "Failed calls", "type": "integer"}, "success_rate": {"title": "Success rate", "type": "number"}, "start_time": {"title": "Start time", "type": "string", "format": "date-time"}, "end_time": {"title": "End time", "type": "string", "format": "date-time", "x-nullable": true}, "scenarios": {"type": "array", "items": {"type": "object", "additionalProperties": {"type": "string", "x-nullable": true}}}, "error": {"title": "Error", "type": "string", "minLength": 1, "x-nullable": true}}}, "ScenarioResponse": {"required": ["name", "source"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "description": "Name of the scenario", "type": "string", "maxLength": 255, "minLength": 1}, "description": {"title": "Description", "description": "Optional description of the scenario", "type": "string", "x-nullable": true}, "source": {"title": "Source", "description": "Source content or reference for the scenario", "type": "string", "minLength": 1}, "scenario_type": {"title": "Scenario type", "description": "Type of scenario (graph, script, or dataset)", "type": "string", "enum": ["graph", "script", "dataset"]}, "scenario_type_display": {"title": "Scenario type display", "type": "string", "readOnly": true, "minLength": 1}, "source_type": {"title": "Source type", "description": "Source type for the scenario: agent_definition or prompt", "type": "string", "enum": ["agent_definition", "prompt"]}, "source_type_display": {"title": "Source type display", "type": "string", "readOnly": true, "minLength": 1}, "organization": {"title": "Organization", "description": "Organization this scenario belongs to", "type": "string", "format": "uuid", "readOnly": true}, "dataset": {"title": "Dataset", "description": "Dataset associated with this scenario (only for dataset type scenarios)", "type": "string", "format": "uuid", "x-nullable": true}, "dataset_rows": {"title": "Dataset rows", "type": "string", "readOnly": true}, "dataset_column_config": {"title": "Dataset column config", "type": "string", "readOnly": true}, "graph": {"title": "Graph", "type": "string", "readOnly": true}, "agent": {"title": "Agent", "type": "string", "readOnly": true}, "prompt_template": {"title": "Prompt template", "description": "Prompt template associated with this scenario (only for prompt source type)", "type": "string", "format": "uuid", "x-nullable": true}, "prompt_template_detail": {"title": "Prompt template detail", "type": "string", "readOnly": true}, "prompt_version": {"title": "Prompt version", "description": "Prompt version associated with this scenario (only for prompt source type)", "type": "string", "format": "uuid", "x-nullable": true}, "prompt_version_detail": {"title": "Prompt version detail", "type": "string", "readOnly": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}, "deleted": {"title": "Deleted", "type": "boolean", "readOnly": true}, "status": {"title": "Status", "description": "Status of the scenario", "type": "string", "enum": ["NotStarted", "Queued", "Running", "Completed", "Editing", "Inactive", "Failed", "PartialRun", "ExperimentEvaluation", "Uploading", "PartialExtracted", "Processing", "Deleting", "PartialCompleted", "OptimizationEvaluation", "Error", "Cancelled"]}, "deleted_at": {"title": "Deleted at", "type": "string", "format": "date-time", "readOnly": true, "x-nullable": true}, "agent_type": {"title": "Agent type", "type": "string", "readOnly": true}}}, "ScenarioListResponse": {"type": "object", "properties": {"count": {"title": "Count", "type": "integer", "readOnly": true}, "next": {"title": "Next", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "previous": {"title": "Previous", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/ScenarioResponse"}, "readOnly": true}}}, "ScenarioErrorResponse": {"type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": false}, "type": {"title": "Type", "type": "string", "enum": ["validation_error", "authentication_error", "payment_required", "entitlement_error", "permission_error", "not_found", "conflict", "client_error", "rate_limit", "server_error", "service_unavailable", "timeout", "api_error"], "x-nullable": true}, "code": {"title": "Code", "type": "string", "x-nullable": true}, "detail": {"title": "Detail", "type": "string", "x-nullable": true}, "result": {"title": "Result", "type": "string", "minLength": 1, "x-nullable": true}, "message": {"title": "Message", "type": "string", "minLength": 1, "x-nullable": true}, "error": {"title": "Error", "type": "string", "x-nullable": true}, "attr": {"title": "Attr", "type": "string", "x-nullable": true}, "details": {"title": "Details", "type": "object", "additionalProperties": {"type": "array", "items": {"type": "string", "minLength": 1}}}}}, "ColumnDefinition": {"required": ["name", "data_type", "description"], "type": "object", "properties": {"name": {"title": "Name", "type": "string", "maxLength": 50, "minLength": 1}, "data_type": {"title": "Data type", "type": "string", "enum": ["text", "boolean", "integer", "float", "json", "array", "image", "images", "datetime", "audio", "document", "others", "persona"]}, "description": {"title": "Description", "type": "string", "maxLength": 200, "minLength": 1}}}, "ScenarioCreateRequest": {"required": ["name"], "type": "object", "properties": {"name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "description": {"title": "Description", "type": "string"}, "dataset_id": {"title": "Dataset id", "type": "string", "format": "uuid"}, "kind": {"title": "Kind", "type": "string", "enum": ["graph", "script", "dataset"], "default": "dataset"}, "script_url": {"title": "Script url", "type": "string", "format": "uri", "minLength": 1, "x-nullable": true}, "agent_definition_id": {"title": "Agent definition id", "type": "string", "format": "uuid"}, "agent_definition_version_id": {"title": "Agent definition version id", "type": "string", "format": "uuid", "x-nullable": true}, "custom_instruction": {"title": "Custom instruction", "type": "string"}, "no_of_rows": {"title": "No of rows", "type": "integer", "default": 20, "maximum": 20000, "minimum": 10}, "generate_graph": {"title": "Generate graph", "type": "boolean", "default": false}, "graph": {"title": "Graph", "type": "object", "x-nullable": true}, "source_type": {"title": "Source type", "type": "string", "enum": ["agent_definition", "prompt"], "default": "agent_definition"}, "prompt_template_id": {"title": "Prompt template id", "type": "string", "format": "uuid", "x-nullable": true}, "prompt_version_id": {"title": "Prompt version id", "type": "string", "format": "uuid", "x-nullable": true}, "add_persona_automatically": {"title": "Add persona automatically", "type": "boolean", "default": false}, "personas": {"type": "array", "items": {"type": "string", "format": "uuid"}}, "custom_columns": {"type": "array", "items": {"$ref": "#/definitions/ColumnDefinition"}, "maxItems": 10}, "agent_name": {"title": "Agent name", "type": "string", "maxLength": 255, "minLength": 1}, "agent_prompt": {"title": "Agent prompt", "type": "string"}, "voice_provider": {"title": "Voice provider", "type": "string", "default": "elevenlabs", "maxLength": 100, "minLength": 1}, "voice_name": {"title": "Voice name", "type": "string", "default": "marissa", "maxLength": 100, "minLength": 1}, "model": {"title": "Model", "type": "string", "default": "gpt-4", "maxLength": 100, "minLength": 1}, "llm_temperature": {"title": "Llm temperature", "type": "number", "default": 0.7}, "initial_message": {"title": "Initial message", "type": "string"}, "max_call_duration_in_minutes": {"title": "Max call duration in minutes", "type": "integer", "default": 30}, "interrupt_sensitivity": {"title": "Interrupt sensitivity", "type": "number", "default": 0.5}, "conversation_speed": {"title": "Conversation speed", "type": "number", "default": 1.0}, "finished_speaking_sensitivity": {"title": "Finished speaking sensitivity", "type": "number", "default": 0.5}, "initial_message_delay": {"title": "Initial message delay", "type": "integer", "default": 0}}}, "ScenarioCreateResponse": {"type": "object", "properties": {"message": {"title": "Message", "type": "string", "readOnly": true, "minLength": 1}, "scenario": {"$ref": "#/definitions/ScenarioResponse"}, "status": {"title": "Status", "type": "string", "enum": ["processing"], "readOnly": true}}}, "ScenarioPromptItem": {"type": "object", "properties": {"role": {"title": "Role", "type": "string", "enum": ["system", "user", "assistant"], "readOnly": true}, "content": {"title": "Content", "type": "string", "readOnly": true, "minLength": 1}}}, "DatasetColumnConfigEntry": {"type": "object", "properties": {"name": {"title": "Name", "type": "string", "readOnly": true, "minLength": 1}, "type": {"title": "Type", "type": "string", "readOnly": true, "minLength": 1}}}, "ScenarioDetailResponse": {"type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "type": "string", "readOnly": true, "minLength": 1}, "description": {"title": "Description", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "source": {"title": "Source", "type": "string", "readOnly": true, "minLength": 1}, "scenario_type": {"title": "Scenario type", "type": "string", "enum": ["graph", "script", "dataset"], "readOnly": true}, "dataset_id": {"title": "Dataset id", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}, "organization": {"title": "Organization", "type": "string", "format": "uuid", "readOnly": true}, "dataset": {"title": "Dataset", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}, "deleted": {"title": "Deleted", "type": "boolean", "readOnly": true}, "deleted_at": {"title": "Deleted at", "type": "string", "format": "date-time", "readOnly": true, "x-nullable": true}, "status": {"title": "Status", "type": "string", "enum": ["NotStarted", "Queued", "Running", "Completed", "Editing", "Inactive", "Failed", "PartialRun", "ExperimentEvaluation", "Uploading", "PartialExtracted", "Processing", "Deleting", "PartialCompleted", "OptimizationEvaluation", "Error", "Cancelled"], "readOnly": true}, "agent_type": {"title": "Agent type", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "graph": {"title": "Graph", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}, "readOnly": true}, "prompts": {"type": "array", "items": {"$ref": "#/definitions/ScenarioPromptItem"}, "readOnly": true}, "dataset_rows": {"title": "Dataset rows", "type": "integer", "readOnly": true}, "dataset_column_config": {"title": "Dataset column config", "type": "object", "additionalProperties": {"$ref": "#/definitions/DatasetColumnConfigEntry"}, "readOnly": true, "x-nullable": true}}}, "ScenarioAddColumnsRequest": {"required": ["columns"], "type": "object", "properties": {"columns": {"type": "array", "items": {"$ref": "#/definitions/ColumnDefinition"}}}}, "ScenarioAddColumnsResponse": {"type": "object", "properties": {"message": {"title": "Message", "type": "string", "readOnly": true, "minLength": 1}, "scenario_id": {"title": "Scenario id", "type": "string", "format": "uuid", "readOnly": true}, "dataset_id": {"title": "Dataset id", "type": "string", "format": "uuid", "readOnly": true}, "columns": {"type": "array", "items": {"type": "string", "minLength": 1}, "readOnly": true}}}, "ScenarioAddRowsRequest": {"required": ["num_rows"], "type": "object", "properties": {"num_rows": {"title": "Num rows", "type": "integer", "maximum": 20000, "minimum": 10}, "description": {"title": "Description", "type": "string"}}}, "ScenarioAddRowsResponse": {"type": "object", "properties": {"message": {"title": "Message", "type": "string", "readOnly": true, "minLength": 1}, "scenario_id": {"title": "Scenario id", "type": "string", "format": "uuid", "readOnly": true}, "dataset_id": {"title": "Dataset id", "type": "string", "format": "uuid", "readOnly": true}, "num_rows": {"title": "Num rows", "type": "integer", "readOnly": true}}}, "ScenarioDeleteResponse": {"type": "object", "properties": {"message": {"title": "Message", "type": "string", "readOnly": true, "minLength": 1}}}, "ScenarioEditRequest": {"type": "object", "properties": {"name": {"title": "Name", "type": "string", "maxLength": 255}, "description": {"title": "Description", "type": "string"}, "graph": {"title": "Graph", "type": "object", "x-nullable": true}, "prompt": {"title": "Prompt", "type": "string"}}}, "ScenarioEditResponse": {"type": "object", "properties": {"message": {"title": "Message", "type": "string", "readOnly": true, "minLength": 1}, "scenario": {"$ref": "#/definitions/ScenarioResponse"}}}, "ScenarioEditPromptsRequest": {"required": ["prompts"], "type": "object", "properties": {"prompts": {"title": "Prompts", "type": "string", "maxLength": 10000, "minLength": 1}}}, "ScenarioPromptsUpdateResponse": {"type": "object", "properties": {"message": {"title": "Message", "type": "string", "readOnly": true, "minLength": 1}, "prompts": {"title": "Prompts", "type": "string", "readOnly": true, "minLength": 1}}}, "SimulatorAgent": {"required": ["name", "prompt", "voice_provider", "voice_name", "model"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "description": "Name of the simulator agent", "type": "string", "maxLength": 255, "minLength": 1}, "prompt": {"title": "Prompt", "description": "System prompt for the agent", "type": "string", "minLength": 1}, "voice_provider": {"title": "Voice provider", "description": "Voice service provider", "type": "string", "maxLength": 100, "minLength": 1}, "voice_name": {"title": "Voice name", "description": "Specific voice to use", "type": "string", "maxLength": 100, "minLength": 1}, "interrupt_sensitivity": {"title": "Interrupt sensitivity", "description": "Sensitivity for interruption detection (0-1)", "type": "number", "maximum": 11.0, "minimum": 0.0}, "conversation_speed": {"title": "Conversation speed", "description": "Speed of conversation (0.1-3.0)", "type": "number", "maximum": 2.0, "minimum": 0.1}, "finished_speaking_sensitivity": {"title": "Finished speaking sensitivity", "description": "Sensitivity for detecting when speaker has finished (0-1)", "type": "number", "maximum": 11.0, "minimum": 0.0}, "model": {"title": "Model", "description": "LLM model to use", "type": "string", "maxLength": 100, "minLength": 1}, "llm_temperature": {"title": "Llm temperature", "description": "Temperature setting for LLM (0-2)", "type": "number", "maximum": 2.0, "minimum": 0.0}, "max_call_duration_in_minutes": {"title": "Max call duration in minutes", "description": "Maximum call duration in minutes (1-180)", "type": "integer", "maximum": 180, "minimum": 0}, "initial_message_delay": {"title": "Initial message delay", "description": "Delay before initial message in seconds (0-60)", "type": "integer", "maximum": 60, "minimum": 0}, "initial_message": {"title": "Initial message", "description": "Initial message to send when conversation starts", "type": "string"}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}, "organization": {"title": "Organization", "description": "Organization this simulator agent belongs to", "type": "string", "format": "uuid", "readOnly": true}, "deleted": {"title": "Deleted", "type": "boolean", "readOnly": true}, "deleted_at": {"title": "Deleted at", "type": "string", "format": "date-time", "readOnly": true, "x-nullable": true}, "logo_url": {"title": "Logo url", "type": "string", "readOnly": true}}}, "SimulatorAgentListResponse": {"type": "object", "properties": {"count": {"title": "Count", "type": "integer", "readOnly": true}, "next": {"title": "Next", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "previous": {"title": "Previous", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/SimulatorAgent"}, "readOnly": true}, "total_pages": {"title": "Total pages", "type": "integer", "readOnly": true}, "current_page": {"title": "Current page", "type": "integer", "readOnly": true}}}, "SimulatorAgentValidationErrorResponse": {"type": "object", "properties": {}, "additionalProperties": {"type": "array", "items": {"type": "string"}}}, "SimulatorAgentDeleteResponse": {"type": "object", "properties": {"message": {"title": "Message", "type": "string", "readOnly": true, "minLength": 1}}}, "TestExecutionDetailResponse": {"type": "object", "properties": {"count": {"title": "Count", "type": "integer", "readOnly": true}, "next": {"title": "Next", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "previous": {"title": "Previous", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "results": {"description": "Call execution rows may include dynamic eval/scenario columns.", "type": "array", "items": {"type": "object", "additionalProperties": {"type": "string", "x-nullable": true}}, "readOnly": true}, "total_pages": {"title": "Total pages", "type": "integer", "readOnly": true}, "current_page": {"title": "Current page", "type": "integer", "readOnly": true}, "column_order": {"type": "array", "items": {"type": "object", "additionalProperties": {"type": "string", "x-nullable": true}}, "readOnly": true}, "error_messages": {"type": "array", "items": {"type": "string", "minLength": 1}, "readOnly": true}, "status": {"title": "Status", "type": "string", "readOnly": true, "minLength": 1}, "provider": {"title": "Provider", "type": "string", "readOnly": true, "minLength": 1}, "agent_type": {"title": "Agent type", "type": "string", "readOnly": true, "minLength": 1}}}, "TestExecutionAnalytics": {"required": ["fail_rate_over_test_runs", "evaluation_categories_over_test_runs", "metadata"], "type": "object", "properties": {"fail_rate_over_test_runs": {"title": "Fail rate over test runs", "description": "Fail rate data for scatter plot chart", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}}, "evaluation_categories_over_test_runs": {"title": "Evaluation categories over test runs", "description": "Evaluation categories data for line graph chart", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}}, "metadata": {"title": "Metadata", "description": "Metadata about the analytics data", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}}}}, "CancelTestExecutionResponse": {"required": ["success", "message", "test_execution_id"], "type": "object", "properties": {"success": {"title": "Success", "type": "boolean"}, "message": {"title": "Message", "type": "string", "minLength": 1}, "test_execution_id": {"title": "Test execution id", "type": "string", "format": "uuid", "x-nullable": true}}}, "TestExecutionChatBatchResult": {"required": ["call_execution_ids", "has_more", "batched_scenarios"], "type": "object", "properties": {"call_execution_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}}, "has_more": {"title": "Has more", "type": "boolean"}, "batched_scenarios": {"type": "array", "items": {"type": "string", "format": "uuid"}}}}, "TestExecutionChatBatchResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/TestExecutionChatBatchResult"}}}, "ColumnOrder": {"required": ["column_name", "id", "visible"], "type": "object", "properties": {"column_name": {"title": "Column name", "type": "string", "minLength": 1}, "id": {"title": "Id", "type": "string", "minLength": 1}, "visible": {"title": "Visible", "type": "boolean"}}}, "TestExecutionColumnOrder": {"required": ["column_order"], "type": "object", "properties": {"column_order": {"type": "array", "items": {"$ref": "#/definitions/ColumnOrder"}}}}, "TestExecutionColumnOrderResponse": {"type": "object", "properties": {"message": {"title": "Message", "type": "string", "readOnly": true, "minLength": 1}, "column_order": {"type": "array", "items": {"$ref": "#/definitions/ColumnOrder"}, "readOnly": true}}}, "DebugAnalysisCoverage": {"required": ["scope", "observed_call_count", "read_complete"], "type": "object", "properties": {"scope": {"title": "Scope", "type": "string", "minLength": 1}, "observed_call_count": {"title": "Observed call count", "type": "integer"}, "read_complete": {"title": "Read complete", "type": "boolean"}}}, "DebugAnalysisReport": {"required": ["id", "execution_status", "outcome", "coverage", "error_message", "grouping_status", "recorded_at"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "execution_status": {"title": "Execution status", "type": "string", "minLength": 1}, "outcome": {"title": "Outcome", "type": "string", "minLength": 1}, "coverage": {"$ref": "#/definitions/DebugAnalysisCoverage"}, "error_message": {"title": "Error message", "type": "string", "minLength": 1, "x-nullable": true}, "grouping_status": {"title": "Grouping status", "type": "string", "minLength": 1}, "recorded_at": {"title": "Recorded at", "type": "string", "format": "date-time"}}, "x-nullable": true}, "DebugAnalysisCluster": {"required": ["id", "cluster_id", "title", "error_type"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "cluster_id": {"title": "Cluster id", "type": "string", "minLength": 1}, "title": {"title": "Title", "type": "string", "minLength": 1, "x-nullable": true}, "error_type": {"title": "Error type", "type": "string", "minLength": 1}}, "x-nullable": true}, "DebugAnalysisEvidence": {"required": ["evidence_id", "call_execution_id", "excerpt"], "type": "object", "properties": {"evidence_id": {"title": "Evidence id", "type": "string", "minLength": 1}, "call_execution_id": {"title": "Call execution id", "type": "string", "format": "uuid", "x-nullable": true}, "excerpt": {"title": "Excerpt", "type": "string", "minLength": 1}}}, "DebugAnalysisFinding": {"required": ["id", "kind", "statement", "recovery", "category", "group_label", "fix_layer", "confidence", "goal", "cluster", "evidence"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "kind": {"title": "Kind", "type": "string", "minLength": 1, "x-nullable": true}, "statement": {"title": "Statement", "type": "string", "minLength": 1}, "recovery": {"title": "Recovery", "type": "string", "minLength": 1, "x-nullable": true}, "category": {"title": "Category", "type": "string", "minLength": 1, "x-nullable": true}, "group_label": {"title": "Group label", "type": "string", "minLength": 1, "x-nullable": true}, "fix_layer": {"title": "Fix layer", "type": "string", "minLength": 1, "x-nullable": true}, "confidence": {"title": "Confidence", "type": "string", "minLength": 1, "x-nullable": true}, "goal": {"title": "Goal", "type": "string", "minLength": 1, "x-nullable": true}, "cluster": {"$ref": "#/definitions/DebugAnalysisCluster"}, "evidence": {"type": "array", "items": {"$ref": "#/definitions/DebugAnalysisEvidence"}}}}, "DebugAnalysisSummary": {"required": ["measured_call_count", "broken_goal_count", "broken_call_count", "one_off_count", "excluded_call_ids", "unanalyzed_call_ids"], "type": "object", "properties": {"measured_call_count": {"title": "Measured call count", "type": "integer"}, "broken_goal_count": {"title": "Broken goal count", "type": "integer"}, "broken_call_count": {"title": "Broken call count", "type": "integer"}, "one_off_count": {"title": "One off count", "type": "integer"}, "excluded_call_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}}, "unanalyzed_call_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}}}, "x-nullable": true}, "DebugAnalysisWay": {"required": ["id", "title", "phrase", "call_ids"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "minLength": 1}, "title": {"title": "Title", "type": "string", "minLength": 1}, "phrase": {"title": "Phrase", "type": "string", "minLength": 1}, "call_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}}}}, "DebugAnalysisGoal": {"required": ["goal", "label", "criteria", "broken_call_ids", "tested_call_count", "ways", "unexplained_call_ids"], "type": "object", "properties": {"goal": {"title": "Goal", "type": "string", "minLength": 1}, "label": {"title": "Label", "type": "string", "minLength": 1}, "criteria": {"title": "Criteria", "type": "string", "minLength": 1, "x-nullable": true}, "broken_call_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}}, "tested_call_count": {"title": "Tested call count", "type": "integer"}, "ways": {"type": "array", "items": {"$ref": "#/definitions/DebugAnalysisWay"}}, "unexplained_call_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}}}}, "TestExecutionDebugAnalysisResponse": {"required": ["test_execution_id", "status", "generation", "job_id", "error_message", "report", "findings", "summary", "goals", "one_offs"], "type": "object", "properties": {"test_execution_id": {"title": "Test execution id", "type": "string", "format": "uuid"}, "status": {"title": "Status", "type": "string", "enum": ["not_requested", "pending", "running", "completed", "failed"]}, "generation": {"title": "Generation", "type": "integer", "x-nullable": true}, "job_id": {"title": "Job id", "type": "string", "format": "uuid", "x-nullable": true}, "error_message": {"title": "Error message", "type": "string", "minLength": 1, "x-nullable": true}, "report": {"$ref": "#/definitions/DebugAnalysisReport"}, "findings": {"type": "array", "items": {"$ref": "#/definitions/DebugAnalysisFinding"}}, "summary": {"$ref": "#/definitions/DebugAnalysisSummary"}, "goals": {"type": "array", "items": {"$ref": "#/definitions/DebugAnalysisGoal"}}, "one_offs": {"type": "array", "items": {"$ref": "#/definitions/DebugAnalysisWay"}}}}, "TestExecutionDebugAnalysisNotFound": {"required": ["detail"], "type": "object", "properties": {"detail": {"title": "Detail", "type": "string", "minLength": 1}}}, "TestExecutionDebugAnalysisError": {"required": ["code", "detail"], "type": "object", "properties": {"code": {"title": "Code", "type": "string", "minLength": 1}, "detail": {"title": "Detail", "type": "string", "minLength": 1}}}, "EvalExplanationCluster": {"type": "object", "properties": {"kind": {"title": "Kind", "type": "string", "readOnly": true, "minLength": 1}, "confidence": {"title": "Confidence", "type": "string", "readOnly": true, "minLength": 1}, "theme": {"title": "Theme", "type": "string", "readOnly": true, "minLength": 1}, "guidance": {"title": "Guidance", "type": "string", "readOnly": true, "minLength": 1}, "evidenceSummary": {"title": "Evidencesummary", "type": "string", "readOnly": true, "minLength": 1}, "eval_config_id": {"title": "Eval config id", "type": "string", "format": "uuid", "readOnly": true}, "eval_template_id": {"title": "Eval template id", "type": "string", "format": "uuid", "readOnly": true}, "eval_name": {"title": "Eval name", "type": "string", "readOnly": true, "minLength": 1}}}, "EvalExplanationSummaryResult": {"required": ["response", "last_updated", "status"], "type": "object", "properties": {"response": {"title": "Response", "type": "object", "additionalProperties": {"type": "array", "items": {"$ref": "#/definitions/EvalExplanationCluster"}}, "x-nullable": true}, "last_updated": {"title": "Last updated", "type": "string", "format": "date-time", "x-nullable": true}, "status": {"title": "Status", "type": "string", "minLength": 1}}}, "EvalExplanationSummaryResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/EvalExplanationSummaryResult"}}}, "EvalExplanationSummaryRefreshResult": {"required": ["message"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}}}, "EvalExplanationSummaryRefreshResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/EvalExplanationSummaryRefreshResult"}}}, "RunTestKPIsResponse": {"type": "object", "properties": {"total_calls": {"title": "Total calls", "type": "integer", "readOnly": true}, "completed_calls": {"title": "Completed calls", "description": "Calls with status completed, counted like every other KPI here: soft-deleted calls included. The run-level add's 202 counts live calls only, so the two can differ for a run with a deleted call (TH-8057).", "type": "integer", "readOnly": true}, "avg_score": {"title": "Avg score", "type": "number", "readOnly": true}, "avg_response": {"title": "Avg response", "type": "number", "readOnly": true}, "calls_attempted": {"title": "Calls attempted", "type": "integer", "readOnly": true}, "connected_calls": {"title": "Connected calls", "type": "integer", "readOnly": true}, "calls_connected_percentage": {"title": "Calls connected percentage", "type": "number", "readOnly": true}, "scenario_graphs": {"title": "Scenario graphs", "type": "object", "additionalProperties": {"type": "object", "additionalProperties": {"type": "object"}}, "readOnly": true}, "agent_type": {"title": "Agent type", "type": "string", "readOnly": true, "minLength": 1}, "is_inbound": {"title": "Is inbound", "type": "boolean", "readOnly": true, "x-nullable": true}, "avg_agent_latency": {"title": "Avg agent latency", "type": "number", "readOnly": true}, "avg_user_interruption_count": {"title": "Avg user interruption count", "type": "number", "readOnly": true}, "avg_user_interruption_rate": {"title": "Avg user interruption rate", "type": "number", "readOnly": true}, "avg_user_wpm": {"title": "Avg user wpm", "type": "number", "readOnly": true}, "avg_bot_wpm": {"title": "Avg bot wpm", "type": "number", "readOnly": true}, "avg_talk_ratio": {"title": "Avg talk ratio", "type": "number", "readOnly": true}, "avg_ai_interruption_count": {"title": "Avg ai interruption count", "type": "number", "readOnly": true}, "avg_ai_interruption_rate": {"title": "Avg ai interruption rate", "type": "number", "readOnly": true}, "avg_stop_time_after_interruption": {"title": "Avg stop time after interruption", "type": "number", "readOnly": true}, "agent_talk_percentage": {"title": "Agent talk percentage", "type": "number", "readOnly": true}, "customer_talk_percentage": {"title": "Customer talk percentage", "type": "number", "readOnly": true}, "avg_total_tokens": {"title": "Avg total tokens", "type": "number", "readOnly": true}, "avg_input_tokens": {"title": "Avg input tokens", "type": "number", "readOnly": true}, "avg_output_tokens": {"title": "Avg output tokens", "type": "number", "readOnly": true}, "avg_chat_latency_ms": {"title": "Avg chat latency ms", "type": "number", "readOnly": true}, "avg_turn_count": {"title": "Avg turn count", "type": "number", "readOnly": true}, "avg_csat_score": {"title": "Avg csat score", "type": "number", "readOnly": true}, "failed_calls": {"title": "Failed calls", "type": "integer", "readOnly": true}, "total_duration": {"title": "Total duration", "type": "number", "readOnly": true}}}, "OptimiserAnalysisResultPayload": {"required": ["response", "status"], "type": "object", "properties": {"response": {"title": "Response", "type": "object", "additionalProperties": {"type": "object"}, "x-nullable": true}, "status": {"title": "Status", "type": "string", "minLength": 1}, "last_updated": {"title": "Last updated", "type": "string", "format": "date-time"}, "message": {"title": "Message", "type": "string"}}}, "OptimiserAnalysisResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/OptimiserAnalysisResultPayload"}}}, "OptimiserAnalysisRefreshResult": {"required": ["message", "status"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}, "status": {"title": "Status", "type": "string", "minLength": 1}}}, "OptimiserAnalysisRefreshResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/OptimiserAnalysisRefreshResult"}}}, "PerformanceSummary": {"required": ["test_run_performance_metrics", "top_performing_scenarios"], "type": "object", "properties": {"test_run_performance_metrics": {"title": "Test run performance metrics", "description": "Performance metrics including pass rate, total test runs, and latest fail rate", "type": "object", "additionalProperties": {"type": "number"}}, "top_performing_scenarios": {"description": "List of top performing scenarios", "type": "array", "items": {"description": "List of top performing scenarios with their performance scores", "type": "object", "additionalProperties": {"type": "string", "minLength": 1}}}}}, "CallExecutionRerun": {"required": ["rerun_type"], "type": "object", "properties": {"rerun_type": {"title": "Rerun type", "description": "Type of rerun: evaluation only or call plus evaluation", "type": "string", "enum": ["eval_only", "call_and_eval"]}, "call_execution_ids": {"description": "List of specific call execution IDs to rerun", "type": "array", "items": {"type": "string", "format": "uuid"}}, "select_all": {"title": "Select all", "description": "Whether to rerun all call executions in the test execution", "type": "boolean", "default": false}, "environment_values": {"title": "Environment values", "description": "Fresh job-scoped environment for a repository-backed harness rerun. Values are forwarded to the sandbox and are not persisted.", "type": "object", "additionalProperties": {"type": "string", "maxLength": 65536}, "default": {}}}}, "FailedRerunItem": {"required": ["call_execution_id", "error"], "type": "object", "properties": {"call_execution_id": {"title": "Call execution id", "type": "string", "format": "uuid"}, "error": {"title": "Error", "type": "string", "minLength": 1}}}, "RerunCallsResponse": {"required": ["message", "test_execution_id", "rerun_type", "total_processed", "successful_reruns", "failed_reruns", "success_count", "failure_count"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}, "test_execution_id": {"title": "Test execution id", "type": "string", "format": "uuid"}, "rerun_type": {"title": "Rerun type", "type": "string", "minLength": 1}, "total_processed": {"title": "Total processed", "type": "integer"}, "successful_reruns": {"type": "array", "items": {"type": "string", "format": "uuid"}}, "failed_reruns": {"type": "array", "items": {"$ref": "#/definitions/FailedRerunItem"}}, "success_count": {"title": "Success count", "type": "integer"}, "failure_count": {"title": "Failure count", "type": "integer"}, "dispatch_error": {"title": "Dispatch error", "type": "string", "minLength": 1, "x-nullable": true}}}, "TestExecutionTranscriptCall": {"type": "object", "properties": {"call_execution_id": {"title": "Call execution id", "type": "string", "format": "uuid", "readOnly": true}, "phone_number": {"title": "Phone number", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}, "status": {"title": "Status", "type": "string", "readOnly": true, "minLength": 1}, "transcripts": {"type": "array", "items": {"$ref": "#/definitions/CallTranscript"}, "readOnly": true}, "total_transcripts": {"title": "Total transcripts", "type": "integer", "readOnly": true}, "scenario_name": {"title": "Scenario name", "type": "string", "readOnly": true, "minLength": 1, "x-nullable": true}}}, "TestExecutionTranscriptsResponse": {"type": "object", "properties": {"test_execution_id": {"title": "Test execution id", "type": "string", "format": "uuid", "readOnly": true}, "calls": {"type": "array", "items": {"$ref": "#/definitions/TestExecutionTranscriptCall"}, "readOnly": true}, "total_calls": {"title": "Total calls", "type": "integer", "readOnly": true}, "total_transcripts": {"title": "Total transcripts", "type": "integer", "readOnly": true}}}, "PersonaDetails": {"required": ["name", "voice", "age", "traits"], "type": "object", "properties": {"name": {"title": "Name", "type": "string", "minLength": 1, "x-nullable": true}, "voice": {"title": "Voice", "type": "string", "minLength": 1, "x-nullable": true}, "age": {"title": "Age", "type": "string", "minLength": 1, "x-nullable": true}, "traits": {"type": "array", "items": {"type": "string", "minLength": 1}}}, "x-nullable": true}, "SubGoalResult": {"required": ["name", "passed"], "type": "object", "properties": {"name": {"title": "Name", "type": "string", "minLength": 1}, "passed": {"title": "Passed", "type": "boolean", "x-nullable": true}}}, "CostBreakdown": {"required": ["stt", "llm", "tts", "storage", "customer"], "type": "object", "properties": {"stt": {"title": "Stt", "type": "number", "x-nullable": true}, "llm": {"title": "Llm", "type": "number", "x-nullable": true}, "tts": {"title": "Tts", "type": "number", "x-nullable": true}, "storage": {"title": "Storage", "type": "number", "x-nullable": true}, "customer": {"title": "Customer", "type": "number", "x-nullable": true}}}, "SimulateRunV3EvaluationResult": {"required": ["id", "name", "type", "value", "score", "passed", "reason", "status"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "minLength": 1}, "name": {"title": "Name", "type": "string", "minLength": 1}, "type": {"title": "Type", "type": "string"}, "value": {"title": "Value", "type": "object", "x-nullable": true}, "score": {"title": "Score", "type": "number", "x-nullable": true}, "passed": {"title": "Passed", "type": "boolean", "x-nullable": true}, "reason": {"title": "Reason", "type": "string"}, "status": {"title": "Status", "type": "string", "enum": ["pending", "succeeded", "failed", "timed_out", "skipped"]}}}, "SimulateRunV3FunctionCall": {"type": "object", "properties": {"id": {"title": "Id", "type": "string", "minLength": 1}, "name": {"title": "Name", "type": "string", "minLength": 1}, "arguments": {"title": "Arguments", "type": "object"}, "result": {"title": "Result", "type": "object"}, "output": {"title": "Output", "type": "object"}, "duration_ms": {"title": "Duration ms", "type": "number"}, "start_time_ms": {"title": "Start time ms", "type": "integer"}}}, "CallExecutionV3DetailResponse": {"required": ["goal", "scenario_details", "ideal_outcome", "conversation_branch", "persona", "persona_details", "sub_goals", "sub_goal_results", "outcome", "cost_breakdown_cents", "evaluations", "function_calls", "scoring_status", "csat_status", "csat_reason"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "service_provider_call_id": {"title": "Service provider call id", "type": "string", "readOnly": true, "minLength": 1}, "session_id": {"title": "Session id", "type": "string", "readOnly": true}, "timestamp": {"title": "Timestamp", "type": "string", "format": "date-time", "readOnly": true}, "call_type": {"title": "Call type", "type": "string", "readOnly": true}, "status": {"title": "Status", "description": "Current status of the call", "type": "string", "enum": ["pending", "queued", "ongoing", "completed", "failed", "analyzing", "cancelled"]}, "duration": {"title": "Duration", "type": "string", "readOnly": true}, "duration_seconds": {"title": "Duration seconds", "description": "Duration of the call in seconds", "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "x-nullable": true}, "start_time": {"title": "Start time", "type": "string", "readOnly": true}, "transcript": {"title": "Transcript", "type": "string", "readOnly": true}, "scenario": {"title": "Scenario", "type": "string", "readOnly": true, "minLength": 1}, "overall_score": {"title": "Overall score", "type": "string", "readOnly": true}, "response_time": {"title": "Response time", "type": "string", "readOnly": true}, "response_time_ms": {"title": "Response time ms", "description": "Average response time in milliseconds", "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "x-nullable": true}, "audio_url": {"title": "Audio url", "type": "string", "format": "uri", "readOnly": true, "minLength": 1}, "customer_name": {"title": "Customer name", "type": "string", "readOnly": true, "minLength": 1}, "eval_outputs": {"title": "Eval outputs", "type": "string", "readOnly": true}, "eval_metrics": {"title": "Eval metrics", "description": "Get evaluation metrics in a format suitable for the UI", "type": "object", "additionalProperties": {"$ref": "#/definitions/CallExecutionEvalMetric"}, "readOnly": true}, "scenario_columns": {"title": "Scenario columns", "type": "string", "readOnly": true}, "ended_reason": {"title": "Ended reason", "description": "Reason why the call ended", "type": "string", "maxLength": 10000, "x-nullable": true}, "simulator_agent_name": {"title": "Simulator agent name", "type": "string", "readOnly": true, "minLength": 1}, "simulator_agent_id": {"title": "Simulator agent id", "type": "string", "format": "uuid", "readOnly": true}, "agent_definition_used_name": {"title": "Agent definition used name", "type": "string", "readOnly": true, "minLength": 1}, "agent_definition_used_id": {"title": "Agent definition used id", "type": "string", "format": "uuid", "readOnly": true}, "call_summary": {"title": "Call summary", "description": "Call summary from the service", "type": "string", "x-nullable": true}, "recordings": {"title": "Recordings", "type": "string", "readOnly": true}, "test_execution_id": {"title": "Test execution id", "type": "string", "format": "uuid", "readOnly": true}, "scenario_id": {"title": "Scenario id", "type": "string", "readOnly": true}, "source_scenario_key": {"title": "Source scenario key", "type": "string", "readOnly": true}, "trial_index": {"title": "Trial index", "type": "string", "readOnly": true}, "harness_outcome_status": {"title": "Harness outcome status", "type": "string", "readOnly": true}, "scenario_graph": {"title": "Scenario graph", "type": "string", "readOnly": true}, "scenario_graph_id": {"title": "Scenario graph id", "type": "string", "readOnly": true}, "avg_agent_latency": {"title": "Avg agent latency", "type": "integer", "readOnly": true}, "avg_agent_latency_ms": {"title": "Avg agent latency ms", "description": "Average agent latency in milliseconds (time taken by agent to respond after user's pause)", "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "x-nullable": true}, "user_interruption_count": {"title": "User interruption count", "description": "Number of times user interrupted the AI", "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "x-nullable": true}, "user_interruption_rate": {"title": "User interruption rate", "description": "Rate of user interruptions (interruptions per minute)", "type": "number", "x-nullable": true}, "user_wpm": {"title": "User wpm", "description": "User's words per minute", "type": "number", "x-nullable": true}, "bot_wpm": {"title": "Bot wpm", "description": "Bot's words per minute", "type": "number", "x-nullable": true}, "talk_ratio": {"title": "Talk ratio", "description": "Ratio of bot speaking time to user speaking time", "type": "number", "x-nullable": true}, "ai_interruption_count": {"title": "Ai interruption count", "description": "Number of times AI interrupted the user", "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "x-nullable": true}, "ai_interruption_rate": {"title": "Ai interruption rate", "description": "Rate of AI interruptions (interruptions per minute)", "type": "number", "x-nullable": true}, "avg_stop_time_after_interruption": {"title": "Avg stop time after interruption", "type": "integer", "readOnly": true}, "total_tokens": {"title": "Total tokens", "type": "string", "readOnly": true}, "input_tokens": {"title": "Input tokens", "type": "string", "readOnly": true}, "output_tokens": {"title": "Output tokens", "type": "string", "readOnly": true}, "avg_latency_ms": {"title": "Avg latency ms", "type": "string", "readOnly": true}, "turn_count": {"title": "Turn count", "type": "string", "readOnly": true}, "agent_talk_percentage": {"title": "Agent talk percentage", "type": "string", "readOnly": true}, "csat_score": {"title": "Csat score", "type": "string", "readOnly": true}, "processing_skipped": {"title": "Processing skipped", "type": "string", "readOnly": true}, "processing_skip_reason": {"title": "Processing skip reason", "type": "string", "readOnly": true}, "rerun_snapshots": {"title": "Rerun snapshots", "type": "string", "readOnly": true}, "is_snapshot": {"title": "Is snapshot", "type": "string", "readOnly": true}, "snapshot_timestamp": {"title": "Snapshot timestamp", "type": "string", "readOnly": true}, "rerun_type": {"title": "Rerun type", "type": "string", "readOnly": true}, "original_call_execution_id": {"title": "Original call execution id", "type": "string", "readOnly": true}, "tool_outputs": {"title": "Tool outputs", "description": "Tool evaluation output - separate from standard evaluations", "type": "object", "x-nullable": true}, "cost_cents": {"title": "Cost cents", "description": "Cost of the call in cents", "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "x-nullable": true}, "customer_cost_cents": {"title": "Customer cost cents", "description": "Total customer-reported cost in cents", "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "x-nullable": true}, "customer_cost_breakdown": {"title": "Customer cost breakdown", "description": "Detailed cost breakdown from customer call data", "type": "object", "x-nullable": true}, "customer_latency_metrics": {"title": "Customer latency metrics", "description": "Latency metrics from customer call data", "type": "object", "x-nullable": true}, "customer_call_id": {"title": "Customer call id", "description": "Customer call ID if available", "type": "string", "maxLength": 255, "x-nullable": true}, "simulation_call_type": {"title": "Simulation call type", "description": "Type of simulation call", "type": "string", "enum": ["voice", "text"]}, "provider": {"title": "Provider", "type": "string", "readOnly": true}, "phone_number": {"title": "Phone number", "description": "Phone number called (null for TEXT/chat simulations)", "type": "string", "maxLength": 20, "x-nullable": true}, "goal": {"title": "Goal", "type": "string", "minLength": 1}, "scenario_details": {"title": "Scenario details", "type": "string", "minLength": 1, "x-nullable": true}, "ideal_outcome": {"title": "Ideal outcome", "type": "string", "minLength": 1, "x-nullable": true}, "conversation_branch": {"title": "Conversation branch", "type": "string", "minLength": 1, "x-nullable": true}, "persona": {"title": "Persona", "type": "string", "minLength": 1, "x-nullable": true}, "persona_details": {"$ref": "#/definitions/PersonaDetails"}, "sub_goals": {"type": "array", "items": {"type": "string", "minLength": 1}}, "sub_goal_results": {"type": "array", "items": {"$ref": "#/definitions/SubGoalResult"}}, "outcome": {"title": "Outcome", "type": "string", "enum": ["queued", "in_progress", "passed", "failed", "inconclusive", "error"]}, "cost_breakdown_cents": {"$ref": "#/definitions/CostBreakdown"}, "evaluations": {"type": "array", "items": {"$ref": "#/definitions/SimulateRunV3EvaluationResult"}}, "function_calls": {"type": "array", "items": {"$ref": "#/definitions/SimulateRunV3FunctionCall"}}, "scoring_status": {"title": "Scoring status", "type": "string", "enum": ["not_applicable", "pending", "succeeded", "failed", "timed_out"]}, "csat_status": {"title": "Csat status", "type": "string", "enum": ["not_applicable", "pending", "succeeded", "failed", "timed_out", "skipped"]}, "csat_reason": {"title": "Csat reason", "type": "string", "minLength": 1, "x-nullable": true}}}, "RunDashboardMetric": {"required": ["key", "label", "value", "unit", "measured", "total", "note"], "type": "object", "properties": {"key": {"title": "Key", "type": "string", "minLength": 1}, "label": {"title": "Label", "type": "string", "minLength": 1}, "value": {"title": "Value", "type": "number", "x-nullable": true}, "unit": {"title": "Unit", "type": "string", "enum": ["number", "percent", "ms", "seconds", "ratio", "cents"]}, "measured": {"title": "Measured", "type": "integer", "x-nullable": true}, "total": {"title": "Total", "type": "integer"}, "note": {"title": "Note", "type": "string"}}}, "RunDashboardSegment": {"required": ["label", "count", "share"], "type": "object", "properties": {"label": {"title": "Label", "type": "string", "minLength": 1}, "count": {"title": "Count", "type": "integer"}, "share": {"title": "Share", "type": "number"}, "statuses": {"type": "array", "items": {"type": "string", "minLength": 1}}}}, "RunDashboardBreakdown": {"required": ["key", "label", "total", "segments", "headline"], "type": "object", "properties": {"key": {"title": "Key", "type": "string", "minLength": 1}, "label": {"title": "Label", "type": "string", "minLength": 1}, "total": {"title": "Total", "type": "integer"}, "segments": {"type": "array", "items": {"$ref": "#/definitions/RunDashboardSegment"}}, "headline": {"$ref": "#/definitions/RunDashboardSegment"}}}, "RunDashboardSlo": {"required": ["key", "average", "measured", "max", "p50", "p90", "p99", "label"], "type": "object", "properties": {"key": {"title": "Key", "type": "string", "minLength": 1}, "average": {"title": "Average", "type": "number", "x-nullable": true}, "measured": {"title": "Measured", "type": "integer"}, "max": {"title": "Max", "type": "number", "x-nullable": true}, "p50": {"title": "P50", "type": "number", "x-nullable": true}, "p90": {"title": "P90", "type": "number", "x-nullable": true}, "p99": {"title": "P99", "type": "number", "x-nullable": true}, "label": {"title": "Label", "type": "string", "minLength": 1}}}, "RunDashboardInterruptions": {"required": ["total", "measured", "average"], "type": "object", "properties": {"total": {"title": "Total", "type": "integer", "x-nullable": true}, "measured": {"title": "Measured", "type": "integer"}, "average": {"title": "Average", "type": "number", "x-nullable": true}}}, "RunDashboardSeries": {"required": ["label", "started_at", "calls", "latency_ms", "duration_ms", "llm_cents", "tts_cents", "stt_cents", "storage_cents"], "type": "object", "properties": {"label": {"title": "Label", "type": "string", "minLength": 1}, "started_at": {"title": "Started at", "type": "string", "format": "date-time", "x-nullable": true}, "calls": {"title": "Calls", "type": "integer"}, "latency_ms": {"title": "Latency ms", "type": "number", "x-nullable": true}, "duration_ms": {"title": "Duration ms", "type": "number", "x-nullable": true}, "llm_cents": {"title": "Llm cents", "type": "number", "x-nullable": true}, "tts_cents": {"title": "Tts cents", "type": "number", "x-nullable": true}, "stt_cents": {"title": "Stt cents", "type": "number", "x-nullable": true}, "storage_cents": {"title": "Storage cents", "type": "number", "x-nullable": true}}}, "RunDashboardPercentile": {"required": ["percentile", "value"], "type": "object", "properties": {"percentile": {"title": "Percentile", "type": "integer"}, "value": {"title": "Value", "type": "number", "x-nullable": true}}}, "RunDashboardDistribution": {"required": ["key", "average", "measured", "max", "p50", "p90", "p99"], "type": "object", "properties": {"key": {"title": "Key", "type": "string", "minLength": 1}, "average": {"title": "Average", "type": "number", "x-nullable": true}, "measured": {"title": "Measured", "type": "integer"}, "max": {"title": "Max", "type": "number", "x-nullable": true}, "p50": {"title": "P50", "type": "number", "x-nullable": true}, "p90": {"title": "P90", "type": "number", "x-nullable": true}, "p99": {"title": "P99", "type": "number", "x-nullable": true}}}, "RunDashboardHistogramBin": {"required": ["label", "lower", "upper", "count", "danger"], "type": "object", "properties": {"label": {"title": "Label", "type": "string", "minLength": 1}, "lower": {"title": "Lower", "type": "number"}, "upper": {"title": "Upper", "type": "number"}, "count": {"title": "Count", "type": "integer"}, "danger": {"title": "Danger", "type": "boolean"}}}, "RunDashboardAgreement": {"required": ["compared", "agreed", "percent"], "type": "object", "properties": {"compared": {"title": "Compared", "type": "integer"}, "agreed": {"title": "Agreed", "type": "integer"}, "percent": {"title": "Percent", "type": "number", "x-nullable": true}}}, "RunDashboardCsat": {"required": ["bins", "measured", "total", "satisfied", "satisfied_percent", "agreement"], "type": "object", "properties": {"bins": {"type": "array", "items": {"$ref": "#/definitions/RunDashboardHistogramBin"}}, "measured": {"title": "Measured", "type": "integer"}, "total": {"title": "Total", "type": "integer"}, "satisfied": {"title": "Satisfied", "type": "integer"}, "satisfied_percent": {"title": "Satisfied percent", "type": "number", "x-nullable": true}, "agreement": {"$ref": "#/definitions/RunDashboardAgreement"}}}, "RunDashboardResponseTime": {"required": ["bins", "measured", "total", "target_ms", "p50", "p95", "at_or_above_target", "at_or_above_target_percent"], "type": "object", "properties": {"bins": {"type": "array", "items": {"$ref": "#/definitions/RunDashboardHistogramBin"}}, "measured": {"title": "Measured", "type": "integer"}, "total": {"title": "Total", "type": "integer"}, "target_ms": {"title": "Target ms", "type": "integer"}, "p50": {"title": "P50", "type": "number", "x-nullable": true}, "p95": {"title": "P95", "type": "number", "x-nullable": true}, "at_or_above_target": {"title": "At or above target", "type": "integer"}, "at_or_above_target_percent": {"title": "At or above target percent", "type": "number", "x-nullable": true}}}, "RunDashboardPipelineCost": {"required": ["key", "label", "total_cents", "share"], "type": "object", "properties": {"key": {"title": "Key", "type": "string", "minLength": 1}, "label": {"title": "Label", "type": "string", "minLength": 1}, "total_cents": {"title": "Total cents", "type": "number", "x-nullable": true}, "share": {"title": "Share", "type": "number", "x-nullable": true}}}, "RunDashboardTool": {"required": ["name", "invocations", "measured", "failures", "failure_rate", "failure_label"], "type": "object", "properties": {"name": {"title": "Name", "type": "string", "minLength": 1}, "invocations": {"title": "Invocations", "type": "integer"}, "measured": {"title": "Measured", "type": "integer"}, "failures": {"title": "Failures", "type": "integer"}, "failure_rate": {"title": "Failure rate", "type": "number", "x-nullable": true}, "failure_label": {"title": "Failure label", "type": "string", "minLength": 1}}}, "RunDashboardTools": {"required": ["total_invocations", "total_tools", "volume", "failures"], "type": "object", "properties": {"total_invocations": {"title": "Total invocations", "type": "integer"}, "total_tools": {"title": "Total tools", "type": "integer"}, "volume": {"type": "array", "items": {"$ref": "#/definitions/RunDashboardTool"}}, "failures": {"type": "array", "items": {"$ref": "#/definitions/RunDashboardTool"}}}}, "RunDashboardTask": {"required": ["rank", "id", "label", "axis_label", "value", "modality", "provider"], "type": "object", "properties": {"rank": {"title": "Rank", "type": "integer"}, "id": {"title": "Id", "type": "string", "format": "uuid"}, "label": {"title": "Label", "type": "string", "minLength": 1}, "axis_label": {"title": "Axis label", "type": "string", "minLength": 1}, "value": {"title": "Value", "type": "number"}, "modality": {"title": "Modality", "type": "string", "minLength": 1, "x-nullable": true}, "provider": {"title": "Provider", "type": "string", "minLength": 1, "x-nullable": true}}}, "RunDashboardUnavailable": {"required": ["key", "reason"], "type": "object", "properties": {"key": {"title": "Key", "type": "string", "minLength": 1}, "reason": {"title": "Reason", "type": "string", "minLength": 1}}}, "RunDashboardEvaluationSummary": {"required": ["graders", "passed", "measured", "pass_rate", "errored_checks"], "type": "object", "properties": {"graders": {"title": "Graders", "type": "integer"}, "passed": {"title": "Passed", "type": "integer"}, "measured": {"title": "Measured", "type": "integer"}, "pass_rate": {"title": "Pass rate", "type": "number", "x-nullable": true}, "errored_checks": {"title": "Errored checks", "type": "integer"}}}, "RunDashboardRisk": {"required": ["queued", "in_progress", "scenario", "passed", "failed", "error", "inconclusive"], "type": "object", "properties": {"queued": {"title": "Queued", "type": "integer"}, "in_progress": {"title": "In progress", "type": "integer"}, "scenario": {"title": "Scenario", "type": "string", "minLength": 1}, "passed": {"title": "Passed", "type": "integer"}, "failed": {"title": "Failed", "type": "integer"}, "error": {"title": "Error", "type": "integer"}, "inconclusive": {"title": "Inconclusive", "type": "integer"}}}, "RunDashboardHealth": {"required": ["show_banner", "attempted", "ran_cleanly", "connected", "errored", "not_evaluated", "eval_errors"], "type": "object", "properties": {"show_banner": {"title": "Show banner", "type": "boolean"}, "attempted": {"title": "Attempted", "type": "integer"}, "ran_cleanly": {"title": "Ran cleanly", "type": "integer"}, "connected": {"title": "Connected", "type": "integer"}, "errored": {"title": "Errored", "type": "integer"}, "not_evaluated": {"title": "Not evaluated", "type": "integer"}, "eval_errors": {"title": "Eval errors", "type": "integer"}}}, "RunDashboardComparison": {"required": ["available", "previous_execution_id", "shared_scenarios", "newly_passing", "newly_failing"], "type": "object", "properties": {"available": {"title": "Available", "type": "boolean"}, "previous_execution_id": {"title": "Previous execution id", "type": "string", "format": "uuid", "x-nullable": true}, "shared_scenarios": {"title": "Shared scenarios", "type": "integer"}, "newly_passing": {"type": "array", "items": {"type": "string", "minLength": 1}}, "newly_failing": {"type": "array", "items": {"type": "string", "minLength": 1}}}}, "RunDashboardV3": {"required": ["metrics", "breakdowns", "voice_slos", "interruptions", "series", "series_limit", "series_mode", "agent_latency_percentiles", "latency_percentiles", "distributions", "csat", "agent_response_time", "pipeline_cost", "tools", "slowest_tasks", "most_expensive_tasks", "unavailable_features", "evaluation_summary", "use_case_risk", "run_health", "comparison", "goal_count"], "type": "object", "properties": {"metrics": {"type": "array", "items": {"$ref": "#/definitions/RunDashboardMetric"}}, "breakdowns": {"type": "array", "items": {"$ref": "#/definitions/RunDashboardBreakdown"}}, "voice_slos": {"type": "array", "items": {"$ref": "#/definitions/RunDashboardSlo"}}, "interruptions": {"$ref": "#/definitions/RunDashboardInterruptions"}, "series": {"type": "array", "items": {"$ref": "#/definitions/RunDashboardSeries"}}, "series_limit": {"title": "Series limit", "type": "integer"}, "series_mode": {"title": "Series mode", "type": "string", "enum": ["calls", "time_buckets"]}, "agent_latency_percentiles": {"type": "array", "items": {"$ref": "#/definitions/RunDashboardPercentile"}}, "latency_percentiles": {"type": "array", "items": {"$ref": "#/definitions/RunDashboardPercentile"}}, "distributions": {"type": "array", "items": {"$ref": "#/definitions/RunDashboardDistribution"}}, "csat": {"$ref": "#/definitions/RunDashboardCsat"}, "agent_response_time": {"$ref": "#/definitions/RunDashboardResponseTime"}, "pipeline_cost": {"type": "array", "items": {"$ref": "#/definitions/RunDashboardPipelineCost"}}, "tools": {"$ref": "#/definitions/RunDashboardTools"}, "slowest_tasks": {"type": "array", "items": {"$ref": "#/definitions/RunDashboardTask"}}, "most_expensive_tasks": {"type": "array", "items": {"$ref": "#/definitions/RunDashboardTask"}}, "unavailable_features": {"type": "array", "items": {"$ref": "#/definitions/RunDashboardUnavailable"}}, "evaluation_summary": {"$ref": "#/definitions/RunDashboardEvaluationSummary"}, "use_case_risk": {"type": "array", "items": {"$ref": "#/definitions/RunDashboardRisk"}}, "run_health": {"$ref": "#/definitions/RunDashboardHealth"}, "comparison": {"$ref": "#/definitions/RunDashboardComparison"}, "goal_count": {"title": "Goal count", "type": "integer"}}}, "AnalyticsExecution": {"required": ["id", "name", "started_at", "completed_at"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "started_at": {"title": "Started at", "type": "string", "format": "date-time", "x-nullable": true}, "completed_at": {"title": "Completed at", "type": "string", "format": "date-time", "x-nullable": true}}}, "OutcomeCounts": {"required": ["queued", "in_progress", "passed", "failed", "error", "inconclusive"], "type": "object", "properties": {"queued": {"title": "Queued", "type": "integer"}, "in_progress": {"title": "In progress", "type": "integer"}, "passed": {"title": "Passed", "type": "integer"}, "failed": {"title": "Failed", "type": "integer"}, "error": {"title": "Error", "type": "integer"}, "inconclusive": {"title": "Inconclusive", "type": "integer"}}}, "MetricStats": {"required": ["average", "p50", "p75", "p90", "p95", "p99", "measured", "total"], "type": "object", "properties": {"average": {"title": "Average", "type": "number", "x-nullable": true}, "p50": {"title": "P50", "type": "number", "x-nullable": true}, "p75": {"title": "P75", "type": "number", "x-nullable": true}, "p90": {"title": "P90", "type": "number", "x-nullable": true}, "p95": {"title": "P95", "type": "number", "x-nullable": true}, "p99": {"title": "P99", "type": "number", "x-nullable": true}, "measured": {"title": "Measured", "type": "integer"}, "total": {"title": "Total", "type": "integer"}}}, "TotalMetricStats": {"required": ["average", "p50", "p75", "p90", "p95", "p99", "measured", "total", "total_value"], "type": "object", "properties": {"average": {"title": "Average", "type": "number", "x-nullable": true}, "p50": {"title": "P50", "type": "number", "x-nullable": true}, "p75": {"title": "P75", "type": "number", "x-nullable": true}, "p90": {"title": "P90", "type": "number", "x-nullable": true}, "p95": {"title": "P95", "type": "number", "x-nullable": true}, "p99": {"title": "P99", "type": "number", "x-nullable": true}, "measured": {"title": "Measured", "type": "integer"}, "total": {"title": "Total", "type": "integer"}, "total_value": {"title": "Total value", "type": "number", "x-nullable": true}}}, "AnalyticsSummary": {"required": ["total", "outcomes", "measured", "pass_rate", "duration", "latency", "tokens", "cost_cents", "evaluators"], "type": "object", "properties": {"total": {"title": "Total", "type": "integer"}, "outcomes": {"$ref": "#/definitions/OutcomeCounts"}, "measured": {"title": "Measured", "type": "integer"}, "pass_rate": {"title": "Pass rate", "type": "number", "x-nullable": true}, "duration": {"$ref": "#/definitions/MetricStats"}, "latency": {"$ref": "#/definitions/MetricStats"}, "tokens": {"$ref": "#/definitions/TotalMetricStats"}, "cost_cents": {"$ref": "#/definitions/TotalMetricStats"}, "evaluators": {"title": "Evaluators", "type": "integer"}}}, "Risk": {"required": ["total", "outcomes", "measured", "pass_rate", "duration", "latency", "tokens", "cost_cents", "scenario", "scenario_key"], "type": "object", "properties": {"total": {"title": "Total", "type": "integer"}, "outcomes": {"$ref": "#/definitions/OutcomeCounts"}, "measured": {"title": "Measured", "type": "integer"}, "pass_rate": {"title": "Pass rate", "type": "number", "x-nullable": true}, "duration": {"$ref": "#/definitions/MetricStats"}, "latency": {"$ref": "#/definitions/MetricStats"}, "tokens": {"$ref": "#/definitions/TotalMetricStats"}, "cost_cents": {"$ref": "#/definitions/TotalMetricStats"}, "scenario": {"title": "Scenario", "type": "string", "minLength": 1}, "scenario_key": {"title": "Scenario key", "type": "string", "minLength": 1}}}, "ReliabilityInterval": {"required": ["low", "high", "effective_n", "evaluated", "clusters"], "type": "object", "properties": {"low": {"title": "Low", "type": "number"}, "high": {"title": "High", "type": "number"}, "effective_n": {"title": "Effective n", "type": "number"}, "evaluated": {"title": "Evaluated", "type": "integer"}, "clusters": {"title": "Clusters", "type": "integer"}}, "x-nullable": true}, "ReliabilityRow": {"required": ["queued", "in_progress", "passed", "failed", "error", "inconclusive", "scenario", "scenario_key", "runs", "evaluated", "pass_rate", "verdict"], "type": "object", "properties": {"queued": {"title": "Queued", "type": "integer"}, "in_progress": {"title": "In progress", "type": "integer"}, "passed": {"title": "Passed", "type": "integer"}, "failed": {"title": "Failed", "type": "integer"}, "error": {"title": "Error", "type": "integer"}, "inconclusive": {"title": "Inconclusive", "type": "integer"}, "scenario": {"title": "Scenario", "type": "string", "minLength": 1}, "scenario_key": {"title": "Scenario key", "type": "string", "minLength": 1}, "runs": {"title": "Runs", "type": "integer"}, "evaluated": {"title": "Evaluated", "type": "integer"}, "pass_rate": {"title": "Pass rate", "type": "number", "x-nullable": true}, "verdict": {"title": "Verdict", "type": "string", "enum": ["passed", "failed", "flaky", "not_evaluated"]}}}, "Reliability": {"required": ["trials", "scenarios", "consistent_pass", "passed_at_least_once", "repeated", "flaky", "flip_rate", "pass_rate_interval", "rows"], "type": "object", "properties": {"trials": {"title": "Trials", "type": "integer"}, "scenarios": {"title": "Scenarios", "type": "integer"}, "consistent_pass": {"title": "Consistent pass", "type": "integer"}, "passed_at_least_once": {"title": "Passed at least once", "type": "integer"}, "repeated": {"title": "Repeated", "type": "integer"}, "flaky": {"title": "Flaky", "type": "integer"}, "flip_rate": {"title": "Flip rate", "type": "number", "x-nullable": true}, "pass_rate_interval": {"$ref": "#/definitions/ReliabilityInterval"}, "rows": {"type": "array", "items": {"$ref": "#/definitions/ReliabilityRow"}}}}, "TurnDistribution": {"required": ["queued", "in_progress", "passed", "failed", "error", "inconclusive", "turn_count"], "type": "object", "properties": {"queued": {"title": "Queued", "type": "integer"}, "in_progress": {"title": "In progress", "type": "integer"}, "passed": {"title": "Passed", "type": "integer"}, "failed": {"title": "Failed", "type": "integer"}, "error": {"title": "Error", "type": "integer"}, "inconclusive": {"title": "Inconclusive", "type": "integer"}, "turn_count": {"title": "Turn count", "type": "integer"}}}, "EvaluationSummary": {"required": ["id", "name", "passed", "failed", "measured", "errored", "missing", "pass_rate", "average_score"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "minLength": 1}, "name": {"title": "Name", "type": "string", "minLength": 1}, "passed": {"title": "Passed", "type": "integer"}, "failed": {"title": "Failed", "type": "integer"}, "measured": {"title": "Measured", "type": "integer"}, "errored": {"title": "Errored", "type": "integer"}, "missing": {"title": "Missing", "type": "integer"}, "pass_rate": {"title": "Pass rate", "type": "number", "x-nullable": true}, "average_score": {"title": "Average score", "type": "number", "x-nullable": true}}}, "FailureBreakdown": {"required": ["reason", "failures", "share"], "type": "object", "properties": {"reason": {"title": "Reason", "type": "string", "minLength": 1}, "failures": {"title": "Failures", "type": "integer"}, "share": {"title": "Share", "type": "number"}}}, "Distributions": {"required": ["duration_seconds", "latency_ms", "tokens", "cost_cents"], "type": "object", "properties": {"duration_seconds": {"$ref": "#/definitions/MetricStats"}, "latency_ms": {"$ref": "#/definitions/MetricStats"}, "tokens": {"$ref": "#/definitions/TotalMetricStats"}, "cost_cents": {"$ref": "#/definitions/TotalMetricStats"}}}, "CostComponent": {"required": ["total", "measured", "calls"], "type": "object", "properties": {"total": {"title": "Total", "type": "number", "x-nullable": true}, "measured": {"title": "Measured", "type": "integer"}, "calls": {"title": "Calls", "type": "integer"}}}, "CostComponents": {"required": ["stt", "llm", "tts", "storage", "customer"], "type": "object", "properties": {"stt": {"$ref": "#/definitions/CostComponent"}, "llm": {"$ref": "#/definitions/CostComponent"}, "tts": {"$ref": "#/definitions/CostComponent"}, "storage": {"$ref": "#/definitions/CostComponent"}, "customer": {"$ref": "#/definitions/CostComponent"}}}, "ProviderBreakdown": {"required": ["total", "outcomes", "measured", "pass_rate", "duration", "latency", "tokens", "cost_cents", "provider"], "type": "object", "properties": {"total": {"title": "Total", "type": "integer"}, "outcomes": {"$ref": "#/definitions/OutcomeCounts"}, "measured": {"title": "Measured", "type": "integer"}, "pass_rate": {"title": "Pass rate", "type": "number", "x-nullable": true}, "duration": {"$ref": "#/definitions/MetricStats"}, "latency": {"$ref": "#/definitions/MetricStats"}, "tokens": {"$ref": "#/definitions/TotalMetricStats"}, "cost_cents": {"$ref": "#/definitions/TotalMetricStats"}, "provider": {"title": "Provider", "type": "string", "minLength": 1}}}, "ModalityBreakdown": {"required": ["total", "outcomes", "measured", "pass_rate", "duration", "latency", "tokens", "cost_cents", "modality"], "type": "object", "properties": {"total": {"title": "Total", "type": "integer"}, "outcomes": {"$ref": "#/definitions/OutcomeCounts"}, "measured": {"title": "Measured", "type": "integer"}, "pass_rate": {"title": "Pass rate", "type": "number", "x-nullable": true}, "duration": {"$ref": "#/definitions/MetricStats"}, "latency": {"$ref": "#/definitions/MetricStats"}, "tokens": {"$ref": "#/definitions/TotalMetricStats"}, "cost_cents": {"$ref": "#/definitions/TotalMetricStats"}, "modality": {"title": "Modality", "type": "string", "minLength": 1}}}, "Trend": {"required": ["total", "outcomes", "measured", "pass_rate", "duration", "latency", "tokens", "cost_cents", "execution_id", "started_at"], "type": "object", "properties": {"total": {"title": "Total", "type": "integer"}, "outcomes": {"$ref": "#/definitions/OutcomeCounts"}, "measured": {"title": "Measured", "type": "integer"}, "pass_rate": {"title": "Pass rate", "type": "number", "x-nullable": true}, "duration": {"$ref": "#/definitions/MetricStats"}, "latency": {"$ref": "#/definitions/MetricStats"}, "tokens": {"$ref": "#/definitions/TotalMetricStats"}, "cost_cents": {"$ref": "#/definitions/TotalMetricStats"}, "execution_id": {"title": "Execution id", "type": "string", "format": "uuid"}, "started_at": {"title": "Started at", "type": "string", "format": "date-time", "x-nullable": true}}}, "RunAnalyticsV3Response": {"required": ["dashboard", "execution", "summary", "scenario_risk", "reliability", "turn_distribution", "evaluations", "failure_breakdown", "distributions", "cost_breakdown_cents", "provider_breakdown", "modality_breakdown", "trends"], "type": "object", "properties": {"dashboard": {"$ref": "#/definitions/RunDashboardV3"}, "execution": {"$ref": "#/definitions/AnalyticsExecution"}, "summary": {"$ref": "#/definitions/AnalyticsSummary"}, "scenario_risk": {"type": "array", "items": {"$ref": "#/definitions/Risk"}}, "reliability": {"$ref": "#/definitions/Reliability"}, "turn_distribution": {"type": "array", "items": {"$ref": "#/definitions/TurnDistribution"}}, "evaluations": {"type": "array", "items": {"$ref": "#/definitions/EvaluationSummary"}}, "failure_breakdown": {"type": "array", "items": {"$ref": "#/definitions/FailureBreakdown"}}, "distributions": {"$ref": "#/definitions/Distributions"}, "cost_breakdown_cents": {"$ref": "#/definitions/CostComponents"}, "provider_breakdown": {"type": "array", "items": {"$ref": "#/definitions/ProviderBreakdown"}}, "modality_breakdown": {"type": "array", "items": {"$ref": "#/definitions/ModalityBreakdown"}}, "trends": {"type": "array", "items": {"$ref": "#/definitions/Trend"}}}}, "RunSummary": {"required": ["total", "outcomes", "measured", "pass_rate", "duration", "latency", "tokens", "cost_cents"], "type": "object", "properties": {"total": {"title": "Total", "type": "integer"}, "outcomes": {"$ref": "#/definitions/OutcomeCounts"}, "measured": {"title": "Measured", "type": "integer"}, "pass_rate": {"title": "Pass rate", "type": "number", "x-nullable": true}, "duration": {"$ref": "#/definitions/MetricStats"}, "latency": {"$ref": "#/definitions/MetricStats"}, "tokens": {"$ref": "#/definitions/TotalMetricStats"}, "cost_cents": {"$ref": "#/definitions/TotalMetricStats"}}}, "RunExecution": {"required": ["id", "run_test_id", "name", "status", "started_at", "completed_at", "ordinal", "agent_version", "agent_type", "summary"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "run_test_id": {"title": "Run test id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "status": {"title": "Status", "type": "string", "minLength": 1}, "started_at": {"title": "Started at", "type": "string", "format": "date-time", "x-nullable": true}, "completed_at": {"title": "Completed at", "type": "string", "format": "date-time", "x-nullable": true}, "ordinal": {"title": "Ordinal", "type": "integer"}, "agent_version": {"title": "Agent version", "type": "string", "minLength": 1, "x-nullable": true}, "selected_scenario_keys": {"type": "array", "items": {"type": "string", "minLength": 1}, "default": []}, "trials": {"title": "Trials", "type": "integer", "default": 1, "minimum": 1}, "agent_type": {"title": "Agent type", "type": "string", "minLength": 1, "x-nullable": true}, "summary": {"$ref": "#/definitions/RunSummary"}}}, "SimulateRunV3ScoringCounts": {"required": ["not_applicable", "pending", "succeeded", "failed", "timed_out"], "type": "object", "properties": {"not_applicable": {"title": "Not applicable", "type": "integer", "minimum": 0}, "pending": {"title": "Pending", "type": "integer", "minimum": 0}, "succeeded": {"title": "Succeeded", "type": "integer", "minimum": 0}, "failed": {"title": "Failed", "type": "integer", "minimum": 0}, "timed_out": {"title": "Timed out", "type": "integer", "minimum": 0}}}, "SimulateRunV3CallsSummary": {"required": ["total", "outcomes", "measured", "pass_rate", "duration", "latency", "tokens", "cost_cents", "scoring"], "type": "object", "properties": {"total": {"title": "Total", "type": "integer"}, "outcomes": {"$ref": "#/definitions/OutcomeCounts"}, "measured": {"title": "Measured", "type": "integer"}, "pass_rate": {"title": "Pass rate", "type": "number", "x-nullable": true}, "duration": {"$ref": "#/definitions/MetricStats"}, "latency": {"$ref": "#/definitions/MetricStats"}, "tokens": {"$ref": "#/definitions/TotalMetricStats"}, "cost_cents": {"$ref": "#/definitions/TotalMetricStats"}, "scoring": {"$ref": "#/definitions/SimulateRunV3ScoringCounts"}}}, "RunCall": {"required": ["id", "scenario", "scenario_details", "goal", "ideal_outcome", "conversation_branch", "persona", "persona_details", "sub_goals", "sub_goal_results", "harness_outcome_status", "source_scenario_key", "trial_index", "outcome", "execution_status", "modality", "provider", "started_at", "completed_at", "duration_seconds", "latency_ms", "avg_stop_time_after_interruption", "ai_interruption_count", "turn_count", "tokens", "cost_cents", "cost_breakdown_cents", "csat", "ended_reason", "error_message", "evaluations", "scoring_status", "csat_status", "csat_reason"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "scenario": {"title": "Scenario", "type": "string", "minLength": 1}, "scenario_details": {"title": "Scenario details", "type": "string", "minLength": 1, "x-nullable": true}, "goal": {"title": "Goal", "type": "string", "minLength": 1}, "ideal_outcome": {"title": "Ideal outcome", "type": "string", "minLength": 1, "x-nullable": true}, "conversation_branch": {"title": "Conversation branch", "type": "string", "minLength": 1, "x-nullable": true}, "persona": {"title": "Persona", "type": "string", "minLength": 1, "x-nullable": true}, "persona_details": {"$ref": "#/definitions/PersonaDetails"}, "sub_goals": {"type": "array", "items": {"type": "string", "minLength": 1}}, "sub_goal_results": {"type": "array", "items": {"$ref": "#/definitions/SubGoalResult"}}, "harness_outcome_status": {"title": "Harness outcome status", "type": "string", "minLength": 1, "x-nullable": true}, "source_scenario_key": {"title": "Source scenario key", "type": "string", "minLength": 1, "x-nullable": true}, "trial_index": {"title": "Trial index", "type": "integer", "x-nullable": true}, "outcome": {"title": "Outcome", "type": "string", "enum": ["queued", "in_progress", "passed", "failed", "inconclusive", "error"]}, "execution_status": {"title": "Execution status", "type": "string", "minLength": 1}, "modality": {"title": "Modality", "type": "string", "minLength": 1}, "provider": {"title": "Provider", "type": "string", "minLength": 1, "x-nullable": true}, "started_at": {"title": "Started at", "type": "string", "format": "date-time", "x-nullable": true}, "completed_at": {"title": "Completed at", "type": "string", "format": "date-time", "x-nullable": true}, "duration_seconds": {"title": "Duration seconds", "type": "number", "x-nullable": true}, "latency_ms": {"title": "Latency ms", "type": "number", "x-nullable": true}, "avg_stop_time_after_interruption": {"title": "Avg stop time after interruption", "description": "Average stop time after caller interruption in milliseconds.", "type": "integer", "x-nullable": true}, "ai_interruption_count": {"title": "Ai interruption count", "type": "integer", "x-nullable": true}, "turn_count": {"title": "Turn count", "type": "integer", "x-nullable": true}, "tokens": {"title": "Tokens", "type": "integer", "x-nullable": true}, "cost_cents": {"title": "Cost cents", "type": "number", "x-nullable": true}, "cost_breakdown_cents": {"$ref": "#/definitions/CostBreakdown"}, "csat": {"title": "Csat", "type": "number", "x-nullable": true}, "ended_reason": {"title": "Ended reason", "type": "string", "minLength": 1, "x-nullable": true}, "error_message": {"title": "Error message", "type": "string", "minLength": 1, "x-nullable": true}, "evaluations": {"type": "array", "items": {"$ref": "#/definitions/SimulateRunV3EvaluationResult"}}, "scoring_status": {"title": "Scoring status", "type": "string", "enum": ["not_applicable", "pending", "succeeded", "failed", "timed_out"]}, "csat_status": {"title": "Csat status", "type": "string", "enum": ["not_applicable", "pending", "succeeded", "failed", "timed_out", "skipped"]}, "csat_reason": {"title": "Csat reason", "type": "string", "minLength": 1, "x-nullable": true}}}, "GroupAggregates": {"required": ["csat", "turns", "latency_ms", "avg_stop_time_after_interruption", "ai_interruptions", "tokens", "evaluations"], "type": "object", "properties": {"csat": {"title": "Csat", "type": "number", "x-nullable": true}, "turns": {"title": "Turns", "type": "number", "x-nullable": true}, "latency_ms": {"title": "Latency ms", "type": "number", "x-nullable": true}, "avg_stop_time_after_interruption": {"title": "Avg stop time after interruption", "description": "Mean call stop latency in milliseconds, excluding unmeasured calls.", "type": "number", "x-nullable": true}, "ai_interruptions": {"title": "Ai interruptions", "description": "Mean AI interruption count per call, excluding unmeasured calls.", "type": "number", "x-nullable": true}, "tokens": {"title": "Tokens", "type": "number", "x-nullable": true}, "evaluations": {"title": "Evaluations", "type": "object"}}}, "RunGroup": {"required": ["total", "outcomes", "measured", "pass_rate", "duration", "latency", "tokens", "cost_cents", "key", "label", "result_ids", "aggregates"], "type": "object", "properties": {"total": {"title": "Total", "type": "integer"}, "outcomes": {"$ref": "#/definitions/OutcomeCounts"}, "measured": {"title": "Measured", "type": "integer"}, "pass_rate": {"title": "Pass rate", "type": "number", "x-nullable": true}, "duration": {"$ref": "#/definitions/MetricStats"}, "latency": {"$ref": "#/definitions/MetricStats"}, "tokens": {"$ref": "#/definitions/TotalMetricStats"}, "cost_cents": {"$ref": "#/definitions/TotalMetricStats"}, "key": {"title": "Key", "type": "string", "minLength": 1}, "label": {"title": "Label", "type": "string", "minLength": 1}, "result_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}}, "aggregates": {"$ref": "#/definitions/GroupAggregates"}}}, "FacetValue": {"required": ["value", "count"], "type": "object", "properties": {"value": {"title": "Value", "type": "string", "minLength": 1}, "count": {"title": "Count", "type": "integer"}}}, "RunFacets": {"required": ["goal", "sub_goal", "status"], "type": "object", "properties": {"goal": {"type": "array", "items": {"$ref": "#/definitions/FacetValue"}}, "sub_goal": {"type": "array", "items": {"$ref": "#/definitions/FacetValue"}}, "status": {"type": "array", "items": {"$ref": "#/definitions/FacetValue"}}}}, "EvaluationColumn": {"required": ["id", "name", "kind"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "minLength": 1}, "name": {"title": "Name", "type": "string", "minLength": 1}, "kind": {"title": "Kind", "type": "string", "enum": ["evaluation", "sub_goal"]}}}, "RunCallsV3Response": {"required": ["execution", "summary", "count", "page", "page_size", "total_pages", "results", "groups", "facets", "status_counts", "evaluation_columns"], "type": "object", "properties": {"execution": {"$ref": "#/definitions/RunExecution"}, "summary": {"$ref": "#/definitions/SimulateRunV3CallsSummary"}, "count": {"title": "Count", "type": "integer"}, "page": {"title": "Page", "type": "integer"}, "page_size": {"title": "Page size", "type": "integer"}, "total_pages": {"title": "Total pages", "type": "integer"}, "results": {"type": "array", "items": {"$ref": "#/definitions/RunCall"}}, "groups": {"type": "array", "items": {"$ref": "#/definitions/RunGroup"}}, "facets": {"$ref": "#/definitions/RunFacets"}, "status_counts": {"$ref": "#/definitions/OutcomeCounts"}, "evaluation_columns": {"type": "array", "items": {"$ref": "#/definitions/EvaluationColumn"}}}}, "RunExportV3Request": {"type": "object", "properties": {"search": {"title": "Search", "type": "string", "default": ""}, "filters": {"title": "Filters", "type": "object", "default": {}}, "ordering": {"title": "Ordering", "type": "string", "enum": ["started_at", "-started_at", "duration_seconds", "-duration_seconds", "latency_ms", "-latency_ms", "turn_count", "-turn_count", "tokens", "-tokens", "cost_cents", "-cost_cents", "scenario", "-scenario", "goal", "-goal", "outcome", "-outcome"], "default": "-started_at"}}}, "DeploymentHeartbeat": {"required": ["instance_id", "version", "window_start", "window_end", "active_users_count", "traces_count", "spans_count", "projects_count", "eval_logger_count", "model_hub_evaluations_count", "dataset_eval_runs_count", "total_evaluations_count", "simulation_runs_count", "simulation_calls_count", "experiments_count", "gateway_requests_count", "datasets_count"], "type": "object", "properties": {"schema_version": {"title": "Schema version", "type": "integer", "default": 1}, "instance_id": {"title": "Instance id", "type": "string", "format": "uuid"}, "version": {"title": "Version", "type": "string", "maxLength": 100, "minLength": 1}, "window_start": {"title": "Window start", "type": "string", "format": "date-time"}, "window_end": {"title": "Window end", "type": "string", "format": "date-time"}, "active_users_count": {"title": "Active users count", "type": "integer", "maximum": 9223372036854775807, "minimum": 0, "x-nullable": true}, "traces_count": {"title": "Traces count", "type": "integer", "maximum": 9223372036854775807, "minimum": 0, "x-nullable": true}, "spans_count": {"title": "Spans count", "type": "integer", "maximum": 9223372036854775807, "minimum": 0, "x-nullable": true}, "projects_count": {"title": "Projects count", "type": "integer", "maximum": 9223372036854775807, "minimum": 0, "x-nullable": true}, "eval_logger_count": {"title": "Eval logger count", "type": "integer", "maximum": 9223372036854775807, "minimum": 0, "x-nullable": true}, "model_hub_evaluations_count": {"title": "Model hub evaluations count", "type": "integer", "maximum": 9223372036854775807, "minimum": 0, "x-nullable": true}, "dataset_eval_runs_count": {"title": "Dataset eval runs count", "type": "integer", "maximum": 9223372036854775807, "minimum": 0, "x-nullable": true}, "total_evaluations_count": {"title": "Total evaluations count", "type": "integer", "maximum": 9223372036854775807, "minimum": 0, "x-nullable": true}, "simulation_runs_count": {"title": "Simulation runs count", "type": "integer", "maximum": 9223372036854775807, "minimum": 0, "x-nullable": true}, "simulation_calls_count": {"title": "Simulation calls count", "type": "integer", "maximum": 9223372036854775807, "minimum": 0, "x-nullable": true}, "experiments_count": {"title": "Experiments count", "type": "integer", "maximum": 9223372036854775807, "minimum": 0, "x-nullable": true}, "gateway_requests_count": {"title": "Gateway requests count", "type": "integer", "maximum": 9223372036854775807, "minimum": 0, "x-nullable": true}, "datasets_count": {"title": "Datasets count", "type": "integer", "maximum": 9223372036854775807, "minimum": 0, "x-nullable": true}}}, "DeploymentHeartbeatResponse": {"required": ["status"], "type": "object", "properties": {"status": {"title": "Status", "type": "string", "enum": ["ok"]}}}, "TelemetryUser": {"required": ["email", "domain"], "type": "object", "properties": {"email": {"title": "Email", "type": "string", "format": "email", "maxLength": 254, "minLength": 1}, "domain": {"title": "Domain", "type": "string", "maxLength": 253, "minLength": 1}}}, "DeploymentRegistration": {"required": ["instance_id", "version", "deployment_type", "timestamp", "telemetry_disabled"], "type": "object", "properties": {"schema_version": {"title": "Schema version", "type": "integer", "default": 1}, "instance_id": {"title": "Instance id", "type": "string", "format": "uuid"}, "version": {"title": "Version", "type": "string", "maxLength": 100, "minLength": 1}, "deployment_type": {"title": "Deployment type", "type": "string", "maxLength": 50, "minLength": 1}, "timestamp": {"title": "Timestamp", "type": "string", "format": "date-time"}, "telemetry_disabled": {"title": "Telemetry disabled", "type": "boolean"}, "users": {"type": "array", "items": {"$ref": "#/definitions/TelemetryUser"}, "default": []}}}, "DeploymentRegistrationResponse": {"required": ["status", "instance_secret"], "type": "object", "properties": {"status": {"title": "Status", "type": "string", "enum": ["ok"]}, "instance_secret": {"title": "Instance secret", "type": "string", "minLength": 1}}}, "AlertItem": {"required": ["id", "kind", "name", "enabled"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "kind": {"title": "Kind", "type": "string", "enum": ["metric", "error_feed"]}, "name": {"title": "Name", "type": "string", "minLength": 1}, "enabled": {"title": "Enabled", "type": "boolean"}, "project_id": {"title": "Project id", "type": "string", "format": "uuid", "x-nullable": true}, "trigger_type": {"title": "Trigger type", "type": "string", "minLength": 1}, "severity_threshold": {"title": "Severity threshold", "type": "string", "enum": ["low", "medium", "high", "critical"]}, "occurrence_threshold": {"title": "Occurrence threshold", "type": "integer"}, "filters": {"title": "Filters", "type": "object"}, "slack_connection_id": {"title": "Slack connection id", "type": "string", "format": "uuid"}, "slack_channel_id": {"title": "Slack channel id", "type": "string", "minLength": 1}, "slack_channel_name": {"title": "Slack channel name", "type": "string", "minLength": 1}, "cooldown_seconds": {"title": "Cooldown seconds", "type": "integer"}, "last_triggered_at": {"title": "Last triggered at", "type": "string", "format": "date-time", "x-nullable": true}, "health": {"title": "Health", "type": "string", "minLength": 1}, "failure_reason": {"title": "Failure reason", "type": "string", "minLength": 1, "x-nullable": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time"}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time"}, "project": {"title": "Project", "type": "string", "format": "uuid"}, "organization": {"title": "Organization", "type": "string", "format": "uuid"}, "workspace": {"title": "Workspace", "type": "string", "format": "uuid", "x-nullable": true}, "created_by": {"title": "Created by", "type": "string", "format": "uuid", "x-nullable": true}, "metric_type": {"title": "Metric type", "type": "string", "minLength": 1}, "metric": {"title": "Metric", "type": "string", "x-nullable": true}, "metric_name": {"title": "Metric name", "type": "string", "minLength": 1}, "threshold_type": {"title": "Threshold type", "type": "string", "minLength": 1}, "threshold_operator": {"title": "Threshold operator", "type": "string", "minLength": 1}, "threshold_metric_value": {"title": "Threshold metric value", "type": "string", "x-nullable": true}, "critical_threshold_value": {"title": "Critical threshold value", "type": "number", "x-nullable": true}, "warning_threshold_value": {"title": "Warning threshold value", "type": "number", "x-nullable": true}, "alert_frequency": {"title": "Alert frequency", "type": "integer"}, "auto_threshold_time_window": {"title": "Auto threshold time window", "type": "integer"}, "last_checked_at": {"title": "Last checked at", "type": "string", "format": "date-time", "x-nullable": true}, "slack_webhook_url": {"title": "Slack webhook url", "type": "string", "format": "uri", "x-nullable": true}, "slack_notes": {"title": "Slack notes", "type": "string", "x-nullable": true}, "is_mute": {"title": "Is mute", "type": "boolean"}, "deleted": {"title": "Deleted", "type": "boolean"}, "deleted_at": {"title": "Deleted at", "type": "string", "format": "date-time", "x-nullable": true}, "logs": {"type": "array", "items": {"type": "object"}, "x-nullable": true}, "notification_emails": {"type": "array", "items": {"type": "string", "format": "email", "minLength": 1}}}}, "AlertListResult": {"required": ["alerts"], "type": "object", "properties": {"alerts": {"type": "array", "items": {"$ref": "#/definitions/AlertItem"}}}}, "AlertListResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/AlertListResult"}}}, "AlertWriteRequest": {"type": "object", "properties": {"kind": {"title": "Kind", "type": "string", "enum": ["metric", "error_feed"]}, "name": {"title": "Name", "type": "string", "minLength": 1}, "enabled": {"title": "Enabled", "type": "boolean"}, "project_id": {"title": "Project id", "type": "string", "format": "uuid", "x-nullable": true}, "trigger_type": {"title": "Trigger type", "type": "string", "minLength": 1}, "severity_threshold": {"title": "Severity threshold", "type": "string", "enum": ["low", "medium", "high", "critical"]}, "occurrence_threshold": {"title": "Occurrence threshold", "type": "integer", "maximum": 1000000, "minimum": 1}, "filters": {"title": "Filters", "type": "object"}, "slack_connection_id": {"title": "Slack connection id", "type": "string", "format": "uuid"}, "slack_channel_id": {"title": "Slack channel id", "type": "string", "minLength": 1}, "cooldown_seconds": {"title": "Cooldown seconds", "type": "integer", "minimum": 0}, "project": {"title": "Project", "type": "string", "format": "uuid", "x-nullable": true}, "metric_type": {"title": "Metric type", "type": "string", "minLength": 1}, "metric": {"title": "Metric", "type": "string", "x-nullable": true}, "threshold_type": {"title": "Threshold type", "type": "string", "minLength": 1}, "threshold_operator": {"title": "Threshold operator", "type": "string", "minLength": 1}, "threshold_metric_value": {"title": "Threshold metric value", "type": "string", "x-nullable": true}, "critical_threshold_value": {"title": "Critical threshold value", "type": "number"}, "warning_threshold_value": {"title": "Warning threshold value", "type": "number"}, "alert_frequency": {"title": "Alert frequency", "type": "integer"}, "auto_threshold_time_window": {"title": "Auto threshold time window", "type": "integer"}, "slack_webhook_url": {"title": "Slack webhook url", "type": "string", "format": "uri", "x-nullable": true}, "slack_notes": {"title": "Slack notes", "type": "string", "x-nullable": true}, "is_mute": {"title": "Is mute", "type": "boolean"}, "notification_emails": {"type": "array", "items": {"type": "string", "format": "email", "minLength": 1}}}}, "AlertItemResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/AlertItem"}}}, "AlertTestRequest": {"type": "object", "properties": {}}, "AlertTestResult": {"required": ["sent", "slack_ts"], "type": "object", "properties": {"sent": {"title": "Sent", "type": "boolean"}, "slack_ts": {"title": "Slack ts", "type": "string", "minLength": 1}}}, "AlertTestResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/AlertTestResult"}}}, "AlertOption": {"required": ["value", "label"], "type": "object", "properties": {"value": {"title": "Value", "type": "string", "minLength": 1}, "label": {"title": "Label", "type": "string", "minLength": 1}}}, "AlertProjectOption": {"required": ["id", "name"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1}}}, "AlertOptionsResult": {"required": ["triggers", "severities", "statuses", "sources", "projects"], "type": "object", "properties": {"triggers": {"type": "array", "items": {"$ref": "#/definitions/AlertOption"}}, "severities": {"type": "array", "items": {"type": "string", "minLength": 1}}, "statuses": {"type": "array", "items": {"type": "string", "minLength": 1}}, "sources": {"type": "array", "items": {"type": "string", "minLength": 1}}, "projects": {"type": "array", "items": {"$ref": "#/definitions/AlertProjectOption"}}}}, "AlertOptionsResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/AlertOptionsResult"}}}, "AlertDeletedResult": {"required": ["id", "deleted"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "deleted": {"title": "Deleted", "type": "boolean"}}}, "AlertDeletedResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/AlertDeletedResult"}}}, "BulkAnnotationAnnotationRequest": {"required": ["annotation_label_id"], "type": "object", "properties": {"annotation_label_id": {"title": "Annotation label id", "type": "string", "format": "uuid"}, "value": {"title": "Value", "type": "string"}, "value_float": {"title": "Value float", "type": "number"}, "value_bool": {"title": "Value bool", "type": "boolean"}, "value_str_list": {"type": "array", "items": {"type": "string", "minLength": 1}}}}, "BulkAnnotationNoteRequest": {"required": ["text"], "type": "object", "properties": {"text": {"title": "Text", "type": "string", "minLength": 1}}}, "BulkAnnotationRecordRequest": {"required": ["observation_span_id"], "type": "object", "properties": {"observation_span_id": {"title": "Observation span id", "type": "string", "minLength": 1}, "annotations": {"type": "array", "items": {"$ref": "#/definitions/BulkAnnotationAnnotationRequest"}, "default": []}, "notes": {"type": "array", "items": {"$ref": "#/definitions/BulkAnnotationNoteRequest"}, "default": []}}}, "BulkAnnotationRequest": {"required": ["records"], "type": "object", "properties": {"records": {"type": "array", "items": {"$ref": "#/definitions/BulkAnnotationRecordRequest"}}}}, "BulkAnnotationResponseResult": {"required": ["message", "annotations_created", "annotations_updated", "notes_created", "succeeded_count", "errors_count", "warnings_count"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}, "annotations_created": {"title": "Annotations created", "type": "integer"}, "annotations_updated": {"title": "Annotations updated", "type": "integer"}, "notes_created": {"title": "Notes created", "type": "integer"}, "succeeded_count": {"title": "Succeeded count", "type": "integer"}, "errors_count": {"title": "Errors count", "type": "integer"}, "warnings_count": {"title": "Warnings count", "type": "integer"}, "warnings": {"type": "array", "items": {"type": "object"}, "x-nullable": true}, "errors": {"type": "array", "items": {"type": "object"}, "x-nullable": true}}}, "BulkAnnotationResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/BulkAnnotationResponseResult"}}}, "ApiErrorResponse": {"type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": false}, "type": {"title": "Type", "type": "string", "enum": ["validation_error", "authentication_error", "payment_required", "entitlement_error", "permission_error", "not_found", "conflict", "client_error", "rate_limit", "server_error", "service_unavailable", "timeout", "api_error"], "x-nullable": true}, "code": {"title": "Code", "type": "string", "x-nullable": true}, "detail": {"title": "Detail", "type": "string", "x-nullable": true}, "result": {"title": "Result", "type": "string", "x-nullable": true}, "message": {"title": "Message", "type": "string", "x-nullable": true}, "error": {"title": "Error", "type": "string", "x-nullable": true}, "attr": {"title": "Attr", "type": "string", "x-nullable": true}, "details": {"title": "Details", "type": "object", "additionalProperties": {"type": "array", "items": {"type": "string", "minLength": 1}}}}}, "FetchGraphResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"title": "Result", "type": "object", "required": ["data", "query_complete", "query_status", "query_sampled"], "properties": {"metric_name": {"type": "string"}, "id": {"type": "string"}, "name": {"type": "string"}, "metric_statistic": {"type": "string", "enum": ["count", "sum", "mean", "percentage"]}, "data": {"type": "array", "items": {"type": "object", "required": ["timestamp", "value"], "properties": {"timestamp": {"type": "string"}, "value": {"type": "number"}, "primary_traffic": {"type": "number"}}, "additionalProperties": true}}, "query_complete": {"type": "boolean"}, "query_status": {"type": "string", "enum": ["complete", "pending", "sampled", "degraded"]}, "query_sampled": {"type": "boolean"}, "query_refreshing": {"type": "boolean"}, "query_exact": {"type": "boolean"}, "query_provenance": {"type": "string"}, "query_count": {"type": "integer"}, "query_elapsed_ms": {"type": "number"}, "query_rows_returned": {"type": "integer"}}, "description": "A single system-metric series, an all-system-metrics bundle, or an array of evaluation series.", "x-one-of": [{"type": "object", "required": ["data", "query_complete", "query_status", "query_sampled"], "properties": {"metric_name": {"type": "string"}, "id": {"type": "string"}, "name": {"type": "string"}, "metric_statistic": {"type": "string", "enum": ["count", "sum", "mean", "percentage"]}, "data": {"type": "array", "items": {"type": "object", "required": ["timestamp", "value"], "properties": {"timestamp": {"type": "string"}, "value": {"type": "number"}, "primary_traffic": {"type": "number"}}, "additionalProperties": true}}, "query_complete": {"type": "boolean"}, "query_status": {"type": "string", "enum": ["complete", "pending", "sampled", "degraded"]}, "query_sampled": {"type": "boolean"}, "query_refreshing": {"type": "boolean"}, "query_exact": {"type": "boolean"}, "query_provenance": {"type": "string"}, "query_count": {"type": "integer"}, "query_elapsed_ms": {"type": "number"}, "query_rows_returned": {"type": "integer"}}}, {"type": "object", "required": ["latency", "tokens", "cost", "traffic", "query_complete", "query_status", "query_sampled"], "properties": {"latency": {"type": "array", "items": {"type": "object", "required": ["timestamp", "value"], "properties": {"timestamp": {"type": "string"}, "value": {"type": "number"}, "primary_traffic": {"type": "number"}}, "additionalProperties": true}}, "tokens": {"type": "array", "items": {"type": "object", "required": ["timestamp", "value"], "properties": {"timestamp": {"type": "string"}, "value": {"type": "number"}, "primary_traffic": {"type": "number"}}, "additionalProperties": true}}, "cost": {"type": "array", "items": {"type": "object", "required": ["timestamp", "value"], "properties": {"timestamp": {"type": "string"}, "value": {"type": "number"}, "primary_traffic": {"type": "number"}}, "additionalProperties": true}}, "traffic": {"type": "array", "items": {"type": "object", "required": ["timestamp", "value"], "properties": {"timestamp": {"type": "string"}, "value": {"type": "number"}, "primary_traffic": {"type": "number"}}, "additionalProperties": true}}, "system_metric_statistics": {"type": "object", "additionalProperties": {"type": "string", "enum": ["count", "sum", "mean", "percentage"]}}, "query_complete": {"type": "boolean"}, "query_status": {"type": "string", "enum": ["complete", "pending", "sampled", "degraded"]}, "query_sampled": {"type": "boolean"}, "query_refreshing": {"type": "boolean"}, "query_exact": {"type": "boolean"}, "query_provenance": {"type": "string"}, "query_count": {"type": "integer"}, "query_elapsed_ms": {"type": "number"}, "query_rows_returned": {"type": "integer"}}, "additionalProperties": true}, {"type": "array", "items": {"type": "object", "required": ["data", "query_complete", "query_status", "query_sampled"], "properties": {"metric_name": {"type": "string"}, "id": {"type": "string"}, "name": {"type": "string"}, "metric_statistic": {"type": "string", "enum": ["count", "sum", "mean", "percentage"]}, "data": {"type": "array", "items": {"type": "object", "required": ["timestamp", "value"], "properties": {"timestamp": {"type": "string"}, "value": {"type": "number"}, "primary_traffic": {"type": "number"}}, "additionalProperties": true}}, "query_complete": {"type": "boolean"}, "query_status": {"type": "string", "enum": ["complete", "pending", "sampled", "degraded"]}, "query_sampled": {"type": "boolean"}, "query_refreshing": {"type": "boolean"}, "query_exact": {"type": "boolean"}, "query_provenance": {"type": "string"}, "query_count": {"type": "integer"}, "query_elapsed_ms": {"type": "number"}, "query_rows_returned": {"type": "integer"}}}}]}}}, "CustomEvalConfig": {"required": ["eval_template", "project"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "eval_template": {"title": "Eval template", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "maxLength": 255, "x-nullable": true}, "config": {"title": "Config", "type": "object", "x-nullable": true}, "mapping": {"title": "Mapping", "type": "object", "x-nullable": true}, "project": {"title": "Project", "type": "string", "format": "uuid"}, "filters": {"title": "Filters", "type": "object", "x-nullable": true}, "error_localizer": {"title": "Error localizer", "type": "boolean"}, "kb_id": {"title": "Kb id", "type": "string", "format": "uuid", "x-nullable": true}, "model": {"title": "Model", "type": "string", "maxLength": 255, "x-nullable": true}, "eval_group": {"title": "Eval group", "type": "string", "readOnly": true}}}, "Dashboard": {"required": ["name"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "description": {"title": "Description", "type": "string"}, "workspace": {"title": "Workspace", "type": "string", "format": "uuid", "readOnly": true}, "created_by": {"$ref": "#/definitions/User"}, "updated_by": {"$ref": "#/definitions/User"}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}, "widget_count": {"title": "Widget count", "type": "string", "readOnly": true}}}, "DashboardCreateUpdate": {"required": ["name"], "type": "object", "properties": {"name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "description": {"title": "Description", "type": "string"}}}, "DashboardFilterValueOption": {"required": ["value", "label"], "type": "object", "properties": {"value": {"title": "Value", "type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}, "label": {"title": "Label", "type": "string", "minLength": 1}, "type": {"title": "Type", "type": "string", "enum": ["string", "number", "boolean", "array", "map", "json"]}, "name": {"title": "Name", "type": "string", "minLength": 1}, "email": {"title": "Email", "type": "string", "minLength": 1}, "description": {"title": "Description", "type": "string", "minLength": 1}}}, "DashboardFilterValuesResult": {"required": ["values"], "type": "object", "properties": {"query_exact": {"title": "Query exact", "type": "boolean"}, "values": {"type": "array", "items": {"$ref": "#/definitions/DashboardFilterValueOption"}}, "query_complete": {"title": "Query complete", "description": "Whether this page read completed, not whether all source history is indexed.", "type": "boolean"}, "query_status": {"title": "Query status", "type": "string", "enum": ["complete", "sampled", "degraded", "partial"]}, "query_error_code": {"title": "Query error code", "type": "string", "enum": ["sample_limit", "read_budget_exceeded", "query_failed"]}, "query_window_start": {"title": "Query window start", "type": "string", "format": "date-time"}, "query_window_end": {"title": "Query window end", "type": "string", "format": "date-time"}, "query_window_mode": {"title": "Query window mode", "type": "string", "enum": ["frozen_snapshot"]}, "query_count": {"title": "Query count", "type": "integer", "minimum": 0}, "has_more": {"title": "Has more", "type": "boolean"}, "browse_status": {"title": "Browse status", "type": "string", "enum": ["continuation", "exhausted", "limit_reached"]}, "next_cursor": {"title": "Next cursor", "type": "string", "minLength": 1, "x-nullable": true}, "attribute_type": {"title": "Attribute type", "type": "string", "enum": ["string", "number", "boolean", "array", "map", "json"]}, "attribute_types": {"type": "array", "items": {"type": "string", "enum": ["string", "number", "boolean", "array", "map", "json"]}}, "attribute_types_exact": {"title": "Attribute types exact", "type": "boolean"}, "catalog_epoch": {"title": "Catalog epoch", "type": "integer", "maximum": 65535, "minimum": 1}, "catalog_revision": {"title": "Catalog revision", "type": "integer", "minimum": 1}, "activation_fingerprint": {"title": "Activation fingerprint", "type": "string", "pattern": "^[0-9a-f]{64}$", "minLength": 1}, "query_provenance": {"title": "Query provenance", "type": "string", "enum": ["activated_property_catalog", "current_property_catalog"]}}}, "DashboardFilterValuesResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/DashboardFilterValuesResult"}}}, "DashboardFilterValuesQuery": {"type": "object", "properties": {"property_id": {"title": "Property id", "description": "Stable namespaced property identity returned by the metrics catalog. Legacy metric_name/metric_type remain accepted during migration.", "type": "string", "maxLength": 4113, "minLength": 1}, "metric_name": {"title": "Metric name", "type": "string", "minLength": 1}, "metric_type": {"title": "Metric type", "type": "string", "enum": ["system_metric", "eval_metric", "annotation_metric", "custom_attribute", "custom_column"]}, "source": {"title": "Source", "type": "string", "enum": ["traces", "spans", "sessions", "users", "voice_calls", "prompts", "datasets", "dataset_column", "simulation", "both", "all"], "default": "traces"}, "project_ids": {"title": "Project ids", "type": "string", "default": ""}, "dataset_id": {"title": "Dataset id", "type": "string", "format": "uuid"}, "search": {"title": "Search", "type": "string", "default": "", "maxLength": 512}, "page_size": {"title": "Page size", "type": "integer", "maximum": 50, "minimum": 1}, "cursor": {"title": "Cursor", "type": "string", "maxLength": 262144, "minLength": 1}, "attribute_type": {"title": "Attribute type", "type": "string", "enum": ["string", "number", "boolean", "array", "map", "json"]}}}, "DashboardMetricCatalogItem": {"required": ["name", "property_id", "property_kind"], "type": "object", "properties": {"name": {"title": "Name", "type": "string", "minLength": 1}, "property_id": {"title": "Property id", "type": "string", "minLength": 1}, "property_kind": {"title": "Property kind", "type": "string", "enum": ["system_attribute", "custom_attribute", "eval_config", "eval_template", "annotation", "dataset_column"]}, "display_name": {"title": "Display name", "type": "string"}, "category": {"title": "Category", "type": "string"}, "source": {"title": "Source", "type": "string"}, "sources": {"type": "array", "items": {"type": "string", "minLength": 1}}, "type": {"title": "Type", "type": "string"}, "unit": {"title": "Unit", "type": "string"}, "output_type": {"title": "Output type", "type": "string"}, "eval_template_id": {"title": "Eval template id", "type": "string", "format": "uuid"}, "role": {"title": "Role", "type": "string", "enum": ["metric", "dimension"]}, "choices": {"type": "array", "items": {"type": "object", "x-json-value": true, "description": "Any valid JSON value."}}, "choice_options": {"type": "array", "items": {"type": "object", "x-json-value": true, "description": "Any valid JSON value."}}, "allowed_aggregations": {"type": "array", "items": {"type": "string", "minLength": 1}}, "data_type": {"title": "Data type", "type": "string"}, "attribute_types": {"type": "array", "items": {"type": "string", "enum": ["string", "number", "boolean", "array", "map", "json"]}}, "attribute_types_exact": {"title": "Attribute types exact", "type": "boolean"}}}, "DashboardMetricsCatalogResult": {"required": ["metrics"], "type": "object", "properties": {"metrics": {"type": "array", "items": {"$ref": "#/definitions/DashboardMetricCatalogItem"}}, "total": {"title": "Total", "type": "integer", "minimum": 0, "x-nullable": true}, "total_is_exact": {"title": "Total is exact", "type": "boolean"}, "category_counts": {"title": "Category counts", "type": "object", "additionalProperties": {"type": "integer", "minimum": 0}}, "category_counts_exact": {"title": "Category counts exact", "type": "boolean"}, "page": {"title": "Page", "type": "integer", "minimum": 1}, "page_size": {"title": "Page size", "type": "integer", "maximum": 200, "minimum": 1}, "has_more": {"title": "Has more", "type": "boolean"}, "next_cursor": {"title": "Next cursor", "type": "string", "maxLength": 262144, "minLength": 1, "x-nullable": true}, "catalog_epoch": {"title": "Catalog epoch", "type": "integer", "maximum": 65535, "minimum": 1}, "catalog_revision": {"title": "Catalog revision", "type": "integer", "minimum": 1}, "activation_fingerprint": {"title": "Activation fingerprint", "type": "string", "pattern": "^[0-9a-f]{64}$", "minLength": 1}, "query_complete": {"title": "Query complete", "description": "Whether this page read completed, not whether all source history is indexed.", "type": "boolean"}, "query_exact": {"title": "Query exact", "type": "boolean"}, "query_status": {"title": "Query status", "type": "string", "enum": ["complete", "partial"]}, "query_provenance": {"title": "Query provenance", "type": "string", "enum": ["activated_property_catalog", "current_property_catalog"]}}}, "DashboardMetricsCatalogResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/DashboardMetricsCatalogResult"}}}, "DashboardMetricsCatalogQuery": {"type": "object", "properties": {"workflow": {"title": "Workflow", "type": "string", "enum": ["observability", "dataset", "simulation"]}, "project_ids": {"title": "Project ids", "type": "string", "default": ""}, "agent_definition_id": {"title": "Agent definition id", "type": "string", "format": "uuid"}, "per_eval_config": {"title": "Per eval config", "type": "boolean", "default": false}, "exclude_custom_attributes": {"title": "Exclude custom attributes", "type": "boolean", "default": false}, "search": {"title": "Search", "type": "string", "default": "", "maxLength": 256}, "category": {"title": "Category", "type": "string", "enum": ["system_metric", "eval_metric", "annotation_metric", "custom_attribute", "custom_column"], "default": ""}, "role": {"title": "Role", "type": "string", "enum": ["metric", "dimension"], "default": ""}, "source": {"title": "Source", "type": "string", "enum": ["traces", "spans", "sessions", "users", "voice_calls", "prompts", "datasets", "simulation", "both", "all"], "default": ""}, "page": {"title": "Page", "type": "integer", "minimum": 1}, "page_size": {"title": "Page size", "type": "integer", "maximum": 200, "minimum": 1}, "cursor_mode": {"title": "Cursor mode", "type": "boolean", "default": false}, "cursor": {"title": "Cursor", "type": "string", "maxLength": 262144, "minLength": 1}}, "additionalProperties": false}, "DashboardTimeRange": {"type": "object", "properties": {"preset": {"title": "Preset", "type": "string", "enum": ["30m", "6h", "today", "yesterday", "7D", "30D", "3M", "6M", "12M"]}, "custom_start": {"title": "Custom start", "type": "string", "format": "date-time"}, "custom_end": {"title": "Custom end", "type": "string", "format": "date-time"}}, "additionalProperties": false}, "DashboardMetric": {"required": ["name", "type"], "type": "object", "properties": {"id": {"title": "Id", "type": "string"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "property_id": {"title": "Property id", "type": "string", "minLength": 1}, "display_name": {"title": "Display name", "type": "string"}, "type": {"title": "Type", "type": "string", "enum": ["system_metric", "eval_metric", "annotation_metric", "custom_attribute", "custom_column"]}, "source": {"title": "Source", "type": "string", "enum": ["traces", "datasets", "simulation", "both", "all"], "default": "traces"}, "aggregation": {"title": "Aggregation", "type": "string", "enum": ["avg", "median", "max", "min", "p25", "p50", "p75", "p90", "p95", "p99", "count", "count_distinct", "sum", "pass_rate", "fail_rate", "pass_count", "fail_count", "true_rate"], "default": "avg"}, "unit": {"title": "Unit", "type": "string"}, "output_type": {"title": "Output type", "type": "string"}, "eval_key": {"title": "Eval key", "type": "string"}, "config_id": {"title": "Config id", "type": "string"}, "label_id": {"title": "Label id", "type": "string"}, "attribute_key": {"title": "Attribute key", "type": "string"}, "attribute_type": {"title": "Attribute type", "type": "string", "enum": ["string", "text", "number", "float", "integer", "boolean", "datetime", "date"]}, "column_id": {"title": "Column id", "type": "string"}, "data_type": {"title": "Data type", "type": "string", "enum": ["string", "text", "number", "float", "integer", "boolean", "datetime", "date"], "default": "string"}, "filters": {"type": "array", "items": {"type": "object", "properties": {"column_id": {"type": "string", "description": "Column or attribute id to filter on."}, "property_id": {"type": "string", "description": "Optional stable namespaced Property Registry identity."}, "display_name": {"type": "string", "description": "Optional UI label for chips and saved views."}, "source": {"type": "string", "description": "Optional source surface for mixed-source filters, for example traces, datasets, or simulation."}, "output_type": {"type": "string", "description": "Optional metric output type metadata used by eval and annotation filters."}, "filter_config": {"type": "object", "properties": {"filter_type": {"type": "string", "description": "Canonical field type, for example text, number, boolean, datetime, categorical, thumbs, annotator, array, or map. Legacy json is value-sensitive for SPAN_ATTRIBUTE filters: list values become array and object values become map."}, "filter_op": {"type": "string", "description": "Canonical operator from api_contracts/filter_contract.json, for example equals, not_equals, in, not_in, between, not_between, is_null, or is_not_null."}, "filter_value": {"description": "Scalar, list, range tuple, boolean, or null depending on filter_op and filter_type."}, "col_type": {"type": "string", "description": "Column family such as SYSTEM_METRIC, SPAN_ATTRIBUTE, EVAL_METRIC, ANNOTATION, or NORMAL."}, "attribute_value_types": {"type": "array", "items": {"type": "string", "enum": ["string", "number", "boolean"], "x-nullable": true}, "description": "Optional storage-family provenance aligned one-for-one with filter_value for mixed SPAN_ATTRIBUTE in/not_in filters. Null entries retain filter_type semantics for manually entered values."}}, "required": ["filter_type", "filter_op"], "additionalProperties": false}}, "required": ["column_id", "filter_config"], "additionalProperties": false}, "default": []}}, "additionalProperties": false}, "DashboardBreakdown": {"required": ["name"], "type": "object", "properties": {"name": {"title": "Name", "type": "string", "minLength": 1}, "property_id": {"title": "Property id", "type": "string", "minLength": 1}, "display_name": {"title": "Display name", "type": "string"}, "type": {"title": "Type", "type": "string", "enum": ["system_metric", "eval_metric", "annotation_metric", "custom_attribute", "custom_column"], "default": "system_metric"}, "source": {"title": "Source", "type": "string", "enum": ["traces", "datasets", "simulation", "both", "all"], "default": "traces"}, "output_type": {"title": "Output type", "type": "string"}, "label_id": {"title": "Label id", "type": "string"}, "config_id": {"title": "Config id", "type": "string"}, "eval_key": {"title": "Eval key", "type": "string"}, "attribute_key": {"title": "Attribute key", "type": "string"}, "attribute_type": {"title": "Attribute type", "type": "string", "enum": ["string", "text", "number", "float", "integer", "boolean", "datetime", "date"], "default": "string"}, "column_id": {"title": "Column id", "type": "string"}, "data_type": {"title": "Data type", "type": "string", "enum": ["string", "text", "number", "float", "integer", "boolean", "datetime", "date"], "default": "string"}}, "additionalProperties": false}, "DashboardQuery": {"required": ["time_range", "metrics"], "type": "object", "properties": {"workflow": {"title": "Workflow", "type": "string", "enum": ["observability", "dataset", "simulation"], "default": "observability"}, "project_ids": {"type": "array", "items": {"type": "string", "minLength": 1}, "default": []}, "time_range": {"$ref": "#/definitions/DashboardTimeRange"}, "granularity": {"title": "Granularity", "type": "string", "enum": ["minute", "hour", "day", "week", "month"], "default": "day"}, "metrics": {"type": "array", "items": {"$ref": "#/definitions/DashboardMetric"}}, "filters": {"type": "array", "items": {"type": "object", "properties": {"column_id": {"type": "string", "description": "Column or attribute id to filter on."}, "property_id": {"type": "string", "description": "Optional stable namespaced Property Registry identity."}, "display_name": {"type": "string", "description": "Optional UI label for chips and saved views."}, "source": {"type": "string", "description": "Optional source surface for mixed-source filters, for example traces, datasets, or simulation."}, "output_type": {"type": "string", "description": "Optional metric output type metadata used by eval and annotation filters."}, "filter_config": {"type": "object", "properties": {"filter_type": {"type": "string", "description": "Canonical field type, for example text, number, boolean, datetime, categorical, thumbs, annotator, array, or map. Legacy json is value-sensitive for SPAN_ATTRIBUTE filters: list values become array and object values become map."}, "filter_op": {"type": "string", "description": "Canonical operator from api_contracts/filter_contract.json, for example equals, not_equals, in, not_in, between, not_between, is_null, or is_not_null."}, "filter_value": {"description": "Scalar, list, range tuple, boolean, or null depending on filter_op and filter_type."}, "col_type": {"type": "string", "description": "Column family such as SYSTEM_METRIC, SPAN_ATTRIBUTE, EVAL_METRIC, ANNOTATION, or NORMAL."}, "attribute_value_types": {"type": "array", "items": {"type": "string", "enum": ["string", "number", "boolean"], "x-nullable": true}, "description": "Optional storage-family provenance aligned one-for-one with filter_value for mixed SPAN_ATTRIBUTE in/not_in filters. Null entries retain filter_type semantics for manually entered values."}}, "required": ["filter_type", "filter_op"], "additionalProperties": false}}, "required": ["column_id", "filter_config"], "additionalProperties": false}, "default": []}, "breakdowns": {"type": "array", "items": {"$ref": "#/definitions/DashboardBreakdown"}, "default": []}, "allow_sampled": {"title": "Allow sampled", "description": "Deprecated compatibility parameter; accepted but ignored. The response explicitly labels exact, rollup, or unavailable provenance.", "type": "boolean", "default": false}}, "additionalProperties": false}, "DashboardQuerySeriesPoint": {"required": ["timestamp", "value"], "type": "object", "properties": {"timestamp": {"title": "Timestamp", "type": "string", "minLength": 1}, "value": {"title": "Value", "type": "number", "x-nullable": true}}}, "DashboardQuerySeries": {"required": ["name", "data"], "type": "object", "properties": {"name": {"title": "Name", "type": "string"}, "data": {"type": "array", "items": {"$ref": "#/definitions/DashboardQuerySeriesPoint"}}}}, "DashboardQueryMetricResult": {"required": ["id", "name", "aggregation", "unit", "series"], "type": "object", "properties": {"id": {"title": "Id", "type": "string"}, "name": {"title": "Name", "type": "string"}, "aggregation": {"title": "Aggregation", "type": "string", "enum": ["avg", "median", "max", "min", "p25", "p50", "p75", "p90", "p95", "p99", "count", "count_distinct", "sum", "pass_rate", "fail_rate", "pass_count", "fail_count", "true_rate"]}, "unit": {"title": "Unit", "type": "string"}, "series": {"type": "array", "items": {"$ref": "#/definitions/DashboardQuerySeries"}}, "series_total": {"title": "Series total", "type": "integer", "minimum": 0}, "series_truncated": {"title": "Series truncated", "type": "boolean"}, "query_complete": {"title": "Query complete", "type": "boolean"}, "query_sampled": {"title": "Query sampled", "type": "boolean"}, "query_status": {"title": "Query status", "type": "string", "enum": ["complete", "degraded"]}, "query_error_code": {"title": "Query error code", "type": "string", "enum": ["sample_limit", "read_budget_exceeded", "query_failed", "bounded_shape_unavailable", "invalid_window", "malformed_result"]}, "query_exact": {"title": "Query exact", "type": "boolean"}, "query_provenance": {"title": "Query provenance", "type": "string", "enum": ["exact_snapshot", "materialized_rollup", "authorized_empty_scope", "bounded_unavailable"]}, "query_sampling_strategy": {"title": "Query sampling strategy", "type": "string", "minLength": 1}, "query_sampling_interval_seconds": {"title": "Query sampling interval seconds", "type": "integer", "minimum": 1}, "query_sample_limit": {"title": "Query sample limit", "type": "integer", "minimum": 1}, "query_sample_per_bucket": {"title": "Query sample per bucket", "type": "integer", "minimum": 1}}}, "DashboardQueryTimeRangeResult": {"required": ["start", "end"], "type": "object", "properties": {"start": {"title": "Start", "type": "string", "minLength": 1}, "end": {"title": "End", "type": "string", "minLength": 1}}}, "DashboardQueryResult": {"required": ["metrics", "time_range", "granularity"], "type": "object", "properties": {"metrics": {"type": "array", "items": {"$ref": "#/definitions/DashboardQueryMetricResult"}}, "time_range": {"$ref": "#/definitions/DashboardQueryTimeRangeResult"}, "granularity": {"title": "Granularity", "type": "string", "enum": ["minute", "hour", "day", "week", "month"]}, "query_complete": {"title": "Query complete", "type": "boolean"}, "query_status": {"title": "Query status", "type": "string", "enum": ["complete", "degraded", "pending"]}, "query_sampled": {"title": "Query sampled", "type": "boolean"}, "query_exact": {"title": "Query exact", "type": "boolean"}, "query_provenance": {"title": "Query provenance", "type": "string", "enum": ["exact_snapshot", "materialized_rollup", "authorized_empty_scope", "bounded_unavailable"]}, "query_error_code": {"title": "Query error code", "type": "string", "enum": ["sample_limit", "read_budget_exceeded", "query_failed", "bounded_shape_unavailable", "invalid_window", "malformed_result"]}, "query_sampling_strategy": {"title": "Query sampling strategy", "type": "string", "minLength": 1}, "query_count": {"title": "Query count", "type": "integer", "maximum": 256, "minimum": 0}, "query_rows_returned": {"title": "Query rows returned", "type": "integer", "minimum": 0}, "query_elapsed_ms": {"title": "Query elapsed ms", "type": "number", "minimum": 0}, "query_completed_at": {"title": "Query completed at", "type": "string", "format": "date-time"}, "query_cached": {"title": "Query cached", "type": "boolean"}, "query_refresh_failed": {"title": "Query refresh failed", "type": "boolean"}, "query_refreshing": {"title": "Query refreshing", "type": "boolean"}, "query_snapshot_version_ceiling": {"title": "Query snapshot version ceiling", "type": "integer", "minimum": 1}, "query_snapshot_capture_count": {"title": "Query snapshot capture count", "type": "integer", "minimum": 0}, "query_snapshot_relation_count": {"title": "Query snapshot relation count", "type": "integer", "minimum": 0}}}, "DashboardQueryApiResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/DashboardQueryResult"}}}, "DashboardWidget": {"type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "description": {"title": "Description", "type": "string"}, "position": {"title": "Position", "type": "integer", "maximum": 2147483647, "minimum": -2147483648}, "width": {"title": "Width", "type": "integer", "maximum": 2147483647, "minimum": -2147483648}, "height": {"title": "Height", "type": "integer", "maximum": 2147483647, "minimum": -2147483648}, "query_config": {"title": "Query config", "description": "Saved query in the same shape as the dashboard query request: time_range and metrics are required once any metric is set, with optional workflow, project_ids, granularity, filters, and breakdowns.", "type": "object"}, "chart_config": {"title": "Chart config", "description": "Chart presentation. chart_type must be one of line, stacked_line, column, stacked_column, bar, stacked_bar, pie, table, or metric.", "type": "object"}, "created_by": {"title": "Created by", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}}}, "DashboardPreviewQuery": {"required": ["query_config"], "type": "object", "properties": {"query_config": {"$ref": "#/definitions/DashboardQuery"}, "allow_sampled": {"title": "Allow sampled", "description": "Deprecated compatibility parameter; accepted but ignored. The response explicitly labels exact, rollup, or unavailable provenance.", "type": "boolean", "default": false}}, "additionalProperties": false}, "DashboardSampleOptIn": {"type": "object", "properties": {"allow_sampled": {"title": "Allow sampled", "description": "Deprecated compatibility parameter; accepted but ignored. The response explicitly labels exact, rollup, or unavailable provenance.", "type": "boolean", "default": false}}, "additionalProperties": false}, "DashboardDetail": {"required": ["name"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "description": {"title": "Description", "type": "string"}, "workspace": {"title": "Workspace", "type": "string", "format": "uuid", "readOnly": true}, "created_by": {"$ref": "#/definitions/User"}, "updated_by": {"$ref": "#/definitions/User"}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}, "widgets": {"title": "Widgets", "type": "string", "readOnly": true}}}, "ObserveDataset": {"required": ["name"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "type": "string", "maxLength": 2000, "minLength": 1}, "organization": {"title": "Organization", "type": "string", "format": "uuid", "readOnly": true}, "model_type": {"title": "Model type", "type": "string", "enum": ["Numeric", "ScoreCategorical", "Ranking", "BinaryClassification", "Regression", "ObjectDetection", "Segmentation", "GenerativeLLM", "GenerativeImage", "GenerativeVideo", "TTS", "STT", "MultiModal"]}, "source": {"title": "Source", "type": "string", "enum": ["demo", "build", "sdk", "observe", "knowledge_base", "scenario", "experiment_snapshot", "graph"]}, "user": {"title": "User", "type": "string", "format": "uuid", "readOnly": true}}}, "EvalTask": {"required": ["project", "name", "sampling_rate", "run_type", "evals"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "project": {"title": "Project", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "filters": {"title": "Filters", "type": "object", "default": {}, "x-nullable": true, "properties": {"project_id": {"type": "string", "x-nullable": true, "description": "Project scope for the evaluation task."}, "date_range": {"type": "array", "items": {"type": "string"}, "minItems": 2, "maxItems": 2, "description": "Half-open [start, end) ISO timestamps, normalized to UTC."}, "date_preset": {"type": "string", "enum": ["30m", "6h", "today", "yesterday", "7d", "30d", "3m", "6m", "12m", "custom"], "description": "Which time-window preset the user chose. The frontend resolves it to date_range at save time; this records the intent so a relative window can be re-anchored on the next save. Never read when building a query — date_range remains authoritative. Absent on tasks predating this field. The enum documents the accepted values; it is not enforced."}, "created_at": {"type": "string", "description": "Exclusive lower-bound ISO timestamp for legacy task filters, normalized to UTC."}, "session_id": {"type": "array", "items": {"type": "string"}, "description": "Trace session id(s) to constrain the task."}, "trace_id": {"type": "array", "items": {"type": "string"}, "description": "Trace id(s) to constrain linked-source tasks."}, "span_id": {"type": "array", "items": {"type": "string"}, "description": "Observation span id(s) to constrain linked-source tasks."}, "observation_type": {"type": "array", "items": {"type": "string"}, "description": "Observation span type(s), for example llm, tool, or chain."}, "filters": {"type": "array", "items": {"type": "object", "properties": {"column_id": {"type": "string", "description": "Column or attribute id to filter on."}, "property_id": {"type": "string", "description": "Optional stable namespaced Property Registry identity."}, "display_name": {"type": "string", "description": "Optional UI label for chips and saved views."}, "source": {"type": "string", "description": "Optional source surface for mixed-source filters, for example traces, datasets, or simulation."}, "output_type": {"type": "string", "description": "Optional metric output type metadata used by eval and annotation filters."}, "filter_config": {"type": "object", "properties": {"filter_type": {"type": "string", "description": "Canonical field type, for example text, number, boolean, datetime, categorical, thumbs, annotator, array, or map. Legacy json is value-sensitive for SPAN_ATTRIBUTE filters: list values become array and object values become map."}, "filter_op": {"type": "string", "description": "Canonical operator from api_contracts/filter_contract.json, for example equals, not_equals, in, not_in, between, not_between, is_null, or is_not_null."}, "filter_value": {"description": "Scalar, list, range tuple, boolean, or null depending on filter_op and filter_type."}, "col_type": {"type": "string", "description": "Column family such as SYSTEM_METRIC, SPAN_ATTRIBUTE, EVAL_METRIC, ANNOTATION, or NORMAL."}, "attribute_value_types": {"type": "array", "items": {"type": "string", "enum": ["string", "number", "boolean"], "x-nullable": true}, "description": "Optional storage-family provenance aligned one-for-one with filter_value for mixed SPAN_ATTRIBUTE in/not_in filters. Null entries retain filter_type semantics for manually entered values."}}, "required": ["filter_type", "filter_op"], "additionalProperties": false}}, "required": ["column_id", "filter_config"], "additionalProperties": false}}, "span_attributes_filters": {"type": "array", "items": {"type": "object", "properties": {"column_id": {"type": "string", "description": "Column or attribute id to filter on."}, "property_id": {"type": "string", "description": "Optional stable namespaced Property Registry identity."}, "display_name": {"type": "string", "description": "Optional UI label for chips and saved views."}, "source": {"type": "string", "description": "Optional source surface for mixed-source filters, for example traces, datasets, or simulation."}, "output_type": {"type": "string", "description": "Optional metric output type metadata used by eval and annotation filters."}, "filter_config": {"type": "object", "properties": {"filter_type": {"type": "string", "description": "Canonical field type, for example text, number, boolean, datetime, categorical, thumbs, annotator, array, or map. Legacy json is value-sensitive for SPAN_ATTRIBUTE filters: list values become array and object values become map."}, "filter_op": {"type": "string", "description": "Canonical operator from api_contracts/filter_contract.json, for example equals, not_equals, in, not_in, between, not_between, is_null, or is_not_null."}, "filter_value": {"description": "Scalar, list, range tuple, boolean, or null depending on filter_op and filter_type."}, "col_type": {"type": "string", "description": "Column family such as SYSTEM_METRIC, SPAN_ATTRIBUTE, EVAL_METRIC, ANNOTATION, or NORMAL."}, "attribute_value_types": {"type": "array", "items": {"type": "string", "enum": ["string", "number", "boolean"], "x-nullable": true}, "description": "Optional storage-family provenance aligned one-for-one with filter_value for mixed SPAN_ATTRIBUTE in/not_in filters. Null entries retain filter_type semantics for manually entered values."}}, "required": ["filter_type", "filter_op"], "additionalProperties": false}}, "required": ["column_id", "filter_config"], "additionalProperties": false}}}, "additionalProperties": false}, "sampling_rate": {"title": "Sampling rate", "type": "number", "maximum": 100.0, "minimum": 1.0}, "last_run": {"title": "Last run", "type": "string", "format": "date-time", "x-nullable": true}, "spans_limit": {"title": "Spans limit", "type": "integer", "maximum": 1000000, "minimum": 1, "x-nullable": true}, "run_type": {"title": "Run type", "type": "string", "enum": ["continuous", "historical"]}, "row_type": {"title": "Row type", "type": "string", "enum": ["spans", "traces", "sessions", "voiceCalls"], "default": "spans"}, "status": {"title": "Status", "type": "string", "enum": ["pending", "running", "completed", "failed", "paused", "deleted"], "x-nullable": true}, "start_time": {"title": "Start time", "type": "string", "format": "date-time", "x-nullable": true}, "end_time": {"title": "End time", "type": "string", "format": "date-time", "x-nullable": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}, "evals_details": {"title": "Evals details", "type": "object", "x-nullable": true}, "evals": {"type": "array", "items": {"type": "string", "format": "uuid"}, "uniqueItems": true}, "failed_spans": {"title": "Failed spans", "type": "object", "x-nullable": true}, "progress": {"title": "Progress", "type": "string", "readOnly": true}}}, "EvalTaskCreateResult": {"required": ["id"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}}}, "EvalTaskCreateResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/EvalTaskCreateResult"}}}, "EvalTaskUsageStats": {"required": ["total_runs", "runs_period", "success_count", "error_count", "pass_rate"], "type": "object", "properties": {"total_runs": {"title": "Total runs", "type": "integer", "minimum": 0}, "runs_period": {"title": "Runs period", "type": "integer", "minimum": 0}, "success_count": {"title": "Success count", "description": "Deprecated compatibility field. Usage counts only successful runs, so this always equals runs_period.", "type": "integer", "minimum": 0}, "error_count": {"title": "Error count", "description": "Deprecated compatibility field. Usage counts only successful runs, so this is always 0; failed runs stay in the task logs.", "type": "integer", "minimum": 0}, "pass_rate": {"title": "Pass rate", "description": "Deprecated compatibility field. Usage counts only successful runs, so this is 100 when runs_period is above 0, otherwise 0.", "type": "number", "maximum": 100, "minimum": 0}, "total_runs_is_lower_bound": {"title": "Total runs is lower bound", "type": "boolean"}, "runs_period_is_lower_bound": {"title": "Runs period is lower bound", "type": "boolean"}}}, "EvalTaskUsageEval": {"required": ["id", "name", "output_type", "template_id", "model"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "output_type": {"title": "Output type", "type": "string", "minLength": 1}, "template_id": {"title": "Template id", "type": "string", "format": "uuid", "x-nullable": true}, "model": {"title": "Model", "type": "string", "x-nullable": true}}}, "EvalTaskUsageChartPoint": {"required": ["timestamp", "calls", "pass_count", "fail_count", "avg_score", "avg_latency_ms"], "type": "object", "properties": {"timestamp": {"title": "Timestamp", "type": "string", "format": "date-time"}, "calls": {"title": "Calls", "type": "integer", "minimum": 0}, "pass_count": {"title": "Pass count", "type": "integer", "minimum": 0}, "fail_count": {"title": "Fail count", "type": "integer", "minimum": 0}, "avg_score": {"title": "Avg score", "type": "number", "x-nullable": true}, "avg_latency_ms": {"title": "Avg latency ms", "type": "number", "minimum": 0}}}, "EvalTaskUsageLogDetail": {"required": ["detail_complete", "omitted_fields", "eval_name", "model", "warnings", "output_type", "target_type", "span_name", "span_id", "trace_id", "session_id", "session_name", "output_bool", "output_float", "output_str", "results_explanation", "error_message", "input_variables"], "type": "object", "properties": {"detail_complete": {"title": "Detail complete", "type": "boolean"}, "omitted_fields": {"type": "array", "items": {"type": "string", "minLength": 1}}, "eval_name": {"title": "Eval name", "type": "string", "x-nullable": true}, "model": {"title": "Model", "type": "string", "x-nullable": true}, "warnings": {"title": "Warnings", "type": "object", "x-json-value": true, "description": "Any valid JSON value."}, "output_type": {"title": "Output type", "type": "string", "x-nullable": true}, "target_type": {"title": "Target type", "type": "string", "x-nullable": true}, "span_name": {"title": "Span name", "type": "string", "x-nullable": true}, "span_id": {"title": "Span id", "type": "string", "x-nullable": true}, "trace_id": {"title": "Trace id", "type": "string", "x-nullable": true}, "session_id": {"title": "Session id", "type": "string", "x-nullable": true}, "session_name": {"title": "Session name", "type": "string", "x-nullable": true}, "output_bool": {"title": "Output bool", "type": "boolean", "x-nullable": true}, "output_float": {"title": "Output float", "type": "number", "x-nullable": true}, "output_str": {"title": "Output str", "type": "string", "x-nullable": true}, "results_explanation": {"title": "Results explanation", "type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}, "error_message": {"title": "Error message", "type": "string", "x-nullable": true}, "input_variables": {"title": "Input variables", "type": "object", "x-json-value": true, "description": "Any valid JSON value."}}}, "EvalTaskUsageLog": {"required": ["id", "input", "result", "score", "reason", "status", "source", "warnings", "created_at", "span_id", "trace_id", "session_id", "eval_id", "eval_name", "model", "detail"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "input": {"title": "Input", "type": "string"}, "result": {"title": "Result", "type": "string"}, "score": {"title": "Score", "type": "number", "x-nullable": true}, "reason": {"title": "Reason", "type": "string"}, "status": {"title": "Status", "type": "string", "enum": ["success", "error"]}, "source": {"title": "Source", "type": "string", "minLength": 1}, "warnings": {"title": "Warnings", "type": "object", "x-json-value": true, "description": "Any valid JSON value."}, "created_at": {"title": "Created at", "type": "string", "format": "date-time"}, "span_id": {"title": "Span id", "type": "string", "x-nullable": true}, "trace_id": {"title": "Trace id", "type": "string", "x-nullable": true}, "session_id": {"title": "Session id", "type": "string", "x-nullable": true}, "eval_id": {"title": "Eval id", "type": "string", "format": "uuid", "x-nullable": true}, "eval_name": {"title": "Eval name", "type": "string", "x-nullable": true}, "model": {"title": "Model", "type": "string", "x-nullable": true}, "detail": {"$ref": "#/definitions/EvalTaskUsageLogDetail"}}}, "EvalTaskUsageLogs": {"required": ["count", "next", "previous", "results", "total_pages", "current_page"], "type": "object", "properties": {"count": {"title": "Count", "type": "integer", "minimum": 0}, "next": {"title": "Next", "type": "string", "minLength": 1, "x-nullable": true}, "previous": {"title": "Previous", "type": "string", "minLength": 1, "x-nullable": true}, "results": {"type": "array", "items": {"$ref": "#/definitions/EvalTaskUsageLog"}}, "total_pages": {"title": "Total pages", "type": "integer", "minimum": 0}, "current_page": {"title": "Current page", "type": "integer", "minimum": 1}, "has_more": {"title": "Has more", "type": "boolean"}, "count_is_lower_bound": {"title": "Count is lower bound", "type": "boolean"}, "page_limit_reached": {"title": "Page limit reached", "type": "boolean"}}}, "EvalTaskUsageAggregationMetadata": {"required": ["query_complete", "sampled", "error", "provenance", "row_limit", "rows_scanned", "rows_matched"], "type": "object", "properties": {"query_complete": {"title": "Query complete", "type": "boolean"}, "sampled": {"title": "Sampled", "type": "boolean"}, "error": {"title": "Error", "type": "string", "enum": ["sample_limit"], "x-nullable": true}, "provenance": {"title": "Provenance", "type": "string", "minLength": 1}, "row_limit": {"title": "Row limit", "type": "integer", "minimum": 1}, "rows_scanned": {"title": "Rows scanned", "type": "integer", "minimum": 0}, "rows_matched": {"title": "Rows matched", "type": "integer", "minimum": 0}}}, "EvalTaskUsageResult": {"required": ["eval_task_id"], "type": "object", "properties": {"eval_task_id": {"title": "Eval task id", "type": "string", "format": "uuid"}, "stats": {"$ref": "#/definitions/EvalTaskUsageStats"}, "evals": {"type": "array", "items": {"$ref": "#/definitions/EvalTaskUsageEval"}}, "chart": {"type": "array", "items": {"$ref": "#/definitions/EvalTaskUsageChartPoint"}}, "logs": {"$ref": "#/definitions/EvalTaskUsageLogs"}, "period_requested": {"title": "Period requested", "type": "string", "minLength": 1}, "period_used": {"title": "Period used", "type": "string", "minLength": 1}, "eval_aggregation": {"title": "Eval aggregation", "type": "object", "x-json-value": true, "description": "Any valid JSON value."}, "span_aggregation": {"title": "Span aggregation", "type": "object", "x-json-value": true, "description": "Any valid JSON value."}, "aggregation_metadata": {"$ref": "#/definitions/EvalTaskUsageAggregationMetadata"}, "query_complete": {"title": "Query complete", "type": "boolean"}, "query_status": {"title": "Query status", "type": "string", "enum": ["complete", "sampled"]}, "query_sampled": {"title": "Query sampled", "type": "boolean"}, "error": {"title": "Error", "type": "string", "enum": ["sample_limit"]}, "provenance": {"title": "Provenance", "type": "string", "minLength": 1}}}, "EvalTaskUsageResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/EvalTaskUsageResult"}}}, "_EvalTaskListRowResponse": {"required": ["id", "name", "status", "run_type", "filters_applied", "created_at", "evals_applied", "sampling_rate", "last_run"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1, "x-nullable": true}, "project_name": {"title": "Project name", "type": "string", "minLength": 1}, "status": {"title": "Status", "type": "string", "minLength": 1, "x-nullable": true}, "run_type": {"title": "Run type", "type": "string", "minLength": 1, "x-nullable": true}, "filters_applied": {"title": "Filters applied", "type": "object", "x-nullable": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time"}, "evals_applied": {"type": "array", "items": {"type": "string", "minLength": 1, "x-nullable": true}}, "sampling_rate": {"title": "Sampling rate", "type": "number", "x-nullable": true}, "last_run": {"title": "Last run", "type": "string", "format": "date-time", "x-nullable": true}}}, "_EvalTaskListResultResponse": {"required": ["metadata", "table", "config"], "type": "object", "properties": {"metadata": {"title": "Metadata", "type": "object", "additionalProperties": {"type": "integer", "minimum": 0}}, "table": {"type": "array", "items": {"$ref": "#/definitions/_EvalTaskListRowResponse"}}, "config": {"type": "array", "items": {"type": "object"}}}}, "_EvalTaskListResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/_EvalTaskListResultResponse"}}}, "EvalTaskDeleteRequest": {"required": ["eval_task_ids"], "type": "object", "properties": {"eval_task_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}}}}, "EvalTaskMessageResult": {"required": ["message"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}}}, "EvalTaskMessageResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/EvalTaskMessageResult"}}}, "EvalTaskUpdateRequest": {"required": ["edit_type", "eval_task_id"], "type": "object", "properties": {"name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "filters": {"title": "Filters", "type": "object", "x-nullable": true, "properties": {"project_id": {"type": "string", "x-nullable": true, "description": "Project scope for the evaluation task."}, "date_range": {"type": "array", "items": {"type": "string"}, "minItems": 2, "maxItems": 2, "description": "Half-open [start, end) ISO timestamps, normalized to UTC."}, "date_preset": {"type": "string", "enum": ["30m", "6h", "today", "yesterday", "7d", "30d", "3m", "6m", "12m", "custom"], "description": "Which time-window preset the user chose. The frontend resolves it to date_range at save time; this records the intent so a relative window can be re-anchored on the next save. Never read when building a query — date_range remains authoritative. Absent on tasks predating this field. The enum documents the accepted values; it is not enforced."}, "created_at": {"type": "string", "description": "Exclusive lower-bound ISO timestamp for legacy task filters, normalized to UTC."}, "session_id": {"type": "array", "items": {"type": "string"}, "description": "Trace session id(s) to constrain the task."}, "trace_id": {"type": "array", "items": {"type": "string"}, "description": "Trace id(s) to constrain linked-source tasks."}, "span_id": {"type": "array", "items": {"type": "string"}, "description": "Observation span id(s) to constrain linked-source tasks."}, "observation_type": {"type": "array", "items": {"type": "string"}, "description": "Observation span type(s), for example llm, tool, or chain."}, "filters": {"type": "array", "items": {"type": "object", "properties": {"column_id": {"type": "string", "description": "Column or attribute id to filter on."}, "property_id": {"type": "string", "description": "Optional stable namespaced Property Registry identity."}, "display_name": {"type": "string", "description": "Optional UI label for chips and saved views."}, "source": {"type": "string", "description": "Optional source surface for mixed-source filters, for example traces, datasets, or simulation."}, "output_type": {"type": "string", "description": "Optional metric output type metadata used by eval and annotation filters."}, "filter_config": {"type": "object", "properties": {"filter_type": {"type": "string", "description": "Canonical field type, for example text, number, boolean, datetime, categorical, thumbs, annotator, array, or map. Legacy json is value-sensitive for SPAN_ATTRIBUTE filters: list values become array and object values become map."}, "filter_op": {"type": "string", "description": "Canonical operator from api_contracts/filter_contract.json, for example equals, not_equals, in, not_in, between, not_between, is_null, or is_not_null."}, "filter_value": {"description": "Scalar, list, range tuple, boolean, or null depending on filter_op and filter_type."}, "col_type": {"type": "string", "description": "Column family such as SYSTEM_METRIC, SPAN_ATTRIBUTE, EVAL_METRIC, ANNOTATION, or NORMAL."}, "attribute_value_types": {"type": "array", "items": {"type": "string", "enum": ["string", "number", "boolean"], "x-nullable": true}, "description": "Optional storage-family provenance aligned one-for-one with filter_value for mixed SPAN_ATTRIBUTE in/not_in filters. Null entries retain filter_type semantics for manually entered values."}}, "required": ["filter_type", "filter_op"], "additionalProperties": false}}, "required": ["column_id", "filter_config"], "additionalProperties": false}}, "span_attributes_filters": {"type": "array", "items": {"type": "object", "properties": {"column_id": {"type": "string", "description": "Column or attribute id to filter on."}, "property_id": {"type": "string", "description": "Optional stable namespaced Property Registry identity."}, "display_name": {"type": "string", "description": "Optional UI label for chips and saved views."}, "source": {"type": "string", "description": "Optional source surface for mixed-source filters, for example traces, datasets, or simulation."}, "output_type": {"type": "string", "description": "Optional metric output type metadata used by eval and annotation filters."}, "filter_config": {"type": "object", "properties": {"filter_type": {"type": "string", "description": "Canonical field type, for example text, number, boolean, datetime, categorical, thumbs, annotator, array, or map. Legacy json is value-sensitive for SPAN_ATTRIBUTE filters: list values become array and object values become map."}, "filter_op": {"type": "string", "description": "Canonical operator from api_contracts/filter_contract.json, for example equals, not_equals, in, not_in, between, not_between, is_null, or is_not_null."}, "filter_value": {"description": "Scalar, list, range tuple, boolean, or null depending on filter_op and filter_type."}, "col_type": {"type": "string", "description": "Column family such as SYSTEM_METRIC, SPAN_ATTRIBUTE, EVAL_METRIC, ANNOTATION, or NORMAL."}, "attribute_value_types": {"type": "array", "items": {"type": "string", "enum": ["string", "number", "boolean"], "x-nullable": true}, "description": "Optional storage-family provenance aligned one-for-one with filter_value for mixed SPAN_ATTRIBUTE in/not_in filters. Null entries retain filter_type semantics for manually entered values."}}, "required": ["filter_type", "filter_op"], "additionalProperties": false}}, "required": ["column_id", "filter_config"], "additionalProperties": false}}}, "additionalProperties": false}, "sampling_rate": {"title": "Sampling rate", "type": "number", "maximum": 100.0, "minimum": 1.0, "x-nullable": true}, "spans_limit": {"title": "Spans limit", "type": "integer", "maximum": 1000000, "minimum": 1, "x-nullable": true}, "run_type": {"title": "Run type", "type": "string", "enum": ["continuous", "historical"]}, "row_type": {"title": "Row type", "type": "string", "enum": ["spans", "traces", "sessions", "voiceCalls"]}, "status": {"title": "Status", "type": "string", "enum": ["pending", "running", "completed", "failed", "paused", "deleted"]}, "evals": {"type": "array", "items": {"type": "string", "format": "uuid"}}, "edit_type": {"title": "Edit type", "type": "string", "enum": ["edit_rerun", "fresh_run"]}, "eval_task_id": {"title": "Eval task id", "type": "string", "format": "uuid"}}}, "EvalTaskUpdateResult": {"required": ["message", "edit_type", "task_id"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}, "edit_type": {"title": "Edit type", "type": "string", "enum": ["edit_rerun", "fresh_run"]}, "task_id": {"title": "Task id", "type": "string", "format": "uuid"}}}, "EvalTaskUpdateResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/EvalTaskUpdateResult"}}}, "LinearTeam": {"required": ["id", "name"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "minLength": 1}, "name": {"title": "Name", "type": "string", "minLength": 1}, "key": {"title": "Key", "type": "string", "x-nullable": true}}}, "LinearTeamsResult": {"required": ["connected", "teams"], "type": "object", "properties": {"connected": {"title": "Connected", "type": "boolean"}, "teams": {"type": "array", "items": {"$ref": "#/definitions/LinearTeam"}}}}, "LinearTeamsResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/LinearTeamsResult"}}}, "ErrorName": {"required": ["name", "type"], "type": "object", "properties": {"name": {"title": "Name", "type": "string", "minLength": 1}, "type": {"title": "Type", "type": "string"}}}, "TrendPoint": {"required": ["timestamp", "value", "users"], "type": "object", "properties": {"timestamp": {"title": "Timestamp", "type": "string", "format": "date-time"}, "value": {"title": "Value", "type": "integer"}, "users": {"title": "Users", "type": "integer"}}}, "FeedListRow": {"required": ["cluster_id", "source", "modality", "error", "status", "severity", "occurrences", "trace_count", "fix_layer", "users_affected", "sessions", "first_seen", "last_seen", "trends", "assignees", "model", "model_version", "project", "project_id", "environment", "eval_score", "trace_id", "external_issue_url", "external_issue_id"], "type": "object", "properties": {"severity_assessment_status": {"title": "Severity assessment status", "type": "string", "minLength": 1}, "severity_source": {"title": "Severity source", "type": "string", "minLength": 1}, "severity_reason": {"title": "Severity reason", "type": "string"}, "cluster_id": {"title": "Cluster id", "type": "string", "minLength": 1}, "source": {"title": "Source", "type": "string", "minLength": 1}, "modality": {"title": "Modality", "type": "string", "minLength": 1}, "error": {"$ref": "#/definitions/ErrorName"}, "status": {"title": "Status", "type": "string", "minLength": 1}, "severity": {"title": "Severity", "type": "string", "minLength": 1}, "occurrences": {"title": "Occurrences", "type": "integer"}, "trace_count": {"title": "Trace count", "type": "integer"}, "fix_layer": {"title": "Fix layer", "type": "string", "minLength": 1, "x-nullable": true}, "users_affected": {"title": "Users affected", "type": "integer"}, "sessions": {"title": "Sessions", "type": "integer"}, "first_seen": {"title": "First seen", "type": "string", "format": "date-time", "x-nullable": true}, "last_seen": {"title": "Last seen", "type": "string", "format": "date-time", "x-nullable": true}, "trends": {"type": "array", "items": {"$ref": "#/definitions/TrendPoint"}}, "assignees": {"type": "array", "items": {"type": "string", "minLength": 1}}, "model": {"title": "Model", "type": "string", "minLength": 1, "x-nullable": true}, "model_version": {"title": "Model version", "type": "string", "minLength": 1, "x-nullable": true}, "project": {"title": "Project", "type": "string", "minLength": 1, "x-nullable": true}, "project_id": {"title": "Project id", "type": "string", "minLength": 1, "x-nullable": true}, "environment": {"title": "Environment", "type": "string", "minLength": 1, "x-nullable": true}, "eval_score": {"title": "Eval score", "type": "number", "x-nullable": true}, "trace_id": {"title": "Trace id", "type": "string", "minLength": 1, "x-nullable": true}, "external_issue_url": {"title": "External issue url", "type": "string", "minLength": 1, "x-nullable": true}, "external_issue_id": {"title": "External issue id", "type": "string", "minLength": 1, "x-nullable": true}}}, "FeedListResponse": {"required": ["data", "total", "limit", "offset"], "type": "object", "properties": {"data": {"type": "array", "items": {"$ref": "#/definitions/FeedListRow"}}, "total": {"title": "Total", "type": "integer"}, "limit": {"title": "Limit", "type": "integer"}, "offset": {"title": "Offset", "type": "integer"}}}, "FeedListApiResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/FeedListResponse"}}}, "FeedStats": {"required": ["total_errors", "escalating", "for_review", "acknowledged", "resolved", "affected_users"], "type": "object", "properties": {"total_errors": {"title": "Total errors", "type": "integer"}, "escalating": {"title": "Escalating", "type": "integer"}, "for_review": {"title": "For review", "type": "integer"}, "acknowledged": {"title": "Acknowledged", "type": "integer"}, "resolved": {"title": "Resolved", "type": "integer"}, "affected_users": {"title": "Affected users", "type": "integer"}}}, "FeedStatsApiResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/FeedStats"}}}, "TracePreview": {"required": ["trace_id", "input", "output"], "type": "object", "properties": {"trace_id": {"title": "Trace id", "type": "string", "minLength": 1}, "input": {"title": "Input", "type": "string", "minLength": 1, "x-nullable": true}, "output": {"title": "Output", "type": "string", "minLength": 1, "x-nullable": true}}, "x-nullable": true}, "RcaTrailStep": {"required": ["type"], "type": "object", "properties": {"type": {"title": "Type", "type": "string", "minLength": 1}, "text": {"title": "Text", "type": "string", "x-nullable": true}, "call_id": {"title": "Call id", "type": "string", "minLength": 1, "x-nullable": true}, "tool": {"title": "Tool", "type": "string", "minLength": 1, "x-nullable": true}, "args": {"title": "Args", "type": "object"}, "result": {"title": "Result", "type": "object"}, "synthesis": {"title": "Synthesis", "type": "string", "x-nullable": true}, "fix": {"title": "Fix", "type": "string", "x-nullable": true}, "confidence": {"title": "Confidence", "type": "string", "minLength": 1, "x-nullable": true}}}, "RcaSummary": {"type": "object", "properties": {"synthesis": {"title": "Synthesis", "type": "string", "minLength": 1, "x-nullable": true}, "fix": {"title": "Fix", "type": "string", "minLength": 1, "x-nullable": true}, "confidence": {"title": "Confidence", "type": "string", "minLength": 1, "x-nullable": true}, "evidence_trace_ids": {"type": "array", "items": {"type": "string", "minLength": 1}}, "analyzed_at": {"title": "Analyzed at", "type": "string", "format": "date-time", "x-nullable": true}, "failures_at_run": {"title": "Failures at run", "type": "integer", "x-nullable": true}, "trace": {"type": "array", "items": {"$ref": "#/definitions/RcaTrailStep"}}}, "x-nullable": true}, "FeedDetailCore": {"required": ["row", "description", "success_trace", "representative_trace"], "type": "object", "properties": {"row": {"$ref": "#/definitions/FeedListRow"}, "description": {"title": "Description", "type": "string", "minLength": 1, "x-nullable": true}, "success_trace": {"$ref": "#/definitions/TracePreview"}, "representative_trace": {"$ref": "#/definitions/TracePreview"}, "rca": {"$ref": "#/definitions/RcaSummary"}}}, "FeedDetailApiResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/FeedDetailCore"}}}, "FeedUpdateBody": {"type": "object", "properties": {"project_id": {"title": "Project id", "type": "string", "format": "uuid"}, "status": {"title": "Status", "type": "string", "enum": ["escalating", "for_review", "acknowledged", "resolved"]}, "severity": {"title": "Severity", "type": "string", "enum": ["critical", "high", "medium", "low"]}, "assignee": {"title": "Assignee", "type": "string", "format": "email", "minLength": 1, "x-nullable": true}}}, "CreateLinearIssue": {"required": ["team_id"], "type": "object", "properties": {"team_id": {"title": "Team id", "type": "string", "minLength": 1}, "trace_id": {"title": "Trace id", "type": "string", "format": "uuid", "x-nullable": true}, "title": {"title": "Title", "type": "string"}, "description": {"title": "Description", "type": "string"}, "priority": {"title": "Priority", "type": "integer", "default": 0}}}, "CreateLinearIssueResult": {"type": "object", "properties": {"already_linked": {"title": "Already linked", "type": "boolean"}, "issue_id": {"title": "Issue id", "type": "string", "minLength": 1, "x-nullable": true}, "issue_url": {"title": "Issue url", "type": "string", "minLength": 1, "x-nullable": true}, "issue_title": {"title": "Issue title", "type": "string", "minLength": 1, "x-nullable": true}}}, "CreateLinearIssueResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/CreateLinearIssueResult"}}}, "DeepAnalysisBody": {"required": ["trace_id"], "type": "object", "properties": {"trace_id": {"title": "Trace id", "type": "string", "minLength": 1}, "force": {"title": "Force", "type": "boolean", "default": false}}}, "DeepAnalysisDispatchResponse": {"required": ["status", "trace_id"], "type": "object", "properties": {"status": {"title": "Status", "type": "string", "minLength": 1}, "trace_id": {"title": "Trace id", "type": "string", "minLength": 1}}}, "DeepAnalysisDispatchApiResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/DeepAnalysisDispatchResponse"}}}, "EventsOverTimePoint": {"required": ["date", "errors", "passing", "users"], "type": "object", "properties": {"date": {"title": "Date", "type": "string", "minLength": 1}, "errors": {"title": "Errors", "type": "integer"}, "passing": {"title": "Passing", "type": "integer"}, "users": {"title": "Users", "type": "integer"}}}, "PatternInsightEvidence": {"type": "object", "properties": {"test": {"title": "Test", "type": "string", "minLength": 1}, "baseline": {"title": "Baseline", "type": "string", "minLength": 1}, "tool": {"title": "Tool", "type": "string", "minLength": 1}, "z": {"title": "Z", "type": "number"}, "p_value": {"title": "P value", "type": "number"}, "ks_stat": {"title": "Ks stat", "type": "number"}, "fail_median": {"title": "Fail median", "type": "number"}, "baseline_median": {"title": "Baseline median", "type": "number"}, "fail_pct": {"title": "Fail pct", "type": "integer"}, "baseline_pct": {"title": "Baseline pct", "type": "integer"}, "hits": {"title": "Hits", "type": "integer"}, "total": {"title": "Total", "type": "integer"}, "missing_in": {"title": "Missing in", "type": "integer"}, "traces_with_tools": {"title": "Traces with tools", "type": "integer"}}}, "PatternInsight": {"required": ["value", "caption"], "type": "object", "properties": {"title": {"title": "Title", "type": "string", "default": "", "minLength": 1}, "value": {"title": "Value", "type": "string", "minLength": 1}, "caption": {"title": "Caption", "type": "string"}, "evidence": {"$ref": "#/definitions/PatternInsightEvidence"}}}, "KeyMoment": {"required": ["kevinified", "verbatim"], "type": "object", "properties": {"kevinified": {"title": "Kevinified", "type": "string", "minLength": 1}, "verbatim": {"title": "Verbatim", "type": "string"}}}, "PatternSummary": {"required": ["insights", "key_moments"], "type": "object", "properties": {"insights": {"type": "array", "items": {"$ref": "#/definitions/PatternInsight"}}, "key_moments": {"type": "array", "items": {"$ref": "#/definitions/KeyMoment"}}}}, "TraceSummary": {"required": ["eval_score", "latency_ms", "turns", "model", "input_tokens", "output_tokens"], "type": "object", "properties": {"eval_score": {"title": "Eval score", "type": "number", "x-nullable": true}, "latency_ms": {"title": "Latency ms", "type": "integer", "x-nullable": true}, "turns": {"title": "Turns", "type": "integer", "x-nullable": true}, "model": {"title": "Model", "type": "string", "minLength": 1, "x-nullable": true}, "input_tokens": {"title": "Input tokens", "type": "integer", "x-nullable": true}, "output_tokens": {"title": "Output tokens", "type": "integer", "x-nullable": true}}}, "TraceEvidence": {"required": ["input", "output", "fail_reel", "pass_reel"], "type": "object", "properties": {"input": {"title": "Input", "type": "string", "minLength": 1, "x-nullable": true}, "output": {"title": "Output", "type": "string", "minLength": 1, "x-nullable": true}, "fail_reel": {"type": "array", "items": {"type": "object", "additionalProperties": {"type": "string", "x-nullable": true}}}, "pass_reel": {"type": "array", "items": {"type": "object", "additionalProperties": {"type": "string", "x-nullable": true}}}, "judge_reason": {"title": "Judge reason", "type": "string", "minLength": 1, "x-nullable": true}, "score": {"title": "Score", "type": "number", "x-nullable": true}}}, "AgentFlowGraph": {"required": ["nodes", "edges"], "type": "object", "properties": {"nodes": {"type": "array", "items": {"type": "object", "additionalProperties": {"type": "string", "x-nullable": true}}}, "edges": {"type": "array", "items": {"type": "object", "additionalProperties": {"type": "string", "x-nullable": true}}}}}, "RepresentativeTrace": {"required": ["id", "status", "timestamp", "summary", "evidence", "agent_flow", "root_causes", "recommendations", "what_changed"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "minLength": 1}, "status": {"title": "Status", "type": "string", "minLength": 1}, "timestamp": {"title": "Timestamp", "type": "string", "format": "date-time", "x-nullable": true}, "summary": {"$ref": "#/definitions/TraceSummary"}, "evidence": {"$ref": "#/definitions/TraceEvidence"}, "agent_flow": {"$ref": "#/definitions/AgentFlowGraph"}, "root_causes": {"type": "array", "items": {"type": "object", "additionalProperties": {"type": "string", "x-nullable": true}}}, "recommendations": {"type": "array", "items": {"type": "object", "additionalProperties": {"type": "string", "x-nullable": true}}}, "what_changed": {"title": "What changed", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}, "x-nullable": true}}}, "OverviewResponse": {"required": ["events_over_time", "pattern_summary", "representative_traces"], "type": "object", "properties": {"events_over_time": {"type": "array", "items": {"$ref": "#/definitions/EventsOverTimePoint"}}, "pattern_summary": {"$ref": "#/definitions/PatternSummary"}, "representative_traces": {"type": "array", "items": {"$ref": "#/definitions/RepresentativeTrace"}}, "representative_total": {"title": "Representative total", "type": "integer", "default": 0}}}, "OverviewApiResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/OverviewResponse"}}}, "FeedRedirect": {"required": ["requested_cluster_id", "resolved_cluster_id"], "type": "object", "properties": {"requested_cluster_id": {"title": "Requested cluster id", "type": "string", "minLength": 1}, "resolved_cluster_id": {"title": "Resolved cluster id", "type": "string", "minLength": 1}}}, "FeedRedirectApiResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/FeedRedirect"}}}, "RootCause": {"required": ["rank", "title", "description"], "type": "object", "properties": {"rank": {"title": "Rank", "type": "integer"}, "title": {"title": "Title", "type": "string", "minLength": 1}, "description": {"title": "Description", "type": "string", "minLength": 1}}}, "Recommendation": {"required": ["id", "title", "description", "priority", "root_cause_link", "immediate_fix", "insights", "evidence"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "minLength": 1}, "title": {"title": "Title", "type": "string", "minLength": 1}, "description": {"title": "Description", "type": "string"}, "priority": {"title": "Priority", "type": "string", "minLength": 1}, "root_cause_link": {"title": "Root cause link", "type": "integer", "x-nullable": true}, "immediate_fix": {"title": "Immediate fix", "type": "string", "minLength": 1, "x-nullable": true}, "insights": {"title": "Insights", "type": "string", "minLength": 1, "x-nullable": true}, "evidence": {"type": "array", "items": {"type": "string", "minLength": 1}}}}, "DeepAnalysisResponse": {"required": ["status", "trace_id", "root_causes", "recommendations", "immediate_fix"], "type": "object", "properties": {"status": {"title": "Status", "type": "string", "minLength": 1}, "trace_id": {"title": "Trace id", "type": "string", "minLength": 1}, "root_causes": {"type": "array", "items": {"$ref": "#/definitions/RootCause"}}, "recommendations": {"type": "array", "items": {"$ref": "#/definitions/Recommendation"}}, "immediate_fix": {"title": "Immediate fix", "type": "string", "minLength": 1, "x-nullable": true}}}, "DeepAnalysisApiResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/DeepAnalysisResponse"}}}, "SidebarTimeline": {"required": ["first_seen", "last_seen", "age_days"], "type": "object", "properties": {"first_seen": {"title": "First seen", "type": "string", "format": "date-time", "x-nullable": true}, "last_seen": {"title": "Last seen", "type": "string", "format": "date-time", "x-nullable": true}, "age_days": {"title": "Age days", "type": "integer", "x-nullable": true}}}, "SidebarAIMetadata": {"required": ["model", "model_version", "project", "eval_score", "trace_id"], "type": "object", "properties": {"model": {"title": "Model", "type": "string", "minLength": 1, "x-nullable": true}, "model_version": {"title": "Model version", "type": "string", "minLength": 1, "x-nullable": true}, "project": {"title": "Project", "type": "string", "minLength": 1, "x-nullable": true}, "eval_score": {"title": "Eval score", "type": "number", "x-nullable": true}, "trace_id": {"title": "Trace id", "type": "string", "minLength": 1, "x-nullable": true}}}, "EvaluationResult": {"required": ["label", "type", "result", "score", "value"], "type": "object", "properties": {"label": {"title": "Label", "type": "string", "minLength": 1}, "type": {"title": "Type", "type": "string", "minLength": 1}, "result": {"title": "Result", "type": "string", "minLength": 1}, "score": {"title": "Score", "type": "number", "x-nullable": true}, "value": {"title": "Value", "type": "string", "minLength": 1, "x-nullable": true}}}, "CoOccurringIssue": {"required": ["id", "title", "type", "co_occurrence", "count", "severity"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "minLength": 1}, "title": {"title": "Title", "type": "string", "minLength": 1}, "type": {"title": "Type", "type": "string"}, "co_occurrence": {"title": "Co occurrence", "type": "number"}, "count": {"title": "Count", "type": "integer"}, "severity": {"title": "Severity", "type": "string", "minLength": 1}}}, "FeedSidebar": {"required": ["timeline", "ai_metadata", "evaluations", "co_occurring_issues"], "type": "object", "properties": {"timeline": {"$ref": "#/definitions/SidebarTimeline"}, "ai_metadata": {"$ref": "#/definitions/SidebarAIMetadata"}, "evaluations": {"type": "array", "items": {"$ref": "#/definitions/EvaluationResult"}}, "co_occurring_issues": {"type": "array", "items": {"$ref": "#/definitions/CoOccurringIssue"}}}}, "FeedSidebarApiResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/FeedSidebar"}}}, "TracesAggregates": {"required": ["total_traces", "failing_traces", "passing_traces", "avg_score", "p50_latency", "p95_latency", "avg_turns"], "type": "object", "properties": {"total_traces": {"title": "Total traces", "type": "integer"}, "failing_traces": {"title": "Failing traces", "type": "integer"}, "passing_traces": {"title": "Passing traces", "type": "integer"}, "avg_score": {"title": "Avg score", "type": "number"}, "p50_latency": {"title": "P50 latency", "type": "integer"}, "p95_latency": {"title": "P95 latency", "type": "integer"}, "avg_turns": {"title": "Avg turns", "type": "number"}}}, "TracesListRow": {"required": ["id", "input", "timestamp", "latency_ms", "tokens", "cost", "score", "turns"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "minLength": 1}, "input": {"title": "Input", "type": "string", "minLength": 1, "x-nullable": true}, "timestamp": {"title": "Timestamp", "type": "string", "format": "date-time", "x-nullable": true}, "latency_ms": {"title": "Latency ms", "type": "integer", "x-nullable": true}, "tokens": {"title": "Tokens", "type": "integer", "x-nullable": true}, "cost": {"title": "Cost", "type": "number", "x-nullable": true}, "score": {"title": "Score", "type": "number", "x-nullable": true}, "turns": {"title": "Turns", "type": "integer", "x-nullable": true}}}, "TracesTabResponse": {"required": ["aggregates", "traces", "total"], "type": "object", "properties": {"aggregates": {"$ref": "#/definitions/TracesAggregates"}, "traces": {"type": "array", "items": {"$ref": "#/definitions/TracesListRow"}}, "total": {"title": "Total", "type": "integer"}}}, "TracesTabApiResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/TracesTabResponse"}}}, "TrendMetric": {"required": ["label", "value", "delta", "unit"], "type": "object", "properties": {"label": {"title": "Label", "type": "string", "minLength": 1}, "value": {"title": "Value", "type": "string", "minLength": 1}, "delta": {"title": "Delta", "type": "number"}, "unit": {"title": "Unit", "type": "string"}}}, "ScoreTrend": {"required": ["label", "current", "prev", "sparkline"], "type": "object", "properties": {"label": {"title": "Label", "type": "string", "minLength": 1}, "current": {"title": "Current", "type": "number"}, "prev": {"title": "Prev", "type": "number"}, "sparkline": {"type": "array", "items": {"type": "number"}}}}, "HeatmapCell": {"required": ["day", "hour", "value"], "type": "object", "properties": {"day": {"title": "Day", "type": "integer"}, "hour": {"title": "Hour", "type": "integer"}, "value": {"title": "Value", "type": "integer"}}}, "TrendsTabResponse": {"required": ["metrics", "events_over_time", "score_trends", "activity_heatmap"], "type": "object", "properties": {"metrics": {"type": "array", "items": {"$ref": "#/definitions/TrendMetric"}}, "events_over_time": {"type": "array", "items": {"$ref": "#/definitions/EventsOverTimePoint"}}, "score_trends": {"type": "array", "items": {"$ref": "#/definitions/ScoreTrend"}}, "activity_heatmap": {"type": "array", "items": {"type": "array", "items": {"$ref": "#/definitions/HeatmapCell"}}}}}, "TrendsTabApiResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/TrendsTabResponse"}}}, "AnnotationLabelResponse": {"required": ["id", "name", "type"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "type": {"title": "Type", "type": "string", "minLength": 1}, "description": {"title": "Description", "type": "string", "x-nullable": true}, "settings": {"title": "Settings", "type": "object", "x-nullable": true}}}, "GetAnnotationLabelsResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"type": "array", "items": {"$ref": "#/definitions/AnnotationLabelResponse"}}}}, "ImagineAnalysisItem": {"required": ["id", "widget_id", "status"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "widget_id": {"title": "Widget id", "type": "string", "maxLength": 100, "minLength": 1}, "status": {"title": "Status", "type": "string", "enum": ["pending", "running", "completed", "failed"]}, "content": {"title": "Content", "type": "string", "x-nullable": true}, "error": {"title": "Error", "type": "string", "x-nullable": true}}}, "ImagineAnalysisResult": {"required": ["analyses"], "type": "object", "properties": {"analyses": {"type": "array", "items": {"$ref": "#/definitions/ImagineAnalysisItem"}}}}, "ImagineAnalysisResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/ImagineAnalysisResult"}}}, "WidgetAnalysis": {"required": ["widget_id", "prompt"], "type": "object", "properties": {"widget_id": {"title": "Widget id", "type": "string", "maxLength": 100, "minLength": 1}, "prompt": {"title": "Prompt", "type": "string", "maxLength": 8000, "minLength": 1}}}, "TriggerAnalysis": {"required": ["saved_view_id", "trace_id", "project_id", "widgets"], "type": "object", "properties": {"saved_view_id": {"title": "Saved view id", "type": "string", "format": "uuid"}, "trace_id": {"title": "Trace id", "type": "string", "maxLength": 255, "minLength": 1}, "project_id": {"title": "Project id", "type": "string", "format": "uuid"}, "widgets": {"type": "array", "items": {"$ref": "#/definitions/WidgetAnalysis"}}}}, "UpdateInvestigationAttemptRequest": {"required": ["organization_id", "workspace_id", "project_id", "job_id", "lease_token", "action"], "type": "object", "properties": {"organization_id": {"title": "Organization id", "type": "string", "format": "uuid"}, "workspace_id": {"title": "Workspace id", "type": "string", "format": "uuid", "x-nullable": true}, "project_id": {"title": "Project id", "type": "string", "format": "uuid"}, "job_id": {"title": "Job id", "type": "string", "format": "uuid"}, "lease_token": {"title": "Lease token", "type": "string", "maxLength": 255, "minLength": 1}, "action": {"title": "Action", "type": "string", "enum": ["renew", "cancel"]}, "reason": {"title": "Reason", "type": "string", "default": "", "maxLength": 2000}}}, "UpdateInvestigationAttemptResponse": {"required": ["attempt_id", "status", "lease_expires_at", "cancellation_requested", "job_state"], "type": "object", "properties": {"attempt_id": {"title": "Attempt id", "type": "string", "format": "uuid"}, "status": {"title": "Status", "type": "string", "minLength": 1}, "lease_expires_at": {"title": "Lease expires at", "type": "string", "format": "date-time"}, "cancellation_requested": {"title": "Cancellation requested", "type": "boolean"}, "job_state": {"title": "Job state", "type": "string", "minLength": 1}}}, "InvestigationControlError": {"required": ["code", "detail"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": false}, "type": {"title": "Type", "type": "string", "enum": ["validation_error", "authentication_error", "payment_required", "entitlement_error", "permission_error", "not_found", "conflict", "client_error", "rate_limit", "server_error", "service_unavailable", "timeout", "api_error"], "x-nullable": true}, "code": {"title": "Code", "type": "string", "minLength": 1}, "detail": {"title": "Detail", "type": "string", "minLength": 1}, "result": {"title": "Result", "type": "string", "x-nullable": true}, "message": {"title": "Message", "type": "string", "x-nullable": true}, "error": {"title": "Error", "type": "string", "x-nullable": true}, "attr": {"title": "Attr", "type": "string", "x-nullable": true}, "details": {"title": "Details", "type": "object", "additionalProperties": {"type": "array", "items": {"type": "string", "minLength": 1}}}}}, "ConversationEvidenceRequest": {"required": ["lease_token"], "type": "object", "properties": {"lease_token": {"title": "Lease token", "type": "string", "maxLength": 255, "minLength": 1}}}, "ConversationCallAgent": {"required": ["id", "version", "name"], "type": "object", "properties": {"id": {"title": "Id", "type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}, "version": {"title": "Version", "type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}, "name": {"title": "Name", "type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}}}, "ConversationCall": {"required": ["status", "direction", "duration_seconds", "ended_reason", "agent"], "type": "object", "properties": {"status": {"title": "Status", "type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}, "direction": {"title": "Direction", "type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}, "duration_seconds": {"title": "Duration seconds", "type": "number", "x-nullable": true}, "ended_reason": {"title": "Ended reason", "type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}, "agent": {"$ref": "#/definitions/ConversationCallAgent"}}}, "ConversationVariables": {"required": ["configured", "collected"], "type": "object", "properties": {"configured": {"title": "Configured", "type": "object", "additionalProperties": {"type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}}, "collected": {"title": "Collected", "type": "object", "additionalProperties": {"type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}}}}, "ConversationAnalysis": {"required": ["summary", "successful", "in_voicemail", "sentiment", "flags"], "type": "object", "properties": {"summary": {"title": "Summary", "type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}, "successful": {"title": "Successful", "type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}, "in_voicemail": {"title": "In voicemail", "type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}, "sentiment": {"title": "Sentiment", "type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}, "flags": {"title": "Flags", "type": "object", "additionalProperties": {"type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}}}}, "ConversationLatency": {"required": ["p50", "p90", "max", "num"], "type": "object", "properties": {"p50": {"title": "P50", "type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}, "p90": {"title": "P90", "type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}, "max": {"title": "Max", "type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}, "num": {"title": "Num", "type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}}}, "ConversationTurn": {"required": ["i", "role"], "type": "object", "properties": {"i": {"title": "I", "type": "integer", "minimum": 0}, "role": {"title": "Role", "type": "string", "minLength": 1}, "start": {"title": "Start", "type": "number", "x-nullable": true}, "end": {"title": "End", "type": "number", "x-nullable": true}, "text": {"title": "Text", "type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}, "spoken": {"title": "Spoken", "type": "boolean"}, "at": {"title": "At", "type": "number", "x-nullable": true}, "id": {"title": "Id", "type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}, "name": {"title": "Name", "type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}, "arguments": {"title": "Arguments", "type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}, "ok": {"title": "Ok", "type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}, "content": {"title": "Content", "type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}, "to": {"title": "To", "type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}, "type": {"title": "Type", "type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}, "digit": {"title": "Digit", "type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}, "media": {"type": "array", "items": {"type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}}, "from": {"title": "From", "type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}}}, "ConversationProviderLogIssue": {"required": ["at", "level", "message"], "type": "object", "properties": {"at": {"title": "At", "type": "number"}, "level": {"title": "Level", "type": "string", "enum": ["warn", "error"]}, "message": {"title": "Message", "type": "string"}}}, "ConversationDossier": {"required": ["provider", "agent_instructions", "call", "variables", "analysis", "latency_ms", "turns", "not_included"], "type": "object", "properties": {"provider": {"title": "Provider", "type": "string", "minLength": 1}, "agent_instructions": {"title": "Agent instructions", "type": "string", "x-nullable": true}, "call": {"$ref": "#/definitions/ConversationCall"}, "variables": {"$ref": "#/definitions/ConversationVariables"}, "analysis": {"$ref": "#/definitions/ConversationAnalysis"}, "latency_ms": {"title": "Latency ms", "type": "object", "additionalProperties": {"$ref": "#/definitions/ConversationLatency"}}, "turns": {"type": "array", "items": {"$ref": "#/definitions/ConversationTurn"}}, "provider_log_issues": {"type": "array", "items": {"$ref": "#/definitions/ConversationProviderLogIssue"}}, "not_included": {"type": "array", "items": {"type": "string", "minLength": 1}}}}, "ConversationEvidenceRow": {"required": ["project_id", "trace_id", "org_id", "id", "parent_span_id", "name", "observation_type", "start_time", "end_time", "attrs_string", "conversation"], "type": "object", "properties": {"project_id": {"title": "Project id", "type": "string", "format": "uuid"}, "trace_id": {"title": "Trace id", "type": "string", "format": "uuid"}, "org_id": {"title": "Org id", "type": "string", "format": "uuid"}, "id": {"title": "Id", "type": "string", "maxLength": 64, "minLength": 1}, "parent_span_id": {"title": "Parent span id", "type": "string"}, "name": {"title": "Name", "type": "string"}, "observation_type": {"title": "Observation type", "type": "string", "minLength": 1}, "start_time": {"title": "Start time", "type": "string", "format": "date-time"}, "end_time": {"title": "End time", "type": "string", "format": "date-time", "x-nullable": true}, "attrs_string": {"title": "Attrs string", "type": "object", "additionalProperties": {"type": "string", "minLength": 1}}, "conversation": {"$ref": "#/definitions/ConversationDossier"}}}, "ConversationEvidenceResponse": {"required": ["rows"], "type": "object", "properties": {"rows": {"type": "array", "items": {"$ref": "#/definitions/ConversationEvidenceRow"}}}}, "SimulationEvidenceRequest": {"required": ["lease_token", "cursor"], "type": "object", "properties": {"lease_token": {"title": "Lease token", "type": "string", "maxLength": 255, "minLength": 1}, "cursor": {"title": "Cursor", "type": "integer", "minimum": 0}}}, "ClaimInvestigationsRequest": {"required": ["worker_id", "engine_version", "limit"], "type": "object", "properties": {"worker_id": {"title": "Worker id", "type": "string", "maxLength": 255, "minLength": 1}, "engine_version": {"title": "Engine version", "type": "string", "maxLength": 20, "minLength": 1}, "limit": {"title": "Limit", "type": "integer", "maximum": 50, "minimum": 1}}}, "InvestigationEvidenceWindow": {"required": ["start", "end"], "type": "object", "properties": {"start": {"title": "Start", "type": "string", "format": "date-time"}, "end": {"title": "End", "type": "string", "format": "date-time"}}}, "InvestigationMemoryEntry": {"required": ["id", "text"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "maxLength": 128, "minLength": 1}, "text": {"title": "Text", "type": "string", "maxLength": 4000, "minLength": 1}, "source_feedback_id": {"title": "Source feedback id", "type": "string", "maxLength": 128, "minLength": 1, "x-nullable": true}}}, "InvestigationMemory": {"required": ["snapshot_id", "digest", "entries"], "type": "object", "properties": {"snapshot_id": {"title": "Snapshot id", "type": "string", "maxLength": 128, "minLength": 1}, "digest": {"title": "Digest", "type": "string", "maxLength": 71, "minLength": 1}, "entries": {"type": "array", "items": {"$ref": "#/definitions/InvestigationMemoryEntry"}}}}, "InvestigationLimits": {"required": ["deadline_seconds", "max_model_calls", "max_children", "max_parallel_children", "max_input_tokens_total", "max_output_tokens_total", "max_evidence_bytes", "max_tool_result_bytes"], "type": "object", "properties": {"deadline_seconds": {"title": "Deadline seconds", "type": "integer", "minimum": 1}, "max_model_calls": {"title": "Max model calls", "type": "integer", "minimum": 1}, "max_children": {"title": "Max children", "type": "integer", "minimum": 0}, "max_parallel_children": {"title": "Max parallel children", "type": "integer", "minimum": 0}, "max_input_tokens_total": {"title": "Max input tokens total", "type": "integer", "minimum": 1}, "max_output_tokens_total": {"title": "Max output tokens total", "type": "integer", "minimum": 1}, "max_evidence_bytes": {"title": "Max evidence bytes", "type": "integer", "minimum": 1}, "max_tool_result_bytes": {"title": "Max tool result bytes", "type": "integer", "minimum": 1}}}, "InvestigationClaim": {"required": ["organization_id", "workspace_id", "project_id", "job_id", "generation", "attempt_id", "lease_token", "lease_expires_at", "read_cutoff", "engine_version", "contract_version", "memory", "limits", "verification_capabilities", "feature_enabled"], "type": "object", "properties": {"organization_id": {"title": "Organization id", "type": "string", "format": "uuid"}, "organization_name": {"title": "Organization name", "type": "string", "minLength": 1}, "workspace_id": {"title": "Workspace id", "type": "string", "format": "uuid", "x-nullable": true}, "project_id": {"title": "Project id", "type": "string", "format": "uuid"}, "project_name": {"title": "Project name", "type": "string", "minLength": 1}, "job_id": {"title": "Job id", "type": "string", "format": "uuid"}, "workload_type": {"title": "Workload type", "type": "string", "enum": ["trace", "simulation_test_execution"]}, "trace_id": {"title": "Trace id", "type": "string", "format": "uuid", "x-nullable": true}, "test_execution_id": {"title": "Test execution id", "type": "string", "format": "uuid", "x-nullable": true}, "generation": {"title": "Generation", "type": "integer", "minimum": 1}, "attempt_id": {"title": "Attempt id", "type": "string", "format": "uuid"}, "lease_token": {"title": "Lease token", "type": "string", "minLength": 1}, "lease_expires_at": {"title": "Lease expires at", "type": "string", "format": "date-time"}, "read_cutoff": {"title": "Read cutoff", "type": "string", "format": "date-time"}, "evidence_window": {"$ref": "#/definitions/InvestigationEvidenceWindow"}, "evidence_source": {"title": "Evidence source", "type": "string", "enum": ["conversation"]}, "engine_version": {"title": "Engine version", "type": "string", "maxLength": 20, "minLength": 1}, "contract_version": {"title": "Contract version", "type": "string", "minLength": 1}, "memory": {"$ref": "#/definitions/InvestigationMemory"}, "limits": {"$ref": "#/definitions/InvestigationLimits"}, "verification_capabilities": {"type": "array", "items": {"type": "string", "minLength": 1}}, "feature_enabled": {"title": "Feature enabled", "type": "boolean"}}}, "ClaimInvestigationsResponse": {"required": ["claims"], "type": "object", "properties": {"claims": {"type": "array", "items": {"$ref": "#/definitions/InvestigationClaim"}}}}, "UpdateGroupingAttempt": {"required": ["lease_token", "action"], "type": "object", "properties": {"lease_token": {"title": "Lease token", "type": "string", "maxLength": 255, "minLength": 1}, "action": {"title": "Action", "type": "string", "enum": ["renew", "cancel", "fail"]}, "failure_code": {"title": "Failure code", "type": "string", "default": "", "maxLength": 100}}}, "GroupingControlResponse": {"type": "object", "properties": {"state": {"title": "State", "type": "string", "minLength": 1}, "failure_code": {"title": "Failure code", "type": "string", "minLength": 1}, "status": {"title": "Status", "type": "string", "minLength": 1}, "checkpoint_revision": {"title": "Checkpoint revision", "type": "integer"}, "receipt_id": {"title": "Receipt id", "type": "string", "format": "uuid"}}}, "GroupingError": {"required": ["code", "detail"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": false}, "type": {"title": "Type", "type": "string", "enum": ["validation_error", "authentication_error", "payment_required", "entitlement_error", "permission_error", "not_found", "conflict", "client_error", "rate_limit", "server_error", "service_unavailable", "timeout", "api_error"], "x-nullable": true}, "code": {"title": "Code", "type": "string", "minLength": 1}, "detail": {"title": "Detail", "type": "string", "minLength": 1}, "result": {"title": "Result", "type": "string", "x-nullable": true}, "message": {"title": "Message", "type": "string", "x-nullable": true}, "error": {"title": "Error", "type": "string", "x-nullable": true}, "attr": {"title": "Attr", "type": "string", "x-nullable": true}, "details": {"title": "Details", "type": "object", "additionalProperties": {"type": "array", "items": {"type": "string", "minLength": 1}}}}}, "GroupingCheckpoint": {"required": ["lease_token", "expected_revision", "checkpoint"], "type": "object", "properties": {"lease_token": {"title": "Lease token", "type": "string", "maxLength": 255, "minLength": 1}, "expected_revision": {"title": "Expected revision", "type": "integer", "minimum": 0}, "checkpoint": {"title": "Checkpoint", "type": "object"}}}, "PublishGrouping": {"required": ["lease_token", "idempotency_key", "snapshot_digest", "registry_revision", "commands", "receipt_ids"], "type": "object", "properties": {"lease_token": {"title": "Lease token", "type": "string", "maxLength": 255, "minLength": 1}, "idempotency_key": {"title": "Idempotency key", "type": "string", "maxLength": 255, "minLength": 1}, "snapshot_digest": {"title": "Snapshot digest", "type": "string", "pattern": "^sha256:[a-f0-9]{64}$", "minLength": 1}, "registry_revision": {"title": "Registry revision", "type": "integer", "minimum": 0}, "commands": {"type": "array", "items": {"type": "object"}, "maxItems": 1000}, "receipt_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}, "maxItems": 100}}}, "GroupingRepairIntent": {"required": ["primary_receipt_id", "group_index", "missing_own_report_ids"], "type": "object", "properties": {"primary_receipt_id": {"title": "Primary receipt id", "type": "string", "pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$", "minLength": 1}, "group_index": {"title": "Group index", "type": "integer", "maximum": 99, "minimum": 0}, "missing_own_report_ids": {"type": "array", "items": {"type": "string", "pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$", "minLength": 1}, "maxItems": 100, "minItems": 1}}, "x-nullable": true}, "ReserveGroupingCall": {"required": ["lease_token", "request_key", "request_digest", "max_cost_usd"], "type": "object", "properties": {"lease_token": {"title": "Lease token", "type": "string", "maxLength": 255, "minLength": 1}, "request_key": {"title": "Request key", "type": "string", "maxLength": 255, "minLength": 1}, "request_digest": {"title": "Request digest", "type": "string", "pattern": "^sha256:[a-f0-9]{64}$", "minLength": 1}, "max_cost_usd": {"title": "Max cost usd", "type": "string", "format": "decimal"}, "repair_intent": {"$ref": "#/definitions/GroupingRepairIntent"}}}, "SettleGroupingCall": {"required": ["lease_token", "request_key", "request_digest", "status"], "type": "object", "properties": {"lease_token": {"title": "Lease token", "type": "string", "maxLength": 255, "minLength": 1}, "request_key": {"title": "Request key", "type": "string", "maxLength": 255, "minLength": 1}, "request_digest": {"title": "Request digest", "type": "string", "pattern": "^sha256:[a-f0-9]{64}$", "minLength": 1}, "status": {"title": "Status", "type": "string", "enum": ["settled", "unknown"]}, "result": {"title": "Result", "type": "object", "x-nullable": true}, "model_used": {"title": "Model used", "type": "string", "maxLength": 255, "minLength": 1, "x-nullable": true}, "input_tokens": {"title": "Input tokens", "type": "integer", "minimum": 0, "x-nullable": true}, "output_tokens": {"title": "Output tokens", "type": "integer", "minimum": 0, "x-nullable": true}, "cost_usd": {"title": "Cost usd", "type": "string", "format": "decimal", "x-nullable": true}, "failure_code": {"title": "Failure code", "type": "string", "default": "", "maxLength": 100}}}, "ClaimGroupingRequest": {"required": ["worker_id", "limit"], "type": "object", "properties": {"worker_id": {"title": "Worker id", "type": "string", "maxLength": 255, "minLength": 1}, "limit": {"title": "Limit", "type": "integer", "maximum": 10, "minimum": 1}}}, "GroupingClaimsResponse": {"required": ["claims"], "type": "object", "properties": {"claims": {"type": "array", "items": {"type": "object"}}}}, "RenewGroupingFeature": {"required": ["lease_token", "action"], "type": "object", "properties": {"lease_token": {"title": "Lease token", "type": "string", "maxLength": 255, "minLength": 1}, "action": {"title": "Action", "type": "string", "enum": ["renew"]}}}, "CompleteGroupingFeature": {"required": ["lease_token", "status", "features"], "type": "object", "properties": {"lease_token": {"title": "Lease token", "type": "string", "maxLength": 255, "minLength": 1}, "status": {"title": "Status", "type": "string", "enum": ["ready", "failed"]}, "features": {"type": "array", "items": {"type": "object"}, "maxItems": 200}, "error_code": {"title": "Error code", "type": "string", "default": "", "maxLength": 100}}}, "GroupingOutboxRequest": {"required": ["limit"], "type": "object", "properties": {"limit": {"title": "Limit", "type": "integer", "maximum": 100, "minimum": 1}}}, "GroupingOutboxResponse": {"required": ["events"], "type": "object", "properties": {"events": {"type": "array", "items": {"type": "object"}}}}, "GroupingOutboxAck": {"type": "object", "properties": {}}, "PublishSeverity": {"required": ["lease_token", "receipt_id"], "type": "object", "properties": {"lease_token": {"title": "Lease token", "type": "string", "maxLength": 255, "minLength": 1}, "receipt_id": {"title": "Receipt id", "type": "string", "format": "uuid"}}}, "TraceAvailableItem": {"required": ["trace_id", "root_span_id", "root_end_time"], "type": "object", "properties": {"trace_id": {"title": "Trace id", "type": "string", "format": "uuid"}, "root_span_id": {"title": "Root span id", "type": "string", "maxLength": 64, "minLength": 1}, "root_end_time": {"title": "Root end time", "type": "string", "format": "date-time"}}}, "TraceAvailableEvent": {"required": ["version", "event_id", "organization_id", "workspace_id", "project_id", "event_kind", "traces", "emitted_at"], "type": "object", "properties": {"version": {"title": "Version", "type": "integer", "maximum": 1, "minimum": 1}, "event_id": {"title": "Event id", "type": "string", "format": "uuid"}, "organization_id": {"title": "Organization id", "type": "string", "format": "uuid"}, "workspace_id": {"title": "Workspace id", "type": "string", "format": "uuid", "x-nullable": true}, "project_id": {"title": "Project id", "type": "string", "format": "uuid"}, "event_kind": {"title": "Event kind", "type": "string", "enum": ["root_span_written"]}, "traces": {"type": "array", "items": {"$ref": "#/definitions/TraceAvailableItem"}}, "emitted_at": {"title": "Emitted at", "type": "string", "format": "date-time"}}}, "TraceAvailableDelivery": {"required": ["topic", "partition", "offset", "value"], "type": "object", "properties": {"topic": {"title": "Topic", "type": "string", "enum": ["error-feed.trace-available.v1"]}, "partition": {"title": "Partition", "type": "integer", "minimum": 0}, "offset": {"title": "Offset", "type": "integer", "minimum": 0}, "value": {"$ref": "#/definitions/TraceAvailableEvent"}}}, "RecordTraceNotificationsRequest": {"required": ["deliveries"], "type": "object", "properties": {"deliveries": {"type": "array", "items": {"$ref": "#/definitions/TraceAvailableDelivery"}}}}, "PendingInvestigation": {"required": ["organization_id", "workspace_id", "project_id", "trace_id", "job_id", "generation", "state", "not_before"], "type": "object", "properties": {"organization_id": {"title": "Organization id", "type": "string", "format": "uuid"}, "workspace_id": {"title": "Workspace id", "type": "string", "format": "uuid", "x-nullable": true}, "project_id": {"title": "Project id", "type": "string", "format": "uuid"}, "trace_id": {"title": "Trace id", "type": "string", "format": "uuid"}, "job_id": {"title": "Job id", "type": "string", "format": "uuid"}, "generation": {"title": "Generation", "type": "integer", "minimum": 1}, "state": {"title": "State", "type": "string", "minLength": 1}, "not_before": {"title": "Not before", "type": "string", "format": "date-time"}}}, "RecordTraceNotificationsResponse": {"required": ["accepted_events", "duplicate_events", "pending"], "type": "object", "properties": {"accepted_events": {"title": "Accepted events", "type": "integer", "minimum": 0}, "duplicate_events": {"title": "Duplicate events", "type": "integer", "minimum": 0}, "pending": {"type": "array", "items": {"$ref": "#/definitions/PendingInvestigation"}}}}, "FindingAttributionRole": {"required": ["status", "evidence_ids"], "type": "object", "properties": {"status": {"title": "Status", "type": "string", "enum": ["supported", "unsupported", "unknown"]}, "span_id": {"title": "Span id", "type": "string", "maxLength": 64, "minLength": 1, "x-nullable": true}, "call_execution_id": {"title": "Call execution id", "type": "string", "format": "uuid", "x-nullable": true}, "evidence_ids": {"type": "array", "items": {"type": "string", "maxLength": 128, "minLength": 1}, "maxItems": 100}, "explanation": {"title": "Explanation", "type": "string", "maxLength": 600}}}, "FindingAttribution": {"required": ["origin", "decisive", "symptom"], "type": "object", "properties": {"origin": {"$ref": "#/definitions/FindingAttributionRole"}, "decisive": {"$ref": "#/definitions/FindingAttributionRole"}, "symptom": {"$ref": "#/definitions/FindingAttributionRole"}}}, "InvestigationFinding": {"required": ["finding_id", "kind", "statement", "evidence_ids", "recovery", "attribution"], "type": "object", "properties": {"finding_id": {"title": "Finding id", "type": "string", "maxLength": 128, "minLength": 1}, "kind": {"title": "Kind", "type": "string", "maxLength": 64, "minLength": 1}, "statement": {"title": "Statement", "type": "string", "maxLength": 8000, "minLength": 1}, "requirement_id": {"title": "Requirement id", "type": "string", "maxLength": 256, "minLength": 1, "x-nullable": true}, "evidence_ids": {"type": "array", "items": {"type": "string", "maxLength": 128, "minLength": 1}, "maxItems": 100}, "recovery": {"title": "Recovery", "type": "string", "maxLength": 64, "minLength": 1}, "category": {"title": "Category", "type": "string", "maxLength": 100, "minLength": 1, "x-nullable": true}, "group_label": {"title": "Group label", "type": "string", "maxLength": 100, "minLength": 1, "x-nullable": true}, "fix_layer": {"title": "Fix layer", "type": "string", "maxLength": 50, "minLength": 1, "x-nullable": true}, "confidence": {"title": "Confidence", "type": "string", "maxLength": 2, "minLength": 1, "x-nullable": true}, "attribution": {"$ref": "#/definitions/FindingAttribution"}}}, "InvestigationRequirementCheck": {"required": ["requirement_id", "requirement", "status", "evidence_ids"], "type": "object", "properties": {"requirement_id": {"title": "Requirement id", "type": "string", "maxLength": 256, "minLength": 1}, "requirement": {"title": "Requirement", "type": "string", "maxLength": 8000, "minLength": 1}, "status": {"title": "Status", "type": "string", "maxLength": 64, "minLength": 1}, "evidence_ids": {"type": "array", "items": {"type": "string", "maxLength": 128, "minLength": 1}, "maxItems": 100}}}, "InvestigationEvidenceReceipt": {"required": ["evidence_id", "excerpt"], "type": "object", "properties": {"evidence_id": {"title": "Evidence id", "type": "string", "maxLength": 128, "minLength": 1}, "span_id": {"title": "Span id", "type": "string", "maxLength": 64, "minLength": 1, "x-nullable": true}, "call_execution_id": {"title": "Call execution id", "type": "string", "format": "uuid", "x-nullable": true}, "parent_span_id": {"title": "Parent span id", "type": "string", "maxLength": 64, "minLength": 1, "x-nullable": true}, "excerpt": {"title": "Excerpt", "type": "string", "maxLength": 8000, "minLength": 1}, "end_time": {"title": "End time", "type": "string", "format": "date-time", "x-nullable": true}}}, "InvestigationVerificationReceipt": {"required": ["receipt_id", "executed"], "type": "object", "properties": {"receipt_id": {"title": "Receipt id", "type": "string", "maxLength": 128, "minLength": 1}, "executed": {"title": "Executed", "type": "boolean"}}}, "InvestigationCoverage": {"required": ["read_complete"], "type": "object", "properties": {"scope": {"title": "Scope", "type": "string", "maxLength": 255, "minLength": 1}, "observed_span_count": {"title": "Observed span count", "type": "integer", "minimum": 0}, "observed_call_count": {"title": "Observed call count", "type": "integer", "minimum": 0}, "read_complete": {"title": "Read complete", "type": "boolean"}, "future_arrivals_known": {"title": "Future arrivals known", "type": "boolean"}}}, "InvestigationUsage": {"required": ["model_calls", "input_tokens", "output_tokens", "cost_status"], "type": "object", "properties": {"model_calls": {"title": "Model calls", "type": "integer", "minimum": 0}, "input_tokens": {"title": "Input tokens", "type": "integer", "minimum": 0}, "output_tokens": {"title": "Output tokens", "type": "integer", "minimum": 0}, "cost_usd": {"title": "Cost usd", "type": "number", "minimum": 0, "x-nullable": true}, "cost_status": {"title": "Cost status", "type": "string", "maxLength": 64, "minLength": 1}}}, "GatewayAccounting": {"required": ["model_used", "cost"], "type": "object", "properties": {"request_id": {"title": "Request id", "type": "string", "maxLength": 255, "minLength": 1, "x-nullable": true}, "model_used": {"title": "Model used", "type": "string", "maxLength": 255, "minLength": 1}, "cost": {"title": "Cost", "type": "number", "minimum": 0, "x-nullable": true}, "input_tokens": {"title": "Input tokens", "type": "integer", "minimum": 0}, "output_tokens": {"title": "Output tokens", "type": "integer", "minimum": 0}, "raw": {"title": "Raw", "type": "object", "x-nullable": true}}}, "InvestigationResult": {"required": ["contract_version", "organization_id", "workspace_id", "project_id", "job_id", "generation", "attempt_id", "engine_version", "read_cutoff", "memory_snapshot_id", "memory_digest", "evidence_digest", "execution_status", "outcome", "findings", "requirement_checks", "evidence_receipts", "verification_receipts", "coverage", "usage", "gateway_accounting", "result_digest"], "type": "object", "properties": {"contract_version": {"title": "Contract version", "type": "string", "enum": ["omega-investigation/v1", "omega-simulation/v1"]}, "workload_type": {"title": "Workload type", "type": "string", "enum": ["trace", "simulation_test_execution"], "default": "trace"}, "organization_id": {"title": "Organization id", "type": "string", "format": "uuid"}, "workspace_id": {"title": "Workspace id", "type": "string", "format": "uuid", "x-nullable": true}, "project_id": {"title": "Project id", "type": "string", "format": "uuid"}, "job_id": {"title": "Job id", "type": "string", "format": "uuid"}, "generation": {"title": "Generation", "type": "integer", "minimum": 1}, "attempt_id": {"title": "Attempt id", "type": "string", "format": "uuid"}, "trace_id": {"title": "Trace id", "type": "string", "format": "uuid", "x-nullable": true}, "test_execution_id": {"title": "Test execution id", "type": "string", "format": "uuid", "x-nullable": true}, "engine_version": {"title": "Engine version", "type": "string", "maxLength": 20, "minLength": 1}, "read_cutoff": {"title": "Read cutoff", "type": "string", "format": "date-time"}, "memory_snapshot_id": {"title": "Memory snapshot id", "type": "string", "maxLength": 128, "minLength": 1}, "memory_digest": {"title": "Memory digest", "type": "string", "maxLength": 71, "minLength": 1}, "evidence_digest": {"title": "Evidence digest", "type": "string", "pattern": "^sha256:[a-f0-9]{64}$", "minLength": 1}, "execution_status": {"title": "Execution status", "type": "string", "enum": ["completed", "failed"]}, "outcome": {"title": "Outcome", "type": "string", "enum": ["success", "failure", "unknown"]}, "error_message": {"title": "Error message", "type": "string", "x-nullable": true}, "findings": {"type": "array", "items": {"$ref": "#/definitions/InvestigationFinding"}}, "requirement_checks": {"type": "array", "items": {"$ref": "#/definitions/InvestigationRequirementCheck"}}, "evidence_receipts": {"type": "array", "items": {"$ref": "#/definitions/InvestigationEvidenceReceipt"}}, "verification_receipts": {"type": "array", "items": {"$ref": "#/definitions/InvestigationVerificationReceipt"}}, "coverage": {"$ref": "#/definitions/InvestigationCoverage"}, "usage": {"$ref": "#/definitions/InvestigationUsage"}, "gateway_accounting": {"type": "array", "items": {"$ref": "#/definitions/GatewayAccounting"}}, "result_digest": {"title": "Result digest", "type": "string", "pattern": "^sha256:[a-f0-9]{64}$", "minLength": 1}}}, "PublishInvestigationRequest": {"required": ["idempotency_key", "lease_token", "result"], "type": "object", "properties": {"idempotency_key": {"title": "Idempotency key", "type": "string", "maxLength": 255, "minLength": 1}, "lease_token": {"title": "Lease token", "type": "string", "maxLength": 255, "minLength": 1}, "result": {"$ref": "#/definitions/InvestigationResult"}}}, "PublishInvestigationResponse": {"required": ["status", "report_id", "occurrence_ids", "grouping_status"], "type": "object", "properties": {"status": {"title": "Status", "type": "string", "enum": ["accepted", "duplicate"]}, "report_id": {"title": "Report id", "type": "string", "format": "uuid"}, "occurrence_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}}, "grouping_status": {"title": "Grouping status", "type": "string", "minLength": 1}}}, "ObservabilityProvider": {"required": ["provider"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "project": {"title": "Project", "type": "string", "format": "uuid", "readOnly": true}, "project_name": {"title": "Project name", "description": "Name of the project. If it doesn't exist, it will be created.", "type": "string", "minLength": 1}, "provider": {"title": "Provider", "type": "string", "enum": ["vapi", "eleven_labs", "retell", "livekit", "others", "bland", "twilio"]}, "enabled": {"title": "Enabled", "type": "boolean"}, "organization": {"title": "Organization", "type": "string", "format": "uuid", "readOnly": true}, "workspace": {"title": "Workspace", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}, "metadata": {"title": "Metadata", "type": "object", "x-nullable": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}}}, "VerifyApiKeyRequest": {"required": ["provider"], "type": "object", "properties": {"provider": {"title": "Provider", "type": "string", "enum": ["vapi", "retell", "bland"]}, "api_key": {"title": "Api key", "type": "string", "x-nullable": true}, "agent_id": {"title": "Agent id", "type": "string", "x-nullable": true}}}, "VerifyResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"title": "Result", "type": "string", "minLength": 1}}}, "VerifyAssistantIdRequest": {"required": ["provider"], "type": "object", "properties": {"provider": {"title": "Provider", "type": "string", "enum": ["vapi", "retell", "bland"]}, "assistant_id": {"title": "Assistant id", "type": "string", "x-nullable": true}, "api_key": {"title": "Api key", "type": "string", "x-nullable": true}, "agent_id": {"title": "Agent id", "type": "string", "x-nullable": true}}}, "ObservationSpan": {"required": ["project", "trace", "name", "observation_type"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "readOnly": true, "minLength": 1}, "project": {"title": "Project", "type": "string", "format": "uuid"}, "project_version": {"title": "Project version", "type": "string", "format": "uuid"}, "trace": {"title": "Trace", "type": "string", "format": "uuid"}, "parent_span_id": {"title": "Parent span id", "type": "string", "maxLength": 255, "x-nullable": true}, "name": {"title": "Name", "type": "string", "maxLength": 2000, "minLength": 1}, "observation_type": {"title": "Observation type", "type": "string", "enum": ["tool", "chain", "llm", "retriever", "embedding", "agent", "reranker", "unknown", "guardrail", "evaluator", "conversation"]}, "start_time": {"title": "Start time", "type": "string", "format": "date-time", "x-nullable": true}, "end_time": {"title": "End time", "type": "string", "format": "date-time", "x-nullable": true}, "input": {"title": "Input", "type": "object", "x-nullable": true}, "output": {"title": "Output", "type": "object", "x-nullable": true}, "model": {"title": "Model", "type": "string", "maxLength": 255, "x-nullable": true}, "model_parameters": {"title": "Model parameters", "type": "object", "x-nullable": true}, "latency_ms": {"title": "Latency ms", "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "x-nullable": true}, "org_id": {"title": "Org id", "type": "string", "format": "uuid", "x-nullable": true}, "org_user_id": {"title": "Org user id", "type": "string", "format": "uuid", "x-nullable": true}, "prompt_tokens": {"title": "Prompt tokens", "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "x-nullable": true}, "completion_tokens": {"title": "Completion tokens", "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "x-nullable": true}, "total_tokens": {"title": "Total tokens", "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "x-nullable": true}, "response_time": {"title": "Response time", "type": "number", "x-nullable": true}, "eval_id": {"title": "Eval id", "type": "string", "maxLength": 255, "x-nullable": true}, "cost": {"title": "Cost", "type": "number", "x-nullable": true}, "status": {"title": "Status", "type": "string", "enum": ["UNSET", "OK", "ERROR"], "x-nullable": true}, "status_message": {"title": "Status message", "type": "string", "x-nullable": true}, "tags": {"title": "Tags", "type": "object", "x-nullable": true}, "metadata": {"title": "Metadata", "type": "object", "x-nullable": true}, "span_events": {"title": "Span events", "type": "object", "x-nullable": true}, "provider": {"title": "Provider", "type": "string", "maxLength": 255, "x-nullable": true}, "provider_logo": {"title": "Provider logo", "type": "string", "readOnly": true}, "span_attributes": {"title": "Span attributes", "type": "string", "readOnly": true}, "custom_eval_config": {"title": "Custom eval config", "type": "string", "format": "uuid", "x-nullable": true}, "eval_status": {"title": "Eval status", "type": "string", "enum": ["NotStarted", "Queued", "Running", "Completed", "Editing", "Inactive", "Failed", "PartialRun", "ExperimentEvaluation", "Uploading", "PartialExtracted", "Processing", "Deleting", "PartialCompleted", "OptimizationEvaluation", "Error", "Cancelled"], "x-nullable": true}, "prompt_version": {"title": "Prompt version", "type": "string", "format": "uuid", "x-nullable": true}}}, "AddObservationSpanAnnotations": {"required": ["annotation_values"], "type": "object", "properties": {"observation_span_id": {"title": "Observation span id", "type": "string"}, "trace_id": {"title": "Trace id", "type": "string", "format": "uuid"}, "annotation_values": {"title": "Annotation values", "type": "object", "additionalProperties": {"type": "object"}}, "notes": {"title": "Notes", "type": "string"}}}, "ObservationAttributeListResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"type": "array", "items": {"type": "string", "minLength": 1}}, "query_complete": {"title": "Query complete", "type": "boolean"}, "query_status": {"title": "Query status", "type": "string", "enum": ["complete", "sampled", "degraded"]}, "query_error_code": {"title": "Query error code", "type": "string", "enum": ["sample_limit", "read_budget_exceeded", "query_failed"]}, "query_window_start": {"title": "Query window start", "type": "string", "format": "date-time"}, "query_window_end": {"title": "Query window end", "type": "string", "format": "date-time"}}}, "ObserveGraphDataRequest": {"required": ["project_id", "req_data_config"], "type": "object", "properties": {"project_id": {"title": "Project id", "type": "string", "format": "uuid"}, "filters": {"type": "array", "items": {"type": "object", "properties": {"column_id": {"type": "string", "description": "Column or attribute id to filter on."}, "property_id": {"type": "string", "description": "Optional stable namespaced Property Registry identity."}, "display_name": {"type": "string", "description": "Optional UI label for chips and saved views."}, "source": {"type": "string", "description": "Optional source surface for mixed-source filters, for example traces, datasets, or simulation."}, "output_type": {"type": "string", "description": "Optional metric output type metadata used by eval and annotation filters."}, "filter_config": {"type": "object", "properties": {"filter_type": {"type": "string", "description": "Canonical field type, for example text, number, boolean, datetime, categorical, thumbs, annotator, array, or map. Legacy json is value-sensitive for SPAN_ATTRIBUTE filters: list values become array and object values become map."}, "filter_op": {"type": "string", "description": "Canonical operator from api_contracts/filter_contract.json, for example equals, not_equals, in, not_in, between, not_between, is_null, or is_not_null."}, "filter_value": {"description": "Scalar, list, range tuple, boolean, or null depending on filter_op and filter_type."}, "col_type": {"type": "string", "description": "Column family such as SYSTEM_METRIC, SPAN_ATTRIBUTE, EVAL_METRIC, ANNOTATION, or NORMAL."}, "attribute_value_types": {"type": "array", "items": {"type": "string", "enum": ["string", "number", "boolean"], "x-nullable": true}, "description": "Optional storage-family provenance aligned one-for-one with filter_value for mixed SPAN_ATTRIBUTE in/not_in filters. Null entries retain filter_type semantics for manually entered values."}}, "required": ["filter_type", "filter_op"], "additionalProperties": false}}, "required": ["column_id", "filter_config"], "additionalProperties": false}, "default": [], "description": "On trace, span, session, graph, and eval-task bounded reads, created_at/start_time datetime filters support equals, greater_than, greater_than_or_equal, less_than, less_than_or_equal, between, not_equals, not_between, is_null, and is_not_null. Missing bounds retain the finite default window: 30 days ago for the lower bound and request-time now for the upper bound. Between and not_between use half-open [start, end) ranges; not_equals excludes one DateTime64(6) microsecond. Because the physical created_at/start_time field is non-null, is_null returns an exact empty result without a ClickHouse read and is_not_null preserves the base window. Valid contradictions also return an exact empty result.", "x-boundedDatetimeOperators": ["between", "equals", "greater_than", "greater_than_or_equal", "is_not_null", "is_null", "less_than", "less_than_or_equal", "not_between", "not_equals"]}, "interval": {"title": "Interval", "type": "string", "enum": ["hour", "day", "week", "month"], "default": "day"}, "property": {"title": "Property", "description": "Accepted for older clients and ignored for SYSTEM_METRIC graphs: each system metric has one statistic, named by the response's metric_statistic. Latency is always the mean (avg) span latency.", "type": "string", "default": "average"}, "req_data_config": {"title": "Req data config", "type": "object", "properties": {"id": {"type": "string"}, "type": {"type": "string", "enum": ["SYSTEM_METRIC", "EVAL", "ANNOTATION"]}, "output_type": {"type": "string"}, "eval_output_type": {"type": "string"}, "choices": {"type": "array", "items": {"type": "string"}}, "value": {}, "filter_op": {"type": "string"}, "filter_value": {}, "property_id": {"type": "string", "description": "Stable Property Registry identity."}, "source": {"type": "string", "enum": ["traces", "sessions"]}}, "required": ["id", "type"], "additionalProperties": false}}}, "ObserveGraphDataPoint": {"description": "Graph points. A sampled series is published only with complete declared stratum coverage; degraded reads never publish points.", "required": ["timestamp", "value"], "type": "object", "properties": {"timestamp": {"title": "Timestamp", "type": "string", "minLength": 1}, "value": {"title": "Value", "type": "number", "x-nullable": true}, "primary_traffic": {"title": "Primary traffic", "type": "number", "x-nullable": true}}}, "ObserveGraphDataResult": {"required": ["metric_name", "data"], "type": "object", "properties": {"metric_name": {"title": "Metric name", "type": "string"}, "name": {"title": "Name", "type": "string"}, "metric_statistic": {"title": "Metric statistic", "description": "Statistic of the published system-metric series per bucket. Latency is always the mean (avg) of span latency, filtered or not. Absent for eval and annotation series.", "type": "string", "enum": ["count", "sum", "mean", "percentage"]}, "data": {"description": "Graph points. A sampled series is published only with complete declared stratum coverage; degraded reads never publish points.", "type": "array", "items": {"$ref": "#/definitions/ObserveGraphDataPoint"}}, "query_complete": {"title": "Query complete", "type": "boolean"}, "query_exact": {"title": "Query exact", "type": "boolean"}, "query_provenance": {"title": "Query provenance", "type": "string", "enum": ["materialized_rollup", "bounded_candidates", "exact_snapshot"]}, "query_status": {"title": "Query status", "type": "string", "enum": ["complete", "sampled", "degraded", "pending"]}, "query_error_code": {"title": "Query error code", "type": "string", "enum": ["sample_limit", "read_budget_exceeded", "query_failed"]}, "query_window_start": {"title": "Query window start", "type": "string", "minLength": 1}, "query_window_end": {"title": "Query window end", "type": "string", "minLength": 1}, "query_applied_filter_version": {"title": "Query applied filter version", "type": "string", "enum": ["canonical-json-sha256-v1"]}, "query_applied_filter_sha256": {"title": "Query applied filter sha256", "type": "string", "pattern": "^[0-9a-f]{64}$", "minLength": 1}, "query_applied_filter_count": {"title": "Query applied filter count", "type": "integer", "minimum": 0}, "query_sample_size": {"title": "Query sample size", "type": "integer", "minimum": 0}, "query_count": {"title": "Query count", "type": "integer", "minimum": 0}, "query_elapsed_ms": {"title": "Query elapsed ms", "type": "number", "minimum": 0}, "query_rows_returned": {"title": "Query rows returned", "type": "integer", "minimum": 0}, "query_result_bytes": {"title": "Query result bytes", "type": "integer", "minimum": 0}, "query_total_rows_lower_bound": {"title": "Query total rows lower bound", "type": "integer", "minimum": 0}, "query_sampled": {"title": "Query sampled", "type": "boolean"}, "query_completed_at": {"title": "Query completed at", "type": "string", "format": "date-time"}, "query_cached": {"title": "Query cached", "type": "boolean"}, "query_refresh_failed": {"title": "Query refresh failed", "type": "boolean"}, "query_refreshing": {"title": "Query refreshing", "type": "boolean"}, "query_snapshot_version_ceiling": {"title": "Query snapshot version ceiling", "type": "integer", "minimum": 1}, "query_sampling_strategy": {"title": "Query sampling strategy", "type": "string", "enum": ["time_stratified_latest_state", "bounded_latest_state_prefix", "newest_trace_candidates"]}, "query_sampling_strata": {"title": "Query sampling strata", "type": "integer", "minimum": 0}, "query_sampling_strata_completed": {"title": "Query sampling strata completed", "type": "integer", "minimum": 0}}}, "ObserveGraphDataResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/ObserveGraphDataResult"}}}, "TraceNavigationResult": {"required": ["next_trace_id", "previous_trace_id"], "type": "object", "properties": {"next_trace_id": {"title": "Next trace id", "type": "string", "minLength": 1, "x-nullable": true}, "previous_trace_id": {"title": "Previous trace id", "type": "string", "minLength": 1, "x-nullable": true}}}, "TraceNavigationResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/TraceNavigationResult"}}}, "SpanIndexQuery": {"required": ["span_id", "project_version_id"], "type": "object", "properties": {"span_id": {"title": "Span id", "type": "string", "minLength": 1}, "project_version_id": {"title": "Project version id", "type": "string", "format": "uuid"}, "filters": {"title": "Filters", "type": "string", "default": "[]", "minLength": 1, "description": "JSON-encoded canonical filter list."}}}, "SpanObserveIndexQuery": {"required": ["span_id", "project_id"], "type": "object", "properties": {"span_id": {"title": "Span id", "type": "string", "minLength": 1}, "project_id": {"title": "Project id", "type": "string", "format": "uuid"}, "user_id": {"title": "User id", "type": "string"}, "filters": {"title": "Filters", "type": "string", "default": "[]", "minLength": 1, "description": "JSON-encoded canonical filter list."}}}, "SpanListColumnConfig": {"required": ["id", "name", "is_visible"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "minLength": 1}, "name": {"title": "Name", "type": "string", "minLength": 1}, "is_visible": {"title": "Is visible", "type": "boolean"}, "group_by": {"title": "Group by", "type": "string", "minLength": 1, "x-nullable": true}, "output_type": {"title": "Output type", "type": "string", "minLength": 1, "x-nullable": true}, "reverse_output": {"title": "Reverse output", "type": "boolean", "x-nullable": true}, "annotation_label_type": {"title": "Annotation label type", "type": "string", "minLength": 1, "x-nullable": true}, "choices": {"type": "array", "items": {"type": "string", "minLength": 1, "x-nullable": true}, "x-nullable": true}, "settings": {"title": "Settings", "type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}, "choices_map": {"title": "Choices map", "type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}, "eval_template_id": {"title": "Eval template id", "type": "string", "minLength": 1, "x-nullable": true}, "target_type": {"title": "Target type", "type": "string", "enum": ["span", "trace"], "x-nullable": true}, "annotators": {"title": "Annotators", "type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}, "source_field": {"title": "Source field", "type": "string", "minLength": 1, "x-nullable": true}, "parent_eval_id": {"title": "Parent eval id", "type": "string", "minLength": 1, "x-nullable": true}, "property_id": {"title": "Property id", "type": "string", "minLength": 1, "x-nullable": true}, "property_kind": {"title": "Property kind", "type": "string", "minLength": 1, "x-nullable": true}, "property_source": {"title": "Property source", "type": "string", "minLength": 1, "x-nullable": true}}}, "SpanListMetadata": {"required": ["total_rows"], "type": "object", "properties": {"total_rows": {"title": "Total rows", "type": "integer", "minimum": 0}, "total_rows_exact": {"title": "Total rows exact", "type": "integer", "minimum": 0, "x-nullable": true}, "total_rows_is_lower_bound": {"title": "Total rows is lower bound", "type": "boolean"}, "has_more": {"title": "Has more", "type": "boolean"}, "next_cursor": {"title": "Next cursor", "type": "string", "minLength": 1, "x-nullable": true}, "next_cursor_fingerprint": {"title": "Next cursor fingerprint", "type": "string", "pattern": "^[0-9a-f]{64}$", "minLength": 1, "x-nullable": true}, "query_complete": {"title": "Query complete", "type": "boolean"}, "query_status": {"title": "Query status", "type": "string", "enum": ["complete", "degraded"]}, "query_error_code": {"title": "Query error code", "type": "string", "minLength": 1, "x-nullable": true}, "query_elapsed_ms": {"title": "Query elapsed ms", "type": "number", "minimum": 0}, "query_count": {"title": "Query count", "type": "integer", "minimum": 0}, "query_rows_returned": {"title": "Query rows returned", "type": "integer", "minimum": 0}, "query_result_payload_bytes": {"title": "Query result payload bytes", "type": "integer", "minimum": 0}, "query_applied_filter_version": {"title": "Query applied filter version", "type": "string", "enum": ["canonical-json-sha256-v1"]}, "query_applied_filter_sha256": {"title": "Query applied filter sha256", "type": "string", "pattern": "^[0-9a-f]{64}$", "minLength": 1}, "query_applied_filter_count": {"title": "Query applied filter count", "type": "integer", "minimum": 0}, "query_exact": {"title": "Query exact", "type": "boolean"}, "ordering_exact": {"title": "Ordering exact", "type": "boolean"}}}, "SpanPrototypeListResult": {"required": ["column_config", "metadata", "table"], "type": "object", "properties": {"column_config": {"type": "array", "items": {"$ref": "#/definitions/SpanListColumnConfig"}}, "metadata": {"$ref": "#/definitions/SpanListMetadata"}, "table": {"type": "array", "items": {"type": "object", "additionalProperties": {"type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}}}}}, "SpanPrototypeListResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/SpanPrototypeListResult"}}}, "PageDepthExceededError": {"required": ["code"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": false}, "type": {"title": "Type", "type": "string", "enum": ["validation_error", "authentication_error", "payment_required", "entitlement_error", "permission_error", "not_found", "conflict", "client_error", "rate_limit", "server_error", "service_unavailable", "timeout", "api_error"], "x-nullable": true}, "code": {"title": "Code", "type": "string", "enum": ["page_depth_exceeded"]}, "detail": {"title": "Detail", "type": "string", "x-nullable": true}, "result": {"title": "Result", "type": "string", "x-nullable": true}, "message": {"title": "Message", "type": "string", "x-nullable": true}, "error": {"title": "Error", "type": "string", "x-nullable": true}, "attr": {"title": "Attr", "type": "string", "x-nullable": true}, "details": {"title": "Details", "type": "object", "additionalProperties": {"type": "array", "items": {"type": "string", "minLength": 1}}}}}, "SpanListQuery": {"required": ["project_version_id"], "type": "object", "properties": {"project_version_id": {"title": "Project version id", "type": "string", "format": "uuid"}, "filters": {"title": "Filters", "type": "string", "default": "[]", "minLength": 1, "description": "JSON-encoded canonical filter list. On trace, span, session, graph, and eval-task bounded reads, created_at/start_time datetime filters support equals, greater_than, greater_than_or_equal, less_than, less_than_or_equal, between, not_equals, not_between, is_null, and is_not_null. Missing bounds retain the finite default window: 30 days ago for the lower bound and request-time now for the upper bound. Between and not_between use half-open [start, end) ranges; not_equals excludes one DateTime64(6) microsecond. Because the physical created_at/start_time field is non-null, is_null returns an exact empty result without a ClickHouse read and is_not_null preserves the base window. Valid contradictions also return an exact empty result.", "x-boundedDatetimeOperators": ["between", "equals", "greater_than", "greater_than_or_equal", "is_not_null", "is_null", "less_than", "less_than_or_equal", "not_between", "not_equals"]}, "page_number": {"title": "Page number", "description": "Zero-based numbered page. Pages whose required ordered work exceeds the finite read contract return HTTP 422 with code page_depth_exceeded; request an earlier page or narrow the time range.", "type": "integer", "default": 0, "minimum": 0}, "page_size": {"title": "Page size", "type": "integer", "default": 30, "maximum": 500, "minimum": 1}, "allow_sampled": {"title": "Allow sampled", "description": "Omit for backward-compatible complete bounded pages, which may label total_rows as a lower bound. Send false to require an exact total, or true to opt in explicitly to lower-bound totals.", "type": "boolean"}}}, "SpanObserveListResult": {"required": ["metadata", "table", "config"], "type": "object", "properties": {"metadata": {"$ref": "#/definitions/SpanListMetadata"}, "table": {"type": "array", "items": {"type": "object", "additionalProperties": {"type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}}}, "config": {"type": "array", "items": {"$ref": "#/definitions/SpanListColumnConfig"}}}}, "SpanObserveListResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/SpanObserveListResult"}}}, "SpanObserveListQuery": {"type": "object", "properties": {"project_id": {"title": "Project id", "type": "string", "format": "uuid", "x-nullable": true}, "user_id": {"title": "User id", "type": "string"}, "filters": {"title": "Filters", "type": "string", "default": "[]", "minLength": 1, "description": "JSON-encoded canonical filter list. On trace, span, session, graph, and eval-task bounded reads, created_at/start_time datetime filters support equals, greater_than, greater_than_or_equal, less_than, less_than_or_equal, between, not_equals, not_between, is_null, and is_not_null. Missing bounds retain the finite default window: 30 days ago for the lower bound and request-time now for the upper bound. Between and not_between use half-open [start, end) ranges; not_equals excludes one DateTime64(6) microsecond. Because the physical created_at/start_time field is non-null, is_null returns an exact empty result without a ClickHouse read and is_not_null preserves the base window. Valid contradictions also return an exact empty result.", "x-boundedDatetimeOperators": ["between", "equals", "greater_than", "greater_than_or_equal", "is_not_null", "is_null", "less_than", "less_than_or_equal", "not_between", "not_equals"]}, "page_number": {"title": "Page number", "description": "Zero-based numbered page. Pages whose required ordered work exceeds the finite read contract return HTTP 422 with code page_depth_exceeded; request an earlier page or narrow the time range.", "type": "integer", "default": 0, "minimum": 0}, "page_size": {"title": "Page size", "type": "integer", "default": 30, "maximum": 500, "minimum": 1}, "cursor": {"title": "Cursor", "description": "Opaque continuation token returned by the previous page. When supplied, do not also send the numbered-page parameter.", "type": "string", "maxLength": 4096, "minLength": 1}, "cursor_mode": {"title": "Cursor mode", "type": "boolean", "default": false}, "allow_sampled": {"title": "Allow sampled", "description": "Omit for backward-compatible complete bounded pages, which may label total_rows as a lower bound. Send false to require an exact total, or true to opt in explicitly to lower-bound totals.", "type": "boolean"}}}, "RootSpansResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"title": "Result", "type": "object", "additionalProperties": {"type": "string", "minLength": 1}}}}, "ObservationSpanDetailResult": {"required": ["observation_span", "evals_metrics"], "type": "object", "properties": {"observation_span": {"title": "Observation span", "type": "object", "additionalProperties": {"type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}}, "evals_metrics": {"title": "Evals metrics", "type": "object", "additionalProperties": {"type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}, "x-nullable": true}, "enrichment": {"title": "Enrichment", "type": "object", "additionalProperties": {"type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}}}}, "ObservationSpanDetailResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/ObservationSpanDetailResult"}}}, "ProjectVersion": {"required": ["project", "name"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "project": {"title": "Project", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "metadata": {"title": "Metadata", "type": "object", "x-nullable": true}, "start_time": {"title": "Start time", "type": "string", "format": "date-time", "x-nullable": true}, "end_time": {"title": "End time", "type": "string", "format": "date-time", "x-nullable": true}, "error": {"title": "Error", "type": "object", "x-nullable": true}, "eval_tags": {"title": "Eval tags", "type": "object", "x-nullable": true}, "avg_eval_score": {"title": "Avg eval score", "type": "number", "x-nullable": true}, "version": {"title": "Version", "type": "string", "readOnly": true, "minLength": 1}, "annotations": {"title": "Annotations", "type": "string", "format": "uuid", "x-nullable": true}}}, "Project": {"required": ["model_type", "name", "trace_type"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "model_type": {"title": "Model type", "type": "string", "enum": ["Numeric", "ScoreCategorical", "Ranking", "BinaryClassification", "Regression", "ObjectDetection", "Segmentation", "GenerativeLLM", "GenerativeImage", "GenerativeVideo", "TTS", "STT", "MultiModal"]}, "name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "trace_type": {"title": "Trace type", "type": "string", "enum": ["experiment", "observe"]}, "metadata": {"title": "Metadata", "type": "object", "x-nullable": true}, "organization": {"title": "Organization", "type": "string", "format": "uuid", "readOnly": true}, "workspace": {"title": "Workspace", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}, "config": {"title": "Config", "type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}, "source": {"title": "Source", "type": "string", "enum": ["demo", "prototype", "simulator"]}, "session_config": {"title": "Session config", "type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}, "tags": {"title": "Tags", "type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}}}, "ProjectGraphDataResult": {"required": ["system_metrics", "evaluations"], "type": "object", "properties": {"system_metrics": {"title": "System metrics", "type": "object", "x-json-value": true, "description": "Any valid JSON value."}, "system_metric_statistics": {"title": "System metric statistics", "description": "Statistic of each ``system_metrics`` series per bucket, e.g. {\"latency\": \"mean\", \"tokens\": \"sum\", \"cost\": \"mean\", \"traffic\": \"count\"}. Latency is always the mean (avg) span latency.", "type": "object", "additionalProperties": {"type": "string", "enum": ["count", "sum", "mean", "percentage"]}}, "evaluations": {"title": "Evaluations", "type": "object", "x-json-value": true, "description": "Any valid JSON value."}}}, "ProjectGraphDataResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/ProjectGraphDataResult"}}}, "ProjectUserGraphDataRequest": {"type": "object", "properties": {"interval": {"title": "Interval", "type": "string", "default": "hour", "minLength": 1}, "filters": {"type": "array", "items": {"type": "object", "properties": {"column_id": {"type": "string", "description": "Column or attribute id to filter on."}, "property_id": {"type": "string", "description": "Optional stable namespaced Property Registry identity."}, "display_name": {"type": "string", "description": "Optional UI label for chips and saved views."}, "source": {"type": "string", "description": "Optional source surface for mixed-source filters, for example traces, datasets, or simulation."}, "output_type": {"type": "string", "description": "Optional metric output type metadata used by eval and annotation filters."}, "filter_config": {"type": "object", "properties": {"filter_type": {"type": "string", "description": "Canonical field type, for example text, number, boolean, datetime, categorical, thumbs, annotator, array, or map. Legacy json is value-sensitive for SPAN_ATTRIBUTE filters: list values become array and object values become map."}, "filter_op": {"type": "string", "description": "Canonical operator from api_contracts/filter_contract.json, for example equals, not_equals, in, not_in, between, not_between, is_null, or is_not_null."}, "filter_value": {"description": "Scalar, list, range tuple, boolean, or null depending on filter_op and filter_type."}, "col_type": {"type": "string", "description": "Column family such as SYSTEM_METRIC, SPAN_ATTRIBUTE, EVAL_METRIC, ANNOTATION, or NORMAL."}, "attribute_value_types": {"type": "array", "items": {"type": "string", "enum": ["string", "number", "boolean"], "x-nullable": true}, "description": "Optional storage-family provenance aligned one-for-one with filter_value for mixed SPAN_ATTRIBUTE in/not_in filters. Null entries retain filter_type semantics for manually entered values."}}, "required": ["filter_type", "filter_op"], "additionalProperties": false}}, "required": ["column_id", "filter_config"], "additionalProperties": false}, "default": []}}}, "ProjectUserGraphDataResult": {"required": ["session", "trace", "cost", "input_tokens", "output_tokens"], "type": "object", "properties": {"session": {"type": "array", "items": {"type": "object", "additionalProperties": {"type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}}}, "trace": {"type": "array", "items": {"type": "object", "additionalProperties": {"type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}}}, "cost": {"type": "array", "items": {"type": "object", "additionalProperties": {"type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}}}, "input_tokens": {"type": "array", "items": {"type": "object", "additionalProperties": {"type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}}}, "output_tokens": {"type": "array", "items": {"type": "object", "additionalProperties": {"type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}}}}}, "ProjectUserGraphDataResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/ProjectUserGraphDataResult"}}}, "ProjectUserMetricsRequest": {"required": ["end_user_id", "project_id"], "type": "object", "properties": {"end_user_id": {"title": "End user id", "type": "string", "format": "uuid"}, "project_id": {"title": "Project id", "type": "string", "format": "uuid"}, "interval": {"title": "Interval", "type": "string", "default": "day", "minLength": 1}, "filters": {"type": "array", "items": {"type": "object", "properties": {"column_id": {"type": "string", "description": "Column or attribute id to filter on."}, "property_id": {"type": "string", "description": "Optional stable namespaced Property Registry identity."}, "display_name": {"type": "string", "description": "Optional UI label for chips and saved views."}, "source": {"type": "string", "description": "Optional source surface for mixed-source filters, for example traces, datasets, or simulation."}, "output_type": {"type": "string", "description": "Optional metric output type metadata used by eval and annotation filters."}, "filter_config": {"type": "object", "properties": {"filter_type": {"type": "string", "description": "Canonical field type, for example text, number, boolean, datetime, categorical, thumbs, annotator, array, or map. Legacy json is value-sensitive for SPAN_ATTRIBUTE filters: list values become array and object values become map."}, "filter_op": {"type": "string", "description": "Canonical operator from api_contracts/filter_contract.json, for example equals, not_equals, in, not_in, between, not_between, is_null, or is_not_null."}, "filter_value": {"description": "Scalar, list, range tuple, boolean, or null depending on filter_op and filter_type."}, "col_type": {"type": "string", "description": "Column family such as SYSTEM_METRIC, SPAN_ATTRIBUTE, EVAL_METRIC, ANNOTATION, or NORMAL."}, "attribute_value_types": {"type": "array", "items": {"type": "string", "enum": ["string", "number", "boolean"], "x-nullable": true}, "description": "Optional storage-family provenance aligned one-for-one with filter_value for mixed SPAN_ATTRIBUTE in/not_in filters. Null entries retain filter_type semantics for manually entered values."}}, "required": ["filter_type", "filter_op"], "additionalProperties": false}}, "required": ["column_id", "filter_config"], "additionalProperties": false}, "default": []}}}, "ProjectUsersAggregateGraphDataRequest": {"required": ["project_id"], "type": "object", "properties": {"project_id": {"title": "Project id", "type": "string", "format": "uuid"}, "interval": {"title": "Interval", "type": "string", "default": "day", "minLength": 1}, "filters": {"type": "array", "items": {"type": "object", "properties": {"column_id": {"type": "string", "description": "Column or attribute id to filter on."}, "property_id": {"type": "string", "description": "Optional stable namespaced Property Registry identity."}, "display_name": {"type": "string", "description": "Optional UI label for chips and saved views."}, "source": {"type": "string", "description": "Optional source surface for mixed-source filters, for example traces, datasets, or simulation."}, "output_type": {"type": "string", "description": "Optional metric output type metadata used by eval and annotation filters."}, "filter_config": {"type": "object", "properties": {"filter_type": {"type": "string", "description": "Canonical field type, for example text, number, boolean, datetime, categorical, thumbs, annotator, array, or map. Legacy json is value-sensitive for SPAN_ATTRIBUTE filters: list values become array and object values become map."}, "filter_op": {"type": "string", "description": "Canonical operator from api_contracts/filter_contract.json, for example equals, not_equals, in, not_in, between, not_between, is_null, or is_not_null."}, "filter_value": {"description": "Scalar, list, range tuple, boolean, or null depending on filter_op and filter_type."}, "col_type": {"type": "string", "description": "Column family such as SYSTEM_METRIC, SPAN_ATTRIBUTE, EVAL_METRIC, ANNOTATION, or NORMAL."}, "attribute_value_types": {"type": "array", "items": {"type": "string", "enum": ["string", "number", "boolean"], "x-nullable": true}, "description": "Optional storage-family provenance aligned one-for-one with filter_value for mixed SPAN_ATTRIBUTE in/not_in filters. Null entries retain filter_type semantics for manually entered values."}}, "required": ["filter_type", "filter_op"], "additionalProperties": false}}, "required": ["column_id", "filter_config"], "additionalProperties": false}, "default": []}, "property": {"title": "Property", "type": "string", "default": "average", "minLength": 1}, "req_data_config": {"title": "Req data config", "type": "object", "default": {}, "properties": {"id": {"type": "string"}, "type": {"type": "string", "enum": ["SYSTEM_METRIC", "EVAL", "ANNOTATION"]}, "output_type": {"type": "string"}, "eval_output_type": {"type": "string"}, "choices": {"type": "array", "items": {"type": "string"}}, "value": {}, "filter_op": {"type": "string"}, "filter_value": {}, "property_id": {"type": "string", "description": "Stable Property Registry identity."}, "source": {"type": "string", "enum": ["traces", "sessions"]}}, "required": ["id", "type"], "additionalProperties": false}}}, "ProjectIdListItem": {"required": ["id", "name", "trace_type"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "trace_type": {"title": "Trace type", "type": "string", "minLength": 1}}}, "ProjectIdListResult": {"required": ["projects"], "type": "object", "properties": {"projects": {"type": "array", "items": {"$ref": "#/definitions/ProjectIdListItem"}}}}, "ProjectIdListResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/ProjectIdListResult"}}}, "ProjectListMetadata": {"required": ["total_rows", "page_number", "page_size", "total_pages"], "type": "object", "properties": {"total_rows": {"title": "Total rows", "type": "integer", "minimum": 0}, "page_number": {"title": "Page number", "type": "integer", "minimum": 0}, "page_size": {"title": "Page size", "type": "integer", "maximum": 100, "minimum": 1}, "total_pages": {"title": "Total pages", "type": "integer", "minimum": 0}}}, "ProjectListItem": {"required": ["id", "name", "last_30_days_vol", "daily_volume", "created_at", "updated_at", "last_active", "activity_query_complete", "activity_error_code", "activity_query_exact", "activity_query_provenance", "run_count", "issues", "tags"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "last_30_days_vol": {"title": "Last 30 days vol", "type": "integer", "minimum": 0, "x-nullable": true}, "daily_volume": {"type": "array", "items": {"type": "integer", "minimum": 0}, "x-nullable": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time"}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time"}, "last_active": {"title": "Last active", "type": "string", "format": "date-time", "x-nullable": true}, "activity_query_complete": {"title": "Activity query complete", "type": "boolean"}, "activity_error_code": {"title": "Activity error code", "type": "string", "minLength": 1, "x-nullable": true}, "activity_query_exact": {"title": "Activity query exact", "type": "boolean"}, "activity_query_provenance": {"title": "Activity query provenance", "type": "string", "minLength": 1}, "run_count": {"title": "Run count", "type": "integer", "minimum": 0}, "issues": {"title": "Issues", "type": "integer", "minimum": 0}, "tags": {"type": "array", "items": {"type": "string", "minLength": 1}}}}, "ProjectListResult": {"required": ["metadata", "table"], "type": "object", "properties": {"metadata": {"$ref": "#/definitions/ProjectListMetadata"}, "table": {"type": "array", "items": {"$ref": "#/definitions/ProjectListItem"}}}}, "ProjectListResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/ProjectListResult"}}}, "ProjectDetailResult": {"required": ["model_type", "name", "trace_type", "sampling_rate"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "model_type": {"title": "Model type", "type": "string", "enum": ["Numeric", "ScoreCategorical", "Ranking", "BinaryClassification", "Regression", "ObjectDetection", "Segmentation", "GenerativeLLM", "GenerativeImage", "GenerativeVideo", "TTS", "STT", "MultiModal"]}, "name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "trace_type": {"title": "Trace type", "type": "string", "enum": ["experiment", "observe"]}, "metadata": {"title": "Metadata", "type": "object", "x-nullable": true}, "organization": {"title": "Organization", "type": "string", "format": "uuid", "readOnly": true}, "workspace": {"title": "Workspace", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}, "config": {"title": "Config", "type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}, "source": {"title": "Source", "type": "string", "enum": ["demo", "prototype", "simulator"]}, "session_config": {"title": "Session config", "type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}, "tags": {"title": "Tags", "type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}, "sampling_rate": {"title": "Sampling rate", "type": "number"}}}, "ProjectDetailResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/ProjectDetailResult"}}}, "ReplaySessionList": {"required": ["project", "replay_type"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "project": {"title": "Project", "type": "string", "format": "uuid"}, "project_name": {"title": "Project name", "type": "string", "readOnly": true, "minLength": 1}, "replay_type": {"title": "Replay type", "type": "string", "enum": ["session", "trace"]}, "current_step": {"title": "Current step", "type": "string", "enum": ["init", "generating", "completed"]}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}}}, "CreateReplaySession": {"required": ["project_id"], "type": "object", "properties": {"project_id": {"title": "Project id", "type": "string", "format": "uuid"}, "replay_type": {"title": "Replay type", "type": "string", "enum": ["session", "trace"], "default": "session"}, "ids": {"type": "array", "items": {"type": "string", "format": "uuid"}, "default": []}, "select_all": {"title": "Select all", "type": "boolean", "default": false}}}, "AgentDefinitionNested": {"required": ["agent_name", "description"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "agent_name": {"title": "Agent name", "description": "Name of the AI agent", "type": "string", "maxLength": 255, "minLength": 1}, "agent_type": {"title": "Agent type", "type": "string", "enum": ["voice", "text"]}, "description": {"title": "Description", "description": "Detailed description of the AI agent's purpose and capabilities", "type": "string", "minLength": 1}, "version_name": {"title": "Version name", "type": "string", "readOnly": true}}}, "ScenarioNested": {"required": ["name"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "description": "Name of the scenario", "type": "string", "maxLength": 255, "minLength": 1}, "status": {"title": "Status", "description": "Status of the scenario", "type": "string", "enum": ["NotStarted", "Queued", "Running", "Completed", "Editing", "Inactive", "Failed", "PartialRun", "ExperimentEvaluation", "Uploading", "PartialExtracted", "Processing", "Deleting", "PartialCompleted", "OptimizationEvaluation", "Error", "Cancelled"]}, "description": {"title": "Description", "description": "Optional description of the scenario", "type": "string", "x-nullable": true}}}, "RunTestNested": {"required": ["name"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "description": "Name of the test run", "type": "string", "maxLength": 255, "minLength": 1}, "description": {"title": "Description", "description": "Description of the test run", "type": "string", "x-nullable": true}}}, "ReplaySession": {"required": ["project", "replay_type"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "project": {"title": "Project", "type": "string", "format": "uuid"}, "replay_type": {"title": "Replay type", "type": "string", "enum": ["session", "trace"]}, "ids": {"title": "Ids", "type": "object", "x-nullable": true}, "select_all": {"title": "Select all", "type": "boolean"}, "current_step": {"title": "Current step", "type": "string", "enum": ["init", "generating", "completed"], "readOnly": true}, "agent_definition": {"$ref": "#/definitions/AgentDefinitionNested"}, "scenario": {"$ref": "#/definitions/ScenarioNested"}, "run_test": {"$ref": "#/definitions/RunTestNested"}}}, "GenerateScenario": {"required": ["agent_name", "scenario_name"], "type": "object", "properties": {"agent_name": {"title": "Agent name", "type": "string", "maxLength": 255, "minLength": 1}, "agent_description": {"title": "Agent description", "type": "string", "default": ""}, "scenario_name": {"title": "Scenario name", "type": "string", "maxLength": 255, "minLength": 1}, "agent_type": {"title": "Agent type", "type": "string", "enum": ["text", "voice"], "default": "text"}, "no_of_rows": {"title": "No of rows", "type": "integer", "default": 20, "maximum": 1000, "minimum": 1}, "personas": {"type": "array", "items": {"type": "string", "format": "uuid"}, "default": []}, "custom_columns": {"type": "array", "items": {"type": "object", "additionalProperties": {"type": "string", "x-nullable": true}}, "default": []}, "graph": {"title": "Graph", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}, "x-nullable": true}, "generate_graph": {"title": "Generate graph", "type": "boolean", "default": true}}}, "SavedViewDefaultTab": {"required": ["key", "label", "tab_type"], "type": "object", "properties": {"key": {"title": "Key", "type": "string", "minLength": 1}, "label": {"title": "Label", "type": "string", "minLength": 1}, "tab_type": {"title": "Tab type", "type": "string", "minLength": 1}}}, "SavedViewCreator": {"type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "type": "string", "readOnly": true, "minLength": 1}, "email": {"title": "Email", "type": "string", "format": "email", "readOnly": true, "minLength": 1}}}, "SavedViewList": {"required": ["name", "tab_type"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "tab_type": {"title": "Tab type", "type": "string", "enum": ["traces", "spans", "voice", "imagine", "users", "user_detail", "sessions"]}, "visibility": {"title": "Visibility", "type": "string", "enum": ["personal", "project"]}, "position": {"title": "Position", "type": "integer", "maximum": 2147483647, "minimum": -2147483648}, "icon": {"title": "Icon", "type": "string", "maxLength": 50, "x-nullable": true}, "config": {"title": "Config", "type": "object"}, "created_by": {"$ref": "#/definitions/SavedViewCreator"}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}}}, "SavedViewListResult": {"required": ["default_tabs", "custom_views"], "type": "object", "properties": {"default_tabs": {"type": "array", "items": {"$ref": "#/definitions/SavedViewDefaultTab"}}, "custom_views": {"type": "array", "items": {"$ref": "#/definitions/SavedViewList"}}}}, "SavedViewListResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/SavedViewListResult"}}}, "SavedViewDetail": {"required": ["name", "tab_type"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "tab_type": {"title": "Tab type", "type": "string", "enum": ["traces", "spans", "voice", "imagine", "users", "user_detail", "sessions"]}, "visibility": {"title": "Visibility", "type": "string", "enum": ["personal", "project"]}, "position": {"title": "Position", "type": "integer", "maximum": 2147483647, "minimum": -2147483648}, "icon": {"title": "Icon", "type": "string", "maxLength": 50, "x-nullable": true}, "config": {"title": "Config", "type": "object"}, "project": {"title": "Project", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}, "created_by": {"$ref": "#/definitions/SavedViewCreator"}, "updated_by": {"$ref": "#/definitions/SavedViewCreator"}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}}}, "SavedViewDetailResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/SavedViewDetail"}}}, "SavedViewMessageResult": {"required": ["message"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}}}, "SavedViewMessageResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/SavedViewMessageResult"}}}, "SharedLinkList": {"type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "resource_type": {"title": "Resource type", "type": "string", "enum": ["trace", "dashboard", "eval_run", "dataset", "project", "call_execution"], "readOnly": true}, "resource_id": {"title": "Resource id", "type": "string", "readOnly": true, "minLength": 1}, "token": {"title": "Token", "type": "string", "readOnly": true, "minLength": 1}, "access_type": {"title": "Access type", "type": "string", "enum": ["public", "restricted"], "readOnly": true}, "is_active": {"title": "Is active", "type": "boolean", "readOnly": true}, "expires_at": {"title": "Expires at", "type": "string", "format": "date-time", "readOnly": true, "x-nullable": true}, "created_by": {"title": "Created by", "type": "string", "format": "uuid", "readOnly": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "access_count": {"title": "Access count", "type": "string", "readOnly": true}, "share_url": {"title": "Share url", "type": "string", "readOnly": true}}}, "SharedLinkCreate": {"required": ["resource_type", "resource_id"], "type": "object", "properties": {"resource_type": {"title": "Resource type", "type": "string", "enum": ["trace", "dashboard", "project", "call_execution"]}, "resource_id": {"title": "Resource id", "type": "string", "maxLength": 255, "minLength": 1}, "access_type": {"title": "Access type", "type": "string", "enum": ["public", "restricted"], "default": "restricted"}, "expires_at": {"title": "Expires at", "type": "string", "format": "date-time", "x-nullable": true}, "emails": {"description": "Emails to grant access to (for restricted links).", "type": "array", "items": {"type": "string", "format": "email", "minLength": 1}, "default": []}}}, "SharedLinkAccess": {"required": ["email"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "email": {"title": "Email", "type": "string", "format": "email", "maxLength": 254, "minLength": 1}, "user": {"title": "User", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}, "granted_by": {"title": "Granted by", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}}}, "SharedLinkDetail": {"type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "resource_type": {"title": "Resource type", "type": "string", "enum": ["trace", "dashboard", "eval_run", "dataset", "project", "call_execution"], "readOnly": true}, "resource_id": {"title": "Resource id", "type": "string", "readOnly": true, "minLength": 1}, "token": {"title": "Token", "type": "string", "readOnly": true, "minLength": 1}, "access_type": {"title": "Access type", "type": "string", "enum": ["public", "restricted"], "readOnly": true}, "is_active": {"title": "Is active", "type": "boolean", "readOnly": true}, "expires_at": {"title": "Expires at", "type": "string", "format": "date-time", "readOnly": true, "x-nullable": true}, "created_by": {"title": "Created by", "type": "string", "format": "uuid", "readOnly": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "access_list": {"type": "array", "items": {"$ref": "#/definitions/SharedLinkAccess"}, "readOnly": true}, "share_url": {"title": "Share url", "type": "string", "readOnly": true}}}, "SharedLinkUpdate": {"type": "object", "properties": {"access_type": {"title": "Access type", "type": "string", "enum": ["public", "restricted"]}, "is_active": {"title": "Is active", "type": "boolean"}, "expires_at": {"title": "Expires at", "type": "string", "format": "date-time", "x-nullable": true}}}, "AddAccess": {"required": ["emails"], "type": "object", "properties": {"emails": {"type": "array", "items": {"type": "string", "format": "email", "minLength": 1}, "minItems": 1}}}, "SharedLinkResolvedTrace": {"required": ["id", "project_id"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "minLength": 1}, "name": {"title": "Name", "type": "string", "x-nullable": true}, "project_id": {"title": "Project id", "type": "string", "minLength": 1}, "input": {"title": "Input", "type": "object", "x-nullable": true}, "output": {"title": "Output", "type": "object", "x-nullable": true}, "metadata": {"title": "Metadata", "type": "object", "x-nullable": true}, "tags": {"title": "Tags", "type": "object", "x-nullable": true}, "created_at": {"title": "Created at", "type": "string", "minLength": 1, "x-nullable": true}}}, "SharedLinkResolvedSummary": {"type": "object", "properties": {"total_spans": {"title": "Total spans", "type": "integer"}}}, "SharedLinkResolvedData": {"type": "object", "properties": {"trace": {"$ref": "#/definitions/SharedLinkResolvedTrace"}, "observation_spans": {"type": "array", "items": {"type": "object"}}, "summary": {"$ref": "#/definitions/SharedLinkResolvedSummary"}, "id": {"title": "Id", "type": "string", "minLength": 1}, "name": {"title": "Name", "type": "string", "minLength": 1}, "trace_type": {"title": "Trace type", "type": "string", "minLength": 1}, "model_type": {"title": "Model type", "type": "string", "minLength": 1}, "metadata": {"title": "Metadata", "type": "object", "x-nullable": true}, "config": {"title": "Config", "type": "object", "x-nullable": true}, "session_config": {"title": "Session config", "type": "object", "x-nullable": true}, "tags": {"title": "Tags", "type": "object", "x-nullable": true}, "organization": {"title": "Organization", "type": "string", "minLength": 1}, "url_path": {"title": "Url path", "type": "string", "minLength": 1}, "description": {"title": "Description", "type": "string"}, "workspace": {"title": "Workspace", "type": "string", "minLength": 1}, "created_by": {"title": "Created by", "type": "object", "x-nullable": true}, "updated_by": {"title": "Updated by", "type": "object", "x-nullable": true}, "created_at": {"title": "Created at", "type": "string", "minLength": 1, "x-nullable": true}, "updated_at": {"title": "Updated at", "type": "string", "minLength": 1, "x-nullable": true}, "widgets": {"type": "array", "items": {"type": "object"}}, "widget_count": {"title": "Widget count", "type": "integer"}}}, "SharedLinkResolveResponse": {"required": ["resource_type", "resource_id", "access_type", "data"], "type": "object", "properties": {"resource_type": {"title": "Resource type", "type": "string", "enum": ["trace", "dashboard", "eval_run", "dataset", "project", "call_execution"]}, "resource_id": {"title": "Resource id", "type": "string", "minLength": 1}, "access_type": {"title": "Access type", "type": "string", "enum": ["public", "restricted"]}, "data": {"$ref": "#/definitions/SharedLinkResolvedData"}}}, "SharedLinkResolveError": {"type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": false}, "type": {"title": "Type", "type": "string", "enum": ["validation_error", "authentication_error", "payment_required", "entitlement_error", "permission_error", "not_found", "conflict", "client_error", "rate_limit", "server_error", "service_unavailable", "timeout", "api_error"], "x-nullable": true}, "code": {"title": "Code", "type": "string", "x-nullable": true}, "detail": {"title": "Detail", "type": "string", "x-nullable": true}, "result": {"title": "Result", "type": "string", "minLength": 1, "x-nullable": true}, "message": {"title": "Message", "type": "string", "minLength": 1, "x-nullable": true}, "error": {"title": "Error", "type": "string", "x-nullable": true}, "attr": {"title": "Attr", "type": "string", "x-nullable": true}, "details": {"title": "Details", "type": "object", "additionalProperties": {"type": "array", "items": {"type": "string", "minLength": 1}}}}}, "TraceAnnotationValueResponse": {"required": ["id", "annotation_label_name", "annotation_value", "annotation_label_id", "annotation_type"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "annotation_label_name": {"title": "Annotation label name", "type": "string", "minLength": 1}, "annotation_value": {"title": "Annotation value", "type": "object", "x-nullable": true}, "annotation_label_id": {"title": "Annotation label id", "type": "string", "format": "uuid"}, "annotator": {"title": "Annotator", "type": "string", "minLength": 1, "x-nullable": true}, "annotator_id": {"title": "Annotator id", "type": "string", "format": "uuid", "x-nullable": true}, "updated_by": {"title": "Updated by", "type": "string", "minLength": 1, "x-nullable": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "x-nullable": true}, "annotation_type": {"title": "Annotation type", "type": "string", "minLength": 1}, "settings": {"title": "Settings", "type": "object"}}}, "TraceAnnotationNoteResponse": {"required": ["id", "notes", "created_by_annotator", "created_by_user", "created_by_user_id", "updated_at"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "notes": {"title": "Notes", "type": "string"}, "created_by_annotator": {"title": "Created by annotator", "type": "string", "minLength": 1}, "created_by_user": {"title": "Created by user", "type": "string", "minLength": 1}, "created_by_user_id": {"title": "Created by user id", "type": "string", "format": "uuid"}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time"}}}, "GetTraceAnnotationValuesResult": {"required": ["annotations", "notes"], "type": "object", "properties": {"annotations": {"type": "array", "items": {"$ref": "#/definitions/TraceAnnotationValueResponse"}}, "notes": {"type": "array", "items": {"$ref": "#/definitions/TraceAnnotationNoteResponse"}}}}, "GetTraceAnnotationValuesResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/GetTraceAnnotationValuesResult"}}}, "TraceErrorAnalysisResult": {"required": ["analysis_exists", "trace_id"], "type": "object", "properties": {"analysis_exists": {"title": "Analysis exists", "type": "boolean"}, "trace_id": {"title": "Trace id", "type": "string", "minLength": 1}, "message": {"title": "Message", "type": "string", "minLength": 1}, "analysis_id": {"title": "Analysis id", "type": "string", "format": "uuid"}, "analysis_date": {"title": "Analysis date", "type": "string", "format": "date-time"}, "agent_version": {"title": "Agent version", "type": "string", "x-nullable": true}, "memory_enhanced": {"title": "Memory enhanced", "type": "boolean"}, "summary": {"title": "Summary", "type": "object"}, "errors": {"type": "array", "items": {"type": "object"}}, "grouped_errors": {"type": "array", "items": {"type": "object"}}, "scores": {"title": "Scores", "type": "object"}, "memory_context": {"title": "Memory context", "type": "object"}}}, "TraceErrorAnalysisResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/TraceErrorAnalysisResult"}}}, "TraceErrorTaskResponseResult": {"required": ["project_id", "project_name", "sampling_rate", "status"], "type": "object", "properties": {"project_id": {"title": "Project id", "type": "string", "format": "uuid"}, "project_name": {"title": "Project name", "type": "string", "minLength": 1}, "sampling_rate": {"title": "Sampling rate", "type": "number"}, "status": {"title": "Status", "type": "string", "enum": ["running", "waiting", "paused"]}, "is_active": {"title": "Is active", "type": "boolean"}, "total_traces_analyzed": {"title": "Total traces analyzed", "type": "integer"}, "total_errors_found": {"title": "Total errors found", "type": "integer"}, "failed_analyses": {"title": "Failed analyses", "type": "integer"}, "last_run_at": {"title": "Last run at", "type": "string", "format": "date-time", "x-nullable": true}, "created": {"title": "Created", "type": "boolean"}}}, "TraceErrorTaskResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/TraceErrorTaskResponseResult"}}}, "TraceErrorTaskUpdateRequest": {"required": ["sampling_rate"], "type": "object", "properties": {"sampling_rate": {"title": "Sampling rate", "type": "number", "maximum": 1, "minimum": 0}, "status": {"title": "Status", "type": "string", "enum": ["waiting", "paused"]}}}, "TraceErrorTaskUpdateResult": {"required": ["message", "project_id", "project_name", "sampling_rate", "status", "action", "old_rate", "new_rate"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}, "project_id": {"title": "Project id", "type": "string", "format": "uuid"}, "project_name": {"title": "Project name", "type": "string", "minLength": 1}, "sampling_rate": {"title": "Sampling rate", "type": "number"}, "status": {"title": "Status", "type": "string", "enum": ["running", "waiting", "paused"]}, "action": {"title": "Action", "type": "string", "minLength": 1}, "old_rate": {"title": "Old rate", "type": "number"}, "new_rate": {"title": "New rate", "type": "number"}}}, "TraceErrorTaskUpdateResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/TraceErrorTaskUpdateResult"}}}, "TraceSession": {"required": ["project"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "project": {"title": "Project", "type": "string", "format": "uuid"}, "bookmarked": {"title": "Bookmarked", "type": "boolean"}, "name": {"title": "Name", "type": "string", "maxLength": 255, "x-nullable": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}}}, "TraceSessionGraphDataRequest": {"required": ["project_id", "req_data_config"], "type": "object", "properties": {"project_id": {"title": "Project id", "type": "string", "format": "uuid"}, "filters": {"type": "array", "items": {"type": "object", "properties": {"column_id": {"type": "string", "description": "Column or attribute id to filter on."}, "property_id": {"type": "string", "description": "Optional stable namespaced Property Registry identity."}, "display_name": {"type": "string", "description": "Optional UI label for chips and saved views."}, "source": {"type": "string", "description": "Optional source surface for mixed-source filters, for example traces, datasets, or simulation."}, "output_type": {"type": "string", "description": "Optional metric output type metadata used by eval and annotation filters."}, "filter_config": {"type": "object", "properties": {"filter_type": {"type": "string", "description": "Canonical field type, for example text, number, boolean, datetime, categorical, thumbs, annotator, array, or map. Legacy json is value-sensitive for SPAN_ATTRIBUTE filters: list values become array and object values become map."}, "filter_op": {"type": "string", "description": "Canonical operator from api_contracts/filter_contract.json, for example equals, not_equals, in, not_in, between, not_between, is_null, or is_not_null."}, "filter_value": {"description": "Scalar, list, range tuple, boolean, or null depending on filter_op and filter_type."}, "col_type": {"type": "string", "description": "Column family such as SYSTEM_METRIC, SPAN_ATTRIBUTE, EVAL_METRIC, ANNOTATION, or NORMAL."}, "attribute_value_types": {"type": "array", "items": {"type": "string", "enum": ["string", "number", "boolean"], "x-nullable": true}, "description": "Optional storage-family provenance aligned one-for-one with filter_value for mixed SPAN_ATTRIBUTE in/not_in filters. Null entries retain filter_type semantics for manually entered values."}}, "required": ["filter_type", "filter_op"], "additionalProperties": false}}, "required": ["column_id", "filter_config"], "additionalProperties": false}, "default": [], "description": "On trace, span, session, graph, and eval-task bounded reads, created_at/start_time datetime filters support equals, greater_than, greater_than_or_equal, less_than, less_than_or_equal, between, not_equals, not_between, is_null, and is_not_null. Missing bounds retain the finite default window: 30 days ago for the lower bound and request-time now for the upper bound. Between and not_between use half-open [start, end) ranges; not_equals excludes one DateTime64(6) microsecond. Because the physical created_at/start_time field is non-null, is_null returns an exact empty result without a ClickHouse read and is_not_null preserves the base window. Valid contradictions also return an exact empty result.", "x-boundedDatetimeOperators": ["between", "equals", "greater_than", "greater_than_or_equal", "is_not_null", "is_null", "less_than", "less_than_or_equal", "not_between", "not_equals"]}, "interval": {"title": "Interval", "type": "string", "enum": ["hour", "day", "week", "month"], "default": "day"}, "property": {"title": "Property", "description": "Accepted for older clients and ignored for SYSTEM_METRIC graphs: each system metric has one statistic, named by the response's metric_statistic. Latency is always the mean (avg) span latency.", "type": "string", "default": "average"}, "req_data_config": {"title": "Req data config", "type": "object", "properties": {"id": {"type": "string"}, "type": {"type": "string", "enum": ["SYSTEM_METRIC", "EVAL", "ANNOTATION"]}, "output_type": {"type": "string"}, "eval_output_type": {"type": "string"}, "choices": {"type": "array", "items": {"type": "string"}}, "value": {}, "filter_op": {"type": "string"}, "filter_value": {}, "property_id": {"type": "string", "description": "Stable Property Registry identity."}, "source": {"type": "string", "enum": ["traces", "sessions"]}}, "required": ["id", "type"], "additionalProperties": false}}}, "ObserveGraphDataErrorResult": {"required": ["metric_name", "data", "message"], "type": "object", "properties": {"metric_name": {"title": "Metric name", "type": "string"}, "name": {"title": "Name", "type": "string"}, "metric_statistic": {"title": "Metric statistic", "description": "Statistic of the published system-metric series per bucket. Latency is always the mean (avg) of span latency, filtered or not. Absent for eval and annotation series.", "type": "string", "enum": ["count", "sum", "mean", "percentage"]}, "data": {"description": "Graph points. A sampled series is published only with complete declared stratum coverage; degraded reads never publish points.", "type": "array", "items": {"$ref": "#/definitions/ObserveGraphDataPoint"}}, "query_complete": {"title": "Query complete", "type": "boolean"}, "query_exact": {"title": "Query exact", "type": "boolean"}, "query_provenance": {"title": "Query provenance", "type": "string", "enum": ["materialized_rollup", "bounded_candidates", "exact_snapshot"]}, "query_status": {"title": "Query status", "type": "string", "enum": ["complete", "sampled", "degraded", "pending"]}, "query_error_code": {"title": "Query error code", "type": "string", "enum": ["sample_limit", "read_budget_exceeded", "query_failed"]}, "query_window_start": {"title": "Query window start", "type": "string", "minLength": 1}, "query_window_end": {"title": "Query window end", "type": "string", "minLength": 1}, "query_applied_filter_version": {"title": "Query applied filter version", "type": "string", "enum": ["canonical-json-sha256-v1"]}, "query_applied_filter_sha256": {"title": "Query applied filter sha256", "type": "string", "pattern": "^[0-9a-f]{64}$", "minLength": 1}, "query_applied_filter_count": {"title": "Query applied filter count", "type": "integer", "minimum": 0}, "query_sample_size": {"title": "Query sample size", "type": "integer", "minimum": 0}, "query_count": {"title": "Query count", "type": "integer", "minimum": 0}, "query_elapsed_ms": {"title": "Query elapsed ms", "type": "number", "minimum": 0}, "query_rows_returned": {"title": "Query rows returned", "type": "integer", "minimum": 0}, "query_result_bytes": {"title": "Query result bytes", "type": "integer", "minimum": 0}, "query_total_rows_lower_bound": {"title": "Query total rows lower bound", "type": "integer", "minimum": 0}, "query_sampled": {"title": "Query sampled", "type": "boolean"}, "query_completed_at": {"title": "Query completed at", "type": "string", "format": "date-time"}, "query_cached": {"title": "Query cached", "type": "boolean"}, "query_refresh_failed": {"title": "Query refresh failed", "type": "boolean"}, "query_refreshing": {"title": "Query refreshing", "type": "boolean"}, "query_snapshot_version_ceiling": {"title": "Query snapshot version ceiling", "type": "integer", "minimum": 1}, "query_sampling_strategy": {"title": "Query sampling strategy", "type": "string", "enum": ["time_stratified_latest_state", "bounded_latest_state_prefix", "newest_trace_candidates"]}, "query_sampling_strata": {"title": "Query sampling strata", "type": "integer", "minimum": 0}, "query_sampling_strata_completed": {"title": "Query sampling strata completed", "type": "integer", "minimum": 0}, "message": {"title": "Message", "type": "string", "minLength": 1}}}, "ObserveGraphDataErrorResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": false}, "type": {"title": "Type", "type": "string", "enum": ["validation_error", "authentication_error", "payment_required", "entitlement_error", "permission_error", "not_found", "conflict", "client_error", "rate_limit", "server_error", "service_unavailable", "timeout", "api_error"], "x-nullable": true}, "code": {"title": "Code", "type": "string", "x-nullable": true}, "detail": {"title": "Detail", "type": "string", "x-nullable": true}, "result": {"$ref": "#/definitions/ObserveGraphDataErrorResult"}, "message": {"title": "Message", "type": "string", "x-nullable": true}, "error": {"title": "Error", "type": "string", "x-nullable": true}, "attr": {"title": "Attr", "type": "string", "x-nullable": true}, "details": {"title": "Details", "type": "object", "additionalProperties": {"type": "array", "items": {"type": "string", "minLength": 1}}}}}, "TraceSessionListMetadata": {"required": ["total_rows"], "type": "object", "properties": {"total_rows": {"title": "Total rows", "type": "integer"}, "total_rows_exact": {"title": "Total rows exact", "type": "integer", "x-nullable": true}, "total_rows_is_lower_bound": {"title": "Total rows is lower bound", "type": "boolean"}, "has_more": {"title": "Has more", "type": "boolean"}, "next_cursor": {"title": "Next cursor", "type": "string", "minLength": 1, "x-nullable": true}, "next_cursor_fingerprint": {"title": "Next cursor fingerprint", "type": "string", "pattern": "^[0-9a-f]{64}$", "minLength": 1, "x-nullable": true}, "query_complete": {"title": "Query complete", "type": "boolean"}, "query_status": {"title": "Query status", "type": "string", "enum": ["complete", "degraded"]}, "query_error_code": {"title": "Query error code", "type": "string", "minLength": 1, "x-nullable": true}, "query_elapsed_ms": {"title": "Query elapsed ms", "type": "number"}, "query_count": {"title": "Query count", "type": "integer", "minimum": 0}, "query_rows_returned": {"title": "Query rows returned", "type": "integer", "minimum": 0}, "query_result_payload_bytes": {"title": "Query result payload bytes", "type": "integer", "minimum": 0}, "query_applied_filter_version": {"title": "Query applied filter version", "type": "string", "enum": ["canonical-json-sha256-v1"]}, "query_applied_filter_sha256": {"title": "Query applied filter sha256", "type": "string", "pattern": "^[0-9a-f]{64}$", "minLength": 1}, "query_applied_filter_count": {"title": "Query applied filter count", "type": "integer", "minimum": 0}, "query_exact": {"title": "Query exact", "type": "boolean"}, "ordering_exact": {"title": "Ordering exact", "type": "boolean"}, "query_provenance": {"title": "Query provenance", "type": "string", "enum": ["spans_per_session_candidate"]}}}, "TraceSessionTableRow": {"type": "object", "properties": {"session_id": {"title": "Session id", "type": "string", "x-nullable": true}, "session_name": {"title": "Session name", "type": "string", "x-nullable": true}, "project_id": {"title": "Project id", "type": "string", "format": "uuid", "x-nullable": true}, "start_time": {"title": "Start time", "type": "string", "format": "date-time", "x-nullable": true}, "end_time": {"title": "End time", "type": "string", "format": "date-time", "x-nullable": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "x-nullable": true}, "duration": {"title": "Duration", "type": "number", "x-nullable": true}, "total_cost": {"title": "Total cost", "type": "number", "x-nullable": true}, "total_tokens": {"title": "Total tokens", "type": "integer", "x-nullable": true}, "total_traces_count": {"title": "Total traces count", "type": "integer", "x-nullable": true}, "first_message": {"title": "First message", "type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}, "last_message": {"title": "Last message", "type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}, "user_id": {"title": "User id", "type": "string", "x-nullable": true}, "user_id_type": {"title": "User id type", "type": "string", "x-nullable": true}, "user_id_hash": {"title": "User id hash", "type": "string", "x-nullable": true}}, "additionalProperties": {"x-json-value": true, "description": "Any valid JSON value.", "x-nullable": true}}, "TraceObserveColumnConfig": {"required": ["id", "name", "is_visible"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "minLength": 1}, "name": {"title": "Name", "type": "string", "minLength": 1}, "is_visible": {"title": "Is visible", "type": "boolean"}, "group_by": {"title": "Group by", "type": "string", "minLength": 1, "x-nullable": true}, "output_type": {"title": "Output type", "type": "string", "minLength": 1, "x-nullable": true}, "reverse_output": {"title": "Reverse output", "type": "boolean", "x-nullable": true}, "annotation_label_type": {"title": "Annotation label type", "type": "string", "minLength": 1, "x-nullable": true}, "choices": {"type": "array", "items": {"type": "string", "minLength": 1, "x-nullable": true}, "x-nullable": true}, "settings": {"title": "Settings", "type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}, "choices_map": {"title": "Choices map", "type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}, "eval_template_id": {"title": "Eval template id", "type": "string", "minLength": 1, "x-nullable": true}, "target_type": {"title": "Target type", "type": "string", "enum": ["span", "trace"], "x-nullable": true}, "annotators": {"title": "Annotators", "type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}, "source_field": {"title": "Source field", "type": "string", "minLength": 1, "x-nullable": true}, "parent_eval_id": {"title": "Parent eval id", "type": "string", "minLength": 1, "x-nullable": true}, "property_id": {"title": "Property id", "type": "string", "minLength": 1, "x-nullable": true}, "property_kind": {"title": "Property kind", "type": "string", "minLength": 1, "x-nullable": true}, "property_source": {"title": "Property source", "type": "string", "minLength": 1, "x-nullable": true}}}, "TraceSessionListResult": {"required": ["metadata", "table", "config"], "type": "object", "properties": {"metadata": {"$ref": "#/definitions/TraceSessionListMetadata"}, "table": {"type": "array", "items": {"$ref": "#/definitions/TraceSessionTableRow"}}, "config": {"type": "array", "items": {"$ref": "#/definitions/TraceObserveColumnConfig"}}}}, "TraceSessionListResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/TraceSessionListResult"}}}, "TraceSessionListQuery": {"type": "object", "properties": {"project_id": {"title": "Project id", "type": "string", "format": "uuid"}, "user_id": {"title": "User id", "type": "string"}, "bookmarked": {"title": "Bookmarked", "type": "boolean", "x-nullable": true}, "filters": {"title": "Filters", "type": "string", "default": "[]", "minLength": 1, "description": "JSON-encoded canonical filter list. On trace, span, session, graph, and eval-task bounded reads, created_at/start_time datetime filters support equals, greater_than, greater_than_or_equal, less_than, less_than_or_equal, between, not_equals, not_between, is_null, and is_not_null. Missing bounds retain the finite default window: 30 days ago for the lower bound and request-time now for the upper bound. Between and not_between use half-open [start, end) ranges; not_equals excludes one DateTime64(6) microsecond. Because the physical created_at/start_time field is non-null, is_null returns an exact empty result without a ClickHouse read and is_not_null preserves the base window. Valid contradictions also return an exact empty result.", "x-boundedDatetimeOperators": ["between", "equals", "greater_than", "greater_than_or_equal", "is_not_null", "is_null", "less_than", "less_than_or_equal", "not_between", "not_equals"]}, "sort_params": {"title": "Sort params", "type": "string", "default": "[]", "minLength": 1, "description": "JSON-encoded list of sort params."}, "page_number": {"title": "Page number", "description": "Zero-based numbered page. Pages whose required ordered work exceeds the finite read contract return HTTP 422 with code page_depth_exceeded; request an earlier page or narrow the time range.", "type": "integer", "default": 0, "minimum": 0}, "page_size": {"title": "Page size", "type": "integer", "default": 30, "maximum": 500, "minimum": 1}, "cursor": {"title": "Cursor", "description": "Opaque continuation token returned by the previous page. When supplied, do not also send the numbered-page parameter.", "type": "string", "maxLength": 4096, "minLength": 1}, "cursor_mode": {"title": "Cursor mode", "type": "boolean", "default": false}, "interval": {"title": "Interval", "type": "string"}, "allow_sampled": {"title": "Allow sampled", "description": "Omit for backward-compatible complete bounded pages, which may label total_rows as a lower bound. Send false to require an exact total, or true to opt in explicitly to lower-bound totals.", "type": "boolean"}}}, "TraceSessionDetailResult": {"required": ["session_metadata", "response", "next"], "type": "object", "properties": {"session_metadata": {"title": "Session metadata", "type": "object", "additionalProperties": true}, "response": {"type": "array", "items": {"type": "object", "additionalProperties": true}}, "next": {"title": "Next", "type": "boolean"}}}, "TraceSessionDetailResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/TraceSessionDetailResult"}}}, "TraceSessionRetrieveQuery": {"type": "object", "properties": {"navigation_context": {"title": "Navigation context", "type": "string", "description": "JSON-encoded object."}, "user_id": {"title": "User id", "type": "string"}, "filters": {"title": "Filters", "type": "string", "default": "[]", "minLength": 1, "description": "JSON-encoded canonical filter list."}, "sort_params": {"title": "Sort params", "type": "string", "default": "[]", "minLength": 1, "description": "JSON-encoded list of sort params."}, "page_number": {"title": "Page number", "type": "integer", "default": 0, "minimum": 0}, "page_size": {"title": "Page size", "type": "integer", "default": 30, "maximum": 500, "minimum": 1}}}, "Trace": {"required": ["project"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "project": {"title": "Project", "type": "string", "format": "uuid"}, "project_version": {"title": "Project version", "type": "string", "format": "uuid", "x-nullable": true}, "name": {"title": "Name", "type": "string", "maxLength": 2000, "x-nullable": true}, "metadata": {"title": "Metadata", "type": "object", "x-nullable": true}, "input": {"title": "Input", "type": "object", "x-nullable": true}, "output": {"title": "Output", "type": "object", "x-nullable": true}, "error": {"title": "Error", "type": "object", "x-nullable": true}, "session": {"title": "Session", "type": "string", "format": "uuid", "x-nullable": true}, "external_id": {"title": "External id", "type": "string", "maxLength": 255, "x-nullable": true}, "tags": {"title": "Tags", "type": "object"}}}, "TraceAgentGraphNode": {"required": ["id", "name", "type", "span_count", "avg_latency_ms", "total_tokens", "total_cost", "error_count", "trace_count"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "minLength": 1}, "name": {"title": "Name", "type": "string", "minLength": 1}, "type": {"title": "Type", "type": "string", "minLength": 1}, "span_count": {"title": "Span count", "type": "integer", "minimum": 0}, "avg_latency_ms": {"title": "Avg latency ms", "type": "number", "minimum": 0}, "total_tokens": {"title": "Total tokens", "type": "integer", "minimum": 0}, "total_cost": {"title": "Total cost", "type": "number", "minimum": 0}, "error_count": {"title": "Error count", "type": "integer", "minimum": 0}, "trace_count": {"title": "Trace count", "type": "integer", "minimum": 0, "x-nullable": true}, "trace_count_exact": {"title": "Trace count exact", "type": "boolean"}, "is_aggregate": {"title": "Is aggregate", "type": "boolean"}, "member_count": {"title": "Member count", "type": "integer", "minimum": 0}}}, "TraceAgentGraphEdge": {"required": ["source", "target", "transition_count", "avg_latency_ms", "total_tokens", "total_cost", "error_count", "trace_count", "is_self_loop"], "type": "object", "properties": {"source": {"title": "Source", "type": "string", "minLength": 1}, "target": {"title": "Target", "type": "string", "minLength": 1}, "transition_count": {"title": "Transition count", "type": "integer", "minimum": 0}, "avg_latency_ms": {"title": "Avg latency ms", "type": "number", "minimum": 0}, "total_tokens": {"title": "Total tokens", "type": "integer", "minimum": 0}, "total_cost": {"title": "Total cost", "type": "number", "minimum": 0}, "error_count": {"title": "Error count", "type": "integer", "minimum": 0}, "trace_count": {"title": "Trace count", "type": "integer", "minimum": 0, "x-nullable": true}, "trace_count_exact": {"title": "Trace count exact", "type": "boolean"}, "is_self_loop": {"title": "Is self loop", "type": "boolean"}, "is_aggregate": {"title": "Is aggregate", "type": "boolean"}}}, "TraceAgentGraphResult": {"required": ["nodes", "edges", "path_edges"], "type": "object", "properties": {"nodes": {"type": "array", "items": {"$ref": "#/definitions/TraceAgentGraphNode"}}, "edges": {"type": "array", "items": {"$ref": "#/definitions/TraceAgentGraphEdge"}}, "path_edges": {"type": "array", "items": {"$ref": "#/definitions/TraceAgentGraphEdge"}}, "graph_collapsed": {"title": "Graph collapsed", "type": "boolean"}, "graph_node_limit": {"title": "Graph node limit", "type": "integer", "minimum": 1}, "omitted_node_count": {"title": "Omitted node count", "type": "integer", "minimum": 0}, "query_complete": {"title": "Query complete", "type": "boolean"}, "query_status": {"title": "Query status", "type": "string", "enum": ["complete", "pending"]}, "query_sampled": {"title": "Query sampled", "type": "boolean"}, "query_count": {"title": "Query count", "type": "integer", "minimum": 0}, "query_rows_returned": {"title": "Query rows returned", "type": "integer", "minimum": 0}, "query_elapsed_ms": {"title": "Query elapsed ms", "type": "number", "minimum": 0}, "query_completed_at": {"title": "Query completed at", "type": "string", "format": "date-time"}, "query_cached": {"title": "Query cached", "type": "boolean"}, "query_refresh_failed": {"title": "Query refresh failed", "type": "boolean"}, "query_refreshing": {"title": "Query refreshing", "type": "boolean"}}}, "TraceAgentGraphResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/TraceAgentGraphResult"}}}, "TraceAgentGraphQuery": {"required": ["project_id"], "type": "object", "properties": {"project_id": {"title": "Project id", "type": "string", "format": "uuid"}, "filters": {"title": "Filters", "type": "string", "default": "[]", "minLength": 1, "description": "JSON-encoded canonical filter list."}, "refresh": {"title": "Refresh", "description": "Recompute and atomically replace the last exact graph snapshot.", "type": "boolean", "default": false}}}, "TraceGraphDataRequest": {"required": ["project_id", "req_data_config"], "type": "object", "properties": {"project_id": {"title": "Project id", "type": "string", "format": "uuid"}, "filters": {"type": "array", "items": {"type": "object", "properties": {"column_id": {"type": "string", "description": "Column or attribute id to filter on."}, "property_id": {"type": "string", "description": "Optional stable namespaced Property Registry identity."}, "display_name": {"type": "string", "description": "Optional UI label for chips and saved views."}, "source": {"type": "string", "description": "Optional source surface for mixed-source filters, for example traces, datasets, or simulation."}, "output_type": {"type": "string", "description": "Optional metric output type metadata used by eval and annotation filters."}, "filter_config": {"type": "object", "properties": {"filter_type": {"type": "string", "description": "Canonical field type, for example text, number, boolean, datetime, categorical, thumbs, annotator, array, or map. Legacy json is value-sensitive for SPAN_ATTRIBUTE filters: list values become array and object values become map."}, "filter_op": {"type": "string", "description": "Canonical operator from api_contracts/filter_contract.json, for example equals, not_equals, in, not_in, between, not_between, is_null, or is_not_null."}, "filter_value": {"description": "Scalar, list, range tuple, boolean, or null depending on filter_op and filter_type."}, "col_type": {"type": "string", "description": "Column family such as SYSTEM_METRIC, SPAN_ATTRIBUTE, EVAL_METRIC, ANNOTATION, or NORMAL."}, "attribute_value_types": {"type": "array", "items": {"type": "string", "enum": ["string", "number", "boolean"], "x-nullable": true}, "description": "Optional storage-family provenance aligned one-for-one with filter_value for mixed SPAN_ATTRIBUTE in/not_in filters. Null entries retain filter_type semantics for manually entered values."}}, "required": ["filter_type", "filter_op"], "additionalProperties": false}}, "required": ["column_id", "filter_config"], "additionalProperties": false}, "default": [], "description": "On trace, span, session, graph, and eval-task bounded reads, created_at/start_time datetime filters support equals, greater_than, greater_than_or_equal, less_than, less_than_or_equal, between, not_equals, not_between, is_null, and is_not_null. Missing bounds retain the finite default window: 30 days ago for the lower bound and request-time now for the upper bound. Between and not_between use half-open [start, end) ranges; not_equals excludes one DateTime64(6) microsecond. Because the physical created_at/start_time field is non-null, is_null returns an exact empty result without a ClickHouse read and is_not_null preserves the base window. Valid contradictions also return an exact empty result.", "x-boundedDatetimeOperators": ["between", "equals", "greater_than", "greater_than_or_equal", "is_not_null", "is_null", "less_than", "less_than_or_equal", "not_between", "not_equals"]}, "interval": {"title": "Interval", "type": "string", "enum": ["hour", "day", "week", "month"], "default": "day"}, "property": {"title": "Property", "description": "Accepted for older clients and ignored for SYSTEM_METRIC graphs: each system metric has one statistic, named by the response's metric_statistic. Latency is always the mean (avg) span latency.", "type": "string", "default": "average"}, "req_data_config": {"title": "Req data config", "type": "object", "properties": {"id": {"type": "string"}, "type": {"type": "string", "enum": ["SYSTEM_METRIC", "EVAL", "ANNOTATION"]}, "output_type": {"type": "string"}, "eval_output_type": {"type": "string"}, "choices": {"type": "array", "items": {"type": "string"}}, "value": {}, "filter_op": {"type": "string"}, "filter_value": {}, "property_id": {"type": "string", "description": "Stable Property Registry identity."}, "source": {"type": "string", "enum": ["traces", "sessions"]}}, "required": ["id", "type"], "additionalProperties": false}, "observe_type": {"title": "Observe type", "description": "Population the graph counts: every trace, or only voice calls (traces whose root span is a conversation), exactly as list_voice_calls selects them.", "type": "string", "enum": ["trace", "voice"], "default": "trace"}, "remove_simulation_calls": {"title": "Remove simulation calls", "description": "Voice graphs only: exclude calls placed by a simulator phone, exactly as list_voice_calls' remove_simulation_calls does.", "type": "boolean", "default": false}}}, "TracePropertiesResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"type": "array", "items": {"type": "string", "minLength": 1}}}}, "TraceIndexQuery": {"required": ["trace_id", "project_version_id"], "type": "object", "properties": {"trace_id": {"title": "Trace id", "type": "string", "format": "uuid"}, "project_version_id": {"title": "Project version id", "type": "string", "format": "uuid"}, "filters": {"title": "Filters", "type": "string", "default": "[]", "minLength": 1, "description": "JSON-encoded canonical filter list."}}}, "TraceObserveIndexQuery": {"required": ["trace_id", "project_id"], "type": "object", "properties": {"trace_id": {"title": "Trace id", "type": "string", "format": "uuid"}, "project_id": {"title": "Project id", "type": "string", "format": "uuid"}, "filters": {"title": "Filters", "type": "string", "default": "[]", "minLength": 1, "description": "JSON-encoded canonical filter list."}}}, "TraceObserveListMetadata": {"required": ["total_rows"], "type": "object", "properties": {"total_rows": {"title": "Total rows", "type": "integer"}, "total_rows_exact": {"title": "Total rows exact", "type": "integer", "x-nullable": true}, "total_rows_is_lower_bound": {"title": "Total rows is lower bound", "type": "boolean"}, "has_more": {"title": "Has more", "type": "boolean"}, "next_cursor": {"title": "Next cursor", "type": "string", "minLength": 1, "x-nullable": true}, "next_cursor_fingerprint": {"title": "Next cursor fingerprint", "type": "string", "pattern": "^[0-9a-f]{64}$", "minLength": 1, "x-nullable": true}, "query_complete": {"title": "Query complete", "type": "boolean"}, "query_status": {"title": "Query status", "type": "string", "enum": ["complete", "degraded"]}, "query_error_code": {"title": "Query error code", "type": "string", "minLength": 1, "x-nullable": true}, "query_elapsed_ms": {"title": "Query elapsed ms", "type": "number"}, "query_count": {"title": "Query count", "type": "integer", "minimum": 0}, "query_rows_returned": {"title": "Query rows returned", "type": "integer", "minimum": 0}, "query_result_payload_bytes": {"title": "Query result payload bytes", "type": "integer", "minimum": 0}, "query_applied_filter_version": {"title": "Query applied filter version", "type": "string", "enum": ["canonical-json-sha256-v1"]}, "query_applied_filter_sha256": {"title": "Query applied filter sha256", "type": "string", "pattern": "^[0-9a-f]{64}$", "minLength": 1}, "query_applied_filter_count": {"title": "Query applied filter count", "type": "integer", "minimum": 0}, "query_exact": {"title": "Query exact", "type": "boolean"}, "ordering_exact": {"title": "Ordering exact", "type": "boolean"}}}, "TracePrototypeListResult": {"required": ["column_config", "metadata", "table"], "type": "object", "properties": {"column_config": {"type": "array", "items": {"$ref": "#/definitions/TraceObserveColumnConfig"}}, "metadata": {"$ref": "#/definitions/TraceObserveListMetadata"}, "table": {"type": "array", "items": {"type": "object", "additionalProperties": {"type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}}}}}, "TracePrototypeListResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/TracePrototypeListResult"}}}, "TraceListQuery": {"required": ["project_version_id"], "type": "object", "properties": {"project_version_id": {"title": "Project version id", "type": "string", "format": "uuid"}, "trace_ids": {"title": "Trace ids", "type": "string", "default": []}, "filters": {"title": "Filters", "type": "string", "default": "[]", "minLength": 1, "description": "JSON-encoded canonical filter list. On trace, span, session, graph, and eval-task bounded reads, created_at/start_time datetime filters support equals, greater_than, greater_than_or_equal, less_than, less_than_or_equal, between, not_equals, not_between, is_null, and is_not_null. Missing bounds retain the finite default window: 30 days ago for the lower bound and request-time now for the upper bound. Between and not_between use half-open [start, end) ranges; not_equals excludes one DateTime64(6) microsecond. Because the physical created_at/start_time field is non-null, is_null returns an exact empty result without a ClickHouse read and is_not_null preserves the base window. Valid contradictions also return an exact empty result.", "x-boundedDatetimeOperators": ["between", "equals", "greater_than", "greater_than_or_equal", "is_not_null", "is_null", "less_than", "less_than_or_equal", "not_between", "not_equals"]}, "sort_params": {"title": "Sort params", "type": "string", "default": "[]", "minLength": 1, "description": "JSON-encoded list of sort params."}, "page_number": {"title": "Page number", "description": "Zero-based numbered page. Pages whose required ordered work exceeds the finite read contract return HTTP 422 with code page_depth_exceeded; request an earlier page or narrow the time range.", "type": "integer", "default": 0, "minimum": 0}, "page_size": {"title": "Page size", "type": "integer", "default": 30, "maximum": 500, "minimum": 1}, "allow_sampled": {"title": "Allow sampled", "description": "Omit for backward-compatible complete bounded pages, which may label total_rows as a lower bound. Send false to require an exact total, or true to opt in explicitly to lower-bound totals.", "type": "boolean"}}}, "TraceObserveListResult": {"required": ["metadata", "table", "config"], "type": "object", "properties": {"metadata": {"$ref": "#/definitions/TraceObserveListMetadata"}, "table": {"description": "Observe eval bool and choice cells are counts of completed attempts; a detail eval_rollup separately selects the latest completed row per span.", "type": "array", "items": {"type": "object", "additionalProperties": {"type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}}}, "config": {"type": "array", "items": {"$ref": "#/definitions/TraceObserveColumnConfig"}}}}, "TraceObserveListResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/TraceObserveListResult"}}}, "TraceObserveListQuery": {"type": "object", "properties": {"project_id": {"title": "Project id", "type": "string", "format": "uuid"}, "project_version_id": {"title": "Project version id", "type": "string", "format": "uuid"}, "session_id": {"title": "Session id", "type": "string", "format": "uuid"}, "filters": {"title": "Filters", "type": "string", "default": "[]", "minLength": 1, "description": "JSON-encoded canonical filter list. On trace, span, session, graph, and eval-task bounded reads, created_at/start_time datetime filters support equals, greater_than, greater_than_or_equal, less_than, less_than_or_equal, between, not_equals, not_between, is_null, and is_not_null. Missing bounds retain the finite default window: 30 days ago for the lower bound and request-time now for the upper bound. Between and not_between use half-open [start, end) ranges; not_equals excludes one DateTime64(6) microsecond. Because the physical created_at/start_time field is non-null, is_null returns an exact empty result without a ClickHouse read and is_not_null preserves the base window. Valid contradictions also return an exact empty result.", "x-boundedDatetimeOperators": ["between", "equals", "greater_than", "greater_than_or_equal", "is_not_null", "is_null", "less_than", "less_than_or_equal", "not_between", "not_equals"]}, "page_number": {"title": "Page number", "description": "Zero-based numbered page. Pages whose required ordered work exceeds the finite read contract return HTTP 422 with code page_depth_exceeded; request an earlier page or narrow the time range.", "type": "integer", "default": 0, "minimum": 0}, "page_size": {"title": "Page size", "type": "integer", "default": 30, "maximum": 500, "minimum": 1}, "cursor": {"title": "Cursor", "description": "Opaque continuation token returned by the previous page. When supplied, do not also send the numbered-page parameter.", "type": "string", "maxLength": 4096, "minLength": 1}, "cursor_mode": {"title": "Cursor mode", "type": "boolean", "default": false}, "attribute_keys": {"title": "Attribute keys", "description": "JSON-encoded list of custom attribute keys to hydrate; only requested keys are returned. Each key resolves to its latest live span value by (start_time, span_id). Comma-separated simple keys remain supported.", "type": "string"}, "allow_sampled": {"title": "Allow sampled", "description": "Omit for backward-compatible complete bounded pages, which may label total_rows as a lower bound. Send false to require an exact total. Send true to opt in explicitly to lower-bound totals and, on the first page, a clearly labelled bounded partial result when the full ordered prefix cannot be proven inside the read budget.", "type": "boolean"}, "interval": {"title": "Interval", "type": "string"}}}, "TraceVoiceCallListResponse": {"required": ["count", "count_is_lower_bound", "total_pages", "current_page", "next", "previous", "results", "config", "has_more", "query_complete", "query_status"], "type": "object", "properties": {"count": {"title": "Count", "type": "integer", "minimum": 0}, "count_is_lower_bound": {"title": "Count is lower bound", "type": "boolean"}, "total_pages": {"title": "Total pages", "type": "integer", "minimum": 0}, "current_page": {"title": "Current page", "type": "integer", "minimum": 1}, "next": {"title": "Next", "type": "integer", "minimum": 1, "x-nullable": true}, "previous": {"title": "Previous", "type": "integer", "minimum": 1, "x-nullable": true}, "results": {"type": "array", "items": {"type": "object", "additionalProperties": {"type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}}}, "config": {"type": "array", "items": {"$ref": "#/definitions/TraceObserveColumnConfig"}}, "has_more": {"title": "Has more", "type": "boolean"}, "next_cursor": {"title": "Next cursor", "type": "string", "minLength": 1, "x-nullable": true}, "next_cursor_fingerprint": {"title": "Next cursor fingerprint", "type": "string", "pattern": "^[0-9a-f]{64}$", "minLength": 1, "x-nullable": true}, "query_complete": {"title": "Query complete", "type": "boolean"}, "query_status": {"title": "Query status", "type": "string", "enum": ["complete", "degraded"]}, "query_exact": {"title": "Query exact", "type": "boolean"}, "ordering_exact": {"title": "Ordering exact", "type": "boolean"}, "query_error_code": {"title": "Query error code", "type": "string", "minLength": 1}, "query_count": {"title": "Query count", "type": "integer", "minimum": 0}, "query_applied_filter_version": {"title": "Query applied filter version", "type": "string", "enum": ["canonical-json-sha256-v1"]}, "query_applied_filter_sha256": {"title": "Query applied filter sha256", "type": "string", "pattern": "^[0-9a-f]{64}$", "minLength": 1}, "query_applied_filter_count": {"title": "Query applied filter count", "type": "integer", "minimum": 0}}}, "TraceVoiceCallListQuery": {"required": ["project_id"], "type": "object", "properties": {"project_id": {"title": "Project id", "type": "string", "format": "uuid"}, "filters": {"title": "Filters", "type": "string", "default": "[]", "minLength": 1, "description": "JSON-encoded canonical filter list."}, "attribute_keys": {"title": "Attribute keys", "description": "JSON-encoded list of custom attribute keys to include as CSV columns. Comma-separated simple keys remain supported.", "type": "string"}, "page": {"title": "Page", "description": "One-based numbered page. Pages whose required ordered work exceeds the finite read contract return HTTP 422 with code page_depth_exceeded; request an earlier page, use the additive continuation cursor, or narrow the time range.", "type": "integer", "default": 1, "minimum": 1}, "page_size": {"title": "Page size", "type": "integer", "default": 30, "maximum": 500, "minimum": 1}, "remove_simulation_calls": {"title": "Remove simulation calls", "type": "boolean", "default": false}, "cursor": {"title": "Cursor", "description": "Opaque continuation token returned by the previous page. When supplied, do not also send the numbered-page parameter.", "type": "string", "maxLength": 4096, "minLength": 1}, "cursor_mode": {"title": "Cursor mode", "type": "boolean", "default": false}, "allow_sampled": {"title": "Allow sampled", "description": "Omit for backward-compatible complete bounded pages, which may label count as a lower bound. Send false to require an exact total. Send true to opt in explicitly to lower-bound totals and, on the first page, a clearly labelled bounded partial result when the full ordered prefix cannot be proven inside the read budget.", "type": "boolean"}}}, "EvalRollupSpan": {"required": ["span_id"], "type": "object", "properties": {"span_id": {"title": "Span id", "type": "string", "minLength": 1}, "span_name": {"title": "Span name", "type": "string"}, "value": {"title": "Value", "type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}, "explanation": {"title": "Explanation", "type": "string", "minLength": 1, "x-nullable": true}, "error": {"title": "Error", "type": "boolean"}, "status": {"title": "Status", "type": "string", "minLength": 1, "x-nullable": true}, "eval_config_id": {"title": "Eval config id", "type": "string"}}}, "EvalRollupEval": {"required": ["eval_config_id", "eval_name", "aggregate", "spans"], "type": "object", "properties": {"eval_config_id": {"title": "Eval config id", "type": "string", "minLength": 1}, "eval_name": {"title": "Eval name", "type": "string", "minLength": 1}, "output_type": {"title": "Output type", "type": "string", "minLength": 1, "x-nullable": true}, "template_type": {"title": "Template type", "type": "string", "minLength": 1, "x-nullable": true}, "target_type": {"title": "Target type", "type": "string", "enum": ["span", "trace"], "x-nullable": true}, "choices_map": {"title": "Choices map", "type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}, "aggregate": {"title": "Aggregate", "type": "object", "x-json-value": true, "description": "Any valid JSON value."}, "spans": {"type": "array", "items": {"$ref": "#/definitions/EvalRollupSpan"}}, "error": {"title": "Error", "type": "boolean"}}}, "TraceVoiceCallDetailResult": {"required": ["id", "trace_id", "project_id", "provider_call_id", "recording", "recording_available", "call_metadata", "observation_span", "eval_outputs", "turn_count", "talk_ratio", "agent_talk_percentage", "bot_talk_pct", "user_talk_pct", "avg_agent_latency_ms", "user_wpm", "bot_wpm", "user_interruption_count", "ai_interruption_count"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "minLength": 1}, "trace_id": {"title": "Trace id", "type": "string", "minLength": 1}, "project_id": {"title": "Project id", "type": "string", "minLength": 1}, "provider_call_id": {"title": "Provider call id", "type": "string", "minLength": 1, "x-nullable": true}, "phone_number": {"title": "Phone number", "type": "string", "minLength": 1, "x-nullable": true}, "customer_name": {"title": "Customer name", "type": "string", "minLength": 1, "x-nullable": true}, "call_id": {"title": "Call id", "type": "string", "minLength": 1, "x-nullable": true}, "status": {"title": "Status", "type": "string", "minLength": 1, "x-nullable": true}, "started_at": {"title": "Started at", "type": "string", "minLength": 1, "x-nullable": true}, "ended_at": {"title": "Ended at", "type": "string", "minLength": 1, "x-nullable": true}, "created_at": {"title": "Created at", "type": "string", "minLength": 1, "x-nullable": true}, "duration_seconds": {"title": "Duration seconds", "type": "integer", "x-nullable": true}, "recording_url": {"title": "Recording url", "type": "string", "x-nullable": true}, "stereo_recording_url": {"title": "Stereo recording url", "type": "string", "minLength": 1, "x-nullable": true}, "cost_cents": {"title": "Cost cents", "type": "number", "x-nullable": true}, "cost_breakdown": {"title": "Cost breakdown", "type": "object", "x-nullable": true, "additionalProperties": true}, "error_message": {"title": "Error message", "type": "string", "minLength": 1, "x-nullable": true}, "call_summary": {"title": "Call summary", "type": "string", "x-nullable": true}, "ended_reason": {"title": "Ended reason", "type": "string", "minLength": 1, "x-nullable": true}, "overall_score": {"title": "Overall score", "type": "number", "x-nullable": true}, "response_time_ms": {"title": "Response time ms", "type": "number", "x-nullable": true}, "response_time_seconds": {"title": "Response time seconds", "type": "number", "x-nullable": true}, "assistant_id": {"title": "Assistant id", "type": "string", "minLength": 1, "x-nullable": true}, "assistant_phone_number": {"title": "Assistant phone number", "type": "string", "minLength": 1, "x-nullable": true}, "call_type": {"title": "Call type", "type": "string", "minLength": 1, "x-nullable": true}, "message_count": {"title": "Message count", "type": "integer", "x-nullable": true}, "transcript_available": {"title": "Transcript available", "type": "boolean", "x-nullable": true}, "transcript": {"type": "array", "items": {"type": "object", "additionalProperties": {"type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}}, "x-nullable": true}, "messages": {"type": "array", "items": {"type": "object", "additionalProperties": {"type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}}, "x-nullable": true}, "analysis_data": {"title": "Analysis data", "type": "object", "x-nullable": true, "additionalProperties": true}, "evaluation_data": {"title": "Evaluation data", "type": "object", "x-nullable": true, "additionalProperties": true}, "recording": {"title": "Recording", "type": "object", "additionalProperties": true}, "recording_available": {"title": "Recording available", "type": "boolean"}, "call_metadata": {"title": "Call metadata", "type": "object", "additionalProperties": true}, "observation_span": {"type": "array", "items": {"type": "object", "additionalProperties": {"type": "object", "x-nullable": true, "x-json-value": true, "description": "Any valid JSON value."}}}, "eval_outputs": {"title": "Eval outputs", "type": "object", "additionalProperties": true}, "eval_rollup": {"required": ["scope", "evals"], "type": "object", "properties": {"scope": {"title": "Scope", "type": "string", "enum": ["trace", "span"]}, "evals": {"type": "array", "items": {"$ref": "#/definitions/EvalRollupEval"}}, "error": {"title": "Error", "type": "boolean"}}, "x-nullable": true}, "call_execution_id": {"title": "Call execution id", "type": "string", "minLength": 1, "x-nullable": true}, "test_execution_id": {"title": "Test execution id", "type": "string", "minLength": 1, "x-nullable": true}, "scenario_id": {"title": "Scenario id", "type": "string", "minLength": 1, "x-nullable": true}, "scenario_name": {"title": "Scenario name", "type": "string", "minLength": 1, "x-nullable": true}, "scenario_graph_id": {"title": "Scenario graph id", "type": "string", "minLength": 1, "x-nullable": true}, "scenario_graph": {"title": "Scenario graph", "type": "object", "additionalProperties": true}, "turn_count": {"title": "Turn count", "type": "integer", "x-nullable": true}, "talk_ratio": {"title": "Talk ratio", "type": "number", "x-nullable": true}, "agent_talk_percentage": {"title": "Agent talk percentage", "type": "number", "x-nullable": true}, "bot_talk_pct": {"title": "Bot talk pct", "type": "integer", "x-nullable": true}, "user_talk_pct": {"title": "User talk pct", "type": "integer", "x-nullable": true}, "avg_agent_latency_ms": {"title": "Avg agent latency ms", "type": "integer", "x-nullable": true}, "user_wpm": {"title": "User wpm", "type": "integer", "x-nullable": true}, "bot_wpm": {"title": "Bot wpm", "type": "integer", "x-nullable": true}, "user_interruption_count": {"title": "User interruption count", "type": "integer", "x-nullable": true}, "ai_interruption_count": {"title": "Ai interruption count", "type": "integer", "x-nullable": true}}}, "TraceVoiceCallDetailResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/TraceVoiceCallDetailResult"}}}, "EvalRollup": {"required": ["scope", "evals"], "type": "object", "properties": {"scope": {"title": "Scope", "type": "string", "enum": ["trace", "span"]}, "evals": {"type": "array", "items": {"$ref": "#/definitions/EvalRollupEval"}}, "error": {"title": "Error", "type": "boolean"}}}, "TraceDetailSpan": {"required": ["observation_span"], "type": "object", "properties": {"observation_span": {"title": "Observation span", "type": "object"}, "children": {"type": "array", "items": {"type": "object"}}, "eval_scores": {"description": "Raw eval rows retained for backwards-compatible array consumers.", "type": "array", "items": {"type": "object"}}, "eval_rollup": {"$ref": "#/definitions/EvalRollup"}, "annotations": {"type": "array", "items": {"type": "object"}}}}, "TraceDetailResult": {"required": ["trace", "observation_spans", "summary", "graph"], "type": "object", "properties": {"trace": {"title": "Trace", "type": "object"}, "observation_spans": {"type": "array", "items": {"$ref": "#/definitions/TraceDetailSpan"}}, "summary": {"title": "Summary", "type": "object"}, "graph": {"title": "Graph", "type": "object"}}}, "TraceDetailResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/TraceDetailResult"}}}, "TraceTagsUpdate": {"required": ["tags"], "type": "object", "properties": {"tags": {"type": "array", "items": {"type": "string", "minLength": 1}}}}, "UserAlertMonitorLog": {"required": ["type", "message"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "resolved_by": {"$ref": "#/definitions/User"}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "type": {"title": "Type", "type": "string", "enum": ["critical", "warning"]}, "message": {"title": "Message", "type": "string", "minLength": 1}, "resolved": {"title": "Resolved", "type": "boolean"}, "resolved_at": {"title": "Resolved at", "type": "string", "format": "date-time", "x-nullable": true}, "link": {"title": "Link", "type": "string", "format": "uri", "maxLength": 200, "x-nullable": true}, "time_window_start": {"title": "Time window start", "type": "string", "format": "date-time", "x-nullable": true}, "time_window_end": {"title": "Time window end", "type": "string", "format": "date-time", "x-nullable": true}}}, "UserAlertMonitorLogWriteRequest": {"required": ["alert", "type", "message"], "type": "object", "properties": {"alert": {"title": "Alert", "type": "string", "format": "uuid"}, "type": {"title": "Type", "type": "string", "enum": ["critical", "warning"]}, "message": {"title": "Message", "type": "string", "minLength": 1}, "resolved": {"title": "Resolved", "type": "boolean", "default": false}, "resolved_at": {"title": "Resolved at", "type": "string", "format": "date-time", "x-nullable": true}, "link": {"title": "Link", "type": "string", "format": "uri", "x-nullable": true}, "time_window_start": {"title": "Time window start", "type": "string", "format": "date-time", "x-nullable": true}, "time_window_end": {"title": "Time window end", "type": "string", "format": "date-time", "x-nullable": true}}}, "UserAlertMonitorLogWriteResponse": {"required": ["id", "alert", "type", "message", "resolved", "created_at"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "alert": {"title": "Alert", "type": "string", "format": "uuid"}, "type": {"title": "Type", "type": "string", "enum": ["critical", "warning"]}, "message": {"title": "Message", "type": "string", "minLength": 1}, "resolved": {"title": "Resolved", "type": "boolean"}, "resolved_at": {"title": "Resolved at", "type": "string", "format": "date-time", "x-nullable": true}, "resolved_by": {"$ref": "#/definitions/User"}, "link": {"title": "Link", "type": "string", "format": "uri", "x-nullable": true}, "time_window_start": {"title": "Time window start", "type": "string", "format": "date-time", "x-nullable": true}, "time_window_end": {"title": "Time window end", "type": "string", "format": "date-time", "x-nullable": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time"}}}, "UserAlertMonitorLogResolveRequest": {"type": "object", "properties": {"log_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}, "default": []}, "select_all": {"title": "Select all", "type": "boolean", "default": false}, "exclude_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}, "default": []}}}, "UserAlertMonitorLogResolveResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"title": "Result", "type": "string", "minLength": 1}}}, "UserAlertMonitor": {"required": ["project", "name", "metric_type", "threshold_operator", "organization"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "project": {"title": "Project", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "metric_name": {"title": "Metric name", "type": "string", "readOnly": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}, "deleted": {"title": "Deleted", "type": "boolean", "readOnly": true}, "deleted_at": {"title": "Deleted at", "type": "string", "format": "date-time", "readOnly": true, "x-nullable": true}, "metric_type": {"title": "Metric type", "type": "string", "enum": ["count_of_errors", "error_rates_for_function_calling", "error_free_session_rates", "service_provider_error_rates", "llm_api_failure_rates", "span_response_time", "llm_response_time", "token_usage", "daily_tokens_spent", "monthly_tokens_spent", "evaluation_metrics"]}, "metric": {"title": "Metric", "description": "Id of the evaluation template.", "type": "string", "maxLength": 2556, "x-nullable": true}, "threshold_operator": {"title": "Threshold operator", "type": "string", "enum": ["greater_than", "less_than"]}, "threshold_type": {"title": "Threshold type", "description": "Method to set the threshold for the monitor (Static or Percentage change).", "type": "string", "enum": ["static", "percentage_change"]}, "threshold_metric_value": {"title": "Threshold metric value", "description": "For choice and pass/fail evals, the specific metric value to monitor.", "type": "string", "maxLength": 255, "x-nullable": true}, "critical_threshold_value": {"title": "Critical threshold value", "type": "number", "minimum": 0.0, "x-nullable": true}, "warning_threshold_value": {"title": "Warning threshold value", "type": "number", "minimum": 0.0, "x-nullable": true}, "alert_frequency": {"title": "Alert frequency", "description": "Frequency of alert checks in minutes.", "type": "integer", "maximum": 2147483647, "minimum": 5}, "auto_threshold_time_window": {"title": "Auto threshold time window", "description": "For auto-thresholding. The time window in minutes to calculate the historical mean", "type": "integer", "maximum": 2147483647, "minimum": 0}, "last_checked_at": {"title": "Last checked at", "description": "The last time the monitor was checked for alerts.", "type": "string", "format": "date-time", "readOnly": true, "x-nullable": true}, "notification_emails": {"type": "array", "items": {"title": "Notification emails", "type": "string", "format": "email", "maxLength": 254, "minLength": 1}}, "slack_webhook_url": {"title": "Slack webhook url", "type": "string", "format": "uri", "maxLength": 200, "x-nullable": true}, "slack_notes": {"title": "Slack notes", "type": "string", "x-nullable": true}, "is_mute": {"title": "Is mute", "type": "boolean"}, "filters": {"title": "Filters", "type": "object", "x-nullable": true}, "logs": {"type": "array", "items": {"title": "Logs", "type": "object"}, "readOnly": true, "x-nullable": true}, "organization": {"title": "Organization", "type": "string", "format": "uuid"}, "workspace": {"title": "Workspace", "type": "string", "format": "uuid", "x-nullable": true}, "created_by": {"title": "Created by", "type": "string", "format": "uuid", "x-nullable": true}}}, "UserAlertMonitorBulkMuteRequest": {"type": "object", "properties": {"ids": {"type": "array", "items": {"type": "string", "format": "uuid"}, "default": []}, "is_mute": {"title": "Is mute", "type": "boolean", "default": true}, "select_all": {"title": "Select all", "type": "boolean", "default": false}, "exclude_ids": {"type": "array", "items": {"type": "string", "format": "uuid"}, "default": []}}}, "UserAlertMonitorDuplicate": {"required": ["id", "name"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}}}, "UserAlertMonitorDuplicateResult": {"required": ["id", "message"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "message": {"title": "Message", "type": "string", "minLength": 1}}}, "UserAlertMonitorDuplicateResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/UserAlertMonitorDuplicateResult"}}}, "UserAlertMonitorListColumn": {"required": ["id", "name", "is_visible"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "minLength": 1}, "name": {"title": "Name", "type": "string", "minLength": 1}, "is_visible": {"title": "Is visible", "type": "boolean"}}}, "UserAlertMonitorTrend": {"required": ["timestamp", "count"], "type": "object", "properties": {"timestamp": {"title": "Timestamp", "type": "string", "format": "date-time"}, "count": {"title": "Count", "type": "integer", "minimum": 0}}}, "UserAlertMonitorListItem": {"required": ["id", "name", "created_at", "updated_at", "metric_type", "filters", "status", "no_of_alerts", "last_triggered", "is_mute", "trends"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "created_at": {"title": "Created at", "type": "string", "format": "date-time"}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time"}, "metric_type": {"title": "Metric type", "type": "string", "minLength": 1}, "filters": {"title": "Filters", "type": "object", "x-nullable": true}, "status": {"title": "Status", "type": "string", "enum": ["triggered", "healthy"]}, "no_of_alerts": {"title": "No of alerts", "type": "integer", "minimum": 0}, "last_triggered": {"title": "Last triggered", "type": "string", "format": "date-time", "x-nullable": true}, "is_mute": {"title": "Is mute", "type": "boolean"}, "trends": {"type": "array", "items": {"$ref": "#/definitions/UserAlertMonitorTrend"}}}}, "UserAlertMonitorListMetadata": {"required": ["total_rows", "total_pages"], "type": "object", "properties": {"total_rows": {"title": "Total rows", "type": "integer", "minimum": 0}, "total_pages": {"title": "Total pages", "type": "integer", "minimum": 0}}}, "UserAlertMonitorListResult": {"required": ["column_config", "table", "metadata"], "type": "object", "properties": {"column_config": {"type": "array", "items": {"$ref": "#/definitions/UserAlertMonitorListColumn"}}, "table": {"type": "array", "items": {"$ref": "#/definitions/UserAlertMonitorListItem"}}, "metadata": {"$ref": "#/definitions/UserAlertMonitorListMetadata"}}}, "UserAlertMonitorListResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/UserAlertMonitorListResult"}}}, "UserAlertMonitorMetricOption": {"type": "object", "properties": {"id": {"title": "Id", "type": "string", "readOnly": true, "minLength": 1}, "name": {"title": "Name", "type": "string", "readOnly": true, "minLength": 1}, "metric_type": {"title": "Metric type", "type": "string", "readOnly": true, "minLength": 1}, "output_type": {"title": "Output type", "type": "string", "readOnly": true}}}, "UserAlertMonitorMetricOptionsResponse": {"type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"type": "array", "items": {"$ref": "#/definitions/UserAlertMonitorMetricOption"}, "readOnly": true}}}, "UserAlertMonitorPreviewGraph": {"required": ["project", "metric_type", "threshold_operator", "organization"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "project": {"title": "Project", "type": "string", "format": "uuid"}, "name": {"title": "Name", "type": "string"}, "metric_name": {"title": "Metric name", "type": "string", "readOnly": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}, "deleted": {"title": "Deleted", "type": "boolean", "readOnly": true}, "deleted_at": {"title": "Deleted at", "type": "string", "format": "date-time", "readOnly": true, "x-nullable": true}, "metric_type": {"title": "Metric type", "type": "string", "enum": ["count_of_errors", "error_rates_for_function_calling", "error_free_session_rates", "service_provider_error_rates", "llm_api_failure_rates", "span_response_time", "llm_response_time", "token_usage", "daily_tokens_spent", "monthly_tokens_spent", "evaluation_metrics"]}, "metric": {"title": "Metric", "description": "Id of the evaluation template.", "type": "string", "maxLength": 2556, "x-nullable": true}, "threshold_operator": {"title": "Threshold operator", "type": "string", "enum": ["greater_than", "less_than"]}, "threshold_type": {"title": "Threshold type", "description": "Method to set the threshold for the monitor (Static or Percentage change).", "type": "string", "enum": ["static", "percentage_change"]}, "threshold_metric_value": {"title": "Threshold metric value", "description": "For choice and pass/fail evals, the specific metric value to monitor.", "type": "string", "maxLength": 255, "x-nullable": true}, "critical_threshold_value": {"title": "Critical threshold value", "type": "number", "minimum": 0.0, "x-nullable": true}, "warning_threshold_value": {"title": "Warning threshold value", "type": "number", "minimum": 0.0, "x-nullable": true}, "alert_frequency": {"title": "Alert frequency", "description": "Frequency of alert checks in minutes.", "type": "integer", "maximum": 2147483647, "minimum": 5}, "auto_threshold_time_window": {"title": "Auto threshold time window", "description": "For auto-thresholding. The time window in minutes to calculate the historical mean", "type": "integer", "maximum": 2147483647, "minimum": 0}, "last_checked_at": {"title": "Last checked at", "description": "The last time the monitor was checked for alerts.", "type": "string", "format": "date-time", "readOnly": true, "x-nullable": true}, "notification_emails": {"type": "array", "items": {"title": "Notification emails", "type": "string", "format": "email", "maxLength": 254, "minLength": 1}}, "slack_webhook_url": {"title": "Slack webhook url", "type": "string", "format": "uri", "maxLength": 200, "x-nullable": true}, "slack_notes": {"title": "Slack notes", "type": "string", "x-nullable": true}, "is_mute": {"title": "Is mute", "type": "boolean"}, "filters": {"title": "Filters", "type": "object", "x-nullable": true}, "logs": {"type": "array", "items": {"title": "Logs", "type": "object"}, "readOnly": true, "x-nullable": true}, "organization": {"title": "Organization", "type": "string", "format": "uuid"}, "workspace": {"title": "Workspace", "type": "string", "format": "uuid", "x-nullable": true}, "created_by": {"title": "Created by", "type": "string", "format": "uuid", "x-nullable": true}}}, "UserAlertMonitorGraphResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"title": "Result", "type": "object", "required": ["graph_data", "alert_bar_data"], "properties": {"graph_data": {"type": "array", "items": {"type": "object", "required": ["timestamp", "value"], "properties": {"timestamp": {"type": "string"}, "value": {"type": "number"}}, "additionalProperties": false}}, "alert_bar_data": {"type": "array", "items": {"type": "object", "required": ["start_timestamp", "end_timestamp", "status"], "properties": {"start_timestamp": {"type": "string"}, "end_timestamp": {"type": "string"}, "status": {"type": "string", "enum": ["healthy", "warning", "critical", "insufficient_data"]}}, "additionalProperties": false}}}, "additionalProperties": false, "description": "Static monitors return an array of graph points; percentage-change monitors return graph_data and alert_bar_data arrays.", "x-one-of": [{"type": "array", "items": {"type": "object", "required": ["timestamp", "value"], "properties": {"timestamp": {"type": "string"}, "value": {"type": "number"}}, "additionalProperties": false}}, {"type": "object", "required": ["graph_data", "alert_bar_data"], "properties": {"graph_data": {"type": "array", "items": {"type": "object", "required": ["timestamp", "value"], "properties": {"timestamp": {"type": "string"}, "value": {"type": "number"}}, "additionalProperties": false}}, "alert_bar_data": {"type": "array", "items": {"type": "object", "required": ["start_timestamp", "end_timestamp", "status"], "properties": {"start_timestamp": {"type": "string"}, "end_timestamp": {"type": "string"}, "status": {"type": "string", "enum": ["healthy", "warning", "critical", "insufficient_data"]}}, "additionalProperties": false}}}, "additionalProperties": false}]}}}, "UsersTableRow": {"required": ["total_cost"], "type": "object", "properties": {"user_id": {"title": "User id", "type": "string", "minLength": 1, "x-nullable": true}, "total_cost": {"title": "Total cost", "type": "number"}, "total_tokens": {"title": "Total tokens", "type": "integer", "x-nullable": true}, "input_tokens": {"title": "Input tokens", "type": "integer", "x-nullable": true}, "output_tokens": {"title": "Output tokens", "type": "integer", "x-nullable": true}, "num_traces": {"title": "Num traces", "type": "integer", "x-nullable": true}, "num_sessions": {"title": "Num sessions", "type": "integer", "x-nullable": true}, "num_sessions_is_approximate": {"title": "Num sessions is approximate", "type": "boolean"}, "avg_session_duration": {"title": "Avg session duration", "type": "number", "x-nullable": true}, "avg_trace_latency": {"title": "Avg trace latency", "type": "number", "x-nullable": true}, "num_llm_calls": {"title": "Num llm calls", "type": "integer", "x-nullable": true}, "num_guardrails_triggered": {"title": "Num guardrails triggered", "type": "integer", "x-nullable": true}, "activated_at": {"title": "Activated at", "type": "string", "format": "date-time", "x-nullable": true}, "last_active": {"title": "Last active", "type": "string", "format": "date-time", "x-nullable": true}, "num_active_days": {"title": "Num active days", "type": "integer", "x-nullable": true}, "num_traces_with_errors": {"title": "Num traces with errors", "type": "integer", "x-nullable": true}, "bool_eval_pass_rate": {"title": "Bool eval pass rate", "type": "number", "x-nullable": true}, "avg_output_float": {"title": "Avg output float", "type": "number", "x-nullable": true}, "project_id": {"title": "Project id", "type": "string", "format": "uuid", "x-nullable": true}, "project_name": {"title": "Project name", "type": "string", "minLength": 1, "x-nullable": true}, "user_id_type": {"title": "User id type", "type": "string", "minLength": 1, "x-nullable": true}, "user_id_hash": {"title": "User id hash", "type": "string", "minLength": 1, "x-nullable": true}, "end_user_id": {"title": "End user id", "type": "string", "format": "uuid", "x-nullable": true}}}, "UsersResult": {"required": ["table", "total_count", "total_pages"], "type": "object", "properties": {"table": {"type": "array", "items": {"$ref": "#/definitions/UsersTableRow"}}, "total_count": {"title": "Total count", "type": "integer"}, "total_pages": {"title": "Total pages", "type": "integer"}, "count_is_lower_bound": {"title": "Count is lower bound", "type": "boolean"}, "has_more": {"title": "Has more", "type": "boolean"}, "next_cursor": {"title": "Next cursor", "type": "string", "minLength": 1, "x-nullable": true}, "next_cursor_fingerprint": {"title": "Next cursor fingerprint", "type": "string", "pattern": "^[0-9a-f]{64}$", "minLength": 1, "x-nullable": true}, "query_complete": {"title": "Query complete", "type": "boolean"}, "query_status": {"title": "Query status", "type": "string", "enum": ["complete", "degraded"]}, "query_exact": {"title": "Query exact", "type": "boolean"}, "query_provenance": {"title": "Query provenance", "type": "string", "enum": ["span_user_rollup_end_users_candidate", "physical_latest_users", "matching_activity_walk"]}, "ordering_exact": {"title": "Ordering exact", "type": "boolean"}, "ordering": {"title": "Ordering", "type": "string", "enum": ["latest_matching_activity"]}, "approximate_fields": {"type": "array", "items": {"type": "string", "enum": ["num_sessions"]}}}}, "UsersResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"$ref": "#/definitions/UsersResult"}}}, "UsersQuery": {"type": "object", "properties": {"project_id": {"title": "Project id", "type": "string", "format": "uuid"}, "search": {"title": "Search", "type": "string"}, "page_size": {"title": "Page size", "type": "integer", "maximum": 500, "minimum": 1}, "current_page_index": {"title": "Current page index", "type": "integer", "minimum": 0}, "sort_params": {"title": "Sort params", "type": "string", "default": "[]", "minLength": 1, "description": "JSON-encoded list of sort params."}, "filters": {"title": "Filters", "type": "string", "default": "[]", "minLength": 1, "description": "JSON-encoded canonical filter list."}, "export": {"title": "Export", "type": "boolean", "default": false}, "cursor": {"title": "Cursor", "description": "Opaque continuation token returned by the previous page. When supplied, do not also send the numbered-page parameter.", "type": "string", "maxLength": 4096, "minLength": 1}, "cursor_mode": {"title": "Cursor mode", "type": "boolean", "default": false}, "requested_columns": {"title": "Requested columns", "description": "JSON-encoded list of visible Users-table fields. Raw-derived metrics are hydrated only when explicitly requested.", "type": "string", "default": []}, "attribute_keys": {"title": "Attribute keys", "description": "JSON-encoded list of visible custom user attribute keys. Only these keys (plus keys required by filters) are hydrated.", "type": "string", "default": []}}}, "UserCodeExampleResponse": {"required": ["result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean", "default": true}, "result": {"title": "Result", "type": "string", "minLength": 1}}}, "OTLPHealthResponse": {"required": ["status", "service"], "type": "object", "properties": {"status": {"title": "Status", "type": "string", "enum": ["healthy"]}, "service": {"title": "Service", "type": "string", "minLength": 1}}}, "AdminCustomPlanResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"title": "Result", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}}}}, "UsageErrorResponse": {"required": ["status"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"title": "Result", "type": "string", "x-nullable": true}, "message": {"title": "Message", "type": "string", "x-nullable": true}, "error": {"title": "Error", "type": "string", "x-nullable": true}, "detail": {"title": "Detail", "type": "string", "x-nullable": true}, "details": {"title": "Details", "type": "object", "additionalProperties": {"type": "array", "items": {"type": "string", "minLength": 1}}}}}, "AdminCustomPricingTier": {"required": ["tier_start", "price_per_unit"], "type": "object", "properties": {"tier_start": {"title": "Tier start", "type": "string", "format": "decimal"}, "tier_end": {"title": "Tier end", "type": "string", "format": "decimal", "x-nullable": true}, "price_per_unit": {"title": "Price per unit", "type": "string", "format": "decimal"}, "display_unit": {"title": "Display unit", "type": "string"}}}, "AdminCustomPlanRequest": {"required": ["organization_id"], "type": "object", "properties": {"organization_id": {"title": "Organization id", "type": "string", "format": "uuid"}, "platform_fee": {"title": "Platform fee", "type": "string", "format": "decimal"}, "platform_fee_billing_cycle": {"title": "Platform fee billing cycle", "type": "integer", "minimum": 1}, "contract_end_date": {"title": "Contract end date", "type": "string", "format": "date", "x-nullable": true}, "start_date": {"title": "Start date", "type": "string", "format": "date", "x-nullable": true}, "entitlements": {"title": "Entitlements", "type": "object", "additionalProperties": {"type": "object"}}, "pricing": {"title": "Pricing", "type": "object", "additionalProperties": {"type": "array", "items": {"$ref": "#/definitions/AdminCustomPricingTier"}}}, "create_stripe_subscription": {"title": "Create stripe subscription", "type": "boolean"}}}, "AdminEntitlementsResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"title": "Result", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}}}}, "AdminEntitlementMutationRequest": {"required": ["organization_id", "feature"], "type": "object", "properties": {"organization_id": {"title": "Organization id", "type": "string", "format": "uuid"}, "feature": {"title": "Feature", "type": "string", "minLength": 1}, "value_int": {"title": "Value int", "type": "integer"}, "value_bool": {"title": "Value bool", "type": "boolean"}}}, "AdminEntitlementMutationResult": {"required": ["id", "feature", "created"], "type": "object", "properties": {"id": {"title": "Id", "type": "integer"}, "feature": {"title": "Feature", "type": "string", "minLength": 1}, "created": {"title": "Created", "type": "boolean"}, "value_int": {"title": "Value int", "type": "integer", "x-nullable": true}, "value_bool": {"title": "Value bool", "type": "boolean", "x-nullable": true}}}, "AdminEntitlementMutationResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/AdminEntitlementMutationResult"}}}, "AdminInvoiceRequest": {"required": ["organization_id", "period"], "type": "object", "properties": {"organization_id": {"title": "Organization id", "type": "string", "format": "uuid"}, "period": {"title": "Period", "type": "string", "pattern": "^\\d{4}-\\d{2}$", "minLength": 1}}}, "AdminInvoiceGenerateResult": {"required": ["created", "skipped", "errors"], "type": "object", "properties": {"created": {"title": "Created", "type": "integer"}, "skipped": {"title": "Skipped", "type": "integer"}, "errors": {"title": "Errors", "type": "integer"}, "invoice_id": {"title": "Invoice id", "type": "string", "format": "uuid"}, "total": {"title": "Total", "type": "string", "minLength": 1}, "status": {"title": "Status", "type": "string", "minLength": 1}, "period_start": {"title": "Period start", "type": "string", "format": "date"}, "period_end": {"title": "Period end", "type": "string", "format": "date"}, "line_items_count": {"title": "Line items count", "type": "integer"}}}, "AdminInvoiceGenerateResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/AdminInvoiceGenerateResult"}}}, "AdminInvoiceLineItem": {"required": ["line_type", "description", "quantity", "unit_price", "amount"], "type": "object", "properties": {"line_type": {"title": "Line type", "type": "string", "minLength": 1}, "dimension": {"title": "Dimension", "type": "string", "x-nullable": true}, "description": {"title": "Description", "type": "string", "minLength": 1}, "quantity": {"title": "Quantity", "type": "string", "minLength": 1}, "unit": {"title": "Unit", "type": "string"}, "unit_price": {"title": "Unit price", "type": "string", "minLength": 1}, "amount": {"title": "Amount", "type": "string", "minLength": 1}, "tier_breakdown": {"title": "Tier breakdown", "type": "object", "x-nullable": true}}}, "AdminInvoicePreviewResult": {"required": ["org_id", "period", "plan", "backfill_ran", "usage_summary_count", "invoice_exists", "platform_fee", "usage_total", "credits_applied", "subtotal", "tax", "total", "line_items"], "type": "object", "properties": {"org_id": {"title": "Org id", "type": "string", "format": "uuid"}, "period": {"title": "Period", "type": "string", "minLength": 1}, "plan": {"title": "Plan", "type": "string", "minLength": 1}, "backfill_ran": {"title": "Backfill ran", "type": "boolean"}, "usage_summary_count": {"title": "Usage summary count", "type": "integer"}, "invoice_exists": {"title": "Invoice exists", "type": "boolean"}, "platform_fee": {"title": "Platform fee", "type": "string", "minLength": 1}, "usage_total": {"title": "Usage total", "type": "string", "minLength": 1}, "credits_applied": {"title": "Credits applied", "type": "string", "minLength": 1}, "subtotal": {"title": "Subtotal", "type": "string", "minLength": 1}, "tax": {"title": "Tax", "type": "string", "minLength": 1}, "total": {"title": "Total", "type": "string", "minLength": 1}, "line_items": {"type": "array", "items": {"$ref": "#/definitions/AdminInvoiceLineItem"}}}}, "AdminInvoicePreviewResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/AdminInvoicePreviewResult"}}}, "AdminPricingTier": {"required": ["dimension", "tier_start", "price_per_unit"], "type": "object", "properties": {"id": {"title": "Id", "type": "integer"}, "dimension": {"title": "Dimension", "type": "string", "minLength": 1}, "tier_start": {"title": "Tier start", "type": "string", "format": "decimal"}, "tier_end": {"title": "Tier end", "type": "string", "format": "decimal", "x-nullable": true}, "price_per_unit": {"title": "Price per unit", "type": "string", "format": "decimal"}, "display_unit": {"title": "Display unit", "type": "string"}}}, "AdminPricingListResult": {"required": ["pricing"], "type": "object", "properties": {"pricing": {"type": "array", "items": {"$ref": "#/definitions/AdminPricingTier"}}}}, "AdminPricingListResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/AdminPricingListResult"}}}, "AdminPricingMutationRequest": {"required": ["organization_id", "dimension", "tier_start", "price_per_unit"], "type": "object", "properties": {"organization_id": {"title": "Organization id", "type": "string", "format": "uuid"}, "dimension": {"title": "Dimension", "type": "string", "minLength": 1}, "tier_start": {"title": "Tier start", "type": "string", "format": "decimal"}, "tier_end": {"title": "Tier end", "type": "string", "format": "decimal", "x-nullable": true}, "price_per_unit": {"title": "Price per unit", "type": "string", "format": "decimal"}, "display_unit": {"title": "Display unit", "type": "string"}}}, "AdminPricingMutationResult": {"required": ["id", "dimension", "created"], "type": "object", "properties": {"id": {"title": "Id", "type": "integer"}, "dimension": {"title": "Dimension", "type": "string", "minLength": 1}, "created": {"title": "Created", "type": "boolean"}}}, "AdminPricingMutationResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/AdminPricingMutationResult"}}}, "APICallCountResult": {"required": ["data"], "type": "object", "properties": {"data": {"title": "Data", "type": "object", "additionalProperties": {"type": "integer"}}}}, "APICallCountResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/APICallCountResult"}}}, "UsageAPICallType": {"required": ["name"], "type": "object", "properties": {"id": {"title": "ID", "type": "integer", "readOnly": true}, "name": {"title": "Name", "type": "string", "enum": ["prompt_bench", "dataset_protect", "dataset_protect_flash", "turing_large_evaluator", "turing_small_evaluator", "turing_flash_evaluator", "protect_evaluator", "protect_flash_evaluator", "code_evaluator", "user_add", "observe_add", "prototype_add", "dataset_add", "row_add", "knowledge_base", "synthetic_data_generation", "error_localizer", "auto_annotation", "dataset_evaluation", "experiment_evaluation", "optimisation_evaluation", "eval_explanation", "dataset_run_prompt", "dataset_optimization", "dataset_experiment", "voice_call", "text_call", "wallet_refund", "wallet_refill", "wallet_auto_recharge", "wallet_add_funds", "trace_error_analysis"]}, "description": {"title": "Description", "type": "string"}}}, "APICallTypeListResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"type": "array", "items": {"$ref": "#/definitions/UsageAPICallType"}}}}, "UsageEmptyRequest": {"type": "object", "properties": {}}, "UsageMessageResult": {"required": ["message"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}}}, "UsageMessageResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/UsageMessageResult"}}}, "CheckoutSessionResult": {"type": "object", "properties": {"session_id": {"title": "Session id", "type": "string", "minLength": 1}, "url": {"title": "Url", "type": "string", "format": "uri", "minLength": 1}, "status": {"title": "Status", "type": "string", "minLength": 1}, "message": {"title": "Message", "type": "string", "minLength": 1}}}, "CheckoutSessionResponse": {"type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/CheckoutSessionResult"}, "session_id": {"title": "Session id", "type": "string", "minLength": 1}, "url": {"title": "Url", "type": "string", "format": "uri", "minLength": 1}}}, "BillingPortalResponse": {"required": ["url"], "type": "object", "properties": {"url": {"title": "Url", "type": "string", "format": "uri", "minLength": 1}}}, "CheckoutSessionRequest": {"type": "object", "properties": {"subscription_type": {"title": "Subscription type", "type": "string", "minLength": 1}}}, "CustomPaymentCheckoutRequest": {"required": ["amount"], "type": "object", "properties": {"amount": {"title": "Amount", "type": "string", "format": "decimal"}}}, "DownloadInvoiceRequest": {"required": ["invoice_id"], "type": "object", "properties": {"invoice_id": {"title": "Invoice id", "type": "string", "minLength": 1}}}, "DownloadInvoiceResult": {"required": ["invoice_pdf_url"], "type": "object", "properties": {"invoice_pdf_url": {"title": "Invoice pdf url", "type": "string", "format": "uri", "minLength": 1}}}, "DownloadInvoiceResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/DownloadInvoiceResult"}}}, "AutoReloadSettingsData": {"required": ["autoreload_enabled", "autoreload_wallet_amount", "autoreload_wallet_threshold"], "type": "object", "properties": {"autoreload_enabled": {"title": "Autoreload enabled", "type": "boolean"}, "autoreload_wallet_amount": {"title": "Autoreload wallet amount", "type": "string", "format": "decimal"}, "autoreload_wallet_threshold": {"title": "Autoreload wallet threshold", "type": "string", "format": "decimal"}}}, "AutoReloadSettingsResponse": {"required": ["status", "data"], "type": "object", "properties": {"status": {"title": "Status", "type": "string", "minLength": 1}, "data": {"$ref": "#/definitions/AutoReloadSettingsData"}}}, "BillingInfo": {"type": "object", "properties": {"name": {"title": "Name", "type": "string", "x-nullable": true}, "email": {"title": "Email", "type": "string", "format": "email", "x-nullable": true}, "company": {"title": "Company", "type": "string", "x-nullable": true}, "billing_address1": {"title": "Billing address1", "type": "string", "x-nullable": true}, "billing_address2": {"title": "Billing address2", "type": "string", "x-nullable": true}, "city": {"title": "City", "type": "string", "x-nullable": true}, "state": {"title": "State", "type": "string", "x-nullable": true}, "country": {"title": "Country", "type": "string", "x-nullable": true}, "postal_code": {"title": "Postal code", "type": "string", "x-nullable": true}, "tax_id": {"title": "Tax id", "type": "string", "x-nullable": true}}}, "OrganizationBillingLegacyResponse": {"required": ["status", "billing_info"], "type": "object", "properties": {"status": {"title": "Status", "type": "string", "minLength": 1}, "billing_info": {"$ref": "#/definitions/BillingInfo"}}}, "CustomerInvoice": {"required": ["date", "id", "is_invoice_available", "amount", "payment_type"], "type": "object", "properties": {"date": {"title": "Date", "type": "string", "minLength": 1}, "id": {"title": "Id", "type": "string", "minLength": 1}, "is_invoice_available": {"title": "Is invoice available", "type": "boolean"}, "amount": {"title": "Amount", "type": "string", "minLength": 1}, "receipt_url": {"title": "Receipt url", "type": "string", "format": "uri", "x-nullable": true}, "payment_type": {"title": "Payment type", "type": "string", "minLength": 1}}}, "CustomerInvoicesResult": {"required": ["invoices", "total"], "type": "object", "properties": {"invoices": {"type": "array", "items": {"$ref": "#/definitions/CustomerInvoice"}}, "total": {"title": "Total", "type": "integer"}}}, "CustomerInvoicesResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/CustomerInvoicesResult"}}}, "LastFourDigitsResult": {"required": ["last4"], "type": "object", "properties": {"last4": {"title": "Last4", "type": "string", "x-nullable": true}}}, "LastFourDigitsResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/LastFourDigitsResult"}}}, "WalletBalanceResponse": {"required": ["wallet_balance"], "type": "object", "properties": {"wallet_balance": {"title": "Wallet balance", "type": "string", "format": "decimal"}}}, "PricingCalculationResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"title": "Result", "type": "object", "additionalProperties": {"type": "number"}}}}, "UsageOrganizationBilling": {"type": "object", "properties": {"id": {"title": "ID", "type": "integer", "readOnly": true}, "organization": {"title": "Organization", "type": "string", "format": "uuid", "readOnly": true}, "billing_contact_name": {"title": "Billing contact name", "type": "string", "maxLength": 100, "x-nullable": true}, "billing_contact_email": {"title": "Billing contact email", "type": "string", "format": "email", "maxLength": 254, "x-nullable": true}, "company": {"title": "Company", "type": "string", "maxLength": 100, "x-nullable": true}, "billing_address1": {"title": "Billing address1", "type": "string", "maxLength": 255, "x-nullable": true}, "billing_address2": {"title": "Billing address2", "type": "string", "maxLength": 255, "x-nullable": true}, "city": {"title": "City", "type": "string", "maxLength": 100, "x-nullable": true}, "state": {"title": "State", "type": "string", "maxLength": 100, "x-nullable": true}, "country": {"title": "Country", "type": "string", "maxLength": 100, "x-nullable": true}, "postal_code": {"title": "Postal code", "type": "string", "maxLength": 20, "x-nullable": true}, "tax_id": {"title": "Tax id", "type": "string", "maxLength": 50, "x-nullable": true}}}, "OrganizationBillingListResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"type": "array", "items": {"$ref": "#/definitions/UsageOrganizationBilling"}}}}, "OrganizationBillingDetailResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/UsageOrganizationBilling"}}}, "UsageOrganization": {"required": ["name"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}}}, "OrganizationListResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"type": "array", "items": {"$ref": "#/definitions/UsageOrganization"}}}}, "UsageOrganizationSubscription": {"required": ["organization"], "type": "object", "properties": {"id": {"title": "ID", "type": "integer", "readOnly": true}, "organization": {"title": "Organization", "type": "string", "format": "uuid"}, "subscription_tier": {"title": "Subscription tier", "type": "string", "readOnly": true}, "custom_subscription_id": {"title": "Custom subscription id", "type": "string", "maxLength": 100, "x-nullable": true}, "status": {"title": "Status", "type": "string", "enum": ["active", "past_due", "unpaid", "canceled", "inactive"]}, "subscription_price": {"title": "Subscription price", "description": "Price of the subscription.", "type": "string", "format": "decimal", "x-nullable": true}, "wallet_balance": {"title": "Wallet balance", "type": "string", "format": "decimal"}, "wallet_refill_amount": {"title": "Wallet refill amount", "description": "Amount to refill the wallet every month.", "type": "string", "format": "decimal"}, "next_renewal_date": {"title": "Next renewal date", "description": "Next due date for renewal.", "type": "string", "format": "date", "x-nullable": true}, "subscription_future_tier": {"title": "Subscription future tier", "type": "string", "enum": ["free", "basic", "basic_yearly", "custom"], "x-nullable": true}, "subscription_future_start_date": {"title": "Subscription future start date", "description": "Next due date for renewal.", "type": "string", "format": "date", "x-nullable": true}, "subscription_future_price": {"title": "Subscription future price", "description": "Price of the future subscription.", "type": "string", "format": "decimal", "x-nullable": true}, "stripe_customer_id_test": {"title": "Stripe customer id test", "description": "Stripe customer ID for test mode. NULL values are allowed.", "type": "string", "maxLength": 100, "x-nullable": true}, "stripe_customer_id_live": {"title": "Stripe customer id live", "description": "Stripe customer ID for live mode. NULL values are allowed.", "type": "string", "maxLength": 100, "x-nullable": true}, "auto_recharge_enabled": {"title": "Auto recharge enabled", "type": "boolean"}, "auto_recharge_amount": {"title": "Auto recharge amount", "description": "Amount to refill the wallet every month.", "type": "string", "format": "decimal", "x-nullable": true}, "auto_recharge_threshold": {"title": "Auto recharge threshold", "description": "Threshold to trigger auto recharge.", "type": "string", "format": "decimal", "x-nullable": true}, "payment_method_id": {"title": "Payment method id", "type": "string", "maxLength": 100, "x-nullable": true}, "last_refill_date": {"title": "Last refill date", "type": "string", "format": "date", "x-nullable": true}, "last_refill_amount": {"title": "Last refill amount", "description": "Amount of the last refill.", "type": "string", "format": "decimal"}}}, "OrganizationSubscriptionListResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"type": "array", "items": {"$ref": "#/definitions/UsageOrganizationSubscription"}}}}, "UsageOrganizationSubscriptionCreate": {"required": ["organization", "subscription_tier"], "type": "object", "properties": {"next_renewal_date": {"title": "Next renewal date", "description": "Next due date for renewal.", "type": "string", "format": "date", "x-nullable": true}, "subscription_price": {"title": "Subscription price", "description": "Price of the subscription.", "type": "string", "format": "decimal", "x-nullable": true}, "subscription_future_tier": {"title": "Subscription future tier", "type": "string", "enum": ["free", "basic", "basic_yearly", "custom"], "x-nullable": true}, "subscription_future_start_date": {"title": "Subscription future start date", "description": "Next due date for renewal.", "type": "string", "format": "date", "x-nullable": true}, "subscription_future_price": {"title": "Subscription future price", "description": "Price of the future subscription.", "type": "string", "format": "decimal", "x-nullable": true}, "status": {"title": "Status", "type": "string", "enum": ["active", "past_due", "unpaid", "canceled", "inactive"]}, "wallet_refill_amount": {"title": "Wallet refill amount", "description": "Amount to refill the wallet every month.", "type": "string", "format": "decimal"}, "wallet_balance": {"title": "Wallet balance", "type": "string", "format": "decimal"}, "stripe_customer_id_test": {"title": "Stripe customer id test", "description": "Stripe customer ID for test mode. NULL values are allowed.", "type": "string", "maxLength": 100, "x-nullable": true}, "stripe_customer_id_live": {"title": "Stripe customer id live", "description": "Stripe customer ID for live mode. NULL values are allowed.", "type": "string", "maxLength": 100, "x-nullable": true}, "auto_recharge_enabled": {"title": "Auto recharge enabled", "type": "boolean"}, "auto_recharge_amount": {"title": "Auto recharge amount", "description": "Amount to refill the wallet every month.", "type": "string", "format": "decimal", "x-nullable": true}, "auto_recharge_threshold": {"title": "Auto recharge threshold", "description": "Threshold to trigger auto recharge.", "type": "string", "format": "decimal", "x-nullable": true}, "payment_method_id": {"title": "Payment method id", "type": "string", "maxLength": 100, "x-nullable": true}, "custom_subscription_id": {"title": "Custom subscription id", "type": "string", "maxLength": 100, "x-nullable": true}, "organization": {"title": "Organization", "type": "string", "format": "uuid"}, "subscription_tier": {"title": "Subscription tier", "type": "integer"}}}, "OrganizationSubscriptionMutationResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/UsageOrganizationSubscriptionCreate"}}}, "UsageStringResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"title": "Result", "type": "string", "minLength": 1}}}, "PricingCardDetailsResult": {"required": ["business_monthly_price", "business_yearly_price", "discount_percentage"], "type": "object", "properties": {"business_monthly_price": {"title": "Business monthly price", "type": "number"}, "business_yearly_price": {"title": "Business yearly price", "type": "number"}, "discount_percentage": {"title": "Discount percentage", "type": "integer"}, "custom_price": {"title": "Custom price", "type": "number", "x-nullable": true}}}, "PricingCardDetailsResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/PricingCardDetailsResult"}}}, "UsagePricingCreate": {"required": ["api_call_type", "price_per_call"], "type": "object", "properties": {"id": {"title": "ID", "type": "integer", "readOnly": true}, "api_call_type": {"title": "Api call type", "type": "integer"}, "price_per_call": {"title": "Price per call", "type": "string", "format": "decimal"}, "organization": {"title": "Organization", "type": "string", "format": "uuid", "x-nullable": true}}}, "PricingListResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"type": "array", "items": {"$ref": "#/definitions/UsagePricingCreate"}}}}, "PricingDetailResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/UsagePricingCreate"}}}, "UsagePricing": {"required": ["price_per_call"], "type": "object", "properties": {"id": {"title": "ID", "type": "integer", "readOnly": true}, "api_call_type": {"title": "Api call type", "type": "string", "readOnly": true}, "price_per_call": {"title": "Price per call", "type": "string", "format": "decimal"}, "organization": {"title": "Organization", "type": "string", "format": "uuid", "x-nullable": true}}}, "PricingReadResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/UsagePricing"}}}, "UsageRateLimit": {"type": "object", "properties": {"id": {"title": "ID", "type": "integer", "readOnly": true}, "api_call_type": {"title": "Api call type", "type": "string", "readOnly": true}, "organization": {"title": "Organization", "type": "string", "format": "uuid", "x-nullable": true}, "minute_limit": {"title": "Minute limit", "description": "Max calls per minute", "type": "integer", "maximum": 2147483647, "minimum": 0, "x-nullable": true}, "hour_limit": {"title": "Hour limit", "description": "Max calls per hour", "type": "integer", "maximum": 2147483647, "minimum": 0, "x-nullable": true}, "day_limit": {"title": "Day limit", "description": "Max calls per day", "type": "integer", "maximum": 2147483647, "minimum": 0, "x-nullable": true}, "month_limit": {"title": "Month limit", "description": "Max calls per month", "type": "integer", "maximum": 2147483647, "minimum": 0, "x-nullable": true}, "subscription_tier": {"title": "Subscription tier", "type": "string", "readOnly": true}}}, "RateLimitListResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"type": "array", "items": {"$ref": "#/definitions/UsageRateLimit"}}}}, "UsageRateLimitCreate": {"required": ["api_call_type", "subscription_tier"], "type": "object", "properties": {"id": {"title": "ID", "type": "integer", "readOnly": true}, "api_call_type": {"title": "Api call type", "type": "integer"}, "organization": {"title": "Organization", "type": "string", "format": "uuid", "x-nullable": true}, "minute_limit": {"title": "Minute limit", "description": "Max calls per minute", "type": "integer", "maximum": 2147483647, "minimum": 0, "x-nullable": true}, "hour_limit": {"title": "Hour limit", "description": "Max calls per hour", "type": "integer", "maximum": 2147483647, "minimum": 0, "x-nullable": true}, "day_limit": {"title": "Day limit", "description": "Max calls per day", "type": "integer", "maximum": 2147483647, "minimum": 0, "x-nullable": true}, "month_limit": {"title": "Month limit", "description": "Max calls per month", "type": "integer", "maximum": 2147483647, "minimum": 0, "x-nullable": true}, "subscription_tier": {"title": "Subscription tier", "type": "integer"}}}, "RateLimitMutationResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/UsageRateLimitCreate"}}}, "RateLimitDetailResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/UsageRateLimit"}}}, "UsageResourceLimit": {"required": ["limit"], "type": "object", "properties": {"id": {"title": "ID", "type": "integer", "readOnly": true}, "resource_type": {"title": "Resource type", "type": "string", "readOnly": true}, "subscription_tier": {"title": "Subscription tier", "type": "string", "readOnly": true}, "limit": {"title": "Limit", "description": "Limit for the resource", "type": "integer", "maximum": 2147483647, "minimum": 0}, "organization": {"title": "Organization", "type": "string", "format": "uuid", "x-nullable": true}}}, "ResourceLimitListResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"type": "array", "items": {"$ref": "#/definitions/UsageResourceLimit"}}}}, "UsageResourceLimitCreate": {"required": ["resource_type", "subscription_tier", "limit"], "type": "object", "properties": {"id": {"title": "ID", "type": "integer", "readOnly": true}, "resource_type": {"title": "Resource type", "type": "integer"}, "subscription_tier": {"title": "Subscription tier", "type": "integer"}, "limit": {"title": "Limit", "description": "Limit for the resource", "type": "integer", "maximum": 2147483647, "minimum": 0}, "organization": {"title": "Organization", "type": "string", "format": "uuid", "x-nullable": true}}}, "ResourceLimitMutationResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/UsageResourceLimitCreate"}}}, "ResourceLimitDetailResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/UsageResourceLimit"}}}, "UsageResourceType": {"required": ["name"], "type": "object", "properties": {"id": {"title": "ID", "type": "integer", "readOnly": true}, "name": {"title": "Name", "type": "string", "enum": ["project", "dataset", "logs", "rows", "columns", "users", "traces", "observe", "prototypes", "knowledge_base"]}, "description": {"title": "Description", "type": "string"}}}, "ResourceTypeListResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"type": "array", "items": {"$ref": "#/definitions/UsageResourceType"}}}}, "SubscriptionPlansResult": {"required": ["status"], "type": "object", "properties": {"status": {"title": "Status", "type": "string", "enum": ["success", "error"]}, "data": {"title": "Data", "type": "object"}, "current_subscription": {"title": "Current subscription", "type": "string", "minLength": 1}, "message": {"title": "Message", "type": "string"}}}, "SubscriptionPlansResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/SubscriptionPlansResult"}}}, "SubscriptionStatusResult": {"type": "object", "properties": {"next_renewal_date": {"title": "Next renewal date", "type": "string", "format": "date", "x-nullable": true}, "subscription_status": {"title": "Subscription status", "type": "string", "minLength": 1, "x-nullable": true}, "tier": {"title": "Tier", "type": "string", "minLength": 1, "x-nullable": true}, "subscription_price": {"title": "Subscription price", "type": "string", "format": "decimal", "x-nullable": true}, "subscription_future_tier": {"title": "Subscription future tier", "type": "string", "minLength": 1, "x-nullable": true}, "subscription_future_start_date": {"title": "Subscription future start date", "type": "string", "format": "date", "x-nullable": true}, "subscription_future_price": {"title": "Subscription future price", "type": "string", "format": "decimal", "x-nullable": true}}}, "SubscriptionStatusResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/SubscriptionStatusResult"}}}, "UsageSubscriptionTier": {"required": ["description"], "type": "object", "properties": {"id": {"title": "ID", "type": "integer", "readOnly": true}, "name": {"title": "Name", "type": "string", "enum": ["free", "basic", "basic_yearly", "custom"], "readOnly": true}, "description": {"title": "Description", "type": "string"}, "stripe_price_id": {"title": "Stripe price id", "type": "string", "maxLength": 100, "x-nullable": true}, "wallet_refill_amount": {"title": "Wallet refill amount", "description": "Amount to refill the wallet every month.", "type": "string", "format": "decimal", "x-nullable": true}}}, "SubscriptionTierListResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"type": "array", "items": {"$ref": "#/definitions/UsageSubscriptionTier"}}}}, "SubscriptionTierDetailResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/UsageSubscriptionTier"}}}, "AutoReloadSettingsRequest": {"required": ["autoreload_enabled", "autoreload_walletamount", "autoreload_walletthreshold"], "type": "object", "properties": {"autoreload_enabled": {"title": "Autoreload enabled", "type": "boolean"}, "autoreload_walletamount": {"title": "Autoreload walletamount", "type": "string", "format": "decimal"}, "autoreload_walletthreshold": {"title": "Autoreload walletthreshold", "type": "string", "format": "decimal"}}}, "AutoReloadUpdateResponse": {"required": ["status", "message"], "type": "object", "properties": {"status": {"title": "Status", "type": "string", "enum": ["success"]}, "message": {"title": "Message", "type": "string", "minLength": 1}}}, "UpdateOrganizationBillingRequest": {"type": "object", "properties": {"name": {"title": "Name", "type": "string", "x-nullable": true}, "email": {"title": "Email", "type": "string", "format": "email", "x-nullable": true}, "company": {"title": "Company", "type": "string", "x-nullable": true}, "billing_address1": {"title": "Billing address1", "type": "string", "x-nullable": true}, "billing_address2": {"title": "Billing address2", "type": "string", "x-nullable": true}, "city": {"title": "City", "type": "string", "x-nullable": true}, "state": {"title": "State", "type": "string", "x-nullable": true}, "country": {"title": "Country", "type": "string", "x-nullable": true}, "postal_code": {"title": "Postal code", "type": "string", "x-nullable": true}, "tax_id": {"title": "Tax id", "type": "string", "x-nullable": true}}}, "UpdateBillingDetailsResult": {"required": ["message"], "type": "object", "properties": {"message": {"title": "Message", "type": "string", "minLength": 1}}}, "UpdateBillingDetailsResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/UpdateBillingDetailsResult"}}}, "UsageSummaryResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"title": "Result", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}}}}, "AddonRequest": {"type": "object", "properties": {"plan": {"title": "Plan", "type": "string", "enum": ["boost", "scale", "enterprise"]}}}, "AddonPostResult": {"required": ["subscription_id", "plan"], "type": "object", "properties": {"subscription_id": {"title": "Subscription id", "type": "string", "minLength": 1}, "plan": {"title": "Plan", "type": "string", "minLength": 1}}}, "AddonPostResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/AddonPostResult"}}}, "UsageInvoiceLineItem": {"required": ["line_type", "description", "quantity", "unit_price", "amount"], "type": "object", "properties": {"line_type": {"title": "Line type", "type": "string", "minLength": 1}, "dimension": {"title": "Dimension", "type": "string", "minLength": 1, "x-nullable": true}, "description": {"title": "Description", "type": "string", "minLength": 1}, "quantity": {"title": "Quantity", "type": "string", "format": "decimal"}, "unit": {"title": "Unit", "type": "string"}, "unit_price": {"title": "Unit price", "type": "string", "format": "decimal"}, "amount": {"title": "Amount", "type": "string", "format": "decimal"}, "tier_breakdown": {"title": "Tier breakdown", "type": "object", "x-nullable": true}, "credit_id": {"title": "Credit id", "type": "integer"}}}, "UsageBillingOverviewResult": {"type": "object", "properties": {"org_id": {"title": "Org id", "type": "string", "format": "uuid"}, "period": {"title": "Period", "type": "string", "minLength": 1}, "plan": {"title": "Plan", "type": "string", "minLength": 1}, "platform_fee": {"title": "Platform fee", "type": "string", "format": "decimal"}, "usage_total": {"title": "Usage total", "type": "string", "format": "decimal"}, "credits_applied": {"title": "Credits applied", "type": "string", "format": "decimal"}, "subtotal": {"title": "Subtotal", "type": "string", "format": "decimal"}, "tax": {"title": "Tax", "type": "string", "format": "decimal"}, "total": {"title": "Total", "type": "string", "format": "decimal"}, "line_items": {"type": "array", "items": {"$ref": "#/definitions/UsageInvoiceLineItem"}}, "error": {"title": "Error", "type": "string", "minLength": 1}, "pending_cancel": {"title": "Pending cancel", "type": "boolean"}, "cancel_at": {"title": "Cancel at", "type": "string", "minLength": 1, "x-nullable": true}}}, "UsageBillingOverviewResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/UsageBillingOverviewResult"}}}, "UsageBudget": {"required": ["id", "name", "threshold_value", "action"], "type": "object", "properties": {"id": {"title": "Id", "type": "integer"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "scope": {"title": "Scope", "type": "string", "minLength": 1}, "threshold_value": {"title": "Threshold value", "type": "string", "format": "decimal"}, "action": {"title": "Action", "type": "string", "minLength": 1}, "notify_emails": {"type": "array", "items": {"type": "string", "format": "email", "minLength": 1}}, "is_active": {"title": "Is active", "type": "boolean"}, "last_triggered_period": {"title": "Last triggered period", "type": "string", "minLength": 1, "x-nullable": true}, "last_triggered_at": {"title": "Last triggered at", "type": "string", "format": "date-time", "x-nullable": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time"}}}, "UsageBudgetListResult": {"required": ["budgets"], "type": "object", "properties": {"budgets": {"type": "array", "items": {"$ref": "#/definitions/UsageBudget"}}}}, "UsageBudgetListResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/UsageBudgetListResult"}}}, "UsageBudgetMutationRequest": {"type": "object", "properties": {"name": {"title": "Name", "type": "string", "minLength": 1}, "scope": {"title": "Scope", "type": "string", "minLength": 1}, "threshold_value": {"title": "Threshold value", "type": "string", "format": "decimal"}, "action": {"title": "Action", "type": "string", "enum": ["notify", "warn", "pause"]}, "notify_emails": {"type": "array", "items": {"type": "string", "format": "email", "minLength": 1}}, "notify_slack_webhook": {"title": "Notify slack webhook", "type": "string", "format": "uri", "x-nullable": true}, "is_active": {"title": "Is active", "type": "boolean"}}}, "UsageBudgetMutationResult": {"required": ["id", "name", "threshold_value", "action"], "type": "object", "properties": {"id": {"title": "Id", "type": "integer"}, "name": {"title": "Name", "type": "string", "minLength": 1}, "scope": {"title": "Scope", "type": "string", "minLength": 1}, "threshold_value": {"title": "Threshold value", "type": "string", "minLength": 1}, "action": {"title": "Action", "type": "string", "minLength": 1}, "is_active": {"title": "Is active", "type": "boolean"}}}, "UsageBudgetMutationResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/UsageBudgetMutationResult"}}}, "UsageBudgetDeleteResult": {"required": ["deleted"], "type": "object", "properties": {"deleted": {"title": "Deleted", "type": "boolean"}}}, "UsageBudgetDeleteResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/UsageBudgetDeleteResult"}}}, "PlanResult": {"required": ["plan"], "type": "object", "properties": {"plan": {"title": "Plan", "type": "string", "minLength": 1}}}, "PlanResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/PlanResult"}}}, "UsageInvoiceSummary": {"required": ["id", "period_start", "period_end", "plan", "platform_fee", "usage_total", "credits_applied", "subtotal", "tax", "total", "status", "created_at"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "period_start": {"title": "Period start", "type": "string", "format": "date"}, "period_end": {"title": "Period end", "type": "string", "format": "date"}, "plan": {"title": "Plan", "type": "string", "minLength": 1}, "platform_fee": {"title": "Platform fee", "type": "string", "format": "decimal"}, "usage_total": {"title": "Usage total", "type": "string", "format": "decimal"}, "credits_applied": {"title": "Credits applied", "type": "string", "format": "decimal"}, "subtotal": {"title": "Subtotal", "type": "string", "format": "decimal"}, "tax": {"title": "Tax", "type": "string", "format": "decimal"}, "total": {"title": "Total", "type": "string", "format": "decimal"}, "status": {"title": "Status", "type": "string", "minLength": 1}, "stripe_invoice_url": {"title": "Stripe invoice url", "type": "string", "format": "uri", "x-nullable": true}, "stripe_pdf_url": {"title": "Stripe pdf url", "type": "string", "format": "uri", "x-nullable": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time"}}}, "UsageInvoiceListResult": {"required": ["invoices"], "type": "object", "properties": {"invoices": {"type": "array", "items": {"$ref": "#/definitions/UsageInvoiceSummary"}}}}, "UsageInvoiceListResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/UsageInvoiceListResult"}}}, "UsageInvoiceDetail": {"required": ["id", "period_start", "period_end", "plan", "platform_fee", "usage_total", "credits_applied", "subtotal", "tax", "total", "status"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid"}, "period_start": {"title": "Period start", "type": "string", "format": "date"}, "period_end": {"title": "Period end", "type": "string", "format": "date"}, "plan": {"title": "Plan", "type": "string", "minLength": 1}, "platform_fee": {"title": "Platform fee", "type": "number"}, "usage_total": {"title": "Usage total", "type": "number"}, "credits_applied": {"title": "Credits applied", "type": "number"}, "subtotal": {"title": "Subtotal", "type": "number"}, "tax": {"title": "Tax", "type": "number"}, "total": {"title": "Total", "type": "number"}, "status": {"title": "Status", "type": "string", "minLength": 1}, "stripe_pdf_url": {"title": "Stripe pdf url", "type": "string", "format": "uri", "x-nullable": true}}}, "UsageInvoiceDetailResult": {"required": ["invoice", "line_items"], "type": "object", "properties": {"invoice": {"$ref": "#/definitions/UsageInvoiceDetail"}, "line_items": {"type": "array", "items": {"$ref": "#/definitions/UsageInvoiceLineItem"}}}}, "UsageInvoiceDetailResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/UsageInvoiceDetailResult"}}}, "UsageNotificationAction": {"required": ["label", "url"], "type": "object", "properties": {"label": {"title": "Label", "type": "string", "minLength": 1}, "url": {"title": "Url", "type": "string", "minLength": 1}}}, "UsageNotificationBanner": {"required": ["id", "type", "message"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "minLength": 1}, "type": {"title": "Type", "type": "string", "minLength": 1}, "message": {"title": "Message", "type": "string", "minLength": 1}, "action": {"$ref": "#/definitions/UsageNotificationAction"}, "dismissible": {"title": "Dismissible", "type": "boolean"}}}, "UsageNotificationsResult": {"required": ["banners"], "type": "object", "properties": {"banners": {"type": "array", "items": {"$ref": "#/definitions/UsageNotificationBanner"}}}}, "UsageNotificationsResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/UsageNotificationsResult"}}}, "PaymentMethod": {"required": ["id"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "minLength": 1}, "brand": {"title": "Brand", "type": "string", "x-nullable": true}, "last4": {"title": "Last4", "type": "string", "x-nullable": true}, "exp_month": {"title": "Exp month", "type": "integer", "x-nullable": true}, "exp_year": {"title": "Exp year", "type": "integer", "x-nullable": true}, "is_default": {"title": "Is default", "type": "boolean"}}}, "PaymentMethodsResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"type": "array", "items": {"$ref": "#/definitions/PaymentMethod"}}}}, "UpgradeToPaygPostResult": {"required": ["checkout_url"], "type": "object", "properties": {"checkout_url": {"title": "Checkout url", "type": "string", "format": "uri", "minLength": 1}}}, "PaymentMethodCheckoutResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/UpgradeToPaygPostResult"}}}, "SetupIntentConfirmRequest": {"required": ["session_id"], "type": "object", "properties": {"session_id": {"title": "Session id", "type": "string", "minLength": 1}}}, "PaymentMethodConfirmResult": {"required": ["payment_method_id", "set_as_default"], "type": "object", "properties": {"payment_method_id": {"title": "Payment method id", "type": "string", "minLength": 1}, "set_as_default": {"title": "Set as default", "type": "boolean"}}}, "PaymentMethodConfirmResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/PaymentMethodConfirmResult"}}}, "UsagePlanOption": {"required": ["key", "display_name", "platform_fee_monthly", "is_current", "features"], "type": "object", "properties": {"key": {"title": "Key", "type": "string", "minLength": 1}, "display_name": {"title": "Display name", "type": "string", "minLength": 1}, "platform_fee_monthly": {"title": "Platform fee monthly", "type": "number"}, "is_current": {"title": "Is current", "type": "boolean"}, "features": {"title": "Features", "type": "object", "additionalProperties": {"type": "object"}}}}, "UsagePricingTier": {"required": ["price_per_unit"], "type": "object", "properties": {"up_to": {"title": "Up to", "type": "number", "x-nullable": true}, "price_per_unit": {"title": "Price per unit", "type": "number"}}}, "UsagePricingDimension": {"required": ["display_name", "display_unit", "tiers"], "type": "object", "properties": {"display_name": {"title": "Display name", "type": "string", "minLength": 1}, "display_unit": {"title": "Display unit", "type": "string", "minLength": 1}, "tiers": {"type": "array", "items": {"$ref": "#/definitions/UsagePricingTier"}}}}, "UsageCustomPlanDetails": {"required": ["platform_fee", "platform_fee_billing_cycle", "per_charge_amount", "features", "pricing"], "type": "object", "properties": {"platform_fee": {"title": "Platform fee", "type": "number"}, "platform_fee_billing_cycle": {"title": "Platform fee billing cycle", "type": "integer"}, "per_charge_amount": {"title": "Per charge amount", "type": "number"}, "contract_end_date": {"title": "Contract end date", "type": "string", "minLength": 1, "x-nullable": true}, "features": {"title": "Features", "type": "object", "additionalProperties": {"type": "object"}}, "pricing": {"title": "Pricing", "type": "object", "additionalProperties": {"type": "object"}}}, "x-nullable": true}, "UsagePlansAndAddonsResult": {"required": ["current_plan", "billing_interval", "tiers", "addons", "pricing", "isCustomPricing", "pending_cancel"], "type": "object", "properties": {"current_plan": {"title": "Current plan", "type": "string", "minLength": 1}, "billing_interval": {"title": "Billing interval", "type": "string", "minLength": 1}, "tiers": {"type": "array", "items": {"$ref": "#/definitions/UsagePlanOption"}}, "addons": {"type": "array", "items": {"$ref": "#/definitions/UsagePlanOption"}}, "pricing": {"title": "Pricing", "type": "object", "additionalProperties": {"$ref": "#/definitions/UsagePricingDimension"}}, "isCustomPricing": {"title": "Iscustompricing", "type": "boolean"}, "customDetails": {"$ref": "#/definitions/UsageCustomPlanDetails"}, "plan_change_locked": {"title": "Plan change locked", "type": "boolean"}, "plan_change_locked_reason": {"title": "Plan change locked reason", "type": "string"}, "pending_cancel": {"title": "Pending cancel", "type": "boolean"}, "cancel_at": {"title": "Cancel at", "type": "string", "minLength": 1, "x-nullable": true}}}, "UsagePlansAndAddonsResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/UsagePlansAndAddonsResult"}}}, "StripeWebhookRequest": {"type": "object", "properties": {"id": {"title": "Id", "type": "string", "minLength": 1}, "type": {"title": "Type", "type": "string", "minLength": 1}, "data": {"title": "Data", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}}}}, "StripeWebhookResult": {"type": "object", "properties": {"event_type": {"title": "Event type", "type": "string"}, "action": {"title": "Action", "type": "string"}, "status": {"title": "Status", "type": "string"}, "message": {"title": "Message", "type": "string"}}}, "StripeWebhookResponse": {"required": ["status"], "type": "object", "properties": {"status": {"title": "Status", "type": "string", "minLength": 1}, "result": {"$ref": "#/definitions/StripeWebhookResult"}}}, "UpgradeToPaygPostResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/UpgradeToPaygPostResult"}}}, "UpgradeToPaygConfirmRequest": {"required": ["session_id"], "type": "object", "properties": {"session_id": {"title": "Session id", "type": "string", "minLength": 1}}}, "UsageTierBreakdown": {"type": "object", "properties": {"tier_start": {"title": "Tier start", "type": "number"}, "tier_end": {"title": "Tier end", "type": "number", "x-nullable": true}, "quantity": {"title": "Quantity", "type": "number"}, "rate": {"title": "Rate", "type": "number"}, "cost": {"title": "Cost", "type": "number"}}}, "UsageOverviewDimension": {"required": ["key", "display_name", "display_unit", "current_usage", "current_usage_raw", "free_allowance", "projected_usage", "estimated_cost", "usage_pct"], "type": "object", "properties": {"key": {"title": "Key", "type": "string", "minLength": 1}, "display_name": {"title": "Display name", "type": "string", "minLength": 1}, "display_unit": {"title": "Display unit", "type": "string", "minLength": 1}, "current_usage": {"title": "Current usage", "type": "number"}, "current_usage_raw": {"title": "Current usage raw", "type": "number"}, "free_allowance": {"title": "Free allowance", "type": "number"}, "projected_usage": {"title": "Projected usage", "type": "number"}, "estimated_cost": {"title": "Estimated cost", "type": "number"}, "tier_breakdown": {"type": "array", "items": {"$ref": "#/definitions/UsageTierBreakdown"}}, "usage_pct": {"title": "Usage pct", "type": "number"}}}, "UsageOverviewResult": {"required": ["plan", "plan_display_name", "platform_fee", "period", "billing_period_start", "billing_period_end", "total_estimated_cost", "total_with_platform", "dimensions", "pending_cancel"], "type": "object", "properties": {"plan": {"title": "Plan", "type": "string", "minLength": 1}, "plan_display_name": {"title": "Plan display name", "type": "string", "minLength": 1}, "platform_fee": {"title": "Platform fee", "type": "number"}, "period": {"title": "Period", "type": "string", "minLength": 1}, "billing_period_start": {"title": "Billing period start", "type": "string", "minLength": 1}, "billing_period_end": {"title": "Billing period end", "type": "string", "minLength": 1}, "total_estimated_cost": {"title": "Total estimated cost", "type": "number"}, "total_with_platform": {"title": "Total with platform", "type": "number"}, "dimensions": {"type": "array", "items": {"$ref": "#/definitions/UsageOverviewDimension"}}, "pending_cancel": {"title": "Pending cancel", "type": "boolean"}, "cancel_at": {"title": "Cancel at", "type": "string", "minLength": 1, "x-nullable": true}}}, "UsageOverviewResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/UsageOverviewResult"}}}, "UsageTimeSeriesPoint": {"required": ["date", "usage"], "type": "object", "properties": {"date": {"title": "Date", "type": "string", "minLength": 1}, "usage": {"title": "Usage", "type": "number"}}}, "UsageTimeSeriesResult": {"required": ["dimension", "period", "period_end", "series"], "type": "object", "properties": {"dimension": {"title": "Dimension", "type": "string", "minLength": 1}, "period": {"title": "Period", "type": "string", "minLength": 1}, "period_end": {"title": "Period end", "type": "string", "minLength": 1}, "series": {"type": "array", "items": {"$ref": "#/definitions/UsageTimeSeriesPoint"}}}}, "UsageTimeSeriesResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/UsageTimeSeriesResult"}}}, "UsageWorkspaceBreakdownItem": {"required": ["workspace_name", "usage"], "type": "object", "properties": {"workspace_id": {"title": "Workspace id", "type": "string", "format": "uuid", "x-nullable": true}, "workspace_name": {"title": "Workspace name", "type": "string", "minLength": 1}, "usage": {"title": "Usage", "type": "number"}}}, "UsageWorkspaceBreakdownResult": {"required": ["dimension", "period", "period_end", "workspaces"], "type": "object", "properties": {"dimension": {"title": "Dimension", "type": "string", "minLength": 1}, "period": {"title": "Period", "type": "string", "minLength": 1}, "period_end": {"title": "Period end", "type": "string", "minLength": 1}, "workspaces": {"type": "array", "items": {"$ref": "#/definitions/UsageWorkspaceBreakdownItem"}}}}, "UsageWorkspaceBreakdownResponse": {"required": ["status", "result"], "type": "object", "properties": {"status": {"title": "Status", "type": "boolean"}, "result": {"$ref": "#/definitions/UsageWorkspaceBreakdownResult"}}}, "Heartbeat": {"required": ["instance_id", "license_id", "timestamp", "nonce", "sequence"], "type": "object", "properties": {"instance_id": {"title": "Instance id", "type": "string", "format": "uuid"}, "license_id": {"title": "License id", "type": "string", "pattern": "^lic_[A-Za-z0-9_-]{1,60}$", "minLength": 1}, "version": {"title": "Version", "type": "string", "default": "", "maxLength": 100, "minLength": 1}, "deployment_type": {"title": "Deployment type", "type": "string", "default": "", "maxLength": 50, "minLength": 1}, "timestamp": {"title": "Timestamp", "type": "string", "format": "date-time"}, "nonce": {"title": "Nonce", "type": "string", "pattern": "^[A-Za-z0-9_-]{16,64}$", "minLength": 1}, "sequence": {"title": "Sequence", "type": "integer", "minimum": 0}, "usage_data": {"title": "Usage data", "type": "object", "additionalProperties": {"type": "string", "x-nullable": true}, "default": {}}}}, "EnterpriseHeartbeatResponse": {"required": ["status"], "type": "object", "properties": {"status": {"title": "Status", "type": "string", "enum": ["accepted", "ignored", "rejected"]}, "reason": {"title": "Reason", "type": "string", "minLength": 1}, "grant_status": {"title": "Grant status", "type": "string", "minLength": 1}, "expires_at": {"title": "Expires at", "type": "string", "format": "date-time"}, "renewal_notice": {"title": "Renewal notice", "type": "string", "minLength": 1}}}, "CreateGrant": {"required": ["customer_name", "license_type", "band", "expires_at"], "type": "object", "properties": {"customer_name": {"title": "Customer name", "type": "string", "maxLength": 255, "minLength": 1}, "customer_id": {"title": "Customer id", "type": "string", "default": "", "maxLength": 64, "minLength": 1}, "primary_contact_email": {"title": "Primary contact email", "type": "string", "format": "email", "default": "", "minLength": 1}, "hubspot_deal_id": {"title": "Hubspot deal id", "type": "string", "default": "", "maxLength": 128, "minLength": 1}, "license_type": {"title": "License type", "type": "string", "enum": ["production", "trial"]}, "band": {"title": "Band", "type": "string", "maxLength": 64, "minLength": 1}, "features": {"type": "array", "items": {"type": "string", "minLength": 1}, "default": []}, "limits": {"title": "Limits", "type": "object", "additionalProperties": {"type": "integer", "minimum": -1}, "default": {}}, "max_instances": {"title": "Max instances", "type": "integer", "default": 1, "minimum": 1}, "min_software_version": {"title": "Min software version", "type": "string", "default": "", "maxLength": 32, "minLength": 1}, "not_before": {"title": "Not before", "type": "string", "format": "date-time", "x-nullable": true}, "expires_at": {"title": "Expires at", "type": "string", "format": "date-time"}, "grace_days": {"title": "Grace days", "type": "integer", "default": 90, "minimum": 0}}}, "LicenseGrant": {"required": ["customer_name", "license_type", "band"], "type": "object", "properties": {"id": {"title": "Id", "type": "string", "format": "uuid", "readOnly": true}, "license_id": {"title": "License id", "type": "string", "readOnly": true, "minLength": 1}, "key_id": {"title": "Key id", "type": "string", "readOnly": true, "minLength": 1}, "customer_name": {"title": "Customer name", "type": "string", "maxLength": 255, "minLength": 1}, "customer_id": {"title": "Customer id", "type": "string", "maxLength": 64}, "primary_contact_email": {"title": "Primary contact email", "type": "string", "format": "email", "maxLength": 254}, "hubspot_deal_id": {"title": "Hubspot deal id", "type": "string", "maxLength": 128}, "license_type": {"title": "License type", "type": "string", "enum": ["production", "trial"]}, "band": {"title": "Band", "type": "string", "maxLength": 64, "minLength": 1}, "features": {"title": "Features", "type": "object"}, "limits": {"title": "Limits", "type": "object"}, "max_instances": {"title": "Max instances", "type": "integer", "maximum": 2147483647, "minimum": -2147483648}, "min_software_version": {"title": "Min software version", "type": "string", "maxLength": 32}, "issued_at": {"title": "Issued at", "type": "string", "format": "date-time", "readOnly": true, "x-nullable": true}, "not_before": {"title": "Not before", "type": "string", "format": "date-time", "x-nullable": true}, "expires_at": {"title": "Expires at", "type": "string", "format": "date-time", "x-nullable": true}, "grace_days": {"title": "Grace days", "type": "integer", "maximum": 2147483647, "minimum": -2147483648}, "status": {"title": "Status", "type": "string", "enum": ["draft", "pending_approval", "active", "suspended", "revoked", "expired"], "readOnly": true}, "status_reason": {"title": "Status reason", "type": "string", "maxLength": 255}, "status_changed_at": {"title": "Status changed at", "type": "string", "format": "date-time", "readOnly": true, "x-nullable": true}, "drafted_by": {"title": "Drafted by", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}, "approved_by": {"title": "Approved by", "type": "string", "format": "uuid", "readOnly": true, "x-nullable": true}, "approved_at": {"title": "Approved at", "type": "string", "format": "date-time", "readOnly": true, "x-nullable": true}, "authorization_version": {"title": "Authorization version", "type": "integer", "readOnly": true}, "created_at": {"title": "Created at", "type": "string", "format": "date-time", "readOnly": true}, "updated_at": {"title": "Updated at", "type": "string", "format": "date-time", "readOnly": true}}}, "LicenseActionRequest": {"type": "object", "properties": {}}, "IssuedLicenseResponse": {"required": ["grant", "license_key"], "type": "object", "properties": {"grant": {"$ref": "#/definitions/LicenseGrant"}, "license_key": {"title": "License key", "type": "string", "minLength": 1}}}, "UpdateStatus": {"required": ["status"], "type": "object", "properties": {"status": {"title": "Status", "type": "string", "enum": ["active", "suspended", "revoked"]}, "reason": {"title": "Reason", "type": "string", "default": "", "maxLength": 255}}}, "ActivationRequest": {"required": ["instance_id"], "type": "object", "properties": {"instance_id": {"title": "Instance id", "type": "string", "format": "uuid"}, "version": {"title": "Version", "type": "string", "default": "", "maxLength": 100}, "deployment_type": {"title": "Deployment type", "type": "string", "default": "", "maxLength": 50}, "license_key_hash": {"title": "License key hash", "type": "string", "pattern": "^[0-9a-f]{64}$", "minLength": 1}}}, "ActivationResponse": {"required": ["gateway_url", "access_token", "expires_in", "allowed_services", "allowed_models", "scope"], "type": "object", "properties": {"gateway_url": {"title": "Gateway url", "type": "string", "format": "uri", "minLength": 1}, "access_token": {"title": "Access token", "type": "string", "minLength": 1, "x-nullable": true}, "expires_in": {"title": "Expires in", "type": "integer", "minimum": 0}, "allowed_services": {"type": "array", "items": {"type": "string", "minLength": 1}}, "allowed_models": {"type": "array", "items": {"type": "string", "minLength": 1}}, "scope": {"title": "Scope", "type": "string", "enum": ["oss", "enterprise"]}}}}}